/* The de Oliveiras — design system
   Concept: "a linha" — the family as one red thread drawn across an engraved sea chart.
   Paper: Atlantic fog. Ink: iron-gall blue-black. Accent: pau-brasil red.
   Type: Bodoni Moda (a didone of the 1810s, the decade of the crossing) for display; Literata for reading. */

@font-face { font-family: 'Bodoni Moda'; src: url(../fonts/BodoniModa.woff2) format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Bodoni Moda'; src: url(../fonts/BodoniModa-Italic.woff2) format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Literata'; src: url(../fonts/Literata.woff2) format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Literata'; src: url(../fonts/Literata-Italic.woff2) format('woff2'); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --paper: #E6EAE7; --raised: #F3F5F2; --sunk: #DCE2DF; --ink: #17212C; --ink-2: #3E4A57; --ink-3: #4F5A65;
  --rule: #B9C3C3; --rule-2: #CDD5D4; --sea: #C9D7D9; --thread: #9E1F28; --thread-ink: #8A1A22;
  --br: #17212C;
  --c-ver: #1D6447; --c-pro: #2A5A86; --c-pos: #4F5A65; --c-fam: #9E1F28; --c-con: #8A4E0F;
  --display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --text: 'Literata', Georgia, 'Times New Roman', serif;
  --hdr: 56px;
  --measure: 38rem;
  --gut: clamp(1rem, 4vw, 3rem);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.62; font-optical-sizing: auto; text-rendering: optimizeLegibility; }
body.noscroll { overflow: hidden; }
img, svg, video { max-width: 100%; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--thread) 55%, transparent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--thread-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--thread); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 500; margin: 0; }
p { margin: 0 0 1em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; line-height: 1.5; }
.note { font-size: .9rem; color: var(--ink-2); border-left: 2px solid var(--rule); padding-left: .8rem; font-style: italic; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: var(--measure); }
.wrap { max-width: 78rem; margin: 0 auto; padding: 2.5rem var(--gut) 3rem; }
.wrap.narrow { max-width: 52rem; }
.empty { padding: 3rem 0; font-style: italic; }

/* ---------------------------------------------------------------- header */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr); display: flex; align-items: center; gap: 1.25rem; padding: 0 var(--gut); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: .4rem .8rem; z-index: 99; }
.skip:focus { left: 8px; }
.wordmark { font-family: var(--display); font-style: italic; font-size: 1.35rem; font-weight: 500; text-decoration: none; white-space: nowrap; letter-spacing: -.005em; }
.wordmark.small { font-size: 1.1rem; margin: 0; }
.mainnav { margin-left: auto; min-width: 0; overflow: hidden; }
.hdr.compact .mainnav { overflow: auto; }
.hdr { overflow: visible; }
.mainnav ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; }
.mainnav a { text-decoration: none; font-size: .92rem; color: var(--ink-2); padding: .3rem 0; border-bottom: 1.5px solid transparent; white-space: nowrap; }
.mainnav a:hover { color: var(--ink); }
.mainnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--thread); }
.hdr-r { display: flex; align-items: center; gap: .6rem; }
.lang { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; padding: .22rem .7rem; font-size: .8rem; letter-spacing: .04em; cursor: pointer; min-height: 32px; min-width: 40px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; border: 0; background: none; padding: .4rem; cursor: pointer; min-width: 40px; min-height: 40px; }
.hdr.compact .menu-btn { display: inline-flex; }
.hdr.compact .hdr-r { margin-left: auto; }
.hdr.compact .mainnav { position: absolute; top: var(--hdr); left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); display: none; padding: .5rem var(--gut) 1rem; box-shadow: 0 12px 24px -16px rgba(23,33,44,.35); max-height: calc(100vh - var(--hdr)); overflow: auto; }
.hdr.compact.open .mainnav { display: block; }
.hdr.compact .mainnav ul { flex-direction: column; gap: 0; }
.hdr.compact .mainnav a { display: block; padding: .7rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--rule-2); }
.hdr.compact .mainnav a[aria-current="page"] { border-bottom-color: var(--rule-2); color: var(--thread-ink); }

/* ---------------------------------------------------------------- shared */
.page-head { margin-bottom: 2rem; }
.page-h { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.012em; font-weight: 500; }
.page-h.small-h { font-size: 2rem; }
.sec-h { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin-bottom: 1rem; font-weight: 500; }
.sec-h2 { font-family: var(--display); font-size: 1.6rem; line-height: 1.15; margin: 2.2rem 0 .8rem; font-weight: 500; }
.mini-h { display: block; font-size: .85rem; font-style: italic; color: var(--ink-2); font-weight: 400; margin: 0 0 .5rem; }
.btn-primary { display: inline-block; background: var(--ink); color: var(--paper); padding: .75rem 1.4rem; text-decoration: none; border-radius: 999px; font-size: 1rem; }
.btn-primary:hover { background: var(--thread); color: #fff; }
.btn-quiet { display: inline-block; border: 1px solid var(--ink); padding: .4rem .95rem; border-radius: 999px; text-decoration: none; font-size: .9rem; background: transparent; cursor: pointer; white-space: nowrap; }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }
.icon-btn { border: 1px solid var(--ink); background: var(--raised); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn.txt { width: auto; border-radius: 999px; padding: 0 .9rem; font-size: .85rem; }
.link-btn { border: 0; background: none; padding: 0; text-decoration: underline; text-decoration-color: var(--rule); cursor: pointer; font-size: inherit; color: var(--ink-2); }
.sw { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: var(--br); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: 1rem 0; }
.chips.small { gap: .3rem .9rem; font-size: .9rem; }
.chip-person { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; padding: .15rem .2rem; border-radius: 6px; }
.chip-person:hover { background: var(--raised); }
.chip-person .cp-name { display: block; font-size: .92rem; line-height: 1.25; }
.chip-person .cp-meta { display: block; font-size: .78rem; color: var(--ink-2); }
.plink { text-decoration-color: var(--br); text-decoration-thickness: 2px; }
.badge-progress { display: inline-block; font-size: .8rem; font-style: italic; color: var(--thread-ink); border: 1px dashed var(--thread); border-radius: 999px; padding: .05rem .7rem; margin-bottom: .6rem; }
.pending { font-style: italic; color: var(--thread-ink); background: color-mix(in srgb, var(--thread) 8%, transparent); padding: 0 .3em; border-radius: 3px; }
.cameo { display: block; overflow: visible; }
.cameo-ini { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 40px; letter-spacing: -.02em; }
.src-inline { margin: .3rem 0 1rem; font-size: .875rem; }
.src-inline summary { cursor: pointer; color: var(--ink-2); font-style: italic; }
.srclist { margin: .4rem 0; padding-left: 1.1rem; font-size: .875rem; line-height: 1.45; }
.srclist li { margin-bottom: .45rem; }
.src-repo, .src-n { display: block; color: var(--ink-3); font-size: .8125rem; }
.srclist.big { font-size: .92rem; }

/* confidence marks */
.conf { border: 0; background: none; padding: 3px; margin: 0 .1rem 0 0; cursor: pointer; vertical-align: -3px; display: inline-flex; color: var(--ink); line-height: 1; min-width: 24px; min-height: 24px; align-items: center; justify-content: center; border-radius: 50%; }
.conf:hover { background: var(--sunk); }
.conf-VERIFIED { color: var(--c-ver); } .conf-PROBABLE { color: var(--c-pro); } .conf-POSSIBLE { color: var(--c-pos); } .conf-FAMILY { color: var(--c-fam); } .conf-CONTRADICTED { color: var(--c-con); }
.glyph { display: block; }
.popover { position: absolute; z-index: 80; background: var(--raised); border: 1px solid var(--ink); border-radius: 6px; padding: .9rem 1rem .6rem; box-shadow: 0 18px 40px -18px rgba(23,33,44,.45); font-size: .9rem; max-height: 70vh; overflow: auto; }
.popover:focus { outline: none; }
.pop-level { display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem; }
.pop-desc { color: var(--ink-2); }
.pop-h { font-style: italic; margin: .6rem 0 0; font-size: .85rem; }
.pop-more { font-size: .85rem; margin: .4rem 0 0; }
.tooltip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: var(--paper); font-size: .85rem; line-height: 1.4; padding: .45rem .65rem; border-radius: 4px; max-width: 280px; }
.tooltip .muted { color: #c5ced4; }

/* figures */
.fig { margin: 1.2rem 0; }
.fig-btn { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; border-radius: 2px; }
.fig-btn img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.fig-btn:hover img { transform: scale(1.015); }
.fig.portrait { max-width: 15rem; }
figcaption { font-size: .875rem; line-height: 1.45; color: var(--ink-2); margin-top: .45rem; }
.fig-date { font-style: italic; color: var(--ink-3); }
.fig-credit { display: block; font-size: .8125rem; color: var(--ink-3); margin-top: .15rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1rem 1.2rem; }
.gallery .fig { margin: 0; }
.gallery .fig-btn { aspect-ratio: 4/3 !important; }
.film { margin: 1.2rem 0; }
.films { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0 1.4rem; }
.films .film { margin: .6rem 0; }
.film video { width: 100%; background: #0d1419; border-radius: 2px; display: block; aspect-ratio: 4/3; }
.film-note { font-size: .92rem; border-left: 3px solid var(--thread); padding: .2rem 0 .2rem .8rem; font-style: italic; }
.linklist { padding-left: 1.1rem; font-size: .92rem; }
.linklist li { margin-bottom: .6rem; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(14,20,26,.94); display: grid; grid-template-columns: 56px 1fr 56px; grid-template-rows: 1fr auto; align-items: center; padding: 1rem; color: #e9edf0; }
.lightbox[hidden] { display: none; }
.lb-img { grid-column: 2; grid-row: 1; display: flex; justify-content: center; align-items: center; height: 100%; min-height: 0; }
.lb-img img { max-height: calc(100vh - 12rem); max-width: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lb-cap { grid-column: 1 / -1; grid-row: 2; max-width: 46rem; margin: 1rem auto 0; font-size: .9rem; }
.lb-cap a { color: #fff; }
.lb-title { font-family: var(--display); font-size: 1.25rem; margin-bottom: .3rem; }
.lb-credit { font-size: .8rem; color: #b7c2ca; }
.lb-count { font-size: .8rem; color: #9fb0bb; }
.lightbox .icon-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.lb-close { position: absolute; top: 1rem; right: 1rem; }
.lb-prev { grid-column: 1; grid-row: 1; } .lb-next { grid-column: 3; grid-row: 1; }
.lb-prev[hidden], .lb-next[hidden] { display: none; }

/* globe */
.globe-wrap { position: relative; width: 100%; height: 100%; min-height: 200px; }
.globe-wrap.mini { height: 300px; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--raised); }
.globe-canvas { display: block; position: absolute; inset: 0; }

/* ---------------------------------------------------------------- cover */
.cover { position: relative; min-height: calc(100svh - var(--hdr)); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); border-bottom: 1px solid var(--rule); }
.cover-globe { position: absolute; inset: 0; }
.cover::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 82%, transparent) 26%, transparent 52%); }
.cover-text { position: relative; z-index: 2; align-self: end; padding: 0 var(--gut) clamp(3rem, 9vh, 6rem); max-width: 40rem; }
.cover-kicker { font-style: italic; color: var(--ink-2); margin-bottom: .4rem; font-size: 1.05rem; }
.cover-title { font-family: var(--display); font-weight: 500; font-size: clamp(3.4rem, 8.6vw, 8.4rem); line-height: .9; letter-spacing: -.025em; margin: 0 0 1.4rem; text-shadow: 0 0 18px var(--paper), 0 0 2px var(--paper); }
.cover-sub { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 30rem; line-height: 1.5; text-shadow: 0 0 10px var(--paper); }
.cover-year { position: absolute; right: var(--gut); bottom: clamp(2.5rem, 7vh, 4.5rem); z-index: 2; text-align: right; pointer-events: none; }
.cover-year span:first-child { display: block; font-family: var(--display); font-size: clamp(3rem, 7vw, 6.5rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; color: var(--thread); text-shadow: 0 0 14px var(--paper); }
.cover-place { display: block; font-style: italic; color: var(--ink-2); min-height: 1.6em; text-shadow: 0 0 8px var(--paper); }
.cover-note { display: none; position: absolute; left: var(--gut); bottom: .8rem; margin: 0; font-size: .8125rem; color: var(--ink-3); font-style: italic; z-index: 2; max-width: 32rem; }
@media (max-width: 760px) {
  .cover { display: flex; flex-direction: column; min-height: auto; }
  .cover-globe { position: relative; inset: auto; height: 58svh; order: 0; }
  .cover::after { background: linear-gradient(0deg, var(--paper) 0%, var(--paper) 40%, transparent 62%); }
  .cover-text { padding-top: 0; padding-bottom: 3.2rem; margin-top: -4.5rem; }
  .cover-year { top: .8rem; bottom: auto; right: 1rem; }
  .cover-year span:first-child { font-size: 2.6rem; }
}

/* ---------------------------------------------------------------- glance + fan */
.glance { max-width: 90rem; margin: 0 auto; padding: 4.5rem var(--gut) 3rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 1.5rem 3.5rem; align-items: center; }
.glance:focus { outline: none; }
.glance-text p { max-width: 32rem; }
.fan-wrap { width: 100%; }
.fan { width: 100%; height: auto; overflow: visible; }
.fan-seg path { transition: fill-opacity .2s; }
.fan-seg:hover path, .fan-seg:focus-visible path { fill-opacity: .62; }
.fan-seg:focus-visible { outline: none; }
.fan-seg:focus-visible path { stroke: var(--ink); stroke-width: 2; }
.fan-t { font-family: var(--text); fill: var(--ink); pointer-events: none; }
.fan-t1 { font-family: var(--display); font-size: 21px; font-weight: 500; }
.fan-t2 { font-family: var(--display); font-size: 16px; }
.fan-y { font-size: 10.5px; fill: var(--ink-2); pointer-events: none; font-style: italic; }
.fan-me-t { font-family: var(--display); font-style: italic; font-size: 20px; fill: var(--paper); pointer-events: none; }
.fan-me-y { font-size: 11px; fill: #c7d0d6; pointer-events: none; }
.fan-gen { font-size: 10px; fill: var(--ink-3); font-style: italic; }
.lines { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.lines-h { font-size: .95rem; font-style: italic; font-weight: 400; color: var(--ink-2); margin-bottom: .8rem; }
.lines-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; }
.lines-list li { display: flex; gap: .6rem; font-size: .88rem; line-height: 1.4; }
.lines-list .sw { margin-top: .35rem; }
.lines-list strong { display: block; font-weight: 600; }
@media (max-width: 1000px) { .glance { grid-template-columns: 1fr; } .lines-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lines-list { grid-template-columns: 1fr; } .glance { padding-top: 3rem; } }

/* ---------------------------------------------------------------- chapters & index */
.chapters, .explore, .searching { max-width: 84rem; margin: 0 auto; padding: 3rem var(--gut); }
.chapter-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.chapter-link { display: grid; grid-template-columns: 5rem 10rem minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: .5rem 2rem; align-items: baseline; padding: 1.8rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.ch-n { font-family: var(--display); font-size: 1.5rem; font-style: italic; color: var(--thread); }
.ch-years { font-variant-numeric: lining-nums; color: var(--ink-2); }
.ch-title { font-family: var(--display); font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1; font-weight: 500; }
.ch-dek { color: var(--ink-2); font-size: .98rem; }
.ch-go { font-size: .9rem; border-bottom: 1px solid var(--thread); white-space: nowrap; }
.chapter-link:hover .ch-title { color: var(--thread-ink); }
@media (max-width: 900px) { .chapter-link { grid-template-columns: 3rem minmax(0, 1fr); } .ch-years { grid-column: 2; } .ch-title, .ch-dek, .ch-go { grid-column: 2; } .ch-n { grid-row: 1 / span 2; } .ch-go { justify-self: start; } }
.index-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 4rem; }
.index-list li { break-inside: avoid; }
.index-list a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .8rem; padding: .9rem 0; text-decoration: none; border-bottom: 1px solid var(--rule-2); }
.ix-t { font-family: var(--display); font-size: 1.55rem; line-height: 1.1; }
.ix-lead { border-bottom: 1.5px dotted var(--rule); margin-bottom: .45rem; }
.ix-d { grid-column: 1 / -1; color: var(--ink-2); font-size: .95rem; }
.index-list a:hover .ix-t { color: var(--thread-ink); }
@media (max-width: 760px) { .index-list { columns: 1; } }
.searching { background: var(--sunk); max-width: none; padding: 3rem max(var(--gut), calc((100vw - 78rem) / 2)); }
.searching p { max-width: var(--measure); }

/* ---------------------------------------------------------------- stories */
.story-head { max-width: 84rem; margin: 0 auto; padding: clamp(3rem, 9vh, 6rem) var(--gut) 2rem; }
.story-years { font-variant-numeric: lining-nums; color: var(--thread); font-size: 1.1rem; margin-bottom: .3rem; }
.story-title { font-family: var(--display); font-weight: 500; font-size: clamp(3.2rem, 9vw, 7.5rem); line-height: .92; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.story-dek { font-size: clamp(1.1rem, 1.7vw, 1.4rem); max-width: 40rem; line-height: 1.5; }
.story-scroll { font-style: italic; color: var(--ink-3); font-size: .9rem; margin-top: 2rem; }
.story-body { display: grid; grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); gap: 0 2.5rem; max-width: 100rem; margin: 0 auto; padding: 0 var(--gut); }
.story-map { grid-column: 2; grid-row: 1; position: sticky; top: var(--hdr); height: calc(100vh - var(--hdr)); padding: 1rem 0; }
.story-map .globe-wrap { height: calc(100% - 2rem); }
.map-cap { margin: .3rem 0 0; font-style: italic; color: var(--ink-2); font-size: .9rem; text-align: center; }
.steps { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 20vh 0 40vh; }
.step { min-height: 85vh; display: flex; align-items: center; padding: 8vh 0; }
.step-card { background: var(--raised); padding: 1.6rem 1.6rem 1rem; border-top: 3px solid var(--rule); transition: border-color .4s; width: 100%; box-shadow: 0 1px 0 var(--rule-2); }
.step.active .step-card { border-top-color: var(--thread); }
.step-yr { font-variant-numeric: lining-nums; color: var(--ink-2); font-size: .95rem; margin-bottom: .2rem; display: flex; gap: .8rem; align-items: baseline; }
.step-n { font-family: var(--display); font-style: italic; color: var(--thread); font-size: 1.15rem; }
.step-h { font-family: var(--display); font-size: 2rem; line-height: 1.08; margin-bottom: 1rem; font-weight: 500; }
.step-body h4 { font-family: var(--display); font-size: 1.25rem; font-style: italic; margin: 0 0 .6rem; font-weight: 500; }
.step-body p { font-size: 1rem; }
.move-line { font-size: .95rem; padding: .5rem .7rem; background: var(--paper); border-left: 2px solid var(--br, var(--ink)); }
.move-line .yr { color: var(--ink-3); font-variant-numeric: lining-nums; }
.pause { font-family: var(--display); font-style: italic; font-size: 1.4rem; line-height: 1.3; color: var(--thread-ink); }
.story-next { max-width: 84rem; margin: 0 auto; padding: 3rem var(--gut) 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-top: 1px solid var(--rule); }
.story-next a { text-decoration: none; display: block; }
.sn-next { text-align: right; }
.sn-k { display: block; font-style: italic; color: var(--ink-2); font-size: .9rem; }
.sn-t { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; }
.story-next a:hover .sn-t { color: var(--thread-ink); }
@media (max-width: 860px) {
  .story-body { display: block; padding: 0; }
  .story-map { position: sticky; top: var(--hdr); height: 42svh; padding: 0; z-index: 3; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .story-map .globe-wrap { height: calc(100% - 1.8rem); }
  .map-cap { margin: .1rem 0 0; font-size: .8rem; }
  .steps { padding: 4vh var(--gut) 30vh; position: relative; z-index: 1; }
  .step { min-height: 50vh; padding: 3vh 0; }
  .step-card { padding: 1.2rem 1.1rem .8rem; box-shadow: 0 10px 30px -18px rgba(23,33,44,.5); }
  .step-h { font-size: 1.6rem; }
}

/* ---------------------------------------------------------------- atlas */
.atlas { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; height: calc(100svh - var(--hdr)); }
.atlas-map { position: relative; min-height: 0; }
.atlas-map .globe-wrap { position: absolute; inset: 0 0 5.5rem 0; }
.atlas-zoom { position: absolute; top: 1rem; left: 1rem; display: flex; gap: .4rem; }
.atlas-time { position: absolute; left: 0; right: 0; bottom: 0; height: 5.5rem; display: flex; align-items: center; gap: 1.2rem; padding: 0 1.5rem; border-top: 1px solid var(--rule); background: var(--paper); }
.play { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 999px; padding: .5rem 1rem .5rem .8rem; cursor: pointer; min-height: 44px; }
.play[aria-pressed="true"] { background: var(--thread); border-color: var(--thread); }
.scrub { position: relative; flex: 1; padding-bottom: 1.1rem; }
.scrub input { width: 100%; accent-color: var(--thread); height: 28px; }
.scrub-ticks { position: absolute; left: 8px; right: 8px; bottom: 0; height: 1rem; font-size: .72rem; color: var(--ink-3); }
.scrub-ticks span { position: absolute; transform: translateX(-50%); }
.atlas-year { font-family: var(--display); font-size: 2.8rem; line-height: 1; min-width: 5.5rem; text-align: right; color: var(--thread); font-variant-numeric: lining-nums tabular-nums; }
.atlas-side { border-left: 1px solid var(--rule); padding: 1.2rem 1.2rem 1.5rem; overflow: auto; background: var(--raised); }
.filt { border: 0; padding: 0; margin: 1rem 0; }
.filt legend, .lbl { font-size: .85rem; font-style: italic; color: var(--ink-2); display: block; margin-bottom: .4rem; font-weight: 400; }
.bchip { display: flex; align-items: center; gap: .45rem; font-size: .9rem; padding: .15rem 0; cursor: pointer; }
.bchip input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.bchip .sw { background: var(--br); }
select, input[type="search"], .tree-find input { font: inherit; font-size: .95rem; padding: .45rem .6rem; border: 1px solid var(--ink-3); border-radius: 4px; background: var(--paper); color: var(--ink); width: 100%; min-height: 40px; }
.evlist { list-style: none; padding: 0; margin: 0 0 1rem; font-size: .85rem; line-height: 1.4; }
.evlist li { display: grid; grid-template-columns: 3rem 1fr; gap: .5rem; padding: .45rem 0; border-bottom: 1px solid var(--rule-2); }
.ev-y { font-variant-numeric: lining-nums tabular-nums; color: var(--ink); font-weight: 600; border-left: 3px solid var(--br); padding-left: .4rem; }
.ev-k { font-style: italic; color: var(--ink-3); }
.evlist a { text-decoration: none; }
@media (max-width: 900px) {
  .atlas { display: block; height: auto; }
  .atlas-map { height: 72svh; }
  .atlas-time { gap: .6rem; padding: 0 .8rem; }
  .atlas-year { font-size: 1.9rem; min-width: 4rem; }
  .play span { display: none; }
  .atlas-side { border-left: 0; border-top: 1px solid var(--rule); }
  .atlas-zoom .txt { display: none; }
}

/* ---------------------------------------------------------------- tree */
.treeview { display: flex; flex-direction: column; height: calc(100svh - var(--hdr)); }
.tree-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; padding: .8rem var(--gut); border-bottom: 1px solid var(--rule); background: var(--raised); }
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg a { padding: .35rem .9rem; text-decoration: none; font-size: .9rem; }
.seg a.on { background: var(--ink); color: var(--paper); }
.tree-find { width: 15rem; }
.tree-focus { display: flex; align-items: center; gap: .6rem; margin-left: auto; font-size: .92rem; }
.tree-canvas { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--paper); cursor: grab; }
.tree-canvas:active { cursor: grabbing; }
.tree-hint { position: absolute; left: var(--gut); bottom: .6rem; margin: 0; pointer-events: none; }
.tree-svg { display: block; touch-action: none; }
.tlinks path { fill: none; stroke-width: 1.4; }
.tnode rect:first-child { fill: var(--raised); stroke: var(--rule); }
.tnode:hover rect:first-child, .tnode:focus-visible rect:first-child { stroke: var(--ink); }
.tnode:focus-visible { outline: none; }
.tnode.focus rect:first-child { stroke: var(--thread); stroke-width: 2; }
.tn-name { font-family: var(--text); font-size: 15.5px; fill: var(--ink); font-weight: 600; }
.tn-meta { font-size: 14px; fill: var(--ink-2); }
.tn-rel { font-style: italic; fill: var(--ink-3); }
@media (max-width: 700px) { .tree-focus { margin-left: 0; width: 100%; } .tree-find { width: 100%; } }

/* ---------------------------------------------------------------- people */
.toolbar { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; margin-bottom: 2rem; }
.search { flex: 0 1 18rem; }
.tog { display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; cursor: pointer; }
.tog input { width: 18px; height: 18px; accent-color: var(--ink); }
.bfilter { display: flex; flex-wrap: wrap; gap: .4rem; }
.bbtn { border: 1px solid var(--rule); background: transparent; border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; min-height: 34px; }
.bbtn.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.gen { margin-bottom: 2.6rem; }
.gen-h { font-family: var(--display); font-size: 1.7rem; font-weight: 500; display: flex; align-items: baseline; gap: .8rem; border-bottom: 1px solid var(--ink); padding-bottom: .4rem; margin-bottom: 1.2rem; }
.gen-n { font-style: italic; color: var(--thread); font-size: 1.1rem; min-width: 1.2rem; }
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: .6rem 1.4rem; }
.pcard { display: flex; gap: .9rem; align-items: center; text-decoration: none; padding: .45rem .5rem; border-radius: 6px; }
.pcard:hover { background: var(--raised); }
.pc-name { display: block; font-size: 1rem; line-height: 1.25; }
.pcard.direct .pc-name { font-weight: 600; }
.pc-span { display: block; font-size: .85rem; color: var(--ink-2); font-variant-numeric: lining-nums; }
.pc-rel { display: block; font-size: .8rem; color: var(--ink-3); font-style: italic; }

/* ---------------------------------------------------------------- person */
.person { max-width: 78rem; margin: 0 auto; padding: 1.5rem var(--gut) 3rem; }
.crumbs { display: flex; gap: 1.2rem; font-size: .88rem; margin-bottom: 1.2rem; }
.crumbs a { color: var(--ink-2); }
.p-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.2rem; align-items: end; padding-bottom: 1.8rem; border-bottom: 1px solid var(--ink); }
.p-photo { border: 0; background: none; padding: 0; cursor: zoom-in; }
.p-rel { font-style: italic; color: var(--ink-2); margin-bottom: .3rem; }
.p-name { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 5.5vw, 4.6rem); line-height: 1; letter-spacing: -.015em; margin-bottom: .6rem; }
.p-span { font-size: 1.3rem; font-variant-numeric: lining-nums; margin-bottom: .4rem; }
.p-alt { font-size: .9rem; color: var(--ink-2); margin-bottom: .4rem; }
.p-branch { display: flex; align-items: center; gap: .5rem; font-size: .9rem; margin: 0; }
.vitals { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem 2rem; margin: 1.4rem 0 0; padding-bottom: 1.4rem; border-bottom: 1px solid var(--rule); }
.vital dt { font-style: italic; color: var(--ink-2); font-size: .88rem; }
.vital dd { margin: .1rem 0 0; }
.vnote { display: block; font-size: .82rem; color: var(--ink-3); margin-top: .2rem; }
.p-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 3.5rem; margin-top: 1.8rem; }
.p-bio { font-size: 1.22rem; line-height: 1.58; max-width: var(--measure); }
.p-story { background: var(--raised); padding: 1.4rem 1.6rem .6rem; border-top: 3px solid var(--br); margin-top: 2rem; }
.p-story .sec-h2 { margin-top: 0; }
.p-story p { max-width: var(--measure); }
.facts { list-style: none; padding: 0; margin: 0; }
.facts > li { display: grid; grid-template-columns: 1.6rem 1fr; align-items: start; padding: .6rem 0; border-bottom: 1px solid var(--rule-2); font-size: .98rem; }
.still { background: color-mix(in srgb, var(--thread) 5%, var(--paper)); border: 1px dashed color-mix(in srgb, var(--thread) 45%, transparent); padding: .2rem 1.3rem .6rem; margin-top: 2rem; border-radius: 4px; }
.still .sec-h2 { margin-top: 1rem; font-style: italic; }
.still ul { padding-left: 1.1rem; }
.still li { margin-bottom: .5rem; }
.lifeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--br); }
.lifeline li { display: grid; grid-template-columns: 4rem 1fr; gap: .6rem; padding: .4rem 0 .4rem .9rem; position: relative; font-size: .95rem; }
.lifeline li::before { content: ''; position: absolute; left: -6px; top: .95rem; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--br); }
.ll-y { font-variant-numeric: lining-nums tabular-nums; font-weight: 600; }
.lifeline.world { border-left-style: dotted; border-left-color: var(--ink-3); }
.lifeline.world li::before { border-color: var(--ink-3); width: 8px; height: 8px; left: -5px; }
.p-side section { margin-bottom: 2rem; }
.p-side .chips { flex-direction: column; gap: .2rem; margin: 0 0 1rem; }
.famgrp { margin-bottom: .4rem; }
.rel-ins { padding-left: 1.1rem; }
.p-line { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.p-line .r { text-align: right; }
.p-line a { display: block; font-family: var(--display); font-size: 1.4rem; line-height: 1.2; margin-bottom: .2rem; text-decoration: none; }
.p-line a:hover { color: var(--thread-ink); }
@media (max-width: 860px) { .p-grid { grid-template-columns: 1fr; gap: 1rem; } .p-head { grid-template-columns: 1fr; gap: 1rem; } .p-head .cameo { width: 130px; height: auto; } }

/* ---------------------------------------------------------------- places */
.places-map { height: 60vh; max-height: 560px; margin-bottom: 2.5rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.country { margin-bottom: 2.4rem; }
.plgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.1rem 1.4rem; }
.plcard { display: grid; grid-template-columns: 5.5rem 1fr; gap: .8rem; align-items: center; text-decoration: none; }
.plcard img, .pl-noimg { width: 5.5rem; height: 4.2rem; object-fit: cover; display: block; border-radius: 2px; }
.pl-noimg { background: var(--sunk); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-style: italic; font-size: 1.8rem; color: var(--ink-3); }
.pl-name { display: block; line-height: 1.25; }
.pl-n { display: block; font-size: .82rem; color: var(--ink-2); font-style: italic; }
.plcard:hover .pl-name { color: var(--thread-ink); }
.pl-hero .fig { margin: 0; }
.pl-hero .fig-btn { max-height: 62vh; aspect-ratio: auto !important; }
.pl-hero .fig-btn img { max-height: 62vh; }
.pl-hero figcaption { padding: 0 var(--gut); }
.wiki blockquote { margin: 0 0 .4rem; padding: .2rem 0 .2rem 1.1rem; border-left: 2px solid var(--ink); font-size: 1rem; }

/* ---------------------------------------------------------------- timeline */
.centuries { display: flex; gap: .4rem; margin-left: auto; }
.centuries a { font-family: var(--display); font-style: italic; text-decoration: none; padding: .2rem .6rem; border: 1px solid var(--rule); border-radius: 999px; font-size: .95rem; }
.tl-key { display: inline-block; width: 14px; height: 3px; background: var(--thread); }
.tl-key.world { background: var(--ink-3); }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--thread); transform: translateX(-1px); }
.tl-i { display: grid; grid-template-columns: 1fr 9rem 1fr; align-items: start; margin: 0 0 1.2rem; }
.tl-y { grid-column: 2; text-align: center; font-variant-numeric: lining-nums; font-size: .82rem; background: var(--paper); position: relative; z-index: 1; padding: .2rem .3rem; border: 1px solid var(--rule); border-radius: 999px; margin: 0 .6rem; }
.tl-b { font-size: .95rem; }
.tl-b p { margin-bottom: .3rem; color: var(--ink-2); }
.tl-h { font-family: var(--display); font-size: 1.2rem; line-height: 1.2; margin-bottom: .25rem; font-weight: 500; }
.tl-i.fam .tl-b { grid-column: 1; grid-row: 1; text-align: right; }
.tl-i.fam .tl-h a { text-decoration-color: var(--thread); }
.tl-i.world .tl-b { grid-column: 3; }
.tl-i.world .tl-h { font-family: var(--text); font-size: 1.02rem; font-style: italic; }
.tl-era { margin: 2.4rem 0; position: relative; z-index: 1; }
.era { background: var(--raised); padding: 1.6rem 1.8rem 1rem; border-top: 3px solid var(--ink); max-width: 50rem; margin: 0 auto; }
.era-yrs { font-style: italic; color: var(--thread-ink); margin-bottom: .2rem; }
.era-h { font-family: var(--display); font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1.1; margin-bottom: 1rem; font-weight: 500; }
.era-fig .fig-btn { max-height: 22rem; }
@media (max-width: 760px) {
  .tl::before { left: 1px; }
  .tl-i { grid-template-columns: 1fr; padding-left: 1.2rem; }
  .tl-y { grid-column: 1; text-align: left; justify-self: start; margin: 0 0 .3rem -1.2rem; }
  .tl-i.fam .tl-b, .tl-i.world .tl-b { grid-column: 1; grid-row: auto; text-align: left; }
  .tl-i.world .tl-y { border-style: dashed; }
  .era { padding: 1.2rem 1rem .6rem; }
  .centuries { margin-left: 0; }
}

/* ---------------------------------------------------------------- insights */
.insights { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: dense; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 2.4rem 3rem; }
.ins { padding-top: 1rem; border-top: 1px solid var(--ink); }
.ins:focus { outline: none; }
.ins.wide { grid-column: span 2; }
.ins:has(#llviz) { grid-column: 1 / -1; }
.ins.todo { border-top-style: dashed; border-top-color: var(--thread); }
.ins-h { font-family: var(--display); font-size: 1.7rem; line-height: 1.12; margin-bottom: .7rem; font-weight: 500; }
.ins p { font-size: .98rem; max-width: var(--measure); }
.viz { margin: 1rem 0; }
.viz figcaption { margin-bottom: .6rem; font-size: .9rem; }
.legend { list-style: none; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font-size: .82rem; }
.legend li { display: flex; align-items: center; gap: .35rem; }
.legend .sw { width: .7rem; height: .7rem; }
.lifelines { width: 100%; height: auto; }
.ll-grid { stroke: var(--rule-2); stroke-width: 1; }
.ll-ax { font-size: 11px; fill: var(--ink-2); font-variant-numeric: lining-nums; }
.ll-row { cursor: pointer; }
.ll-row:hover rect { fill: var(--sunk); }
.tbl table { border-collapse: collapse; font-size: .85rem; margin-top: .6rem; }
.tbl td, .tbl th { padding: .25rem .8rem .25rem 0; border-bottom: 1px solid var(--rule-2); text-align: left; }
.tbl summary { cursor: pointer; font-style: italic; color: var(--ink-2); font-size: .9rem; }
@media (max-width: 760px) { .ins.wide { grid-column: auto; } }

/* ---------------------------------------------------------------- how */
.conf-legend { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.conf-legend li { display: flex; gap: .8rem; font-size: .95rem; }
.cl-g { padding-top: .35rem; }
.cl-g .glyph { width: 16px; height: 16px; }
.ctable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ctable th, .ctable td { padding: .5rem .5rem; border-bottom: 1px solid var(--rule); text-align: left; font-variant-numeric: lining-nums tabular-nums; }
.ctable thead th { font-weight: 400; font-style: italic; color: var(--ink-2); font-size: .85rem; }
.ctable thead th .glyph { display: inline-block; vertical-align: -1px; }
.cbar-td { width: 32%; }
.cbar { display: flex; height: 10px; gap: 2px; }
.cseg { border-radius: 2px; }
.cs-VERIFIED { background: var(--c-ver); } .cs-PROBABLE { background: var(--c-pro); } .cs-POSSIBLE { background: repeating-linear-gradient(45deg, var(--c-pos) 0 2px, transparent 2px 5px); border: 1px solid var(--c-pos); } .cs-FAMILY { background: var(--c-fam); } .cs-CONTRADICTED { background: repeating-linear-gradient(90deg, var(--c-con) 0 2px, transparent 2px 5px); border: 1px solid var(--c-con); }
.qlist { list-style: none; padding: 0; }
.qlist > li { display: grid; grid-template-columns: 14rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule-2); }
.q-who { display: flex; gap: .6rem; align-items: center; text-decoration: none; font-weight: 500; }
.qlist ul { margin: 0; padding-left: 1.1rem; font-size: .93rem; }
.credits { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: .8rem 1.6rem; font-size: .82rem; line-height: 1.4; }
.credits li { display: grid; grid-template-columns: 4.2rem 1fr; gap: .7rem; align-items: start; }
.cr-th { border: 0; padding: 0; background: var(--sunk); width: 4.2rem; height: 3.2rem; cursor: zoom-in; display: flex; align-items: center; justify-content: center; }
.cr-th img { width: 100%; height: 100%; object-fit: cover; }
.cr-th.film { cursor: default; color: var(--ink-2); }
@media (max-width: 700px) { .conf-legend { grid-template-columns: 1fr; } .qlist > li { grid-template-columns: 1fr; } .cbar-td { display: none; } }

/* ---------------------------------------------------------------- footer */
.ftr { border-top: 1px solid var(--ink); margin-top: 0; }
.view-atlas + .ftr, .view-tree + .ftr { margin-top: 0; }
.flow { max-width: 84rem; margin: 0 auto; padding: 2.4rem var(--gut); display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 2.4rem; }
.flow-k { font-style: italic; color: var(--ink-2); margin: 0; }
.flow-a { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.4rem); text-decoration: none; line-height: 1.1; }
.flow-a:hover { color: var(--thread-ink); }
.ftr-b { background: var(--ink); color: #d4dbe0; padding: 2rem var(--gut) 2.4rem; }
.ftr-b .wordmark { color: #fff; }
.ftr-b .muted { color: #a9b5bd; }
.ftr-nav { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; padding: 0; margin: .6rem 0 0; font-size: .9rem; }
.ftr-nav a { color: #d4dbe0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) { .sw { border: 1px solid CanvasText; } .conf { border: 1px solid CanvasText; } }
@media print { .hdr, .ftr, .story-map, .atlas-side { display: none; } }
/* a mounted print for the jewel of the voyage (Schouman's 1819 watercolour) */
.fig.jewel .fig-btn { padding: 12px; background: #fbfcfa !important; box-shadow: 0 0 0 1px var(--rule), 0 14px 30px -20px rgba(23,33,44,.6); }
.fig.jewel figcaption { font-style: italic; }

.conf-CONTRADICTED { color: var(--ink-2); }
.map-key { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.1rem; font-size: .78rem; color: var(--ink-2); }
.map-key li { display: inline-flex; align-items: center; gap: .4rem; }
.story-map:has(.map-key) .globe-wrap { height: calc(100% - 4rem); }
.beat-conf { display: flex; gap: .35rem; align-items: flex-start; font-size: .8rem; color: var(--ink-2); font-style: italic; margin-bottom: .7rem; }
@media (max-width: 860px) { .map-key { font-size: .68rem; gap: 0 .7rem; margin-top: .1rem; } .map-key svg { width: 18px; } .story-map:has(.map-key) .globe-wrap { height: calc(100% - 3.6rem); } }

/* ================================================================ v2 */
html.big { font-size: 118%; }
body.switching main { opacity: .55; transition: opacity .1s; }
.viewas-btn { border: 1px solid var(--rule); background: var(--raised); border-radius: 999px; padding: .25rem .8rem; font-size: .85rem; cursor: pointer; max-width: 16rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 36px; }
.viewas-btn .va-k { color: var(--ink-2); font-style: italic; }
.big-btn { border: 1px solid var(--ink); background: transparent; border-radius: 999px; min-width: 40px; min-height: 34px; cursor: pointer; font-family: var(--display); font-size: 1rem; }
.big-btn .plus { font-size: .75em; vertical-align: super; }
.big-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.viewas { position: absolute; top: calc(var(--hdr) - 4px); right: var(--gut); width: min(26rem, calc(100vw - 24px)); background: var(--raised); border: 1px solid var(--ink); border-radius: 8px; padding: 1rem 1.1rem; box-shadow: 0 18px 40px -18px rgba(23,33,44,.45); z-index: 60; }
.va-hint { font-size: .9rem; color: var(--ink-2); }
.va-pair { display: block; width: 100%; text-align: left; border: 1px solid var(--ink); background: transparent; border-radius: 6px; padding: .55rem .8rem; margin-bottom: .8rem; cursor: pointer; font-weight: 600; }
.va-pair.on, .va-quick button.on { background: var(--ink); color: var(--paper); }
.va-quick { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.va-quick button { border: 1px solid var(--rule); background: transparent; border-radius: 999px; padding: .25rem .7rem; font-size: .875rem; cursor: pointer; min-height: 34px; }
.nav-extra { display: none; }
.hdr.compact .nav-extra { display: flex; flex-direction: column; } .hdr.compact .nav-extra a { display: block; padding: .7rem 0; font-size: 1.05rem; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--rule-2); }
@media (max-width: 640px) { .viewas-btn .va-k { display: none; } .viewas-btn { max-width: 9.5rem; font-size: .8rem; padding: .2rem .6rem; } .wordmark { font-size: 1.1rem; } .hdr { gap: .5rem; } .big-btn { min-width: 34px; } }
.cover-intro { max-width: 30rem; font-size: 1.02rem; color: var(--ink-2); text-shadow: 0 0 10px var(--paper); }
.otd { position: absolute; z-index: 2; right: var(--gut); top: 1.4rem; max-width: 19rem; background: color-mix(in srgb, var(--raised) 92%, transparent); border-left: 3px solid var(--thread); padding: .7rem .9rem .5rem; font-size: .95rem; }
.otd-k { font-style: italic; color: var(--ink-2); margin: 0; font-size: .875rem; }
.otd-d { font-family: var(--display); font-size: 1.25rem; margin: .1rem 0 .2rem; }
.otd-t { margin: 0 0 .3rem; }
@media (max-width: 760px) { .otd { position: relative; right: auto; top: auto; margin: 0 var(--gut) 2rem; } }
.fan-axis { font-size: 12px; fill: var(--ink-2); font-style: italic; }
.fan-gen { font-size: 12px; fill: var(--ink-2); }
.fan-y { font-size: 12px; }
.fan-seg.poss path { stroke-dasharray: 4 3; }
.caveat { max-width: 40rem; font-size: .98rem; color: var(--ink-2); border-left: 3px solid var(--rule); padding: .1rem 0 .1rem .9rem; margin-top: 1.2rem; }
.scene { font-size: 1.12rem; line-height: 1.62; }
details.more { margin-top: .8rem; border-top: 1px solid var(--rule-2); padding-top: .5rem; }
details.more > summary { cursor: pointer; font-style: italic; color: var(--ink-2); font-size: .95rem; padding: .3rem 0; }
details.more[open] > summary { margin-bottom: .6rem; }
.step-body .fig { margin: 1rem 0; }
.gl { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: help; text-decoration: underline dotted var(--thread); text-underline-offset: .2em; }
.gl:hover, .gl:focus-visible { color: var(--thread-ink); }
.know { margin: 2rem 0; padding: 1.1rem 1.3rem .6rem; background: var(--raised); border: 1px solid var(--rule); border-radius: 6px; }
.know-h { font-family: var(--display); font-size: 1.35rem; font-weight: 500; margin-bottom: .4rem; }
.know-acts { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.btn-wa { display: inline-flex; align-items: center; gap: .45rem; background: #1D6447; color: #fff; border-radius: 999px; padding: .5rem 1rem; text-decoration: none; font-size: .95rem; min-height: 40px; }
.btn-wa:hover { background: #154d36; color: #fff; }
.thin { background: color-mix(in srgb, var(--br) 6%, var(--paper)); border: 1px dashed color-mix(in srgb, var(--br) 45%, transparent); border-radius: 6px; padding: .2rem 1.3rem 1rem; margin-top: 1.6rem; }
.minitree { display: flex; flex-direction: column; align-items: center; gap: .3rem; margin: 1rem 0; }
.mt-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; position: relative; }
.mt-row + .mt-row::before { content: ''; position: absolute; top: -.3rem; left: 50%; height: .3rem; border-left: 1px solid var(--rule); }
.mt-card { display: inline-flex; gap: .5rem; align-items: center; background: var(--raised); border: 1px solid var(--rule-2); border-radius: 6px; padding: .3rem .6rem; text-decoration: none; font-size: .95rem; }
.mt-card span span { display: block; }
.mt-row.me .mt-card:first-child { border-color: var(--br); }
.story-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem; }
.story-card { display: grid; text-decoration: none; gap: .3rem; }
.sc-img { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; margin-bottom: .6rem; background: var(--sunk); }
.sc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.story-card:hover .sc-img img { transform: scale(1.02); }
.sc-n { font-family: var(--display); font-style: italic; color: var(--thread); font-size: 1.2rem; }
.sc-years { color: var(--ink-2); font-variant-numeric: lining-nums; }
.sc-title { font-family: var(--display); font-size: 2.2rem; line-height: 1.05; }
.sc-dek { color: var(--ink-2); }
.sc-meta { font-style: italic; color: var(--ink-2); font-size: .9rem; }
.story-card:hover .sc-title { color: var(--thread-ink); }
.notfound { padding-top: 5rem; padding-bottom: 6rem; }
.notfound .btn-quiet { margin-left: .4rem; }
.flow-a { display: inline-flex; flex-direction: column; text-decoration: none; }
.flow-t { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; }
.flow-d { font-size: .9rem; color: var(--ink-2); font-family: var(--text); }
.flow-a:hover .flow-t { color: var(--thread-ink); }
.tree-tools { display: flex; gap: .4rem; }
.tree-tools a.icon-btn { text-decoration: none; }
.tree-notice { margin: 0; padding: .7rem var(--gut); background: color-mix(in srgb, var(--thread) 6%, var(--paper)); border-bottom: 1px solid var(--rule); font-size: .95rem; }
.chip-line { display: inline-block; border: 1px solid var(--br); border-radius: 999px; padding: .1rem .7rem; margin: .15rem .2rem; text-decoration: none; font-size: .9rem; }
.dash-key { display: inline-flex; align-items: center; gap: .3rem; }
.tree-hint { max-width: 60rem; background: color-mix(in srgb, var(--paper) 88%, transparent); padding: .2rem .4rem; }
.tn-more { font-family: var(--display); font-size: 26px; fill: var(--ink-3); }
.treeview.mobile .tree-canvas { overflow: auto; cursor: auto; }
.tmob { padding: 1rem var(--gut) 5rem; display: flex; flex-direction: column; align-items: stretch; gap: .5rem; }
.trow { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.trow.focus { grid-template-columns: 1fr; }
.tcard { display: flex; gap: .6rem; align-items: center; background: var(--raised); border: 1px solid var(--rule); border-left: 4px solid var(--br); border-radius: 6px; padding: .5rem .6rem; text-decoration: none; min-height: 64px; }
.tcard.me { border-width: 2px 2px 2px 5px; border-color: var(--thread); border-left-color: var(--br); }
.tcard.poss { border-style: dashed; }
.tc-n { display: block; font-weight: 600; font-size: 1rem; line-height: 1.25; }
.tc-m, .tc-r { display: block; font-size: .875rem; color: var(--ink-2); }
.tc-r { font-style: italic; }
.tconn { height: 1rem; border-left: 2px solid var(--rule); margin-left: 50%; }
.tmob-open { text-align: center; margin: .3rem 0; }
.marks { position: absolute; left: 8px; right: 8px; top: -2.1rem; height: 1.8rem; }
.mark { position: absolute; transform: translateX(-50%); border: 1px solid var(--thread); background: var(--raised); color: var(--thread-ink); border-radius: 999px; font-size: .78rem; padding: .05rem .45rem; cursor: pointer; white-space: nowrap; min-height: 26px; }
.mark .mk-l { display: none; }
.mark:hover .mk-l, .mark:focus-visible .mk-l { display: inline; margin-left: .3rem; }
.atlas-time { height: 6.6rem; padding-top: 1.6rem; }
.atlas-map .globe-wrap { bottom: 6.6rem; }
.evlist .ev-b { min-width: 0; overflow-wrap: anywhere; }
.atlas-side { min-width: 0; }
.thennow { margin: 2rem 0; }
.tn-wrap { position: relative; overflow: hidden; border-radius: 2px; background: var(--sunk); max-height: 70vh; }
.tn-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tn-old { position: absolute; inset: 0; }
.tn-lab { position: absolute; top: .6rem; background: rgba(23,33,44,.75); color: #fff; font-size: .85rem; padding: .15rem .5rem; border-radius: 3px; }
.tn-lab.l { left: .6rem; } .tn-lab.r { right: .6rem; }
.tn-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.tn-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; left: var(--x, 50%); }
.insights .lead { grid-column: span 2; }
.insights .lead .ins-h { font-size: 2.1rem; }
.hook { margin: 0 0 .8rem; }
.hook.words { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.8rem); display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: baseline; color: var(--ink-2); }
.hook.words .hl { color: var(--thread); }
.hook.words .ar { font-size: .6em; color: var(--ink-3); }
.hook.date { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--thread); line-height: 1; }
.hook.names { font-family: var(--display); font-style: italic; font-size: 1.5rem; line-height: 1.3; color: var(--ink-2); }
.hook.img img { width: 100%; max-height: 14rem; object-fit: cover; display: block; border-radius: 2px; filter: grayscale(.2); }
.hook.img.portrait img { width: 7rem; height: 8.8rem; object-fit: cover; border-radius: 50% / 45%; }
.notes-card { background: var(--sunk); padding: 1rem 1.2rem; border-top: 1px solid var(--ink); }
@media (max-width: 760px) { .insights .lead { grid-column: auto; } }
.crow { margin: 1rem 0; }
.crow-s { margin-bottom: .35rem; }
.crow .cbar { height: 14px; }
.legend .sw.cs-VERIFIED, .legend .sw.cs-PROBABLE, .legend .sw.cs-POSSIBLE, .legend .sw.cs-FAMILY, .legend .sw.cs-CONTRADICTED { border-radius: 3px; width: 1rem; height: .8rem; }
.qgroup { border-top: 1px solid var(--rule); padding: .4rem 0; }
.qgroup > summary { cursor: pointer; padding: .4rem 0; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.qgroup > summary .sw { background: var(--br, var(--ink)); }
.faces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1.6rem 1.2rem; }
.face a { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; gap: .25rem; }
.face-img { width: 120px; height: 150px; border-radius: 50% / 45%; overflow: hidden; border: 2px solid var(--ink); display: block; }
.face-img img { width: 100%; height: 100%; object-fit: cover; filter: url(#sepia); }
.face-frame { opacity: .85; }
.face-n { font-weight: 600; line-height: 1.25; }
.face-m { font-size: .875rem; color: var(--ink-2); }
.face-ask { font-size: .875rem; font-style: italic; color: var(--ink-2); max-width: 12rem; }
.rel-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.rel-sentence { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.25; }
.kinpath { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--thread); }
.kinpath li { padding: .2rem 0 .2rem 1rem; }
.kp-edge { display: block; font-style: italic; color: var(--ink-2); font-size: .9rem; }
@media (max-width: 640px) { .rel-form { grid-template-columns: 1fr; } }
.pcard.poss .cameo, .chip-person.poss .cameo { opacity: .8; }
.popover p { margin-bottom: .5rem; }
@media print {
  @page { size: auto; margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .hdr, .ftr, .crumbs, .p-side .globe-wrap, .know, .tree-tools, .story-map, .atlas, .cover, .chapters, .explore, .searching, #fanToggle, .src-inline, details.more > summary { display: none !important; }
  .person { max-width: none; padding: 0; }
  .p-grid { grid-template-columns: 1.6fr 1fr; gap: 8mm; }
  .glance { display: block; padding: 0; }
  .fan-wrap { page-break-inside: avoid; }
  .fan { max-height: 160mm; }
  a { text-decoration: none; color: inherit; }
  .still, .thin { border-color: #999; }
  details { display: block; } details > * { display: block; }
}

.viewas-btn2 { display: none; }
.hdr.tight .hdr-r .viewas-btn { display: none; }
.hdr.tiny .wordmark { font-size: 1rem; }
/* the longer album title (v6.2): on the narrowest headers it takes two short lines instead of pushing the buttons away */
.hdr.tiny .wordmark { white-space: normal; min-width: 0; flex: 0 1 auto; font-size: .92rem; line-height: 1.12; }
.hdr.tiny { gap: .4rem; }
.hdr.compact .viewas-btn2 { display: block; text-align: left; border: 1px solid var(--ink); background: var(--raised); border-radius: 6px; padding: .6rem .8rem; margin: .6rem 0; font-size: 1rem; cursor: pointer; }
@media (max-width: 640px) {
  .hdr-r .viewas-btn { display: none; }
  .viewas-btn2 { display: block; text-align: left; border: 1px solid var(--ink); background: var(--raised); border-radius: 6px; padding: .6rem .8rem; margin: .6rem 0; font-size: 1rem; cursor: pointer; }
  .viewas-btn2 .va-k { font-style: italic; color: var(--ink-2); }
  .viewas { right: 12px; }
}

.fan-list { display: none; }
@media (max-width: 640px) {
  .fan-list { display: block; grid-column: 1 / -1; }
  .fan-list .trow { margin-bottom: 1rem; }
  .fan-list .tcard { min-height: 56px; }
}
@media (max-width: 860px) { .map-cap { display: none; } .story-map:has(.map-key) .globe-wrap { height: calc(100% - 4.4rem); } .story-map .globe-wrap { height: 100%; } }

.follow-cap { margin: .5rem 0 0; padding: .5rem .7rem; background: var(--paper); border-left: 3px solid var(--thread); font-size: .9rem; }
@media (max-width: 900px) {
  .atlas-time { flex-wrap: wrap; height: auto; padding: .6rem .8rem; gap: .5rem; }
  .atlas-map { display: flex; flex-direction: column; }
  .atlas-map .globe-wrap { position: relative; inset: auto; flex: 1; min-height: 0; }
  .atlas-time { position: static; }
  .scrub { flex: 1 1 100%; order: 3; padding-bottom: 1rem; min-width: 0; }
  .play { order: 1; } .atlas-year { order: 2; margin-left: auto; }
  .marks { position: static; order: 4; flex: 1 1 100%; height: auto; display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .2rem; -webkit-overflow-scrolling: touch; }
  .mark { position: static; transform: none; flex: none; min-height: 34px; padding: .2rem .6rem; }
  .mark .mk-l { display: inline; margin-left: .3rem; }
  .scrub .marks { margin-top: .4rem; }
}

.tn-name.long { font-size: 14px; }
.tn-meta .tn-rel { font-size: 13.5px; }

/* ================================================================ v3 */
summary .when-open { display: none; } details[open] > summary .when-open { display: inline; } details[open] > summary .when-closed { display: none; }
.src-inline summary, details.more > summary { color: var(--thread-ink); font-style: normal; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--thread) 40%, transparent); text-underline-offset: .2em; }
.p-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; margin-bottom: 1.2rem; }
.p-topbar .crumbs { margin: 0; }
.back-link { font-weight: 600; text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: .3rem .9rem; background: var(--raised); }
.back-link:hover { border-color: var(--ink); }
.src-toggle { margin-left: auto; }
.src-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.fact-src { display: none; margin-top: .4rem; }
.person.show-src .fact-src { display: block; }
.dna-link a { display: inline-block; border-left: 3px solid #2B6CB0; padding: .3rem .8rem; background: var(--raised); text-decoration: none; }
.start-link { display: block; width: fit-content; margin-top: .35rem; font-size: .9rem; font-weight: 600; color: var(--thread-ink); }
.path-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1.2rem; }
.path-card { display: flex; gap: 1rem; align-items: center; text-decoration: none; background: var(--raised); border: 1px solid var(--rule); border-left: 5px solid var(--br); border-radius: 6px; padding: 1rem 1.1rem; }
.path-card:hover { border-color: var(--ink); border-left-color: var(--br); }
.pc-k { display: block; font-style: italic; color: var(--thread-ink); font-size: .9rem; margin: 0; }
.pc-t { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.pc-d { display: block; color: var(--ink-2); font-size: .95rem; }
.pc-m { display: block; font-size: .875rem; color: var(--ink-2); margin-top: .3rem; }
.path-head { border-bottom: 3px solid var(--br); padding-bottom: 1rem; margin-bottom: 1.4rem; }
.path-progress { margin: .3rem 0; color: var(--ink-2); }
.path-dots { list-style: none; display: flex; gap: .5rem; padding: 0; margin: .4rem 0 0; }
.path-dots a { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--br); }
.path-dots a.on { background: var(--br); }
.path-note { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; }
.path-step { background: var(--raised); border: 1px solid var(--rule); border-radius: 6px; padding: 1.4rem; margin: 1rem 0 1.6rem; }
.ps-person { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; }
.ps-name { font-family: var(--display); font-size: 1.9rem; font-weight: 500; line-height: 1.1; margin: .2rem 0 .5rem; }
.path-nav { display: flex; justify-content: space-between; gap: 1rem; }
@media (max-width: 640px) { .ps-person { grid-template-columns: 1fr; } }
.dna-caveat { border-left-color: #2B6CB0; }
.dna-stack { display: flex; height: 44px; gap: 2px; border-radius: 4px; overflow: hidden; margin: .6rem 0 .5rem; }
.dna-seg { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .95rem; min-width: 4px; }
.dna-legend { margin-bottom: 1.4rem; }
.dna-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.2rem 2.4rem; }
.dna-gh { font-family: var(--display); font-size: 1.3rem; font-weight: 500; display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.dna-gt { margin-left: auto; font-family: var(--text); font-weight: 700; }
.dna-rows { list-style: none; padding: 0; margin: 0; }
.dna-rows li { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr 3rem; gap: .6rem; align-items: center; padding: .25rem 0; border-bottom: 1px solid var(--rule-2); font-size: .95rem; }
.dna-bar { height: 10px; background: var(--sunk); border-radius: 3px; overflow: hidden; }
.dna-bar span { display: block; height: 100%; background: var(--mc); border-radius: 3px; }
.dna-rp { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.dna-map { border: 1px solid var(--rule-2); border-radius: 4px; background: var(--raised); }
.dna-svg { width: 100%; height: auto; display: block; }
.dna-sea { fill: #C9D7D9; } .dna-land { fill: #EEF0EA; stroke: #5C7480; stroke-width: .6; }
.dna-doc { fill: #17212C; }
.dna-journey { fill: none; stroke: #2F855A; stroke-width: 2; stroke-dasharray: 5 4; }
.dna-lab { font-family: var(--text); font-size: 13px; fill: var(--ink); paint-order: stroke; stroke: #F3F5F2; stroke-width: 4px; font-style: italic; }
.dna-lab.j { fill: #1F5E3F; font-weight: 600; }
.dna-compare { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.dna-compare > li { border-top: 1px solid var(--ink); padding-top: .8rem; }
.dna-ch { font-family: var(--display); font-size: 1.4rem; font-weight: 500; margin-bottom: .5rem; }
.dna-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.dna-cols > div:first-child { border-right: 1px solid var(--rule-2); padding-right: 1rem; }
.dna-journeys { columns: 2; }
@media (max-width: 700px) { .dna-cols { grid-template-columns: 1fr; gap: .6rem; } .dna-cols > div:first-child { border-right: 0; padding-right: 0; } .dna-journeys { columns: 1; } .dna-rows li { grid-template-columns: 1fr 5rem 2.6rem; } }

.mainnav .n-full { display: none; } .hdr.compact .mainnav .n-full { display: inline; } .hdr.compact .mainnav .n-short { display: none; }

/* ---- v4 */
/* the "view as" chip has one fixed width, so the header lays out identically whoever is chosen */
.viewas-btn { width: 12.5rem; max-width: 12.5rem; display: inline-flex; align-items: center; gap: .3em; justify-content: flex-start; text-align: left; flex: 0 0 auto; }
.viewas-btn .va-k { flex: 0 0 auto; }
.viewas-btn .va-v { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .viewas-btn { width: 9.5rem; max-width: 9.5rem; } }
.viewas-btn2 { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* print: a clean page. No navigation, buttons, toggles, "view as" or messaging blocks; sources printed inline */
@media print {
  .back-link, .p-topbar .btn-quiet, .src-toggle, .viewas-btn, .viewas-btn2, .viewas, .big-btn, .lang, .menu-btn, .mainnav, .skip,
  .know, .btn-wa, .know-acts, .btn-quiet, .btn-primary, button.btn-quiet, button.icon-btn, button.va-pair, [data-copy], .tabs, .rel-action, .yl-rel, .tree-tools, .tree-find, .path-nav, .story-next, .flow, .otd, .popover, .tooltip, .lightbox { display: none !important; }
  .p-topbar { display: block; border: 0; margin: 0; padding: 0; }
  .fact-src, .srclist { display: block !important; }
  .fact-src { margin: .1rem 0 .5rem 1.4rem; font-size: 8.5pt; color: #333; }
  .src-inline { display: block !important; }
  .src-inline > summary { display: none !important; }
  .src-inline > .srclist { display: block !important; font-size: 8.5pt; }
  details.src-inline:not([open]) > .srclist { display: block !important; }
  .your-line { border: 1px solid #999; break-inside: avoid; }
  .conf { print-color-adjust: exact; -webkit-print-color-adjust: exact; border: 0; background: none; padding: 0; }
}
.atlas-legend { margin: .6rem 0 1rem; border: 1px solid var(--rule); border-radius: 6px; padding: .45rem .7rem; background: var(--raised); font-size: .85rem; }
.atlas-legend summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.lg-list, .lg-conf { list-style: none; margin: .3rem 0 0; padding: 0; }
.lg-list li, .lg-conf li { display: flex; align-items: center; gap: .55rem; margin: .25rem 0; color: var(--ink-2); line-height: 1.3; }
.lg-list svg { flex: 0 0 34px; }
.lg-sw { display: inline-flex; flex: 0 0 34px; gap: 2px; } .lg-sw i { width: 5px; height: 12px; border-radius: 1px; display: block; }
.lg-k { margin: .5rem 0 0; color: var(--ink-2); font-style: italic; }
.lg-conf { display: flex; flex-wrap: wrap; gap: 0 .9rem; } .lg-conf li { gap: .3rem; }
/* your line, relation action */
.your-line { border: 1px solid var(--rule); border-left: 4px solid var(--thread); background: var(--raised); border-radius: 6px; padding: .9rem 1.1rem; margin: 1rem 0 1.4rem; }
.your-line.on-home { max-width: var(--maxw, 72rem); margin: 0 auto 2.5rem; width: calc(100% - 2 * var(--gut)); }
.your-line .mini-h { margin-top: 0; }
.yl-list { margin: .3rem 0 .6rem; padding-left: 1.1rem; }
.yl-list li { margin: .2rem 0; }
.yl-k { margin: .4rem 0 .1rem; font-size: .85rem; font-style: italic; color: var(--ink-2); }
.yl-places { margin: 0 0 .6rem; }
.yl-subj { font-weight: 600; margin: .2rem 0 .4rem; }
.rel-action { margin: .5rem 0 0; }
.tree-focus .btn-quiet + .btn-quiet { margin-left: .2rem; }
.fan-seg.kbd path { fill-opacity: .72 !important; stroke: var(--ink) !important; stroke-width: 3 !important; stroke-opacity: 1 !important; }
.fan-seg:focus { outline: none; }
.chip-line[aria-current="true"] { outline: 2px solid var(--br); outline-offset: 1px; }
.fan-ring { fill: none !important; stroke: var(--ink); stroke-width: 3; stroke-opacity: 1; pointer-events: none; }

/* ================================================================ v5 */
:root { --tabs: 0px; }
body.has-tabs { --tabs: 44px; }
body.has-tabs .atlas { height: calc(100svh - var(--hdr) - var(--tabs)); }
body.has-tabs .treeview { height: calc(100svh - var(--hdr) - var(--tabs)); }
.tabs { display: flex; align-items: center; gap: 1rem; min-height: var(--tabs); padding: 0 var(--gut); border-bottom: 1px solid var(--rule); background: var(--paper); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs-k { font-family: var(--display); font-style: italic; color: var(--ink-2); white-space: nowrap; font-size: 1rem; }
.tabs ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.tabs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 .8rem; border-radius: 999px; text-decoration: none; white-space: nowrap; font-size: .95rem; color: var(--ink); }
.tabs a:hover { background: var(--raised); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
@media (max-width: 640px) { .tabs-k { display: none; } .tabs { gap: .4rem; } .tabs a { padding: 0 .65rem; font-size: .9rem; } }
.tab-host { display: block; }
.big-btn { display: inline-flex; align-items: center; gap: .35rem; padding: 0 .75rem; font-family: var(--text); font-size: .85rem; }
.big-btn .big-a { font-family: var(--display); font-size: 1rem; }
.hdr.tight .big-btn .big-l, .hdr.tiny .big-btn .big-l { display: none; }
@media (max-width: 640px) { .big-btn .big-l { display: none; } }
.p-code-line { margin: .4rem 0 0; font-size: .9rem; color: var(--ink-2); }
.p-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; color: var(--ink); background: var(--raised); border: 1px solid var(--rule); border-radius: 4px; padding: .05rem .4rem; }
.send-line { font-size: .98rem; margin: .6rem 0 .3rem; }
.empty-state { font-style: italic; color: var(--ink-2); padding: 1.2rem 0; }
/* help us */
.help .page-head { margin-bottom: 1rem; }
.mw-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
.mw-card { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: start; background: var(--raised); border: 1px solid var(--rule); border-radius: 8px; padding: 1rem; }
.mw-frame { display: block; width: 96px; height: 120px; border-radius: 48px / 60px; border: 2px dashed var(--br, var(--ink-3)); background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(135,150,160,.12) 6px 7px); }
.mw-frame.obj { border-radius: 6px; --br: var(--ink-3); }
.mw-n { font-weight: 600; margin: 0 0 .2rem; } .mw-why { margin: 0 0 .3rem; } .mw-who { margin: 0 0 .4rem; font-style: italic; color: var(--ink-2); }
.mw-card .know-acts { margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.mw-card.small { grid-template-columns: 64px 1fr; padding: .7rem; } .mw-card.small .mw-frame { width: 64px; height: 80px; }
.fq-group { margin: 1.6rem 0; }
.fq-list { list-style: none; padding: 0; margin: 0; }
.fq { border-top: 1px solid var(--rule); padding: .9rem 0; }
.fq-q { font-size: 1.12rem; margin: 0 0 .3rem; font-weight: 500; }
.fq-people { margin: 0 0 .4rem; font-size: .92rem; }
.fq .know-acts { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 0; }
.credits-list { list-style: none; padding: 0; } .credits-list li { padding: .5rem 0; border-bottom: 1px solid var(--rule-2); }
/* faces */
.face-ask.pre { font-style: italic; color: var(--ink-3); }
.faces-wanted { margin: 1rem 0 2rem; }
.faces-wanted .mw-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
/* home: hero with faces, then the castaways object, then the thread */
.hero { position: relative; padding: clamp(2rem, 6vh, 4rem) var(--gut) clamp(2rem, 5vh, 3rem); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.hero .cover-title { font-size: clamp(3rem, 7.4vw, 7rem); margin-bottom: 1rem; }
.hero-text { max-width: 44rem; }
.hero-text .btn-primary { margin-top: .8rem; display: inline-block; }
.hero .otd { position: static; max-width: 26rem; }
@media (min-width: 1100px) { .hero { grid-template-columns: minmax(0, 1fr) 20rem; } .hero .otd { grid-column: 2; grid-row: 1; align-self: start; } .portrait-row { grid-column: 1 / -1; } }
.portrait-row { display: flex; flex-wrap: wrap; gap: 1.4rem 2.2rem; align-items: flex-start; }
.portrait-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.pr-item a { display: grid; justify-items: center; text-align: center; width: 8.4rem; text-decoration: none; color: var(--ink); }
.pr-img, .pr-frame { display: block; width: 7.6rem; height: 9.6rem; border-radius: 3.8rem / 4.8rem; overflow: hidden; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--br), 0 10px 24px -14px rgba(23,33,44,.55); background: var(--raised); }
.pr-img img { width: 100%; height: 100%; object-fit: cover; filter: url(#sepia) saturate(.9); }
.pr-frame { box-shadow: none; border: 2px dashed var(--br); background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(135,150,160,.14) 6px 7px); }
.pr-n { font-family: var(--display); font-size: 1.2rem; margin-top: .5rem; }
.pr-r { font-size: .82rem; color: var(--ink-2); line-height: 1.3; }
.pr-miss { border-left: 1px solid var(--rule); padding-left: 2rem; }
.pr-cap { margin: 0 0 .6rem; font-style: italic; font-size: 1.05rem; }
@media (max-width: 760px) { .pr-miss { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1rem; } .pr-item a { width: 6.4rem; } .pr-img, .pr-frame { width: 5.8rem; height: 7.4rem; } .pr-n { font-size: 1.05rem; } }
.cover { min-height: min(86svh, 54rem); }
.castaways { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; padding: clamp(2rem, 5vh, 3.5rem) var(--gut); border-bottom: 1px solid var(--rule); align-items: center; background: #1f262d; color: #eef1ee; }
.castaways .cw-img img { width: 100%; height: auto; display: block; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); }
.castaways .fig-btn { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.castaways .sec-h { color: #fff; } .castaways .lede { color: #dfe4e0; } .castaways a { color: #fff; } .castaways .fig-credit { color: #aab4b0; }
.castaways .send-line { color: #dfe4e0; } .castaways .btn-quiet { color: #fff; border-color: #cfd6d2; }
@media (max-width: 860px) { .castaways { grid-template-columns: 1fr; } }
/* objects: the family's own documents, mounted */
.obj-k { font-family: var(--display); font-style: italic; color: var(--ink-2); margin: 1.2rem 0 .3rem; font-size: 1.05rem; }
.fig.object .fig-btn { background: #fbfcfa; padding: 10px; box-shadow: 0 0 0 1px var(--rule), 0 16px 34px -20px rgba(23,33,44,.65); }
.hl-wrap { position: relative; display: block; }
.hl-wrap img { display: block; width: 100%; height: auto; }
.hl { position: absolute; border: 2.5px solid var(--thread); border-radius: 3px; background: rgba(184,38,47,.12); box-shadow: 0 0 0 3px rgba(255,255,255,.5); pointer-events: none; }
.which-one { border-left: 4px solid var(--thread); background: var(--raised); padding: .8rem 1rem; margin: 1rem 0; }
.which-one .know-acts { display: flex; flex-wrap: wrap; gap: .4rem; }
/* lightbox: the picture never runs under its caption */
.lightbox { grid-template-rows: minmax(0, 1fr) auto; height: 100vh; height: 100dvh; box-sizing: border-box; }
.lb-img { overflow: hidden; }
.lb-img img { max-height: 100%; max-width: 100%; height: auto; width: auto; }
.lb-cap { max-height: 34vh; overflow-y: auto; position: relative; z-index: 1; }
.credit-more { display: inline; font-size: inherit; }
.credit-more summary { display: inline; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; color: inherit; list-style: none; }
.credit-more summary::-webkit-details-marker { display: none; }
.credit-more[open] > span { display: block; margin-top: .2rem; }
@media print { .gl { border: 0 !important; background: none !important; padding: 0 !important; font: inherit !important; color: inherit !important; text-decoration: none !important; display: inline !important; } .credit-more summary { display: none; } .credit-more > span { display: inline !important; } }
/* Story III: testimony and other voices */
.testi-k { font-family: var(--display); font-style: italic; color: var(--thread-ink, var(--thread)); margin: .2rem 0 .4rem; font-size: 1.05rem; }
.testi-k.head { font-size: 1.2rem; }
.testimony { margin: .4rem 0 1rem; }
blockquote.pull { margin: .5rem 0 .8rem; padding: .2rem 0 .2rem 1rem; border-left: 3px solid var(--thread); }
blockquote.pull p { font-family: var(--display); font-size: 1.35rem; line-height: 1.35; margin: 0; }
blockquote.pull footer { font-size: .85rem; color: var(--ink-2); margin-top: .2rem; }
.ov-lede { font-size: 1.05rem; }
.voices { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .9rem; }
.voice { border: 1.5px dashed var(--ink-3); border-radius: 10px; padding: .8rem 1rem; background: var(--raised); }
.voice-frame { font-family: var(--display); font-size: 2rem; line-height: .6; color: var(--ink-3); display: block; }
.voice-n { font-weight: 600; margin: .3rem 0 .1rem; }
.voice-q { font-style: italic; margin: 0 0 .4rem; }
.voice .know-acts { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
/* transcription cards: plainly a transcription, never a facsimile */
.tr-card { border: 1px solid var(--rule); border-top: 3px solid var(--ink); background: var(--raised); border-radius: 4px; padding: 1rem 1.1rem; margin: 1rem 0 1.4rem; font-size: .98rem; }
.tr-k { margin: 0; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.tr-h { font-family: var(--display); font-size: 1.15rem; margin: .15rem 0 0; }
.tr-gloss { display: block; font-size: .86rem; color: var(--ink-2); font-style: italic; }
dt .tr-gloss { display: inline; }
.tr-fields { margin: .8rem 0 .6rem; }
.tr-f { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: .2rem 1rem; padding: .35rem 0; border-top: 1px dotted var(--rule); }
.tr-f dt { color: var(--ink-2); font-size: .9rem; } .tr-f dd { margin: 0; }
.tr-v mark { background: color-mix(in srgb, var(--thread) 18%, transparent); color: inherit; padding: 0 .1em; border-bottom: 2px solid var(--thread); }
.tr-foot { display: grid; gap: .3rem; margin-top: .4rem; }
.tr-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; font-weight: 600; }
.tr-note, .tr-disc { margin: 0; font-size: .88rem; color: var(--ink-2); } .tr-disc { font-style: italic; }
@media (max-width: 600px) { .tr-f { grid-template-columns: 1fr; } }
@media print { .tr-card { break-inside: avoid; } }

/* ================================================================ v5.1 (visitor 3, phone) */
/* "View as" on phones: a compact chip in the header, and first in the menu */
.viewas-mini { display: none; position: relative; align-items: center; justify-content: center; width: 40px; height: 36px; border: 1px solid var(--ink); border-radius: 999px; background: var(--raised); color: var(--ink); cursor: pointer; flex: 0 0 auto; }
.vm-dot { position: absolute; top: 3px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--thread); }
.vm-dot[hidden] { display: none; }
.hdr.tight .viewas-mini { display: inline-flex; }
@media (max-width: 640px) { .viewas-mini { display: inline-flex; } .hdr { gap: .4rem; } .big-btn { padding: 0 .55rem; } }
.hdr.compact .mainnav { display: none; flex-direction: column; }
.hdr.compact.open .mainnav { display: flex; }
.hdr.compact .nav-extra { order: -1; }
/* person pages never leave the viewport */
.p-head > * { min-width: 0; }
.p-name, .p-alt, .p-rel { overflow-wrap: anywhere; }
.btn-quiet { max-width: 100%; }
@media (max-width: 700px) {
  .p-head { grid-template-columns: minmax(0, 1fr); }
  .p-name { font-size: clamp(1.9rem, 9.5vw, 2.8rem); hyphens: auto; }
  .rel-action .btn-quiet, .tree-focus .btn-quiet, .know-acts .btn-quiet, .tmob-open .btn-quiet, .yl-rel { white-space: normal; text-align: left; line-height: 1.3; }
  .p-topbar { flex-wrap: wrap; }
}
/* lightbox on phones: the photo is centred and the caption fits */
.lightbox { grid-template-columns: 56px minmax(0, 1fr) 56px; }
.lb-cap { max-width: min(46rem, 100%); box-sizing: border-box; }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: minmax(0, 1fr); padding: 3.6rem .6rem .6rem; background: rgba(14,20,26,.985); }
  .lb-img, .lb-cap { grid-column: 1; }
  .lb-prev, .lb-next { position: absolute; top: 45%; z-index: 2; background: rgba(14,20,26,.6) !important; }
  .lb-prev { left: .4rem; } .lb-next { right: .4rem; }
  .lb-close { top: .6rem; right: .6rem; }
}
/* stories on phones: a smaller map, so the text keeps most of the screen */
@media (max-width: 860px) {
  .story-map { height: 30svh !important; }
  .story-map:has(.map-key) .globe-wrap { height: calc(100% - 2.4rem); }
  .map-key { font-size: .62rem; }
}
/* tree on phones: the selected person and its actions wrap instead of being cut */
@media (max-width: 700px) {
  .tree-focus { flex-wrap: wrap; gap: .4rem .6rem; }
  .tree-focus strong { overflow-wrap: anywhere; }
  .tree-focus > span { flex: 1 1 10rem; min-width: 0; }
  .tree-hint { position: static !important; }
}
/* atlas on phones: the chapter chips wrap rather than clip */
@media (max-width: 700px) { .marks { flex-wrap: wrap; overflow-x: visible; } }
.start-here { margin-top: .6rem; }
.btn-quiet.copied, .copied { background: var(--ink) !important; color: var(--paper) !important; }

/* ================================================================ v6 */
/* phone tree: three generations */
.tgp { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .6rem; }
.tgp-g { display: grid; gap: .35rem; align-content: start; border: 1px dashed var(--rule); border-radius: 8px; padding: .4rem; }
.tgp-k { margin: 0; font-size: .78rem; font-style: italic; color: var(--ink-2); }
.tcard.sm { padding: .35rem .45rem; gap: .45rem; min-height: 48px; }
.tcard.sm .tc-n { font-size: .9rem; line-height: 1.2; overflow-wrap: anywhere; }
.tcard.sm .tc-m, .tcard.sm .tc-r { font-size: .74rem; }
.trow.two { grid-template-columns: 1fr 1fr; }
.trow.two .tcard .tc-n { overflow-wrap: anywhere; }
.tmob-hint { margin-top: 1rem; }
/* "Not listed?" */
.va-new { margin-top: .9rem; border-top: 1px solid var(--rule); padding-top: .6rem; }
.va-new summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.va-new input[type="search"], .va-new input[type="text"] { width: 100%; box-sizing: border-box; }
.va-rel { border: 0; padding: 0; margin: .4rem 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.va-rel label { display: inline-flex; gap: .35rem; align-items: center; min-height: 32px; }
.va-acts { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0 .3rem; }
.va-acts .btn-primary { border: 0; cursor: pointer; font: inherit; }
.viewas { max-height: calc(100vh - var(--hdr) - 16px); overflow-y: auto; }
.find-you { margin: 1rem 0; padding: .8rem 1rem; border-left: 3px solid var(--thread); background: var(--raised); }
.find-you p { margin: 0 0 .5rem; } .find-you.inline { border: 0; background: none; padding: 0; }
/* atlas: the play control is large and labelled, on every screen */
.play { font-size: 1rem; min-height: 48px; padding: .6rem 1.2rem .6rem 1rem; font-weight: 600; }
.play svg { width: 22px; height: 22px; }
@media (max-width: 700px) { .play span { display: inline !important; } .play { flex: 1 1 auto; justify-content: center; } }
/* answers received */
.answers { list-style: none; padding: 0; margin: .4rem 0 .6rem; display: grid; gap: .6rem; }
.answer { border-left: 3px solid var(--g-verified, #1D6447); background: var(--raised); padding: .5rem .8rem; border-radius: 0 6px 6px 0; }
.ans-q { margin: 0 0 .2rem; font-weight: 600; }
.ans-t { margin: 0; } .ans-t p { margin: 0; font-size: 1.02rem; }
.ans-by { margin: .3rem 0 0; font-size: .85rem; color: var(--ink-2); font-style: italic; }
.home-answers:empty { display: none; }
.recent-answers { margin: 1.5rem 0; }
.story-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)) !important; }
/* family (cousins) tree */
.treeview.famview { height: auto; min-height: calc(100svh - var(--hdr) - var(--tabs)); }
.fam-host { padding: 1rem var(--gut) 2rem; }
.fam-lede { max-width: 46rem; color: var(--ink-2); margin: 0 0 1rem; }
.fam-scroll { overflow-x: auto; padding-bottom: .6rem; }
.fam-canvas { position: relative; margin: 0 auto; }
.fam-lines { position: absolute; inset: 0; pointer-events: none; }
.fam-lines path { fill: none; stroke: var(--ink-3); stroke-width: 1.4; }
.fam-lines .fl-couple { stroke: var(--ink-2); stroke-width: 2; }
.fam-lines .fl-line.sp { stroke-dasharray: 5 4; }
.fam-slot { position: absolute; }
.fcard { display: flex; gap: .55rem; align-items: center; background: var(--raised); border: 1px solid var(--rule); border-left: 4px solid var(--br); border-radius: 6px; padding: .45rem .55rem; text-decoration: none; color: var(--ink); min-height: 58px; box-sizing: border-box; }
.fcard .tc-n { display: block; font-weight: 600; font-size: .92rem; line-height: 1.2; overflow-wrap: anywhere; }
.fcard .tc-m, .fcard .tc-r { display: block; font-size: .76rem; color: var(--ink-2); }
.fcard.pair { box-shadow: 0 0 0 2px var(--thread); }
.fcard.spp { opacity: .9; border-style: dashed; border-left-style: solid; }
.fcard.poss { border-style: dashed; }
.fcard:hover, .fcard:focus-visible { border-color: var(--ink); }
.fam-others { margin-top: 1rem; font-size: .92rem; }
.fam-mob .fam-gp, .fam-mob .fam-couple, .fam-mob .fam-kids { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.fam-block { margin-top: .4rem; padding: .5rem; border-radius: 8px; }
.fam-block.is-pair { background: color-mix(in srgb, var(--thread) 6%, transparent); }
.fam-sp-par { margin: .3rem 0 0; }
body .treeview.famview, body.has-tabs .treeview.famview { height: auto !important; overflow: visible; }
/* phone tree: one page scroll, no nested scrolling box */
@media (max-width: 700px) { body .treeview, body.has-tabs .treeview { height: auto !important; } .treeview.mobile .tree-canvas { overflow: visible !important; height: auto !important; flex: none; } }

/* ================================================================ writer review (Dec 2026): presentation and clarity */
/* home: the empty portrait frames picked up the generic .empty padding (3rem above and below), which pushed them
   far below their caption and opened big gaps on phones; the italic names are kept as the quiet mark of a missing face */
.pr-item.empty { padding: 0; }
/* the e-mail button: icon and word no longer touch */
.btn-mail { display: inline-flex; align-items: center; gap: .4rem; }
.btn-mail svg { flex: none; }
/* the "your first name" field matches the other fields of View as */
.va-new input[type="text"] { font: inherit; font-size: .95rem; padding: .45rem .6rem; border: 1px solid var(--ink-3); border-radius: 4px; background: var(--paper); color: var(--ink); min-height: 40px; }
/* big page titles: a little air between the title and its lede */
.page-head .page-h + .lede { margin-top: .7rem; }
/* most-wanted cards: the buttons are a row of their own under the text */
.mw-card > .know-acts { grid-column: 2; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.mw-card .mw-text { min-width: 0; }
.mw-card > .mw-frame { grid-row: span 2; }
.mw-card { align-content: start; }
/* Who helped: whose pages the help is about, on its own line */
.credits-list .cr-people { display: block; font-size: .92rem; margin-top: .15rem; }
@media (max-width: 600px) {
  /* phones: the buttons use the whole width of the card instead of a narrow column beside the frame */
  .mw-card { grid-template-columns: 64px minmax(0, 1fr); }
  .mw-card .mw-frame { width: 64px; height: 80px; }
  .mw-card > .know-acts { grid-column: 1 / -1; }
  .mw-card > .mw-frame { grid-row: auto; }
  /* "Where next?": one link per line instead of a label with a link beside it and one wrapped below */
  .flow { flex-direction: column; align-items: flex-start; gap: .9rem; }
}
@media (max-width: 760px) {
  /* home: the four missing grandparents sit two by two (each couple on a row) instead of three and one */
  .pr-miss ul { display: grid; grid-template-columns: repeat(2, 6.4rem); gap: 1rem 1.6rem; }
}
@media (max-width: 900px) {
  /* atlas on phones: the years sit right under the slider, not under the chapter buttons */
  .scrub { padding-bottom: 0; }
  .scrub-ticks { position: relative; left: auto; right: auto; bottom: auto; display: block; margin: 0 8px; }
}

/* ================================================================ v6.2 (writer review, round 2) */
/* home: the album's own introduction ("it belongs to everyone they are related to") now opens the page, under the subtitle */
.hero-intro { max-width: 34rem; margin: .2rem 0 1.4rem; font-size: 1.02rem; line-height: 1.55; color: var(--ink-2); text-shadow: none; border-left: 2px solid var(--thread); padding-left: .9rem; }
/* Faces on phones: four most-wanted cards, then "See all (N)"; laptops show them all */
.mw-more { display: none; }
@media (max-width: 640px) {
  .faces-wanted .mw-list:not(.open) .mw-extra { display: none; }
  .mw-more { display: block; margin: 0 0 .6rem; }
}
/* Family tree on laptops: "Fit to screen" scales the drawing to the window instead of scrolling sideways */
.fam-fit { margin: 0 0 .5rem; }
.fam-scroll.fitted { overflow: hidden; }
/* person pages on phones: "Show sources" sits with the other top links instead of hanging alone on the right */
@media (max-width: 600px) { .p-topbar .src-toggle { margin-left: 0; } }
/* Faces on phones: the wall of 190 frames was ~24,000px tall in two columns. Three narrower columns, smaller frames,
   and the repeated "No photo of … yet" line left to the empty frame itself (the most-wanted cards above carry the ask) */
@media (max-width: 640px) {
  .faces { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem .6rem; }
  .face-img { width: 84px; height: 105px; }
  .face-frame svg { width: 70px; height: auto; }
  .face-n { font-size: .84rem; overflow-wrap: anywhere; }
  .face-m { font-size: .78rem; }
  .face-ask { display: none; }
}

/* ---------------------------------------------------------------- hosting round (Dec 2026): the journey globe opens the album
   Victor's decision: the globe with the red thread is the first screen, filling the window, with the title, subtitle,
   introduction and "Open the album" laid over its paper side. The portrait row follows at once. */
.cover.cover-open { min-height: calc(100svh - var(--hdr)); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; border-bottom: 0; }
.cover-open .cover-text { align-self: center; padding: clamp(2rem, 6vh, 4.5rem) var(--gut); max-width: 46rem; }
/* a soft paper scrim behind the words, so the title never sits on the busy part of the map */
.cover-open::after { background: linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 96%, transparent) 30%, color-mix(in srgb, var(--paper) 72%, transparent) 46%, transparent 62%); }
.cover-open .cover-title { font-size: clamp(3.2rem, 6.1vw, 6.6rem); margin: 0 0 1.1rem; text-wrap: balance; }
.cover-open .cover-sub { color: var(--ink); }
.cover-open .hero-intro { margin: 1rem 0 1.4rem; }
.cover-acts { margin: 0; display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; }
.cover-acts .btn-primary { margin: 0; }
.hero-faces { padding-top: clamp(1.8rem, 4.5vh, 2.8rem); border-top: 1px solid var(--rule); }
@media (min-width: 1100px) { .hero.hero-faces { grid-template-columns: minmax(0, 1fr) 18rem; align-items: start; } .hero-faces .portrait-row { grid-column: 1; grid-row: 1; } .hero-faces .otd { grid-column: 2; grid-row: 1; } }
@media (max-width: 760px) {
  .cover.cover-open { min-height: calc(100svh - var(--hdr)); display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
  .cover-open .cover-globe { height: 44svh; min-height: 15rem; }
  .cover-open::after { background: linear-gradient(0deg, var(--paper) 0%, var(--paper) 52%, color-mix(in srgb, var(--paper) 70%, transparent) 60%, transparent 70%); }
  .cover-open .cover-text { margin-top: -4rem; padding: 0 var(--gut) 2rem; }
  .cover-open .cover-title { font-size: clamp(2.7rem, 13vw, 4rem); line-height: .95; }
  .cover-open .cover-year { top: .7rem; bottom: auto; }
}

/* A sturdier title: Bodoni Moda is a variable font (weight 400–900, optical size 6–96). At display sizes the browser
   picks optical size 96, whose hairlines all but vanish ("the", "Fulys"). A text-range optical size and a heavier
   weight keep the same face with strokes that hold up, and the ink is a shade darker than body text. */
.cover-title { font-weight: 600; font-optical-sizing: none; font-variation-settings: 'opsz' 28; color: #0D141C; letter-spacing: -.02em; }
.wordmark { font-weight: 600; font-optical-sizing: none; font-variation-settings: 'opsz' 18; }
