/* American Acorns: minimalist white / navy / red. Fonts are self-hosted (SIL OFL 1.1, see /assets/fonts/). */
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --panel: #f4f6f8;
  --navy: #17324d;
  --ink: #202b36;
  --muted: #526170;
  --rule: #d8e0e8;
  --red: #b32635;
  --green: #3d6b4a;
  --link: #17324d;
  --focus: #17324d;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1c2a; --panel: #16283a; --navy: #dce7f2; --ink: #e8eef4; --muted: #a9b8c7;
    --rule: #2b4058; --green: #8dc29a; --red: #e27a84; --link: #b9d3ec; --focus: #b9d3ec;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.65 var(--sans); }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.prose { max-width: 40rem; }
p, li { max-width: 40rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.2; }
h1 { font-size: 2.1rem; margin: .5rem 0 1rem; }
h2 { font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 600; }

.skip { position: absolute; left: -9999px; top: .5rem; }
.skip:focus { left: 1rem; z-index: 10; background: var(--bg); color: var(--navy); padding: .6rem 1rem; border: 2px solid var(--navy); }

/* Header and navigation */
header.site { border-bottom: 1px solid var(--rule); background: var(--bg); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.25rem; padding-top: .35rem; padding-bottom: .35rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; color: var(--navy); font: 600 1.2rem/1.2 var(--serif); }
.brand img { width: 38px; height: 46px; }
nav.main { display: flex; flex-wrap: wrap; gap: 0 .25rem; }
nav.main a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .6rem; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .98rem; border-bottom: 3px solid transparent; }
nav.main a:hover { border-bottom-color: var(--rule); }
nav.main a[aria-current] { border-bottom-color: var(--red); }
nav.main a.signin { color: var(--muted); }
.central-person { font-size: .9rem; }
.central-person:empty { display: none; } /* no-JS: nothing was ever written into it */
.cp-search { position: relative; }
.cp-search input { min-height: 40px; padding: .25rem .55rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--muted); border-radius: 4px; width: 13rem; max-width: 40vw; }
.cp-chip { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.cp-chip a { font-weight: 600; }

main { padding-top: 1.75rem; padding-bottom: 3.5rem; }

/* Home */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem 2.5rem; align-items: start; margin-bottom: 1rem; }
.intro .lede { font-size: 1.15rem; color: var(--ink); }
.intro .motto { color: var(--muted); font-style: italic; margin-top: -.25rem; }
.crest-hero { margin: .5rem 0 0; }
.crest-hero img { display: block; width: 280px; max-width: 100%; height: auto; padding: .5rem; background: #fff; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 .5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.2rem; border-radius: 4px; border: 2px solid var(--navy); color: var(--navy); background: var(--bg); font-weight: 600; text-decoration: none; }
.btn.primary { background: var(--navy); color: var(--bg); }
.btn:hover { text-decoration: underline; }
@media (max-width: 40rem) { .intro { grid-template-columns: minmax(0, 1fr); } .crest-hero { order: -1; } .crest-hero img { width: 180px; } }

/* Acorn contribution pilot (work-orders/2026-09-28-acorn-work-contribution-pilot.md): a contribution invitation,
   never a confidence badge, so it is styled apart from the Confirmed/Likely/Unconfirmed badges entirely. */
.acorn-prompt, .acorn-help-wrap { margin: 1rem 0; }
.acorn-prompt h3 { margin-bottom: .25rem; }
a.acorn-help { display: inline-flex; align-items: center; gap: .4rem; min-height: 48px; padding: 0 1rem; border-radius: 4px; border: 2px solid var(--navy); color: var(--navy); background: var(--bg); font-weight: 600; text-decoration: none; }
a.acorn-help:hover { text-decoration: underline; }
a.acorn-help .acorn-icon { font-size: 1.1rem; }

/* Cards and lists */
.cards { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin: 1.25rem 0 0; max-width: none; }
.cards li { max-width: none; min-width: 0; display: flex; flex-direction: column; }
.cards a { display: block; flex: 1 1 auto; min-width: 0; padding: 1rem 1.1rem; background: var(--bg); border: 1px solid var(--rule); border-top: 3px solid var(--navy); border-radius: 4px; text-decoration: none; color: var(--ink); overflow: hidden; }
.cards a:hover { border-color: var(--navy); }
/* Fixed-height media frame for a story/home card's feature image: bleeds to the card's edges above the
   text, contains the full image on a quiet background by default so nothing (a clipping's words, a
   document's edge) gets cut off, and switches to a cropped/fitted view only for genuine face portraits. */
.cards a > img { display: block; width: calc(100% + 2.2rem); height: 12rem; margin: -1rem -1.1rem .8rem; max-width: none; object-fit: contain; background: var(--panel); border-radius: 3px 3px 0 0; }
.cards a > img[data-fit="cover"] { object-fit: cover; object-position: center top; }
.cards a > .card-img-pair { display: flex; width: calc(100% + 2.2rem); height: 12rem; margin: -1rem -1.1rem .8rem; gap: 2px; background: var(--rule); border-radius: 3px 3px 0 0; overflow: hidden; }
.cards a > .card-img-pair img { flex: 1 1 50%; min-width: 0; height: 100%; object-fit: cover; object-position: center top; background: var(--panel); }
.cards strong { display: block; font: 600 1.1rem/1.3 var(--serif); color: var(--navy); margin-bottom: .3rem; }
.cards span { color: var(--muted); font-size: .98rem; }
.plain { padding-left: 1.2rem; }
.plain li { margin: .3rem 0; }
.story-more { list-style: none; padding-left: 0; max-width: 56rem; }
.story-more .blurb { color: var(--muted); }
.cards .era { display: block; font-style: normal; font-size: .85rem; color: var(--muted); margin-bottom: .25rem; }
.story-more .era { font-style: normal; font-size: .9rem; color: var(--muted); }
.story-sort, .story-filter { margin: .75rem 0; }
.story-filter label { margin-right: .4rem; }
.story-filter select { font: inherit; padding: .25rem .4rem; }
/* A flex or grid rule on a card must never keep a filtered-out story on screen. */
.cards li[hidden], #more-stories li[hidden], #more-stories[hidden] { display: none !important; }
.story-sort label { margin-right: .4rem; }
.story-sort select { font: inherit; padding: .25rem .4rem; }
.story-search { margin: .75rem 0; }
.story-search label { margin-right: .4rem; }
.story-search input { font: inherit; padding: .25rem .4rem; width: min(22rem, 100%); }
#story-list li[data-nomatch], #more-stories li[data-nomatch] { display: none; }
.more-stories-link { margin-top: 1rem; }
.whats-new { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-direction: column; gap: .4rem; }
.whats-new a { display: block; text-decoration: none; color: var(--ink); }
.whats-new a:hover { text-decoration: underline; }
.whats-new time { color: var(--muted); font-size: .9rem; margin-right: .4rem; }
.years { color: var(--muted); font-size: .95rem; white-space: nowrap; }

/* Breadcrumbs, related links */
.crumbs { font-size: .95rem; color: var(--muted); margin: 0 0 .5rem; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.related { margin: 2.5rem 0 0; padding: 1rem 1.1rem; background: var(--panel); border-left: 3px solid var(--navy); max-width: 40rem; }
.related h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.related ul { margin: 0; padding-left: 1.2rem; }

/* Story reading aids (scripts/story-reading.mjs, src/assets/js/story.js): contents list, copy buttons, related stories.
   The list and the section ids are plain HTML; the buttons are added by the script, so a page without it just has no buttons. */
.story-toc { margin: 1.25rem 0; padding: 0 1rem; background: var(--panel); border: 1px solid var(--rule); border-left: 3px solid var(--navy); border-radius: 4px; }
.story-toc > details > summary { display: flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--navy); }
.story-toc ol { margin: 0 0 .8rem; padding-left: 1.3rem; }
.story-toc ol ol { margin: .1rem 0 .3rem; font-size: .95rem; }
.story-toc li { margin: .15rem 0; }
.story-toc a { display: inline-flex; align-items: center; min-height: 32px; }
.story h2[id], .story h3[id] { scroll-margin-top: 1rem; }
.story-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: -.4rem 0 1rem; }
.copy-btn { min-height: 44px; padding: 0 .8rem; font: 600 .9rem var(--sans); color: var(--navy); background: var(--bg); border: 1px solid var(--navy); border-radius: 4px; cursor: pointer; }
.copy-btn:hover { background: var(--panel); }
.h-copy { margin: -10px 0 -10px .6rem; padding: 0 .55rem; font-weight: 400; font-size: .82rem; color: var(--muted); border-color: transparent; vertical-align: middle; }
.h-copy:hover, .h-copy:focus-visible { border-color: var(--navy); color: var(--navy); }
.copy-note { display: inline-block; font: .9rem/1.4 var(--sans); color: var(--muted); max-width: 36rem; overflow-wrap: anywhere; }
.copy-note:empty { display: none; }
.related-stories .note { display: block; }
/* Print a story: no navigation or buttons, pictures and their captions kept, evidence labels shown (their "why" panels
   stay closed), transcriptions opened, and the address of each outside link written after it. */
@media print {
  body:has(article.story) { background: #fff; color: #000; font-size: 11pt; line-height: 1.5; }
  body:has(article.story) header.site, body:has(article.story) footer.site, body:has(article.story) .skip, body:has(article.story) .crumbs,
  body:has(article.story) .fb-bar, body:has(article.story) .acorn-help-wrap, body:has(article.story) .more,
  .story-toc, .story-tools, .copy-btn, .copy-note, .related-stories { display: none !important; }
  body:has(article.story) .wrap, body:has(article.story) .prose, body:has(article.story) p, body:has(article.story) li { max-width: none; }
  body:has(article.story) main { padding: 0; }
  body:has(article.story) a { color: #000; }
  article.story h1, article.story h2, article.story h3 { color: #000; break-after: avoid; }
  article.story figure, article.story figcaption, article.story .ev-card, article.story table { break-inside: avoid; }
  article.story figure img { max-width: 100%; height: auto; }
  article.story .ev-l::after { content: none; }
  article.story .ev-l, article.story .badge { border-color: #000; color: #000; background: #fff; }
  article.story details.transcript::details-content { display: block; content-visibility: visible; }
  article.story details.transcript > summary { list-style: none; }
  article.story a[href^="https"]::after { content: " (" attr(href) ")"; font-size: .85em; overflow-wrap: anywhere; }
  body:has(article.story) .related, body:has(article.story) .story-evidence { break-inside: avoid; }
}

/* Evidence labels: quiet text, meaning carried by the word, not the color */
.badge { display: inline-block; font: 600 .78rem/1.5 var(--sans); letter-spacing: .03em; text-transform: uppercase; padding: 0 .45rem; border: 1px solid var(--rule); border-radius: 3px; background: var(--panel); color: var(--ink); vertical-align: .1em; white-space: nowrap; }
.lock { display: inline-block; font: 600 .78rem/1.5 var(--sans); padding: 0 .45rem; margin-left: .4rem; border: 1px solid var(--navy); border-radius: 3px; color: var(--navy); white-space: nowrap; }

/* Figures */
figure { margin: 1.75rem 0; }
figure img { max-width: 100%; height: auto; }
figure.hero, figure.coins { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
figure.coins img { width: 120px; border-radius: 50%; }
figure.coins figcaption { flex-basis: 100%; }
figure.page img { border: 1px solid var(--rule); background: #fff; }
figcaption { color: var(--muted); font-size: .92rem; }

/* Family tree */
.tree-group { max-width: 44rem; }
.tree { list-style: none; padding: 0; margin: 1rem 0; }
.tree li { max-width: none; }
.tree .link { font-size: .92rem; color: var(--muted); margin: .3rem 0 .3rem 1.1rem; padding: .15rem 0 .15rem .8rem; border-left: 2px solid var(--rule); }
.tree .node { background: var(--bg); border: 1px solid var(--rule); border-radius: 4px; padding: .55rem .85rem; }
.tree .node a { font-weight: 600; }
.tree .spouse { font-size: .95rem; color: var(--muted); }
.tree li:target .node { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }

/* Forms (family sign-in shell) */
form br { display: none; }
form button { display: block; }
form label { display: block; font-weight: 600; margin: 1rem 0 .35rem; color: var(--navy); }
form input[type="password"] { width: 100%; max-width: 22rem; min-height: 44px; padding: .4rem .6rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--muted); border-radius: 4px; }
form button { margin-top: 1rem; min-height: 48px; padding: 0 1.3rem; font: 600 1rem var(--sans); color: var(--bg); background: var(--navy); border: 0; border-radius: 4px; cursor: pointer; }
[role="alert"] { color: var(--red); font-weight: 600; }

footer.site { border-top: 1px solid var(--rule); color: var(--muted); font-size: .95rem; }
footer.site .wrap { padding-top: 1rem; padding-bottom: 2rem; }

@media (max-width: 30rem) {
  body { font-size: 17px; }
  h1 { font-size: 1.7rem; }
  nav.main a { padding: 0 .45rem; font-size: .95rem; }
}

/* Imported tree pages */
.lifespan { color: var(--muted); font-size: 1.05rem; margin-top: -.6rem; }
.reviewed { margin: 1rem 0 1.5rem; padding: .9rem 1.1rem; background: var(--panel); border-left: 3px solid var(--red); max-width: 40rem; }
.reviewed h2 { margin: 0 0 .3rem; font-size: 1.05rem; }
.reviewed p { margin: .3rem 0; }
.limited, .more, .pending { padding: .7rem 1rem; border: 1px solid var(--rule); border-radius: 4px; max-width: 56rem; }
.pending { border-color: var(--red); }
.note, .provenance { color: var(--muted); font-size: .92rem; }
.provenance { max-width: 56rem; margin-top: 2.5rem; border-top: 1px solid var(--rule); padding-top: .8rem; }
table.facts { border-collapse: collapse; width: 100%; max-width: 44rem; }
table.facts th, table.facts td { text-align: left; vertical-align: top; padding: .4rem .6rem .4rem 0; border-bottom: 1px solid var(--rule); }
table.facts th { width: 11rem; color: var(--navy); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table.dockets { border-collapse: collapse; width: 100%; min-width: 46rem; font-size: .92rem; }
table.dockets th, table.dockets td { text-align: left; vertical-align: top; padding: .45rem .6rem .45rem 0; border-bottom: 1px solid var(--rule); }
table.dockets th { color: var(--navy); font-weight: 600; }
figure.portrait { margin: 0 0 1rem; }
figure.portrait img { max-width: 220px; border: 1px solid var(--rule); }
.gallery { list-style: none; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); max-width: none; }
.gallery li { max-width: none; }
.gallery a { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: var(--ink); font-size: .9rem; line-height: 1.3; }
.gallery img, .gallery .nothumb { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--rule); background: var(--panel); }
.gallery .nothumb { display: flex; align-items: center; justify-content: center; color: var(--muted); }
nav.az { display: flex; flex-wrap: wrap; gap: .25rem; margin: 1rem 0; }
nav.az a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; font-weight: 600; }
nav.az a[aria-current] { background: var(--navy); color: var(--bg); border-color: var(--navy); }
.az-list li { margin: .15rem 0; }
.story-text p { white-space: pre-line; }

/* Viewer */
.viewer .stage { overflow: auto; max-height: 80vh; border: 1px solid var(--rule); background: var(--panel); cursor: grab; touch-action: none; }
.viewer .stage img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.viewer figure.page { margin: 0 0 1rem; }
.viewer figure.page img { width: 100%; }
/* Media and record pages (scripts/viewer-tools.mjs, src/assets/js/media-tools.js): the transcription beside the image on a
   wide screen and below it on a narrow one, the actions under the image, and the people tied to the item as links. */
.media-layout { display: block; }
.transcript-panel h2 { margin-top: 1.4rem; }
.transcript-toggle { min-height: 44px; margin: 0 0 .6rem; }
@media (min-width: 64rem) {
  .media-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(18rem, 2fr); gap: 0 1.75rem; align-items: start; }
  .media-layout.transcript-off { grid-template-columns: minmax(0, 1fr); }
  .media-layout:not(.transcript-off) .transcript-panel { position: sticky; top: 1rem; max-height: 80vh; overflow: auto; }
  .transcript-panel h2 { margin-top: 0; }
  .transcript-panel .transcription { max-width: none; }
}
.item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1rem 0 .4rem; }
.item-actions [hidden] { display: none; }
.item-actions button.btn, .transcript-toggle { font: 600 1rem var(--sans); cursor: pointer; }
.item-actions .copy-note { flex-basis: 100%; font: .9rem/1.4 var(--sans); color: var(--muted); overflow-wrap: anywhere; }
.item-actions .copy-note:empty { display: none; }
.person-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 1rem; padding: 0; max-width: none; }
.person-chips li { margin: 0; max-width: none; }
.person-chips a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .95rem; border: 1px solid var(--navy); border-radius: 999px; color: var(--navy); font-weight: 600; text-decoration: none; }
.person-chips a:hover { background: var(--panel); text-decoration: underline; }
.person-chips small { font-weight: 400; color: var(--muted); }
@media print { .item-actions, .transcript-toggle, .viewer-bar { display: none; } .media-layout { display: block; } .transcript-panel { position: static; max-height: none; overflow: visible; } }

/* Explorer */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.explorer { margin: 1.25rem 0 2rem; }
.ex-controls { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: flex-end; }
.ex-controls label { font-weight: 600; color: var(--navy); }
.ex-controls fieldset { border: 0; margin: 0; padding: 0; display: flex; gap: .2rem .9rem; flex-wrap: wrap; align-items: center; }
.ex-controls legend { font-weight: 600; color: var(--navy); padding: 0; margin-bottom: .2rem; }
.ex-controls fieldset label { font-weight: 400; color: var(--ink); display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; }
.ex-controls input[type="radio"] { width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }
.find-person { position: relative; }
.ex-search { position: relative; flex: 1 1 16rem; max-width: 26rem; }
.ex-search label, .ex-gens label { display: block; margin-bottom: .2rem; }
.ex-search input, .ex-gens select { width: 100%; min-height: 44px; padding: .35rem .6rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--muted); border-radius: 4px; }
.ex-gens select { width: auto; min-width: 5rem; }
.ex-results { position: absolute; z-index: 5; left: 0; right: 0; margin: .2rem 0 0; padding: .2rem 0; list-style: none; background: var(--bg); border: 1px solid var(--muted); border-radius: 4px; max-height: 22rem; overflow: auto; box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.ex-results li { max-width: none; }
.ex-results button { display: block; width: 100%; text-align: left; min-height: 44px; padding: .3rem .7rem; font: inherit; color: var(--ink); background: none; border: 0; cursor: pointer; }
.ex-results button:hover, .ex-results button:focus { background: var(--panel); }
.ex-status { color: var(--muted); font-size: .95rem; margin: .8rem 0 .4rem; max-width: none; }
.ex-toolbar { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .4rem 0; }
.ex-toolbar button, .linkish { min-height: 44px; min-width: 44px; padding: 0 .8rem; font: 600 .95rem var(--sans); color: var(--navy); background: var(--bg); border: 1px solid var(--navy); border-radius: 4px; cursor: pointer; }
.ex-toolbar button[disabled] { opacity: .45; cursor: default; }
.ex-toolbar .ex-dl, .ex-toolbar .pager { display: inline-flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-left: auto; color: var(--muted); font-size: .95rem; }
.ex-toolbar .pager { margin-left: .5rem; }
/* Controls the explorer hides per display mode (their own display rules would otherwise win over [hidden]). */
.ex-controls[hidden], .ex-controls [hidden], .ex-toolbar [hidden], .ex-fan-report[hidden] { display: none !important; }
.ex-fan { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--rule, #d9dde3); }
.ex-fan input[type="number"] { width: 6rem; min-height: 44px; padding: .35rem .6rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--muted); border-radius: 4px; }
.ex-fan .ex-dl { display: inline-flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.ex-fan .ex-dl button { min-height: 44px; padding: 0 .8rem; font: 600 .95rem var(--sans); color: var(--navy); background: var(--bg); border: 1px solid var(--navy); border-radius: 4px; cursor: pointer; }
.ex-fan-report { max-width: none; margin: .4rem 0; }
.ex-fan-report ul { margin: .2rem 0 .4rem 1.2rem; }
.ex-fan-svg .fanw { cursor: pointer; }
.ex-fan-svg .fanw:hover, .ex-fan-svg .fanw:focus { stroke: var(--navy); stroke-width: 2.5; outline: none; }
.ex-chart { height: 70vh; min-height: 22rem; border: 1px solid var(--rule); border-radius: 4px; background: #fbfcfd; overflow: hidden; touch-action: none; cursor: grab; }
.ex-svg { width: 100%; height: 100%; display: block; font-family: Helvetica, Arial, sans-serif; }
.ex-svg .box > rect { fill: #fff; stroke: #17324d; stroke-width: 1; }
.ex-svg .box.limited > rect { stroke: #6b7a8c; }
.ex-svg .box.repeat > rect { fill: #f3f5f8; stroke-dasharray: 4 3; }
.ex-svg .box.rootbox > rect { stroke: #b32635; stroke-width: 2; }
.ex-svg .nm { font-size: 10px; font-weight: bold; fill: #17324d; }
.ex-svg a:focus .nm, .ex-svg a:hover .nm { text-decoration: underline; }
.ex-svg .yr { font-size: 8.5px; fill: #44505e; }
.ex-svg .act circle { fill: #fff; stroke: #17324d; }
.ex-svg .act path { stroke: #17324d; stroke-width: 1.5; fill: none; }
.ex-svg .act.more circle { stroke: #b32635; }
.ex-svg .act.more path { stroke: #b32635; }
.ex-svg .act { cursor: pointer; }
.ex-svg .act:focus { outline: none; }
.ex-svg .act:focus circle { stroke-width: 3; }
.ex-list { max-width: 44rem; }
.ex-tree, .ex-tree ul { list-style: none; padding-left: 1.1rem; border-left: 2px solid var(--rule); margin: .3rem 0; }
.ex-tree { border-left: 0; padding-left: 0; }
.ex-tree li { margin: .35rem 0; }
.ex-sec { font-size: .9rem; color: var(--muted); margin: .3rem 0 0; }
.linkish { min-height: 36px; margin-left: .4rem; padding: 0 .5rem; font-size: .85rem; }
@media (max-width: 40rem) { .ex-chart { height: 60vh; } .ex-toolbar .ex-dl { margin-left: 0; } table.facts th { width: 7.5rem; } }
@media (prefers-color-scheme: dark) { .ex-chart { background: #fbfcfd; } }

/* Read-only snapshot collection */
.snapshot { display: flex; flex-wrap: wrap; gap: .1rem .6rem; align-items: baseline; margin: -.4rem 0 1rem; padding: .45rem .8rem; max-width: 44rem; background: var(--panel); border-left: 3px solid var(--navy); font-size: .95rem; }
.snapshot strong { color: var(--navy); }
.snapshot span { color: var(--muted); }
.backlinks { margin: 0 0 .25rem; font-size: .95rem; }
.backlinks .back a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.backlinks .back + .back::before { content: "·"; margin: 0 .5rem; color: var(--muted); }
.backlinks .back a::before { content: "← "; }
nav.sections { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 0 1rem; position: sticky; top: 0; z-index: 2; background: var(--bg); padding: .25rem 0; border-bottom: 1px solid var(--rule); }
nav.sections a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .7rem; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
nav.sections a:hover, nav.sections a:focus-visible { border-bottom-color: var(--red); }
section[id] { scroll-margin-top: 4rem; }
.relpreview { display: grid; gap: .5rem; margin: 1rem 0; max-width: 44rem; }
.rp-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; }
.rp-row + .rp-row { padding-top: .5rem; border-top: 1px dashed var(--rule); }
.rp-person { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; padding: .35rem .7rem; border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; background: var(--bg); line-height: 1.3; }
.rp-person span { font-weight: 600; }
.rp-person small { color: var(--muted); font-size: .82rem; }
.rp-person small.rp-rel { text-transform: uppercase; letter-spacing: .03em; font-size: .72rem; }
a.rp-person:hover { border-color: var(--navy); }
.rp-this { border: 2px solid var(--red); }
.rp-empty, .rp-more { align-self: center; color: var(--muted); font-size: .92rem; }
.rp-more { min-height: 44px; display: inline-flex; align-items: center; }
.explore .btn { margin: 0 .4rem .4rem 0; }
.type { display: inline-block; font-size: .8rem; color: var(--muted); border: 1px solid var(--rule); border-radius: 3px; padding: 0 .4rem; white-space: nowrap; }
.status { display: inline-block; font: 600 .75rem/1.5 var(--sans); padding: 0 .4rem; border-radius: 3px; border: 1px solid var(--navy); color: var(--navy); white-space: nowrap; }
.status.s-citation-only { border-color: var(--rule); color: var(--muted); font-weight: 400; }
.status.s-scan-family-sign-in, .status.s-transcription-family-sign-in { border-color: var(--muted); color: var(--muted); }
.status.s-file-not-available { border-color: var(--red); color: var(--red); }
.statusline { margin: -.25rem 0 1rem; }
.transcription { max-width: 44rem; padding: .6rem 1rem; border-left: 3px solid var(--rule); background: var(--panel); }
.transcription p { margin: .3rem 0; }
.viewer-links { margin: .4rem 0 1rem; }
.branches { margin: .5rem 0; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .8rem 0 .2rem; }
.chips button { min-height: 44px; padding: 0 .75rem; font: 600 .9rem var(--sans); color: var(--navy); background: var(--bg); border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; }
.chips button small { font-weight: 400; color: var(--muted); }
.chips button[aria-pressed="true"] { background: var(--navy); color: var(--bg); border-color: var(--navy); }
.chips button[aria-pressed="true"] small { color: var(--bg); }
nav.types a { min-width: 0; padding: 0 .7rem; gap: .35rem; }
nav.types small { font-weight: 400; color: var(--muted); }
nav.types a[aria-current] small { color: var(--bg); }
.ex-controls select { width: auto; min-height: 44px; padding: .35rem .6rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--muted); border-radius: 4px; }
@media (max-width: 40rem) { nav.sections { position: static; } }
@media (pointer: coarse) { .linkish { min-height: 44px; } }

/* Evidence labels (Confirmed, Likely, Unconfirmed): the word carries the meaning, and the border style matches
   the chart's line style (solid, dashed, dotted), so nothing depends on colour. */
.badge.b-confirmed, .ev.lv-c .ev-l, .ev-tag.lv-c { border: 2px solid var(--navy); color: var(--navy); }
.badge.b-likely, .ev.lv-l .ev-l, .ev-tag.lv-l { border: 1px dashed var(--navy); color: var(--navy); }
.badge.b-unconfirmed, .ev.lv-u .ev-l, .ev-tag.lv-u { border: 1px dotted var(--muted); color: var(--muted); }
.badge.b-family-recollection,
.badge.b-family-tradition { border: 1px solid var(--rule); border-radius: 999px; text-transform: none; font-style: italic; letter-spacing: 0; background: var(--bg); }
details.ev { display: inline; }
details.ev > summary { display: inline; list-style: none; cursor: pointer; }
details.ev > summary::-webkit-details-marker { display: none; }
/* A closed label inside running text (a recollection card) must not end its line: newer browsers give the hidden
   contents of a closed details element a block box of their own. */
details.ev:not([open])::details-content { display: none; }
.ev-l, .ev-tag { display: inline-block; font: 600 .72rem/1.45 var(--sans); letter-spacing: .03em; text-transform: uppercase; padding: 0 .4rem; border-radius: 3px; background: var(--bg); white-space: nowrap; vertical-align: .1em; }
.ev-l::after { content: " +"; font-weight: 400; }
details.ev[open] .ev-l::after { content: " −"; }
details.ev > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
details.ev[open] > .ev-b { display: block; margin: .35rem 0 .6rem; padding: .55rem .8rem; max-width: 40rem; border-left: 3px solid var(--rule); background: var(--panel); font: 400 .9rem/1.45 var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; }
.ev-b p { margin: .25rem 0; }
.ev-b ul { margin: .15rem 0 .35rem; padding-left: 1.1rem; }
.ev-b li { margin: .1rem 0; }
.ev-key { font-size: .85rem; }
.fagline { display: inline-block; margin-left: .3rem; font-size: .92rem; }
.ex-legend { display: flex; flex-wrap: wrap; gap: .2rem 1rem; align-items: center; margin: .3rem 0 .5rem; font-size: .92rem; color: var(--muted); max-width: none; }
.ex-legend span { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink); }
.ex-legend svg.lg { background: #fbfcfd; }
.ex-svg .ln, svg.lg .ln { fill: none; stroke: #8795a5; stroke-width: 1; }
.ex-svg .ln.lv-c, svg.lg .ln.lv-c { stroke: #4a5a6c; stroke-width: 1.4; }
.ex-svg .ln.lv-l, svg.lg .ln.lv-l { stroke: #6f7f91; stroke-dasharray: 5 3; }
.ex-svg .ln.lv-u, svg.lg .ln.lv-u { stroke: #8795a5; stroke-dasharray: 1.2 2.4; }
svg.lg .ln { stroke-width: 1.6; }

/* Downloads */
.dl { max-width: 46rem; margin: 1.2rem 0 1.8rem; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-top: 3px solid var(--navy); border-radius: 4px; }
.dl h3 { margin-top: 0; }
.dl-meta { color: var(--muted); font-size: .95rem; }
.dl-facts { display: grid; grid-template-columns: 7rem 1fr; gap: .25rem .8rem; font-size: .95rem; margin: .6rem 0; }
.dl-facts dt { font-weight: 600; color: var(--navy); }
.dl-facts dd { margin: 0; overflow-wrap: anywhere; }
.dl-facts code { font-size: .8rem; }
.dl-actions .btn { margin: 0 .4rem .4rem 0; }
@media (max-width: 40rem) { .dl-facts { grid-template-columns: 1fr; } .dl-facts dd { margin-bottom: .3rem; } }

/* Submit a memory (family area) */
.memory-form fieldset { border: 1px solid var(--rule); border-radius: 4px; margin: 1.25rem 0; padding: .4rem 1rem 1rem; max-width: 44rem; }
.memory-form legend { font: 600 1.1rem var(--serif); color: var(--navy); padding: 0 .3rem; }
.memory-form input[type="text"], .memory-form input[type="search"], .memory-form input[type="email"], .memory-form input:not([type]), .memory-form textarea { width: 100%; max-width: 40rem; min-height: 44px; padding: .4rem .6rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--muted); border-radius: 4px; box-sizing: border-box; }
.memory-form textarea { min-height: 12rem; resize: vertical; }
.memory-form .choice { display: flex; align-items: center; gap: .45rem; font-weight: 400; color: var(--ink); margin: .4rem 0; min-height: 44px; }
.memory-form .choice input { width: 1.2rem; height: 1.2rem; }
.memory-form button { display: inline-block; }
.memory-form .ex-results button, .memory-form .m-grid button { margin: 0; min-height: 44px; color: var(--ink); background: none; font-weight: 400; }
.memory-form .actions button { margin-right: .6rem; }
.memory-form .actions .secondary, .memory-form .linkish { color: var(--navy); background: var(--bg); border: 1px solid var(--navy); }
.memory-form .linkish { margin: .4rem 0 0; min-height: 44px; }
.m-picker { position: relative; max-width: 40rem; }
.m-chosen, .m-ids { list-style: none; padding: 0; }
.m-chosen li, .m-ids li { margin: .6rem 0; padding: .5rem .7rem; border: 1px solid var(--rule); border-radius: 4px; max-width: 40rem; }
.m-chosen label, .m-ids label { margin: .5rem 0 .2rem; font-weight: 400; color: var(--muted); }
.m-grid { list-style: none; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); max-width: 44rem; max-height: 26rem; overflow: auto; }
.m-grid li { max-width: none; }
.m-grid button { display: flex; flex-direction: column; gap: .25rem; width: 100%; padding: .3rem; text-align: left; font-size: .85rem; line-height: 1.25; border: 2px solid transparent; border-radius: 4px; cursor: pointer; }
.m-grid button[aria-pressed="true"] { border-color: var(--navy); background: var(--panel); }
.m-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.m-stage[hidden] { display: none; }
.m-stage { position: relative; display: inline-block; max-width: 100%; margin: .8rem 0; cursor: crosshair; line-height: 0; }
.m-stage img { max-width: 100%; max-height: 70vh; height: auto; border: 1px solid var(--rule); }
.m-marker { position: absolute; transform: translate(-50%, -50%); width: 2rem; height: 2rem; min-height: 0; padding: 0; margin: 0; border-radius: 50%; border: 2px solid #fff; background: #b3202e; color: #fff; font: 700 .95rem/1 var(--sans); box-shadow: 0 0 0 2px #000; cursor: pointer; }
.m-verbatim { white-space: pre-wrap; }
.m-done { max-width: 44rem; padding: 1rem 1.2rem; border: 1px solid var(--navy); border-radius: 4px; background: var(--panel); }
.ex-est { margin: 0 0 .4rem; font-size: .9rem; }

/* Family-area biographies */
.bio-basis { color: var(--muted); font-size: .95rem; max-width: 44rem; }
details.bio-ev { margin: -.2rem 0 1rem; }
.bio-quote { margin: 1rem 0; padding: .2rem 0 .2rem 1rem; border-left: 3px solid var(--red); max-width: 44rem; }
.bio-quote blockquote { margin: 0; font: italic 1.05rem/1.5 var(--sans); }
.bio-quote blockquote p { margin: 0 0 .3rem; }
.bio-quote figcaption { font-size: .9rem; color: var(--muted); }
details.bio-more { margin: 1rem 0; max-width: 48rem; }
details.bio-more > summary { cursor: pointer; font-weight: 600; color: var(--navy); min-height: 44px; display: flex; align-items: center; }
.bio-timeline th[scope="row"] { white-space: nowrap; }
.bio-claims li, .bio-sources li { margin: .4rem 0; }
/* Scan-friendly People summaries (scripts/people.mjs): a strip of what is available, with visible text on every item. */
.ai-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.ai { width: 1.05em; height: 1.05em; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
ul.avail { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .45rem; padding: 0; margin: .3rem 0 .5rem; max-width: none; }
ul.avail li { margin: 0; max-width: none; }
ul.avail a, ul.avail li > span { display: inline-flex; align-items: center; gap: .3rem; min-height: 32px; padding: 0 .5rem; border: 1px solid var(--rule); border-radius: 3px; font-size: .88rem; color: var(--navy); text-decoration: none; background: var(--bg); }
ul.avail a:hover, ul.avail a:focus-visible { border-color: var(--navy); }
.az-list > li { margin: .35rem 0 .1rem; }
.az-list ul.avail { margin: .2rem 0 .35rem; }
details.avail-key { margin: .4rem 0 1rem; font-size: .92rem; max-width: 48rem; }
details.avail-key > summary { cursor: pointer; color: var(--navy); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
details.avail-key li { margin: .25rem 0; }
.lede { font-size: 1.12rem; max-width: 46rem; }
ul.pcards { list-style: none; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); max-width: none; margin: .8rem 0; }
ul.pcards > li { display: flex; gap: .8rem; padding: .9rem 1rem; border: 1px solid var(--rule); border-top: 3px solid var(--navy); border-radius: 4px; max-width: none; margin: 0; }
ul.pcards > li > img { width: 72px; height: 88px; object-fit: cover; border-radius: 3px; flex: none; }
ul.pcards strong { font: 600 1.08rem/1.3 var(--serif); }
ul.pcards p { margin: .35rem 0 .2rem; color: var(--muted); font-size: .96rem; }
.people-app { margin: .6rem 0 1rem; }
.pb-controls { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: flex-end; padding: .8rem 1rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; max-width: none; }
.pb-controls label { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; }
.pb-controls input[type=search], .pb-controls select { min-height: 40px; font: inherit; padding: 0 .5rem; border: 1px solid var(--muted); border-radius: 3px; background: var(--bg); color: var(--ink); }
.pb-controls fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .1rem .9rem; }
.pb-controls legend { font-weight: 600; padding: 0; margin-bottom: .1rem; }
.pb-count { font-weight: 600; color: var(--navy); }
/* The browser's own buttons use .btn, whose display would otherwise win over [hidden]. */
.people-app [hidden] { display: none !important; }
.pb-reset { min-height: 40px; }
.pb-rules { margin: .2rem 0 .8rem; font-size: .95rem; }
.pb-rules summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--link); font-weight: 600; }
.pb-rules li { margin: .3rem 0; }
.gallery small.cap { display: block; color: var(--muted); font-size: .82rem; line-height: 1.3; margin-top: .15rem; }
.evmedia { display: block; font-size: .9rem; margin-top: .15rem; }
ul.pcards .years, .az-list .years { white-space: normal; }
/* Media-availability badge on tree boxes (tree-badge.js): shown only where this area has something viewable. */
.ex-svg .mb .hit { fill: transparent; stroke: none; }
.ex-svg .mb .face { fill: #fff; stroke: #17324d; stroke-width: 1; }
.ex-svg .mb path { fill: none; stroke: #17324d; stroke-width: 1; stroke-linejoin: round; }
.ex-svg .mb text { font-size: 7.5px; font-weight: bold; fill: #17324d; }
.ex-svg .mb:hover .face, .ex-svg .mb:focus .face { stroke: #b32635; stroke-width: 2; }
.ex-svg .mb:focus { outline: none; }
a.ex-mb { display: inline-flex; align-items: center; gap: .2rem; min-height: 28px; padding: 0 .4rem; margin-left: .2rem; border: 1px solid var(--rule); border-radius: 3px; font-size: .85rem; color: var(--navy); text-decoration: none; }
a.ex-mb:hover, a.ex-mb:focus-visible { border-color: var(--navy); }
.ex-mkey { display: inline-flex; align-items: center; gap: .15rem; padding: 0 .3rem; border: 1px solid var(--navy); border-radius: 3px; font-size: .8rem; font-weight: 600; color: var(--navy); }
figure.quote { margin: 1.25rem 0; padding: .6rem 1rem; border-left: 3px solid var(--navy); background: var(--panel); max-width: 44rem; }
figure.quote blockquote { margin: 0; font: italic 1.02rem/1.55 var(--serif); }
figure.quote blockquote p { margin: 0; }
figure.quote figcaption { margin-top: .4rem; font-size: .88rem; color: var(--muted); }
figure.hero img { max-width: 240px; }

/* Research request form (reuses the memory form's field styles) */
.rr-notes { max-width: 44rem; }
.rr-form textarea { min-height: 6rem; }
.rr-form #rr-description { min-height: 12rem; }
.rr-error { color: var(--red); font-weight: 600; margin: .3rem 0 .2rem; max-width: 40rem; }
.rr-form [aria-invalid="true"]:not([type=radio]):not([type=checkbox]) { border: 2px solid var(--red); }
.rr-form fieldset:has([aria-invalid="true"][type=radio]) { border-color: var(--red); border-width: 2px; }
.rr-errors { max-width: 44rem; margin: 1rem 0; padding: .6rem 1.1rem; border: 3px solid var(--red); border-radius: 4px; }
.rr-errors h2 { margin-top: .2rem; font-size: 1.15rem; }
.rr-errors a { color: var(--red); font-weight: 600; }
.rr-form button[hidden], .memory-form button[hidden] { display: none; }
.rr-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Family Feedback hub (plans/2026-10-04-family-feedback-hub-phase0.md): the hub's cards, the notice every form carries, and the small bar on person and story pages. */
.fb-notice { max-width: 44rem; padding: .7rem 1rem; border: 1px solid var(--navy); border-radius: 4px; background: var(--panel); }
.fb-cards .fb-soon { display: block; flex: 1 1 auto; min-width: 0; padding: 1rem 1.1rem; border: 1px dashed var(--rule); border-top: 3px solid var(--rule); border-radius: 4px; color: var(--muted); }
.fb-cards .fb-soon strong { color: var(--muted); }
.fb-cards .fb-soon-note { display: block; margin-top: .5rem; font-weight: 600; }
.fb-bar { margin: 2rem 0 0; padding: .8rem 0 0; border-top: 1px solid var(--rule); max-width: 56rem; }
.fb-bar h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.fb-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: .3rem 0 .6rem; max-width: none; }
.fb-actions .btn { font: 600 1rem var(--sans); cursor: pointer; }
.fb-actions .btn[hidden], .fb-bar [hidden] { display: none; }
.fb-after { margin-top: 1.5rem; }
.memory-form textarea.m-short { min-height: 5rem; }
.fb-files { list-style: none; padding: 0; max-width: 44rem; }
.fb-file { margin: 1rem 0; padding: .4rem 1rem 1rem; border: 1px solid var(--navy); border-radius: 4px; }
.fb-file-h { font: 600 1.05rem var(--serif); color: var(--navy); margin: .6rem 0 .2rem; overflow-wrap: anywhere; }
.fb-people { margin: .8rem 0; }
.fb-links { list-style: none; padding: 0; max-width: 44rem; }
.fb-link-row { margin: .6rem 0; }
.fb-link-row label { display: block; margin: .3rem 0; font-weight: 400; }
.vet-cta { margin: 1rem 0; }
.memory-form input[type="file"] { max-width: 100%; font: inherit; min-height: 44px; }

/* Family recollections: the attributed account, what the records show, and a compact evidence note. */
.recollection { margin: 1rem 0 1.5rem; padding: .75rem 1rem; border-left: 3px solid var(--rule); background: var(--bg); }
.recollection .rec-account, .recollection .rec-records { margin: .4rem 0; line-height: 1.55; }
.recollection .rec-words { margin: .6rem 0; }
.recollection .rec-words blockquote { margin: 0; padding-left: .8rem; border-left: 2px solid var(--rule); font-style: italic; }
.recollection .rec-words figcaption { font: .85rem var(--sans); color: var(--muted); }
.recollection .rec-note > summary { cursor: pointer; font: 600 .9rem var(--sans); }
.recollection .rec-claims li { margin: .35rem 0; }
.recollection .rec-from { display: inline-block; min-width: 6.5em; font: 600 .72rem/1.45 var(--sans); text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }

/* Visible evidence: contact sheets of viewable images, cited items without one, and one-at-a-time collections. */
.ev-sheet { list-style: none; padding: 0; margin: .6rem 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.ev-card a { display: block; text-decoration: none; color: inherit; }
.ev-card img { display: block; width: 100%; height: 170px; object-fit: contain; object-position: top; background: var(--panel); border: 1px solid var(--rule); }
.ev-card a:focus-visible img { outline: 2px solid var(--focus); outline-offset: 2px; }
.ev-card span { display: block; margin-top: .3rem; font: 600 .85rem/1.35 var(--sans); }
.ev-card a:hover span { text-decoration: underline; }
.ev-card small { display: block; font: .8rem/1.35 var(--sans); color: var(--muted); }
.ev-entries li { margin: .35rem 0; }
.ev-gallery figure { margin: 0 0 1.5rem; }
.ev-gallery figure img { max-width: 100%; height: auto; }
.ev-gallery figcaption, .viewer-cap { margin-top: .5rem; font: .9rem/1.5 var(--sans); }
.viewer-cap .note, .ev-gallery figcaption .note { display: inline; }
.story-evidence { margin: 2rem 0; }

/* Ancestor map (docs/ancestor-map.md): filters, the map with its details panel, a key, and the place list. */
.am-controls { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; align-items: flex-end; margin: 1rem 0 .6rem; }
.am-field { display: flex; flex-direction: column; gap: .2rem; font: .9rem var(--sans); border: 0; padding: 0; margin: 0; }
.am-field legend { font-weight: 600; padding: 0; }
.am-field label { font-weight: 600; }
fieldset.am-field label, .am-field label:has(input[type="checkbox"]) { font-weight: 400; }
.am-field.am-wide { min-width: min(22rem, 100%); flex: 1 1 18rem; position: relative; }
fieldset.am-field { display: block; }
fieldset.am-field label { display: inline-flex; align-items: center; gap: .3rem; min-height: 36px; margin-right: .9rem; }
.am-field .btn { min-height: 40px; }
.am-field input[type="number"] { width: 6.5rem; }
.am-field input, .am-field select, .am-field button { font: inherit; padding: .3rem .45rem; }
.am-readout { font: .95rem/1.5 var(--sans); margin: .4rem 0 .8rem; }
.am-breadcrumb { font: .9rem/1.4 var(--sans); margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.am-breadcrumb .am-crumb { font: inherit; padding: 0; border: 0; background: none; color: var(--link); text-decoration: underline; cursor: pointer; }
.am-breadcrumb .am-crumb:hover, .am-breadcrumb .am-crumb:focus-visible { color: var(--navy); }
.am-county-link { font: inherit; padding: 0; border: 0; background: none; color: var(--link); text-decoration: underline; cursor: pointer; text-align: left; }
.am-place-label { background: none; border: none; box-shadow: none; padding: 0 0 0 .2rem; font: .72rem/1 var(--sans); color: #5a5648; white-space: nowrap; }
.am-place-label::before { display: none; }
.am-stage { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: .8rem; align-items: start; }
.am-map { height: 62vh; min-height: 360px; border: 1px solid var(--rule); background: #dfe8ec; }
.am-map:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.am-panel { max-height: 62vh; overflow: auto; border: 1px solid var(--rule); padding: .6rem .8rem; background: var(--bg); font: .9rem/1.45 var(--sans); }
.am-panel h3 { margin: 0 0 .2rem; font-size: 1rem; }
.am-people li { margin: .25rem 0; }
.am-pin, .am-area, .am-cluster { display: flex; align-items: center; justify-content: center; border-radius: 50%; font: 600 .75rem/1 var(--sans); }
.am-pin { background: rgba(23, 50, 77, .85); color: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(23, 50, 77, .5); }
.am-area { background: rgba(255, 255, 255, .75); color: var(--navy); border: 2px dashed var(--navy); }
.am-cluster { background: rgba(179, 38, 54, .85); color: #fff; border: 2px solid #fff; }
.am-cluster.am-cluster-approx { background: rgba(255, 255, 255, .85); color: var(--navy); border: 2px dashed var(--navy); }
.am-pin:focus-visible, .am-area:focus-visible, .am-cluster:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.am-sample { display: inline-flex; width: 1.6rem; height: 1.6rem; vertical-align: middle; margin-right: .4rem; }
.am-key li { margin: .35rem 0; font: .9rem/1.4 var(--sans); }
.am-table td ul { margin: 0; }
@media (max-width: 48rem) {
  .am-stage { grid-template-columns: 1fr; }
  .am-map { height: 52vh; }
  .am-panel { max-height: none; }
}

/* Explore (src/assets/js/explore.js): a facts strip, the existing People filters and ancestor map side by side,
   and a Map/List/Database switch. Reuses .am-stage, .people-app, .pb-controls and table.facts; no new grid system. */
.explore-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0 0 1rem; padding: .7rem 1rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; font: .95rem/1.4 var(--sans); }
.explore-facts strong { font-size: 1.15em; color: var(--navy); }
.explore-tabs { display: flex; gap: .4rem; margin: 0 0 .8rem; }
.explore-tabs label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 2px solid var(--navy); border-radius: 4px; font-weight: 600; cursor: pointer; }
.explore-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.explore-tabs label:has(input:checked) { background: var(--navy); color: var(--bg); }
.explore-place-badge { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; padding: .5rem .8rem; background: var(--panel); border: 1px solid var(--navy); border-radius: 4px; font: .95rem var(--sans); }
.explore-place-badge button { min-height: 36px; padding: 0 .8rem; }
/* Pane visibility (map/list/database) is set directly in JS, not here: an element's own `hidden` attribute
   already wins over any attribute-selector display rule, so this file only owns the Map view's two-column layout. */
.explore-grid[data-view="map"] .explore-grid-stage { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; gap: .8rem; align-items: start; }
.explore-db { max-width: none; }
.explore-db-sort { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; text-decoration: underline; min-height: 32px; }
@media (max-width: 48rem) {
  .explore-grid[data-view="map"] .explore-grid-stage { grid-template-columns: 1fr; }
  .explore-grid[data-view="map"] #people-browse { display: none; }
}

/* Honor pages (scripts/honor.mjs; docs/PERSON-PAGE-EXPERIENCE.md): an album to open with someone. Existing tokens,
   fonts and colours; 20px body text, fluid headings, a 60-68 character measure and 44px targets. */
.honor { font-size: 1.25rem; line-height: 1.65; }
.honor p, .honor li { max-width: 33em; }
.honor [id] { scroll-margin-top: 4.5rem; }
.honor .note, .honor figcaption { font-size: 1rem; }
.honor .ev-tag, .honor .badge { font-size: .8em; }
.hn-back { margin: 1rem 0 0; font-size: 1rem; }
.hn-back a { display: inline-flex; align-items: center; min-height: 44px; }
.hn-hero { display: grid; gap: 1rem 2.5rem; margin: 0 0 1.5rem; }
.hn-hero h1 { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.9rem); margin: .2rem 0 .3rem; }
.hn-sub { font: 600 clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.3 var(--serif); color: var(--muted); margin: 0 0 1rem; }
.hn-intro { font-size: 1.3rem; line-height: 1.6; }
.hn-portrait { margin: 0; width: min(100%, 22rem); }
.hn-portrait img, .hn-fig img, .hn-person-fig img { display: block; max-width: 100%; height: auto; border-radius: 3px; }
.hn-portrait figcaption, .hn-fig figcaption, .hn-person-fig figcaption { margin-top: .5rem; }
.hn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin: .5rem 0 0; }
.hn-quiet { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (min-width: 48rem) {
  .hn-hero { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; grid-template-areas: "text fig" "act fig"; align-items: start; }
  .hn-hero-text { grid-area: text; }
  .hn-portrait { grid-area: fig; width: clamp(16rem, 30vw, 22rem); }
  .hn-actions { grid-area: act; }
}
/* The whole image is the link; its "View larger" label sits below it, never over a document's text. */
.hn-enlarge-link, .hn-tile { display: inline-flex; flex-direction: column; align-items: flex-start; max-width: 100%; text-decoration: none; }
.hn-enlarge { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); font: 600 1rem/1.2 var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.honor figcaption .hn-date { display: block; }
.hn-nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 1.5rem 0 0; border-bottom: 1px solid var(--rule); background: var(--bg); }
.hn-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 600; font-size: 1.05rem; text-decoration: none; border-bottom: 3px solid transparent; }
.hn-nav a:hover { text-decoration: underline; }
.hn-nav a[aria-current] { border-bottom-color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; }
@media (min-width: 48rem) and (min-height: 40rem) { .hn-nav { position: sticky; top: 0; z-index: 5; } }
.hn-section { display: flow-root; }
.hn-section h2 { font-size: clamp(1.55rem, 1.3rem + 1vw, 1.9rem); margin-top: 2.6rem; }
.hn-section h3 { font-size: 1.35rem; margin-top: 2rem; }
.hn-fig { margin: .5rem 0 1.25rem; }
.hn-figrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1.25rem 1.5rem; align-items: start; margin: 1rem 0 1.5rem; }
.hn-figrow .hn-fig { float: none; width: auto; margin: 0; }
.hn-figrow img { max-height: 22rem; width: auto; }
.hn-fig img { border: 1px solid var(--rule); }
@media (min-width: 48rem) {
  .hn-fig { float: right; clear: right; width: min(42%, 20rem); margin: .4rem 0 1rem 2rem; }
  #story h3 { clear: both; }
}
.hn-note { margin: .5rem 0 1.2rem; font-size: 1.05rem; }
.hn-note summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--link); font-weight: 600; }
.hn-people { list-style: none; padding: 0; margin: .5rem 0 1.5rem; display: grid; gap: 1.25rem; }
.hn-sides { display: grid; gap: 0 1.25rem; }
@media (min-width: 48rem) { .hn-people { grid-template-columns: 1fr 1fr; } .hn-sides { grid-template-columns: 1fr 1fr; } .hn-people-1 { grid-template-columns: 1fr; } }
.hn-person { max-width: none; padding: 1.1rem 1.2rem; background: var(--panel); border-top: 3px solid var(--navy); border-radius: 4px; }
.hn-person p { max-width: none; }
.hn-person-fig { margin: 0 0 .75rem; }
.hn-person-fig img { max-height: 22rem; width: auto; }
.hn-role { margin: 0; color: var(--muted); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.hn-name { margin: .2rem 0; font: 600 1.3rem/1.3 var(--serif); color: var(--navy); }
.hn-years { margin: 0 0 .5rem; color: var(--muted); font-size: 1.05rem; }
.hn-side-h { margin: 0 0 .5rem; font-weight: 600; font-size: 1.1rem; }
.hn-more { font-size: 1.05rem; }
.hn-more a { display: inline-flex; align-items: center; min-height: 44px; }
.hn-memory { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--rule); }
.hn-memory blockquote { margin: .6rem 0; }
.hn-album { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 1.75rem 1.25rem; }
.hn-album li { max-width: none; }
.hn-tile { width: 100%; }
.hn-tile-img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; }
.hn-tile-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
/* A wide clipping or census row: the tile takes the image's own proportions (no mostly empty 4:5 box on a phone). */
.hn-tile-img.hn-tile-wide { aspect-ratio: auto; padding: .5rem; }
.hn-tile-wide img { max-height: none; }
.hn-cap { margin: .5rem 0 0; font-size: 1.05rem; line-height: 1.45; }
.hn-date { color: var(--muted); font-size: 1rem; }
p.hn-date { margin: .2rem 0 0; }
.hn-quote { margin: 1.2rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 4px solid var(--navy); }
.hn-quote blockquote { margin: 0; font: 400 1.35rem/1.55 var(--serif); }
.hn-questions li, .hn-items li { margin: .45rem 0; }
.hn-items { padding-left: 1.3rem; }
.hn-action { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.hn-sources li { margin: .7rem 0; }
.hn-supports { color: var(--muted); font-size: 1rem; }
.hn-foot { margin-top: 3rem; }
.hn-review { max-width: 48rem; margin: 1rem 0 2rem; padding: 1rem 1.2rem; border: 2px solid var(--red); border-radius: 4px; background: var(--panel); }
.hn-review h2 { margin-top: 0; }
.hn-review code { overflow-wrap: anywhere; }
.hn-review table { margin: 1rem 0; font-size: .95rem; }
.hn-manifest { display: block; overflow-x: auto; }
@media print {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards li, .cards a { break-inside: avoid; }
  .cards a > img, .cards a > .card-img-pair { height: 6rem; }
  body:has(.honor) header.site, body:has(.honor) footer.site, body:has(.honor) .skip, .hn-review, .hn-back, .hn-nav, .hn-actions, .hn-action, .hn-enlarge, .hn-foot, .hn-album .hn-dup { display: none !important; }
  body:has(.honor) { background: #fff; color: #000; }
  .honor { font-size: 12pt; }
  .honor a { color: #000; text-decoration: none; }
  .hn-hero { display: block; }
  .hn-portrait { width: 12rem; }
  .hn-fig { float: right; width: 35%; margin: 0 0 .5rem 1rem; }
  .hn-figrow { grid-template-columns: repeat(3, 1fr); }
  .hn-figrow .hn-fig { float: none; width: auto; margin: 0; }
  .hn-people, .hn-sides { display: block; }
  .hn-fig, .hn-person, .hn-portrait, .hn-album li, figure { break-inside: avoid; }
  .hn-person { margin-bottom: .75rem; border: 1px solid #999; }
  .hn-album { grid-template-columns: repeat(3, 1fr); }
  .hn-note::details-content { display: block; content-visibility: visible; }
  .hn-sources a[href^="https"]::after { content: " (" attr(href) ")"; overflow-wrap: anywhere; }
}

/* Records & photos: people tagged on an item, each a one-click filter */
.cards .tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: .35rem .2rem 0; }
.cards .tag { font: inherit; font-size: .82rem; padding: .1rem .55rem; border: 1px solid var(--navy); border-radius: 999px; background: transparent; color: var(--navy); cursor: pointer; }
.cards .tag:hover, .cards .tag.on { background: var(--navy); color: #fff; }
.cards .tags small { align-self: center; }
/* Records & photos: multi-choice filters (nothing chosen = all) and the people chosen */
.collection-app .ex-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .75rem 1rem; align-items: end; }
.collection-app .ex-search { grid-column: 1 / -1; }
.mf-title { display: block; margin-bottom: .2rem; font-weight: 600; color: var(--navy); }
.mf-wrap { position: relative; min-width: 0; }
.mf { position: relative; }
.mf > summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; padding: .35rem .6rem; border: 1px solid var(--muted); border-radius: 4px; background: var(--bg); color: var(--ink); cursor: pointer; list-style: none; }
.mf > summary::-webkit-details-marker { display: none; }
.mf > summary::after { content: "\25BE"; color: var(--muted); }
.mf[open] > summary { border-color: var(--navy); }
.mf .mf-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-box { position: absolute; z-index: 20; left: 0; right: 0; min-width: 100%; max-height: 18rem; overflow-y: auto; margin-top: 2px; padding: .35rem .5rem; background: var(--bg); border: 1px solid var(--navy); border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.mf-box label { display: flex; align-items: center; gap: .5rem; min-height: 44px; margin: 0; font-weight: 400; color: var(--ink); }
.mf-box input[type="checkbox"] { width: 1.15rem; height: 1.15rem; flex: none; accent-color: var(--navy); }
.mf-box .mf-clear { display: block; min-height: 44px; margin-top: .2rem; }
.collection-app .ex-gens select, .collection-app .ex-person input { width: 100%; }
/* Records & photos: year range (two four-digit boxes) and surname */
.collection-app fieldset.ex-years { grid-column: span 2; min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; }
.collection-app fieldset.ex-years legend { width: 100%; padding: 0; }
.collection-app .ex-years input { width: 5.5rem; min-height: 44px; padding: .35rem .6rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--muted); border-radius: 4px; }
.collection-app .ex-years label { margin: 0; }
/* A to Z letter pages: the same controls as the People browser, above the plain list */
.az-filter { margin: .8rem 0 1rem; }
.az-controls { margin-bottom: .4rem; }
.az-filter [hidden] { display: none !important; }
.collection-app .ex-person input { min-height: 44px; padding: .35rem .6rem; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--muted); border-radius: 4px; }
.picked { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0 0; padding: 0; max-width: none; }
.picked li { margin: 0; max-width: none; }
.picked .tag { font: inherit; font-size: .9rem; min-height: 36px; padding: .1rem .7rem; border: 1px solid var(--navy); border-radius: 999px; background: var(--navy); color: #fff; cursor: pointer; }
@media (max-width: 40rem) {
  .collection-app .ex-controls { grid-template-columns: 1fr 1fr; }
  .collection-app .ex-person { grid-column: 1 / -1; }
  .mf-box { right: auto; min-width: 14rem; max-width: calc(100vw - 2rem); }
  .cards { grid-template-columns: 1fr; }
}

/* Word-for-word transcription under an image of a source */
details.transcript { margin: .4rem 0 1.6rem; max-width: 48rem; }
details.transcript > summary { cursor: pointer; font-weight: 600; color: var(--navy); min-height: 44px; display: flex; align-items: center; }
details.transcript[open] > summary { margin-bottom: .2rem; }
details.transcript p { font-size: .98rem; line-height: 1.55; margin: .5rem 0; }
details.transcript p.note { color: var(--muted); font-size: .9rem; }

/* Veterans roster (scripts/veterans.mjs): a table per century at the top of the two military-service stories. Every
   thumbnail, photo or star tile, is the same 96px square so rows read alike; below 40rem each row stacks as a card. */
.prose:has(.vet-roster) { max-width: 60rem; }
.vet-roster { margin: 1rem 0 2rem; }
.vet-roster h2 { margin-top: 1.2rem; }
.vet-jump { margin: .2rem 0 .6rem; color: var(--muted); }
h3.vet-century { margin: 1.4rem 0 .4rem; padding-bottom: .2rem; border-bottom: 2px solid var(--navy); }
.vet-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
table.vet-table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: .95rem; margin: 0 0 .5rem; }
table.vet-table th:nth-child(1) { width: 36%; }
table.vet-table th:nth-child(2) { width: 15%; }
table.vet-table th:nth-child(3) { width: 17%; }
table.vet-table th:nth-child(4) { width: 20%; }
table.vet-table th:nth-child(5) { width: 12%; }
table.vet-table th, table.vet-table td { text-align: left; vertical-align: middle; padding: .55rem .6rem .55rem 0; border-bottom: 1px solid var(--rule); }
table.vet-table thead th { color: var(--navy); font-weight: 600; vertical-align: bottom; }
table.vet-table tbody th { font-weight: 400; }
.vet-who { display: flex; align-items: center; gap: .8rem; }
.vet-id { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; font: 600 1.05rem/1.3 var(--serif); }
.vet-thumb { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 96px; height: 96px; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 4px; background: var(--panel); }
.vet-thumb img { width: 96px; height: 96px; object-fit: cover; object-position: top center; display: block; }
.vet-none { gap: .1rem; padding: .25rem; color: var(--green); text-align: center; }
.vet-star path { stroke: var(--green); }
.vet-star circle { stroke: var(--navy); }
.vet-branch-name { font: 600 .74rem/1.15 var(--sans); color: var(--navy); min-height: .85rem; }
.vet-cap { font: .66rem/1.15 var(--sans); color: var(--muted); }
.vet-tag { font: 600 .72rem/1.45 var(--sans); letter-spacing: .03em; text-transform: uppercase; padding: 0 .4rem; border: 1px solid var(--rule); border-radius: 3px; color: var(--muted); background: var(--bg); white-space: nowrap; }
.vet-tag.vet-uniform { border-color: var(--green); color: var(--green); }
.vet-tag.vet-tie { border-color: var(--navy); color: var(--navy); }
.vet-controls .vet-tie-box input { width: 1.25rem; height: 1.25rem; }
.vet-years { white-space: nowrap; }
.vet-note { display: block; margin-top: .15rem; color: var(--muted); font-size: .85rem; line-height: 1.35; max-width: 20rem; }
.vet-na { color: var(--muted); }
@media (max-width: 40rem) {
  table.vet-table, table.vet-table tbody, table.vet-table tr, table.vet-table th, table.vet-table td { display: block; }
  table.vet-table { table-layout: auto; }
  table.vet-table th:nth-child(n) { width: auto; }
  table.vet-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.vet-table tr { margin: 0 0 .9rem; padding: .7rem .8rem; border: 1px solid var(--rule); border-top: 3px solid var(--navy); border-radius: 4px; }
  table.vet-table th, table.vet-table td { padding: .15rem 0; border: 0; }
  table.vet-table td::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
  table.vet-table td[data-label="Years"] .vet-note { max-width: none; }
  table.vet-table tbody th { padding-bottom: .4rem; }
}

/* Veterans roster tools (src/assets/js/veterans.js): filters, Print this roster and Download as CSV. The roster itself is plain
   tables; these controls appear only when the script runs. */
.vet-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem 1rem; margin: .6rem 0; padding: .8rem 1rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; max-width: none; }
.vet-controls label { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 600; color: var(--navy); }
.vet-controls select { min-height: 44px; max-width: 100%; padding: 0 .5rem; font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--muted); border-radius: 3px; }
.vet-controls button.btn { min-height: 44px; font: 600 1rem var(--sans); cursor: pointer; }
.vet-controls button[disabled] { opacity: .55; cursor: not-allowed; }
.vet-count { margin: .2rem 0 .6rem; font-weight: 600; color: var(--navy); }
.vet-roster [hidden] { display: none !important; }
.vet-print-title { display: none; }
/* Print this roster: the button puts print-roster on the page, so only the roster (as filtered) prints; a plain Print of
   the story is unchanged. */
@media print {
  body.print-roster { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.4; }
  body.print-roster header.site, body.print-roster footer.site, body.print-roster .skip, body.print-roster .crumbs, body.print-roster .fb-bar,
  body.print-roster .related, body.print-roster .story-evidence, body.print-roster article.prose > :not(.vet-roster),
  body.print-roster main:has(> .vet-roster) > :not(.vet-roster),
  body.print-roster .vet-controls, body.print-roster .vet-jump, body.print-roster .vet-count { display: none !important; }
  body.print-roster .wrap, body.print-roster .prose:has(.vet-roster) { max-width: none; }
  body.print-roster main { padding: 0; }
  body.print-roster .vet-print-title { display: block; margin: 0 0 .6rem; font-weight: 600; }
  body.print-roster .vet-roster h2 { margin-top: 0; color: #000; }
  body.print-roster h3.vet-century { color: #000; border-bottom-color: #000; break-after: avoid; }
  body.print-roster table.vet-table { table-layout: auto; font-size: 10pt; }
  body.print-roster table.vet-table tr { break-inside: avoid; }
  body.print-roster .vet-thumb, body.print-roster .vet-thumb img { width: 40px; height: 40px; }
  body.print-roster .vet-star, body.print-roster .vet-branch-name, body.print-roster .vet-cap { display: none; }
  body.print-roster a { color: #000; text-decoration: none; }
  body.print-roster .ev-tag, body.print-roster .vet-tag { border-color: #000; color: #000; background: #fff; }
}
/* The coin details on the Nathaniel story: closed until the reader opens them. */
.coin-details { margin: 1rem 0 1.5rem; border: 1px solid var(--rule); border-radius: 10px; padding: .25rem 1rem; }
.coin-details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font: 600 1rem var(--sans); color: var(--navy); }
.coin-details[open] > summary { border-bottom: 1px solid var(--rule); margin-bottom: .75rem; }

/* Page headers (work order 2026-10-12, scripts/page-headers.mjs). Artifacts sit right of the title on wide screens and
   under the lede on narrow ones; bands and the acorn rule follow the lede. Drawings take their colours from the page:
   ink is currentColor, .accent is the green, .paper the page background, so light and dark mode both work. Every
   header reserves its space before paint (inline SVG with a viewBox, images with width and height). */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: .5rem 2.5rem; align-items: start; }
.page-head.page-head-narrow { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.prose > .page-head { width: min(70rem, calc(100vw - 2rem)); max-width: none; } /* a title inside a story or page article spans the content width */
.page-head-text > h1 { margin-top: 1.5rem; }
figure.page-head-artifact { margin: 1.5rem 0 .75rem; }
figure.page-head-band { margin: .25rem 0 1.25rem; max-width: none; }
[data-page-head] figcaption { margin-top: .4rem; font-size: .88rem; line-height: 1.45; color: var(--muted); max-width: 40rem; }
[data-page-head] svg { display: block; width: 100%; height: auto; color: var(--navy); }
[data-page-head] .accent { fill: var(--green); }
[data-page-head] .accent-stroke { stroke: var(--green); }
[data-page-head] .paper { fill: var(--bg); }
[data-page-head] .label { fill: var(--muted); }
[data-page-head] .label-ink { fill: currentColor; }
.page-head-drawing.max-h-240 svg { max-height: 240px; }
.page-head-img { display: block; line-height: 0; }
figure.page-head-artifact img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); border-radius: 3px; background: var(--panel); }
figure.page-head-artifact img.fade { -webkit-mask-image: linear-gradient(to bottom, #000 81%, transparent); mask-image: linear-gradient(to bottom, #000 81%, transparent); border-bottom-color: transparent; }
.page-head-rule { margin: .25rem 0 1rem; max-width: 40rem; }
.page-head-rule svg { max-height: 40px; }
@media (max-width: 48rem) {
  .page-head, .page-head.page-head-narrow { display: block; }
  figure.page-head-artifact { margin-top: .5rem; }
  .page-head-narrow figure.page-head-artifact { max-width: 220px; }
}

/* Veterans of the family (/veterans/): the veterans' own released military records, one thumbnail and one line each. */
.vet-records { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; gap: .9rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); max-width: none; }
.vet-records li { display: flex; gap: .8rem; align-items: flex-start; max-width: none; font-size: .98rem; line-height: 1.45; }
.vet-records .vet-record-img { flex: none; line-height: 0; }
.vet-records img { width: 96px; height: 96px; object-fit: contain; background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; }
/* The strip under a military story's title (scripts/veterans.mjs stripHtml): counts generated from the roster. */
.vet-strip { margin: .2rem 0 .9rem; color: var(--muted); font-size: .98rem; }
@media print { body.print-roster .vet-strip { display: none !important; } }
/* Step 4: a deceased veteran's empty photo tile asks for a photograph; the list on /veterans/ does the same. */
.vet-ask .vet-cap { font-weight: 600; text-decoration: underline; color: var(--link); }
.vet-wanted li { margin: .3rem 0; }
.fb-ref { font-weight: 600; }
/* Step 5: the Service block on a veteran's person page (scripts/veterans.mjs serviceBlockHtml). */
.vet-service .vet-service-line { margin-bottom: .3rem; }
.vet-service .vet-records { margin: .6rem 0 .8rem; }
/* The family data snapshot, once in every page's footer in small type (veterans hub step 7). */
footer.site .snapshot { margin: 0 0 .6rem; padding: 0; border: 0; background: none; font-size: .85rem; color: var(--muted); }
footer.site .snapshot strong { font-weight: 600; }
/* Downloads: the technical record of file checksums, collapsed at the end of the page (copy review, 13 Oct). */
.dl-tech { margin: 2rem 0 1rem; font-size: .9rem; }
.dl-sums { border-collapse: collapse; margin-top: .5rem; max-width: 100%; display: block; overflow-x: auto; }
.dl-sums td, .dl-sums th { padding: .25rem .6rem .25rem 0; text-align: left; vertical-align: top; }
.dl-sums code { word-break: break-all; }
