/* The Staab Family Ancestry — colours and type from the print kit (staab_build.js, kit_r30):
   Spessart forest green leads, barn red marks the direct line, prairie wheat is the fine ornament. */
:root {
  --green: #2F4A3A; --red: #8E3B2A; --wheat: #B4924A; --ink: #2A2620; --muted: #6B6459;
  --tint: #EEF1EC; --cream: #F4ECDA; --line: #8A9187; --paper: #FBF8F2; --card: #FFFFFF;
  --times: #F4EFE4; --title-ink: #1E222C; --title-red: #8C201A;
  --serif: 'Caladea', Cambria, Georgia, serif;
  --display: 'Cormorant Garamond', 'Baskerville Old Face', Georgia, serif;
  --sc: 'Cormorant SC', 'Cormorant Garamond', Georgia, serif;
  --script: 'Pinyon Script', cursive;
  --read-size: 19px;
  --tab-h: 62px;
  --badge: 50px; /* room under the tab bar for Netlify's "Powered by Netlify" badge, which the free plan adds (58 until 6 Nov 2026: too much empty strip on an iPhone; 40 until 10 Nov 2026: the badge covered the Tree and Records labels) */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #E9E3D6; --muted: #B3AA99; --paper: #1B1D1A; --card: #242723; --tint: #263028;
    --cream: #2C2A24; --times: #2A2A24; --green: #9DBFA6; --red: #D9876F; --wheat: #CDAE6A;
    --title-ink: #EFE9DC; --title-red: #E0907A; --line: #6F766D;
  }
}
:root[data-theme="dark"] {
  --ink: #E9E3D6; --muted: #B3AA99; --paper: #1B1D1A; --card: #242723; --tint: #263028;
  --cream: #2C2A24; --times: #2A2A24; --green: #9DBFA6; --red: #D9876F; --wheat: #CDAE6A;
  --title-ink: #EFE9DC; --title-red: #E0907A; --line: #6F766D;
}
:root[data-theme="sepia"] { --paper: #F3E9D2; --card: #FAF3E2; --times: #EADDBF; --tint: #E6E3CF; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.55;
  padding-bottom: calc(var(--tab-h) + var(--badge) + env(safe-area-inset-bottom)); }
a { color: var(--green); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--card); padding: 6px 10px; z-index: 99; }
main { outline: none; min-height: 70vh; }

/* ---------- top bar and tabs ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 16px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--wheat) 55%, transparent); }
.brand { text-decoration: none; color: var(--title-ink); font-family: var(--display); font-weight: 600; font-size: 22px; white-space: nowrap; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; }
.brand-orn { width: 18px; height: 20px; align-self: center; margin-right: 2px; }
.brand-sc { font-family: var(--sc); font-size: 13px; letter-spacing: .18em; color: var(--green); margin-left: 4px; }
.topnav { display: none; gap: 22px; }
.topnav a { text-decoration: none; color: var(--ink); font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.topnav a.on { color: var(--red); border-color: var(--red); }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-around;
  height: calc(var(--tab-h) + var(--badge) + env(safe-area-inset-bottom)); padding-bottom: calc(var(--badge) + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid color-mix(in srgb, var(--wheat) 60%, transparent); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-decoration: none; color: var(--muted); font-size: 11px; letter-spacing: .03em; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a.on { color: var(--red); }
@media (min-width: 860px) {
  .topnav { display: flex; } .tabbar { display: none; } body { padding-bottom: var(--badge); } .brand { font-size: 24px; }
}
@media (max-width: 380px) { .brand-sc { display: none; } }

/* ---------- shared ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.orn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px auto; }
.orn i { width: 56px; height: 1px; background: var(--wheat); }
.orn .tulip { width: 26px; height: 28px; flex: 0 0 26px; }
.orn i { width: 64px; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--green); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--title-ink); line-height: 1.15; margin: 0; }
h2 { font-size: 30px; }
.lede { color: var(--muted); font-style: italic; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); text-decoration: none; font-size: 14px; cursor: pointer; }
.chip.line { border-color: var(--red); color: var(--red); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 14px;
  border-bottom: 1px solid var(--wheat); padding-bottom: 6px; }
.section-h h3 { font-size: 22px; }
.note { font-size: 14px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 8px; border: 1px solid var(--green);
  background: var(--green); color: #fff; text-decoration: none; font-size: 15px; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--green); }

/* ---------- home ---------- */
.title-page { position: relative; text-align: center; padding: 46px 16px 10px; overflow: hidden; isolation: isolate; }
.title-page > *:not(.register) { position: relative; z-index: 1; }
.title-page::after { content: ""; position: absolute; left: 50%; top: 26px; transform: translateX(-50%); z-index: 0; pointer-events: none;
  width: min(640px, 100%); height: 330px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, var(--paper) 0%, color-mix(in srgb, var(--paper) 88%, transparent) 45%, color-mix(in srgb, var(--paper) 45%, transparent) 72%, transparent 100%); }
.title-page .register { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.title-page .register img { width: min(1100px, 170%); max-width: none; transform: rotate(-4deg) translateY(-6%); opacity: .28; mix-blend-mode: multiply;   /* .2 to .28, contrast 1.15 to 1.25: a little darker (the researcher, 2 Nov 2026) */
  filter: sepia(.55) contrast(1.25) brightness(1);
  -webkit-mask-image: radial-gradient(ellipse 52% 46% at 50% 50%, #000 30%, transparent 100%); mask-image: radial-gradient(ellipse 52% 46% at 50% 50%, #000 30%, transparent 100%); }
:root[data-theme="dark"] .title-page .register img { mix-blend-mode: screen; filter: invert(1) sepia(.6) brightness(.9); opacity: .22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="sepia"]) .title-page .register img { mix-blend-mode: screen; filter: invert(1) sepia(.6) brightness(.9); opacity: .22; } }
.title-page .the { font-family: var(--script); color: var(--title-red); font-size: 56px; line-height: .8; display: block; margin-bottom: -26px; }
.reg-note { display: block; margin: 18px auto 0; background: none; border: 0; cursor: pointer; font-size: 13px; font-style: italic; color: var(--muted);
  text-decoration: underline; text-decoration-color: var(--wheat); text-underline-offset: 3px; max-width: 520px; }
.title-page .name { font-family: var(--display); font-weight: 500; color: var(--title-ink); font-size: clamp(68px, 17vw, 112px); line-height: .95; display: block; }
.title-page .fa { font-family: var(--sc); letter-spacing: .4em; font-size: 17px; color: var(--title-ink); display: block; margin-top: 6px; padding-left: .4em; }
.title-page .sub { font-family: var(--display); font-style: italic; color: var(--title-red); font-size: 21px; display: block; margin-top: 8px; }
.title-page p { max-width: 560px; margin: 8px auto 0; color: var(--muted); }
.choose { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 28px auto 20px; }
@media (min-width: 640px) { .choose { grid-template-columns: 1fr 1fr; } }
.way { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; text-align: left; padding: 18px; border-radius: 12px;
  background: var(--card); border: 1px solid color-mix(in srgb, var(--wheat) 55%, transparent); text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--wheat) 30%, transparent); transition: transform .15s, box-shadow .15s; }
.way:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.way svg { width: 54px; height: 54px; fill: none; stroke: var(--red); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.way h3 { font-size: 24px; } .way p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.line-strip { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 -16px; padding-left: 16px; scroll-padding-left: 16px; }
.line-strip::after { content: ""; flex: 0 0 16px; }
.line-strip a { scroll-snap-align: start; flex: 0 0 auto; text-decoration: none; color: var(--ink); display: flex; align-items: center; }
.line-strip .gen { background: var(--red); color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 14px; line-height: 1.25; text-align: center; min-width: 120px; }
.line-strip .gen small { display: block; opacity: .85; font-size: 12px; }
.line-strip .arrow { width: 22px; height: 2px; background: var(--red); flex: 0 0 22px; align-self: center; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 16px 40px; }

/* ---------- contents ---------- */
.toc-part { margin-top: 28px; }
.toc-part h3 { font-size: 15px; font-family: var(--serif); letter-spacing: .18em; text-transform: uppercase; color: var(--green); font-weight: 400;
  border-bottom: 1px solid var(--wheat); padding-bottom: 6px; }
.toc-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: baseline; padding: 12px 2px;
  border-bottom: 1px dotted color-mix(in srgb, var(--line) 60%, transparent); text-decoration: none; color: var(--ink); }
.toc-item .no { font-family: var(--display); font-size: 22px; color: var(--red); }
.toc-item .t { font-size: 18px; } .toc-item .y { font-size: 14px; color: var(--muted); }
.toc-item.soon { color: var(--muted); } .toc-item.soon .no { color: var(--line); }
.toc-item.soon .t::after { content: "  · coming"; font-size: 13px; font-style: italic; }

/* ---------- reader ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--red); z-index: 40; width: 0; }
/* 27 Oct 2026, 09:39, the researcher: the framed-over-blur look of 26 Oct (23:29) taken out, back to the full-width painting, and the paintings a little taller (52vh to 62vh) */
.ch-art { position: relative; max-height: 62vh; overflow: hidden; background: var(--green); }
.ch-art img { width: 100%; height: 62vh; object-fit: cover; object-position: center 72%; opacity: .95; }
.ch-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(47,74,58,.0) 62%, var(--paper) 100%); }
.ch-art .credit { position: absolute; right: 10px; top: 10px; z-index: 2; font-size: 11px; color: #fff; background: rgba(0,0,0,.35); padding: 3px 8px; border-radius: 4px; }
.ch-head { text-align: center; margin-top: -60px; position: relative; z-index: 2; }
.ch-head .no { font-family: var(--sc); letter-spacing: .3em; color: var(--green); font-size: 14px; }
.ch-head h1 { font-size: clamp(38px, 9vw, 58px); margin-top: 4px; }
.ch-head .yrs { font-family: var(--display); font-style: italic; color: var(--red); font-size: 22px; }
.reader { font-size: var(--read-size); line-height: 1.68; }
.reader p { margin: 0 0 1em; hyphens: auto; }
.reader p.lead { font-style: italic; color: var(--muted); font-size: 1.05em; text-align: center; margin: 6px 0 22px; }
.reader strong { color: var(--red); font-weight: 700; }
.reader aside.times { background: var(--times); border-left: 3px solid var(--wheat); padding: 14px 16px; margin: 1.3em -4px; font-size: .9em; line-height: 1.6; border-radius: 0 6px 6px 0; }
.reader aside.times strong.tl { color: var(--green); letter-spacing: .04em; }
a.dl { color: inherit; text-decoration: underline; text-decoration-color: var(--wheat); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer;
  background: color-mix(in srgb, var(--wheat) 12%, transparent); border-radius: 2px; }
a.dl::after { content: ""; display: inline-block; width: .8em; height: .8em; margin-left: 4px; vertical-align: -1px;
  background: var(--green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h9l4 4v14H6z' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3h9l4 4v14H6z' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") center/contain no-repeat; }
a.dl:hover { background: color-mix(in srgb, var(--wheat) 28%, transparent); }
.reader-tools { position: sticky; top: 58px; z-index: 10; display: flex; justify-content: flex-end; align-items: center; gap: 6px; padding: 8px 0 12px; background: linear-gradient(180deg, var(--paper) 78%, rgba(0,0,0,0)); }
.reader-tools button { border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 14px; }
.inline-fig { margin: 1.4em 0; }
.inline-fig .figbtn { display: block; border: 0; padding: 0; background: none; cursor: zoom-in; width: 100%; }
.inline-fig .figbtn img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.inline-fig .figbtn .ph { aspect-ratio: 3 / 4; border-radius: 4px; }
.inline-fig.n2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.inline-fig.n2 figcaption { grid-column: 1 / -1; }
.inline-fig.wide .figbtn .ph { aspect-ratio: 4 / 3; }
@media (min-width: 760px) {
  .inline-fig.side { float: right; clear: right; width: 46%; margin: .35em 0 .9em 22px; }
  .inline-fig.side.n1 { width: 36%; }
}
@media (min-width: 1100px) { .inline-fig.side { margin-right: -60px; } }
.reader aside.times { display: flow-root; }
.reader::after { content: ""; display: block; clear: both; }
.inline-fig figcaption, .fig-cap { font-size: 14px; font-style: italic; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.ch-nav { display: flex; justify-content: space-between; gap: 12px; margin: 36px 0 10px; }
.ch-nav a { flex: 1; padding: 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 15px; }
.ch-nav a small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.ch-nav a.next { text-align: right; }
.ch-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }

/* ---------- thumbnails and gallery ---------- */
.thumb { position: relative; display: block; border: 0; padding: 0; background: var(--cream); border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 4/5; width: 100%; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.doc img { object-fit: cover; object-position: top; filter: sepia(.08); }
.thumb.doc.wide img { object-fit: contain; object-position: center top; background: #F6F1E6; }   /* short, wide clippings: the headline, not a blown-up middle (audit, 9 Nov 2026) */
.thumb .lab { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 12px; line-height: 1.25; color: #fff; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(16,16,12,.55) 30%, rgba(16,16,12,.88)); text-shadow: 0 1px 2px rgba(0,0,0,.6); }   /* 27 Oct 2026: darker, for light pictures */
.thumb .yr { position: absolute; top: 6px; left: 6px; font-size: 11px; background: var(--card); color: var(--ink); padding: 1px 6px; border-radius: 3px; }
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px;
  background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 8px, var(--tint) 8px, var(--tint) 16px); color: var(--muted); font-size: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 420px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0; }
.search { flex: 1 1 200px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; }

/* ---------- viewer (lightbox) ---------- */
.viewer { position: fixed; inset: 0; z-index: 100; background: #121311; color: #EEE; display: flex; flex-direction: column; }
[hidden], .viewer[hidden] { display: none !important; }
.no-match { color: var(--muted); font-style: italic; padding: 18px 0; }
.v-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); }
.v-bar .nav { display: flex; gap: 6px; flex: 0 0 auto; }
.v-bar .ttl { flex: 1; min-width: 0; font-family: var(--display); font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-bar button { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 20px; cursor: pointer; flex: 0 0 40px; }
.v-stage { flex: 1; position: relative; overflow: hidden; touch-action: none; cursor: grab; }
.v-stage img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }
.v-stage .ph { position: absolute; inset: 15%; width: auto; height: auto; border-radius: 8px; }
.v-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.v-zoom button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; cursor: pointer; }
.v-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: 12px; color: #bbb; background: rgba(0,0,0,.4); padding: 4px 10px; border-radius: 99px; pointer-events: none; transition: opacity .6s; }
.v-info { padding: 12px 16px 16px; padding-bottom: calc(var(--badge) + env(safe-area-inset-bottom)); background: #1d1f1b; max-height: 34vh; overflow: auto; font-size: 15px; line-height: 1.5; }
.v-info .src { color: #b9b19f; font-size: 13px; margin-top: 4px; }
.v-info .chips { margin-top: 10px; } .v-info .chip { background: transparent; color: #eee; border-color: #666; }
.v-info.collapsed .more { display: none; }

/* ---------- people ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pcard { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--card);
  border: 1px solid color-mix(in srgb, var(--line) 50%, transparent); text-decoration: none; color: var(--ink); }
.pcard.line { border-left: 4px solid var(--red); }
.pcard .av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--tint); display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 22px; color: var(--green); }
.pcard .av img { width: 100%; height: 100%; object-fit: cover; }
.pcard b { display: block; font-size: 16px; } .pcard small { color: var(--muted); font-size: 13px; }
.profile-top { display: grid; gap: 22px; grid-template-columns: 1fr; padding-top: 22px; }
.profile-art { position: relative; height: 34vh; min-height: 220px; max-height: 400px; overflow: hidden; background: var(--green); }
.profile-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.profile-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, var(--paper) 100%); }
.profile-art .credit { position: absolute; right: 10px; top: 10px; z-index: 2; font-size: 11px; color: #fff; background: rgba(0,0,0,.35); padding: 3px 8px; border-radius: 4px; }
.profile-top.has-art { position: relative; z-index: 2; margin-top: -110px; }
.profile-top.has-art .portrait { max-width: 62%; margin: 0 auto; }
/* with no portrait to overlap the painting, the name starts below it, where the text is readable */
.profile-top.has-art.no-photo { margin-top: -18px; }
@media (min-width: 760px) { .profile-top.has-art.no-photo { margin-top: -18px; } .profile-top.has-art.no-photo > div:last-child { padding-top: 0; } .profile-top.no-photo { grid-template-columns: 1fr; } .profile-top.no-photo > div:first-child:empty { display: none; } }
.profile-top.has-art .fig-cap { text-align: center; }
@media (min-width: 760px) { .profile-top.has-art .fig-cap { text-align: left; } }
@media (min-width: 760px) { .profile-top.has-art { margin-top: -170px; } .profile-top.has-art .portrait { max-width: none; } .profile-top.has-art > div:last-child { padding-top: 150px; } }
@media (min-width: 760px) { .profile-top { grid-template-columns: 300px 1fr; align-items: start; } }
.portrait { border-radius: 4px; overflow: hidden; background: var(--cream); box-shadow: 0 8px 26px rgba(0,0,0,.14); border: 8px solid var(--card); cursor: zoom-in; }
.portrait .ph { aspect-ratio: 3/4; }
.profile-top h1 { font-size: clamp(36px, 8vw, 52px); }
.profile-top .yrs { font-family: var(--display); font-style: italic; font-size: 24px; color: var(--red); }
.fam-block { margin-top: 16px; display: grid; gap: 12px; }
.fam-block .lab { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--red); color: var(--red); margin-left: 6px; vertical-align: middle; }
.timeline { position: relative; margin: 10px 0 0 8px; padding-left: 22px; border-left: 2px solid var(--wheat); }
.tl-item { position: relative; margin: 0 0 16px; }
.tl-item::before { content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--red); }
.tl-item .y { font-family: var(--display); font-size: 20px; color: var(--red); }
.tl-item { --dot: var(--wheat); }
.tl-item::before { border-color: var(--dot); }
.tl-item.k-life { --dot: var(--red); } .tl-item.k-life::before { background: var(--red); }
.tl-item.k-fam { --dot: var(--green); }
.tl-item.k-church { --dot: #6b5a8e; } .tl-item.k-news { --dot: var(--wheat); } .tl-item.k-land { --dot: #7a6a3a; }
.tl-item.k-census, .tl-item.k-voyage, .tl-item.k-service, .tl-item.k-doc { --dot: #5f7f8c; } .tl-item.k-photo { --dot: var(--green); }
.tl-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tl-lab { font-family: var(--sc, var(--display)); font-variant: small-caps; letter-spacing: .06em; font-size: 14px; color: var(--dot); filter: brightness(.85); }
.tl-age { font-size: 13px; color: var(--muted); }
.tl-tx { color: var(--ink); line-height: 1.45; }
.tl-tx a { color: var(--ink); text-decoration-color: var(--wheat); text-underline-offset: 3px; }
.tl-tx small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.tl-rec { all: unset; cursor: pointer; display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; margin-top: 6px; padding: 8px; border-radius: 10px; background: var(--card); box-shadow: 0 1px 2px rgba(42,38,32,.08); max-width: 560px; }
.tl-rec:hover, .tl-rec:focus-visible { box-shadow: 0 0 0 2px var(--wheat); }
.tl-rec b { font-weight: 400; display: block; }
.tl-th { width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: var(--tint); display: block; }
.tl-th img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* ---------- tree ---------- */
.tree-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 18px 0 10px; }
.seg { display: inline-flex; border: 1px solid var(--green); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 9px 14px; cursor: pointer; color: var(--green); font-size: 15px; }
.seg button.on { background: var(--green); color: #fff; }
.root-pick { padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; max-width: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin: 8px 0 14px; }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend .d::before { background: var(--red); } .legend .n::before { background: var(--card); border: 1px solid var(--green); }
.legend .c::before { background: var(--card); border: 1px dashed var(--line); }
/* pedigree: a bracket; on a phone the columns swipe */
.ped { --pcol: minmax(200px, 1fr); position: relative; display: grid; column-gap: 26px; row-gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
@media (max-width: 640px) { .ped { --pcol: 72vw; margin: 0 -16px; padding: 0 16px 10px; scroll-padding: 0 16px; } }
.ped h4 { font-family: var(--serif); font-weight: 400; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin: 0 0 4px; scroll-snap-align: start; }
.ped-slot { display: flex; align-items: center; gap: 4px; position: relative; }
.ped svg.links { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; }
.ped-slot > * { position: relative; z-index: 1; }
.pbox { position: relative; padding: 9px 11px; border-radius: 6px; background: var(--card); border: 1px solid var(--green); cursor: pointer; text-align: left; width: 100%; }
.pbox b { display: block; font-size: 15px; color: var(--green); line-height: 1.25; } .pbox small { color: var(--ink); font-size: 13px; }
.pbox.d { background: var(--red); border-color: var(--red); } .pbox.d b, .pbox.d small { color: #fff; }
.pbox.c { border-style: dashed; border-color: var(--line); background: color-mix(in srgb, var(--card) 70%, var(--paper)); }
.pbox.c b { color: var(--muted); }
.pbox.unk { border: 1px dashed var(--line); background: transparent; color: var(--muted); cursor: default; }
.pbox.unk b { color: var(--muted); font-weight: 400; font-style: italic; font-size: 14px; }
.pbox .cam { position: absolute; right: 8px; top: 8px; width: 14px; height: 14px; opacity: .7; }
.pmore { flex: 0 0 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--red); font-size: 20px; background: var(--card); }
/* fan */
.fan-wrap { position: relative; width: 100%; max-width: 880px; margin: 0 auto; overflow-x: auto; }
@media (max-width: 640px) { .fan-wrap { margin: 0 -16px; width: calc(100% + 32px); } .fan-wrap svg { min-width: 600px; } }
.fan-wrap svg { width: 100%; height: auto; display: block; touch-action: manipulation; }
.fan-seg { cursor: pointer; transition: opacity .15s; } .fan-seg:hover { opacity: .85; }
.fan-tip { position: absolute; min-width: 200px; max-width: 260px; background: var(--card); border: 1px solid var(--wheat); border-radius: 10px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); z-index: 5; }
.fan-tip b { font-size: 17px; display: block; } .fan-tip .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.fan-tip .acts button, .fan-tip .acts a { font-size: 13px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--green); background: transparent; color: var(--green); text-decoration: none; cursor: pointer; }
/* descendants */
.desc { list-style: none; margin: 0; padding: 0; }
.desc ul { list-style: none; margin: 0 0 0 14px; padding: 0 0 0 14px; border-left: 1px solid var(--line); }
.desc li { margin: 6px 0; }
.drow { display: flex; align-items: center; gap: 8px; }
.drow .tog { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 15px; line-height: 1; color: var(--green); }
.drow .tog[disabled] { visibility: hidden; }
.dbox { padding: 7px 12px; border-radius: 7px; background: var(--card); border: 1px solid var(--green); text-decoration: none; color: var(--ink); font-size: 15px; cursor: pointer; text-align: left; }
.dbox.d { background: var(--red); color: #fff; border-color: var(--red); }
.dbox small { opacity: .8; margin-left: 6px; font-size: 13px; }
.dbox .sp { display: block; font-size: 13px; opacity: .85; }
.desc .living { font-size: 13px; color: var(--muted); font-style: italic; padding: 4px 0 4px 36px; }
/* living children not shown: one grey box per family with a count (11 Nov 2026); never a link, never a name */
.dbox.living-box, .chip.living-chip { background: var(--tint); border: 1px solid var(--tint); color: var(--muted); font-style: italic; cursor: default; }   /* solid, not dashed: dashed means "probably, or not yet known" in the tree legend */
.chip.living-chip { font-size: 13px; }
.drow .tog-gap { width: 28px; flex: 0 0 28px; }

/* ---------- the land ---------- */
.way.wide { grid-column: 1 / -1; }
.land-card { display: grid; gap: 2px; margin: 1.4em 0; padding: 16px 18px; border-radius: 10px; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--green) 10%, var(--card)), var(--card)); border: 1px solid var(--wheat); font-size: 15px; }
.land-card b { font-family: var(--display); font-size: 24px; color: var(--title-ink); }
.land-grid { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 10px; }
@media (min-width: 900px) { .land-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } .land-right { position: sticky; top: 76px; } }
.year-big { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--red); text-align: center; }
.scrub { display: flex; align-items: center; gap: 12px; margin: 8px 0 2px; }
.scrub input { flex: 1; accent-color: var(--red); height: 32px; }
.play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 16px; cursor: pointer; flex: 0 0 44px; }
.ticks { position: relative; height: 14px; margin: 0 8px 10px 64px; }
.ticks button { position: absolute; top: 0; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; border: 1.5px solid var(--red); background: var(--card); padding: 0; cursor: pointer; }
.land-map { width: 100%; height: auto; display: block; color: var(--ink); }
.land-map .sec { stroke: var(--line); stroke-width: 1; }
.land-map .ql { stroke: var(--line); stroke-width: .6; stroke-dasharray: 3 3; }
.land-map .sec-t { font-size: 6.5px; fill: var(--muted); letter-spacing: .1em; }
.land-map .twp { stroke: var(--wheat); stroke-width: 1.5; stroke-dasharray: 6 4; }
.land-map .twp-t { font-size: 6.5px; fill: var(--green); letter-spacing: .18em; }
.land-map .parcel { stroke: var(--paper); stroke-width: 1.5; cursor: pointer; transition: fill .35s; }
.land-map .parcel.likely { stroke: var(--card); stroke-dasharray: 3 2; opacity: .6; }
.land-map .parcel.empty { fill: transparent; stroke: var(--line); stroke-dasharray: 2 3; }
.land-map .pl { font-size: 7.5px; font-weight: 700; fill: var(--ink); pointer-events: none; }
.land-map .pl.w { fill: #fff; }
.land-map .map-note { font-size: 6px; font-style: italic; fill: var(--muted); }
.land-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.land-legend i { display: inline-block; width: 18px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.land-legend i.lk { border: 1.5px dashed var(--green); } .land-legend i.nt { border: 1.5px dotted var(--muted); }
.now-card { background: var(--times); border-left: 3px solid var(--red); padding: 12px 14px; border-radius: 0 8px 8px 0; font-size: 16px; }
.now-card p { margin: 4px 0; }
.who { margin-top: 12px; display: grid; gap: 6px; }
.who-row { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; text-align: left; background: var(--card); border: 1px solid color-mix(in srgb, var(--line) 50%, transparent); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.who-row i { width: 16px; height: 16px; border-radius: 3px; margin-top: 3px; }
.who-row b { display: block; font-size: 14px; } .who-row small { color: var(--muted); font-size: 13px; }
.bars-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.land-bars { width: 100%; min-width: 680px; height: auto; display: block; }
.land-bars .grid { stroke: color-mix(in srgb, var(--line) 30%, transparent); stroke-width: .6; }
.land-bars .yr { font-size: 11px; fill: var(--muted); }
.land-bars .band { font-size: 13px; font-weight: 700; fill: var(--green); }
.land-bars .band-l { stroke: var(--wheat); stroke-width: .7; }
.land-bars .rl { font-size: 11.5px; font-style: italic; fill: var(--ink); }
.land-bars .bar { cursor: pointer; stroke-width: .8; }
.land-bars .bar.likely { stroke-dasharray: 4 3; stroke-width: 1.4; }
.land-bars .bl { font-size: 10.5px; font-weight: 700; fill: var(--ink); pointer-events: none; }
.land-bars .bl.w { fill: #fff; }
.land-bars .now { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 3 3; }
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
@media (min-width: 900px) { .events { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.events li { border-bottom: 1px dotted color-mix(in srgb, var(--line) 60%, transparent); padding-bottom: 6px; }
.events button { all: unset; cursor: pointer; display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; padding: 7px 4px 4px; font-size: 15px; line-height: 1.45; }
.events .n { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--red); color: var(--red); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.events b { color: var(--red); margin-right: 6px; }
.chain-host .chain { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--badge) + 12px); transform: translateX(-50%); width: min(520px, calc(100% - 24px)); max-height: 60vh; overflow: auto;
  background: var(--card); border: 1px solid var(--wheat); border-radius: 12px; padding: 16px 18px; box-shadow: 0 16px 40px rgba(0,0,0,.25); z-index: 50; }
@media (min-width: 860px) { .chain-host .chain { bottom: 24px; } }
.chain h3 { font-size: 24px; } .chain ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; font-size: 15px; }
.chain li i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; }
.chain .x { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--muted); }
.proof, .chain-docs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px 34px; }
.now-card .proof, .chain-docs { margin-left: 0; }
.proof .chip, .chain-docs .chip { font-size: 13px; padding: 4px 10px; border-color: var(--wheat); background: var(--card); }
.proof .chip svg { flex: 0 0 14px; color: var(--green); }
.backbtn { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--green); font-size: 14px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.backbtn:hover { border-color: var(--green); }
.over-back { position: absolute; left: 12px; top: 10px; z-index: 3; }
.over-back .backbtn { margin: 0; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(4px); }
/* the whole book */
.ch-head .part { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.page-h { font-size: clamp(34px, 8vw, 50px); text-align: center; margin-top: 6px; }
.reader h3.sub { font-size: 22px; margin: 1.6em 0 .5em; color: var(--green); }
.reader .book-list { padding-left: 1.1em; margin: 0 0 1em; } .reader .book-list li { margin: .35em 0; }
.reader.notes { font-size: calc(var(--read-size) * .85); }
.book-tree { margin: 1.2em 0 1.6em; } .book-tree .tree-scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.book-tree svg { width: 100%; height: auto; display: block; font-family: var(--serif); }
.inline-fig.n3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: start; }
.inline-fig.n3 figcaption { grid-column: 1 / -1; }
.reader blockquote.poem { margin: 1.2em auto; padding: 14px 22px; font-style: italic; border-left: 3px solid var(--wheat); background: var(--times); border-radius: 0 6px 6px 0; width: fit-content; max-width: 100%; }
.reader blockquote.poem span { display: block; line-height: 1.55; } .reader blockquote.poem .gap { height: .7em; }
.reader aside.times.further p { margin: 0 0 .7em; } .reader aside.times.further p:last-child { margin-bottom: 0; }
/* newspaper clippings: a card at print size, beside the text on a wide screen, centred on a phone */
.inline-fig.clip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: flex-start; margin: 1.3em auto; }
.inline-fig.clip figcaption { flex: 1 0 100%; text-align: center; }
@media (min-width: 760px) {
  .inline-fig.clip.n1 { float: right; clear: right; flex-direction: column; align-items: stretch; width: min-content; max-width: 44%; margin: .35em 0 .9em 22px; }
  .inline-fig.clip.n1 figcaption { text-align: left; }
}
@media (min-width: 1100px) { .inline-fig.clip.n1 { margin-right: -60px; } }
.clipcard { display: block; max-width: 100%; padding: 7px; border: 1px solid #E3D8BF; background: #FBF6EA; border-radius: 2px; cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(60,40,10,.08), 0 6px 16px rgba(60,40,10,.12); transform: rotate(-.35deg); transition: transform .15s, box-shadow .15s; }
.clipcard:nth-child(2n) { transform: rotate(.4deg); }
.clipcard:hover { transform: rotate(0) translateY(-2px); box-shadow: 0 2px 4px rgba(60,40,10,.1), 0 10px 22px rgba(60,40,10,.16); }
.clipwrap { position: relative; display: block; max-height: 380px; overflow: hidden; }
.clipwrap img { width: 100%; height: auto; display: block; filter: sepia(.12) contrast(1.05); }
.clipwrap .more { display: none; }
.clipwrap.tall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(251,246,234,0), #FBF6EA 78%); }
.clipwrap.tall .more { display: block; position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; text-align: center; font-size: 12.5px; font-style: italic; color: var(--green);
  text-decoration: underline; text-decoration-color: var(--wheat); text-underline-offset: 3px; }
.clipwrap .ph { aspect-ratio: 3 / 4; }
:root[data-theme="dark"] .clipcard { background: #2B2924; border-color: #4A4438; }
:root[data-theme="dark"] .clipwrap.tall::after { background: linear-gradient(180deg, rgba(43,41,36,0), #2B2924 78%); }
.v-info.hide { display: none; }
.v-bar [data-vcap] { font-family: var(--display); font-size: 17px; }
.v-info { font-size: 15.5px; }
.ch-mini { margin-right: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.ch-mini a { border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 5px 10px; font-size: 14px; text-decoration: none; color: var(--green); white-space: nowrap; }
.ch-mini a:hover { border-color: var(--green); }
@media (max-width: 420px) { .ch-mini .toc-link { display: none; } .ch-mini a { padding: 5px 8px; font-size: 13px; } }
.inline-fig.clip.strip { float: none; clear: both; display: flex; flex-direction: column; align-items: center; max-width: 100%; margin: 1.2em auto; }
.inline-fig.clip.strip figcaption { text-align: center; max-width: 540px; }
.inline-fig.clip.strip .clipwrap { max-height: 300px; }

/* two or more pictures anchored together: one centred row, never stacked floats */
.fig-row { clear: both; display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: flex-start; margin: 1.4em 0; }
.fig-row .inline-fig { float: none !important; margin: 0 !important; flex: 0 1 260px; width: auto !important; max-width: 300px; }
.fig-row .inline-fig.clip { flex: 0 0 auto; }
@media (max-width: 559px) { .fig-row .inline-fig.side { flex-basis: calc(50% - 9px); } }
/* 27 Oct 2026 layout audit: a pair of portraits set as one picture (Marion's two, Peter and Mary Tentinger's) took one 260px slot of the row,
   about 85px a face on a phone. A pair takes the row's full width instead, as wide as two portraits want. */
.fig-row .inline-fig.n2 { flex: 1 1 100%; max-width: 560px; }
/* a floating picture starts below any float above it, so floats never ride over each other */
.inline-fig.side, .inline-fig.clip.n1 { clear: both; }
/* front and back matter always carry a Contents button, whatever page the reader came from */
.backrow { display: flex; gap: 8px; flex-wrap: wrap; }
a.backbtn { text-decoration: none; }
/* the two locator maps: in the text, framed and centred; on the home page, side by side */
.inline-fig.map-fig { clear: both; max-width: 440px; margin: 1.6em auto; }
.inline-fig.map-fig .figbtn { padding: 8px; background: var(--card); border: 1px solid color-mix(in srgb, var(--wheat) 55%, transparent); border-radius: 6px; }
.inline-fig.map-fig .figbtn img { box-shadow: none; border-radius: 2px; }
.two-maps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.map-card { display: block; border: 1px solid color-mix(in srgb, var(--wheat) 55%, transparent); background: var(--card); border-radius: 8px; padding: 8px; cursor: zoom-in; text-align: left; color: var(--ink); font: inherit; }
.map-card img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: top; display: block; border-radius: 4px; }
.map-card span { display: block; padding: 8px 4px 2px; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.map-card b { display: block; font-family: var(--display); font-size: 19px; color: var(--green); font-weight: 600; }
.map-card:hover { border-color: var(--green); }
/* ---------- The Places: the map drawn in the book's palette ---------- */
a.map-card { text-decoration: none; cursor: pointer; }
.places-top { padding-top: 22px; }
.places-dek { color: var(--muted); max-width: 640px; margin: 0 0 6px; font-size: 16px; }
.map-loading { padding: 60px 16px; text-align: center; color: var(--muted); font-style: italic; }
.map-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.map-tabs button { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14.5px; cursor: pointer; }
.map-tabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.map-tabs .map-list-btn { margin-left: auto; border-style: dashed; }
.story-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.sb-label { font-family: var(--sc); font-size: 13px; letter-spacing: .12em; color: var(--red); white-space: nowrap; }
.sb-steps { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.sb-steps button { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid color-mix(in srgb, var(--wheat) 60%, transparent); background: var(--card);
  border-radius: 8px; padding: 5px 10px; cursor: pointer; font: inherit; color: var(--ink); text-align: left; max-width: 190px; }
.sb-steps button b { font-family: var(--display); font-size: 17px; color: var(--red); line-height: 1.1; }
.sb-steps button span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.sb-steps button.on { border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, var(--card)); }
.map-stage { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .map-stage { grid-template-columns: minmax(0, 1fr) 360px; } .map-stage:has(.place-panel[hidden]) { grid-template-columns: 1fr; } }
.map-box { position: relative; border: 1px solid color-mix(in srgb, var(--wheat) 60%, transparent); border-radius: 10px; overflow: hidden; background: #E9E2CF;
  box-shadow: 0 6px 22px rgba(60,40,10,.10); }
.map-svg { display: block; width: 100%; height: min(72vh, 680px); min-height: 380px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.map-svg:active { cursor: grabbing; }
.m-sea { fill: #DCE3DD; }
.m-land { fill: #F6F0E1; stroke: #9AA79C; stroke-width: 1; vector-effect: non-scaling-stroke; }
.m-ply { fill: color-mix(in srgb, var(--wheat) 22%, transparent); stroke: var(--wheat); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.m-county { fill: none; stroke: #CFC6B0; stroke-width: .6; vector-effect: non-scaling-stroke; }
.m-lake { fill: #DCE3DD; stroke: #9AA79C; stroke-width: .6; vector-effect: non-scaling-stroke; }
.m-river { fill: none; stroke: #8FB0BD; stroke-width: .8; vector-effect: non-scaling-stroke; opacity: .85; }
.m-river.big { stroke-width: 1.4; }
.m-state { fill: none; stroke: #A99F88; stroke-width: .8; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.m-border { fill: none; stroke: #7E8A80; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ml { font-family: var(--sc); fill: #8C8574; letter-spacing: .14em; text-anchor: middle; pointer-events: none; }
.ml.country.sm { letter-spacing: .1em; }
.ml.state { fill: #A0977F; }
.ml.sea { font-family: var(--display); font-style: italic; letter-spacing: .06em; fill: #7C98A2; }
.ml.region { font-family: var(--display); font-style: italic; letter-spacing: .04em; fill: #8A7A55; }
.ml.river { font-family: var(--display); font-style: italic; letter-spacing: .02em; fill: #6F94A3; }
.route { fill: none; vector-effect: non-scaling-stroke; }
.route.sea { stroke: var(--red); stroke-width: 2.2; stroke-dasharray: 7 5; }
.route.land { stroke: var(--red); stroke-width: 1.8; stroke-dasharray: 2 4; stroke-linecap: round; }
.pin { cursor: pointer; }
.pin .dot { stroke: #fff; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.pin .halo { fill: transparent; }
.pin.t1 .dot { fill: var(--red); }
.pin.t2 .dot { fill: var(--green); }
.pin.t3 .dot { fill: var(--wheat); }
.pin.on .halo { fill: color-mix(in srgb, var(--red) 22%, transparent); }
.pin.on .dot { fill: var(--red); }
.pin.dim { opacity: .45; }
.pn { font-family: var(--serif); fill: var(--ink); paint-order: stroke; stroke: #F6F0E1; stroke-linejoin: round; cursor: pointer; }
.pn.t1 { font-weight: 700; fill: var(--red); }
.pn.t2 { fill: #2A3A30; }
.pn.t3 { fill: #6B6459; font-style: italic; }
.pn.on { fill: var(--red); font-weight: 700; }
.map-ctl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 4px; }
.map-ctl button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 18px; cursor: pointer; color: var(--green); }
.map-legend { position: absolute; left: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); background: color-mix(in srgb, var(--card) 88%, transparent);
  padding: 5px 10px; border-radius: 8px; max-width: calc(100% - 20px); }
.lg { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; border: 1px solid #fff; }
.lg.t1 { background: var(--red); } .lg.t2 { background: var(--green); } .lg.t3 { background: var(--wheat); }
.story-card { position: absolute; left: 10px; top: 10px; width: min(380px, calc(100% - 64px)); background: var(--card); border: 1px solid color-mix(in srgb, var(--wheat) 60%, transparent);
  border-radius: 10px; padding: 12px 14px; box-shadow: 0 6px 20px rgba(60,40,10,.16); }
.story-card h3 { font-size: 21px; margin: 2px 0 4px; }
.story-card p { font-size: 15px; margin: 0 0 10px; line-height: 1.45; }
.sc-top { display: flex; justify-content: space-between; align-items: center; }
.sc-year { font-family: var(--display); font-size: 26px; color: var(--red); line-height: 1; }
.sc-x, .pp-x { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); }
.sc-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sc-nav button, .sc-nav a { border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 14px; color: var(--green); text-decoration: none; cursor: pointer; }
.sc-nav button[disabled] { opacity: .35; cursor: default; }
@media (max-width: 559px) { .story-card { position: static; width: auto; margin: 0; border-radius: 0; border-width: 1px 0 0; box-shadow: none; } .map-legend { display: none; } }
.place-panel { position: relative; background: var(--card); border: 1px solid color-mix(in srgb, var(--wheat) 60%, transparent); border-radius: 10px; padding: 14px 16px 16px;
  max-height: min(72vh, 680px); overflow: auto; }
.place-panel h2 { font-size: 28px; margin: 0; }
.place-panel h4 { font-family: var(--sc); font-size: 13px; letter-spacing: .12em; color: var(--green); margin: 14px 0 6px; font-weight: 600; }
.pp-x { position: absolute; right: 10px; top: 8px; }
.pp-count { color: var(--muted); font-size: 14px; margin: 2px 0 10px; }
.pp-q { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--wheat); background: var(--cream); font-size: 15px; line-height: 1.45; border-radius: 0 6px 6px 0; }
.pp-q a { display: block; font-size: 13px; margin-top: 4px; color: var(--green); }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-chips .chip { font-size: 13px; padding: 4px 10px; text-decoration: none; }
.pp-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pp-doc { border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 4px; cursor: zoom-in; text-align: left; font: inherit; color: var(--ink); }
.pp-doc img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: 3px; display: block; }
.pp-doc span { display: block; font-size: 11.5px; line-height: 1.25; margin-top: 4px; color: var(--muted); max-height: 3.8em; overflow: hidden; }
.pp-list { display: flex; flex-wrap: wrap; gap: 5px; }
.pp-list button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--ink); }
.pp-list button.t1 { border-color: var(--red); color: var(--red); font-weight: 700; }
.pp-list small { color: var(--muted); margin-left: 5px; font-size: 11px; }
.map-note { font-size: 13px; color: var(--muted); font-style: italic; margin: 12px 0 30px; }
:root[data-theme="dark"] .map-box { background: #23251F; }
:root[data-theme="dark"] .m-land { fill: #2E302A; } :root[data-theme="dark"] .m-sea, :root[data-theme="dark"] .m-lake { fill: #1F2A2C; }
:root[data-theme="dark"] .pn { stroke: #2E302A; fill: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="sepia"]) .map-box { background: #23251F; }
  :root:not([data-theme="light"]):not([data-theme="sepia"]) .m-land { fill: #2E302A; }
  :root:not([data-theme="light"]):not([data-theme="sepia"]) .m-sea, :root:not([data-theme="light"]):not([data-theme="sepia"]) .m-lake { fill: #1F2A2C; }
  :root:not([data-theme="light"]):not([data-theme="sepia"]) .pn { stroke: #2E302A; fill: var(--ink); } }
@media (max-width: 559px) { .map-svg { height: min(60vh, 520px); min-height: 320px; } }

/* made for the family (home page) */
.made-for { margin: 8px 0 10px;   /* full width of its column: on the home page, as wide as the two maps above it (the researcher, 26 Oct 2026, 22:34) */ padding: 22px 22px 24px; background: var(--card); border-radius: 14px; border-top: 3px solid var(--red); box-shadow: 0 1px 3px rgba(42,38,32,.08); }
.made-for h3 { font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--green); margin: 4px 0 10px; line-height: 1.15; }
.made-for p { margin: 0 0 10px; line-height: 1.55; }
.made-for .btn { margin-top: 6px; display: inline-block; overflow-wrap: anywhere; }
.foot a { color: inherit; }

/* the portrait frame zooms on the person's face (FACE in app.js) */
.face-frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.face-frame:not([data-face]) img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pcard .av[data-face] { position: relative; display: block; }

/* what's new */
.update { background: var(--card); border-radius: 12px; padding: 16px 18px 6px; margin: 0 0 16px; box-shadow: 0 1px 3px rgba(42,38,32,.08); }
.update.latest { border-top: 3px solid var(--red); }
.up-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.up-no { font-family: var(--sc); letter-spacing: .08em; color: var(--green); font-size: 15px; }
.up-date { font-family: var(--display); font-style: italic; color: var(--red); font-size: 18px; }
.update h3 { font-family: var(--display); font-size: 24px; font-weight: 600; margin: 4px 0 8px; line-height: 1.2; }
.up-group { margin: 0 0 10px; }
.up-group .lab { font-family: var(--sc); letter-spacing: .06em; font-size: 14px; color: var(--muted); }
.up-group ul { margin: 4px 0 0; padding-left: 20px; } .up-group li { margin: 3px 0; line-height: 1.45; }
.up-group a { color: var(--ink); text-decoration-color: var(--wheat); text-underline-offset: 3px; }
.new-pill { display: inline-block; margin: 6px auto 4px; padding: 5px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--wheat); color: var(--green); font-family: var(--sc); letter-spacing: .06em; font-size: 14px; text-decoration: none; position: relative; z-index: 1; }

/* What's New: the update's opening note and its pictures (26 Oct 2026) */
.update .up-intro { font-size: 1.02em; line-height: 1.6; margin: 6px 0 14px; color: var(--ink); }
.up-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 10px 0 18px; }
.up-pics .thumb { width: 100%; }
/* 27 Oct 2026, 10:09 (the researcher: the words over the What's New pictures could not be read): the group heading's .lab rule (small caps,
   muted grey, 14px) was reaching the label inside each picture. The picture's own label keeps the plain white face on a darker shade. */
.up-group .thumb .lab, .sgroup .thumb .lab { font-family: var(--serif); font-variant: normal; letter-spacing: 0; font-size: 12px; line-height: 1.25;
  color: #fff; margin: 0; display: block; padding: 26px 8px 7px; text-shadow: 0 1px 2px rgba(0,0,0,.6);
  background: linear-gradient(180deg, transparent, rgba(16,16,12,.55) 30%, rgba(16,16,12,.88)); }
.up-start { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }

/* ---------- 26 Oct 2026: search, the branches, share and save, continue reading ---------- */
/* the search button in the header, at every width; the nav keeps the right-hand side beside it on a computer */
.topnav { margin-left: auto; }
.sbtn { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--green); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sbtn:hover { border-color: var(--wheat); background: var(--card); }
.sbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* the search panel: over the page, under the viewer */
.spanel { position: fixed; inset: 0; z-index: 90; background: var(--paper); color: var(--ink); overflow: auto; padding: 0 16px calc(var(--tab-h) + var(--badge) + 24px); }
.sbar { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; align-items: center; padding: 10px 0; padding-top: max(10px, env(safe-area-inset-top)); background: var(--paper); border-bottom: 1px solid color-mix(in srgb, var(--wheat) 55%, transparent); }
.sbar input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 17px; }
.sbar .backbtn { margin: 0; }
.shint { margin: 14px 2px; font-style: italic; }
.sout { max-width: 720px; margin: 0 auto; }
.sgroup { margin: 18px 0 8px; }
.sgroup .lab { font-family: var(--sc); letter-spacing: .08em; font-size: 14px; color: var(--green); margin: 0 0 6px; display: flex; gap: 8px; align-items: baseline; }
.sres { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; margin: 0 0 6px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--line) 50%, transparent); background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; }
.sres:hover { border-color: var(--green); }
.sres b { display: block; font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--title-ink); }
.sres small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.sres .sth { width: 54px; height: 66px; border-radius: 5px; overflow: hidden; background: var(--cream); } .sres .sth img { width: 100%; height: 100%; object-fit: cover; }
.sres:has(.sth) { grid-template-columns: 54px 1fr; }
.sres mark { background: color-mix(in srgb, var(--wheat) 40%, transparent); color: inherit; padding: 0 1px; border-radius: 2px; }
.smore { margin: 2px 0 8px; cursor: pointer; background: transparent; }
/* the passage a search result opened the page at */
@keyframes hit-fade { from { background: color-mix(in srgb, var(--wheat) 38%, transparent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--wheat) 38%, transparent); } to { background: transparent; box-shadow: 0 0 0 8px transparent; } }
.reader .hit { animation: hit-fade 3.4s ease-out forwards; border-radius: 4px; }
/* which branch are you from: Carl and Gertrude's seven, as cards like Meet the family's */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: 1fr; gap: 10px; margin: 0 0 8px; }   /* every row as tall as the tallest card (3 Nov 2026) */
.branch { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid color-mix(in srgb, var(--line) 50%, transparent); text-decoration: none; color: var(--ink); }
.branch:hover { border-color: var(--green); }
.branch .av { position: relative; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--tint); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 22px; color: var(--green); }
.branch .av img { width: 100%; height: 100%; object-fit: cover; }
.branch b { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--title-ink); }
.branch small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.branch em { display: block; font-size: 12.5px; color: var(--red); margin-top: 2px; }
/* continue reading, beside the what's-new pill under the title */
.cont-pill { margin-left: 6px; border-color: var(--green); }
/* the viewer's share and save buttons; everything a little smaller on a narrow phone so the title keeps room */
.v-bar button.ico svg { width: 20px; height: 20px; }
@media (max-width: 480px) { .v-bar button { width: 34px; height: 34px; flex-basis: 34px; font-size: 18px; } .v-bar .nav { gap: 4px; } .v-bar .ttl { font-size: 17px; } .v-bar [data-vcap] { font-size: 15px; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--badge) + 16px); transform: translate(-50%, 12px); z-index: 120; padding: 9px 16px; border-radius: 999px; background: var(--green); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
/* the two locator maps, drawn in the site's colours (minimaps.js) */
.minimap { width: 100%; height: auto; display: block; font-family: var(--serif); }
.minimap .mm-bg { fill: var(--card); }
.minimap .mm-sea { fill: color-mix(in srgb, #5E8A9A 16%, var(--paper)); }
.minimap .mm-land { fill: var(--cream); }
.minimap .mm-land.dim { fill: color-mix(in srgb, var(--cream) 80%, var(--card)); }
.minimap .mm-plym { fill: color-mix(in srgb, var(--red) 22%, var(--cream)); stroke: var(--red); stroke-width: 1.4; }
.minimap path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.minimap .mm-land:is(path) { fill: var(--cream); stroke: color-mix(in srgb, var(--line) 70%, transparent); stroke-width: .6; }
.minimap .mm-border { stroke: var(--line); stroke-width: 1.1; }
.minimap .mm-state { stroke: color-mix(in srgb, var(--line) 70%, transparent); stroke-width: .7; stroke-dasharray: 3 2.5; }
.minimap .mm-state.wide { stroke-width: 1.2; stroke-dasharray: 6 4; }
.minimap .mm-county { stroke: color-mix(in srgb, var(--line) 35%, transparent); stroke-width: .5; }
.minimap .mm-river { stroke: color-mix(in srgb, #5E8A9A 70%, var(--cream)); stroke-width: .9; }
.minimap .mm-river.wide { stroke-width: 2; }
.minimap .mm-frame { fill: none; stroke: color-mix(in srgb, var(--wheat) 65%, transparent); stroke-width: 1; }
.minimap .mm-box { fill: none; stroke: var(--red); stroke-width: 1.4; }
.minimap .mm-lead { stroke: var(--red); stroke-width: .8; stroke-dasharray: 2 2.5; opacity: .7; }
.minimap .mm-home { fill: var(--red); stroke: var(--card); stroke-width: 1.5; }
.minimap .mm-vil { fill: var(--green); stroke: var(--card); stroke-width: 1; }
.minimap .mm-town { fill: var(--muted); }
.minimap text { fill: var(--ink); }
.minimap .mm-country { font: 600 15px var(--display); letter-spacing: .22em; fill: var(--green); }
.minimap .mm-region { font: italic 10.5px var(--serif); fill: var(--muted); letter-spacing: .06em; }
.minimap .mm-region-in { font: 600 11px var(--display); letter-spacing: .3em; fill: var(--muted); opacity: .8; }
.minimap .mm-sea-t, .minimap .mm-river-t { font: italic 10.5px var(--serif); fill: color-mix(in srgb, #5E8A9A 80%, var(--ink)); }
.minimap .mm-hills { font: italic 12px var(--display); fill: var(--muted); letter-spacing: .12em; }
.minimap .mm-small { font-size: 10px; fill: var(--muted); }
.minimap .mm-vil-t { font-size: 11.5px; }
.minimap .mm-home-t { font: 600 14px var(--serif); fill: var(--red); }
.minimap .mm-plym-t { font: italic 600 10.5px var(--serif); fill: var(--red); }
.minimap .mm-title { font: 600 19px var(--display); fill: var(--green); }
.minimap .mm-note, .minimap .mm-key { font-size: 11.5px; fill: var(--muted); }
.minimap .mm-key { fill: var(--ink); }
.minimap .mm-scale { stroke: var(--muted); stroke-width: 1; }
.minimap .mm-sec { fill: none; stroke: color-mix(in srgb, var(--line) 75%, transparent); stroke-width: .8; }
.minimap .mm-secn { font-size: 9.5px; fill: var(--muted); }
.minimap .mm-twp { stroke: var(--ink); stroke-width: 1.6; }
.minimap .mm-twp-t { font: 600 11px var(--display); fill: var(--muted); letter-spacing: .2em; }
.minimap .mm-rail { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 1 3; }
.minimap .mm-p-carl { fill: color-mix(in srgb, var(--red) 75%, var(--card)); }
.minimap .mm-p-ludwig { fill: color-mix(in srgb, var(--wheat) 85%, var(--card)); }
.minimap .mm-p-paul { fill: color-mix(in srgb, #5E8A9A 85%, var(--card)); }
.minimap .mm-p-stroh { fill: color-mix(in srgb, var(--green) 75%, var(--card)); }
.minimap .mm-land.mm-abroad { fill: color-mix(in srgb, var(--cream) 55%, var(--card)); stroke: none; }
.minimap path.mm-de { fill: var(--cream); stroke: color-mix(in srgb, var(--line) 60%, transparent); stroke-width: .6; stroke-dasharray: 2.5 2; }
.minimap path.mm-by { fill: color-mix(in srgb, var(--red) 20%, var(--cream)); stroke: color-mix(in srgb, var(--red) 45%, transparent); stroke-width: .8; }
.minimap path.mm-by.in { fill: color-mix(in srgb, var(--red) 10%, var(--cream)); stroke: none; }
.minimap .mm-by-t { font: 600 11px var(--display); letter-spacing: .25em; fill: var(--red); opacity: .85; }
.minimap .mm-route { stroke: var(--red); stroke-width: 1.4; stroke-dasharray: 4 3; }
.minimap .mm-home-t.sm { font-size: 12px; }
.minimap .mm-fam { font-size: 11px; fill: var(--ink); }
.minimap .mm-city { font-size: 9.5px; fill: var(--muted); font-style: italic; }
.minimap path.mm-lake { fill: color-mix(in srgb, #5E8A9A 30%, var(--cream)); stroke: none; }
.minimap .mm-keybg { fill: var(--card); opacity: .85; }
.minimap path.mm-nation { fill: color-mix(in srgb, var(--cream) 50%, var(--card)); stroke: color-mix(in srgb, var(--line) 55%, transparent); stroke-width: .6; }
.minimap path.mm-de-line { stroke: var(--green); stroke-width: 1.3; }
.minimap .mm-country.sm { font-size: 10.5px; letter-spacing: .14em; }
.minimap .mm-nation-t { font: 600 9.5px var(--display); letter-spacing: .2em; fill: var(--muted); }
/* finishing touches */
.minimap .mm-frame.in { stroke: color-mix(in srgb, var(--wheat) 35%, transparent); stroke-width: .6; }
.minimap .mm-shadow { flood-color: #000; flood-opacity: .22; }
.minimap path.mm-grat { stroke: color-mix(in srgb, #5E8A9A 30%, transparent); stroke-width: .5; stroke-dasharray: 1 3; }
.minimap use.mm-ripple { fill: none; stroke: color-mix(in srgb, #5E8A9A 60%, var(--paper)); stroke-linejoin: round; }
.minimap use.mm-ripple.r1 { stroke-width: 11; opacity: .10; }
.minimap use.mm-ripple.r2 { stroke-width: 6; opacity: .14; }
.minimap use.mm-ripple.r3 { stroke-width: 2.5; opacity: .22; }
.minimap use.mm-nation { fill: color-mix(in srgb, var(--cream) 50%, var(--card)); stroke: color-mix(in srgb, var(--line) 55%, transparent); stroke-width: .6; }
.minimap .mm-lane { stroke: var(--red); stroke-width: 1.2; stroke-dasharray: 1 3.2; opacity: .85; }
.minimap .mm-lane-t { font: italic 10px var(--serif); fill: var(--red); }
.minimap .mm-port { fill: var(--card); stroke: var(--red); stroke-width: 1.4; }
.minimap .mm-sea-t.big { font-size: 12px; letter-spacing: .12em; }
.minimap .mm-compass circle { fill: var(--card); stroke: color-mix(in srgb, var(--wheat) 70%, transparent); stroke-width: .8; opacity: .9; }
.minimap .mm-compass .dk { fill: var(--green); }
.minimap .mm-compass .lt { fill: var(--card); stroke: var(--green); stroke-width: .5; }
.minimap .mm-n { font: 600 10px var(--display); fill: var(--green); letter-spacing: 0; }
.minimap .mm-scalebar rect { fill: var(--ink); stroke: var(--ink); stroke-width: .6; }
.minimap .mm-scalebar rect.lt { fill: var(--card); }
.minimap path.mm-bank { stroke: color-mix(in srgb, #5E8A9A 25%, var(--cream)); stroke-width: 5; }
.minimap path.mm-bank.thin { stroke-width: 3.6; }
.minimap .mm-river.mid { stroke-width: 1.4; }
.minimap .mm-tree { fill: color-mix(in srgb, var(--green) 45%, transparent); }
.minimap .mm-woods { opacity: .55; }
.minimap .mm-woods-key { stroke: color-mix(in srgb, var(--line) 50%, transparent); stroke-width: .6; }
.minimap .mm-cross { stroke: var(--red); stroke-width: 1.3; }
.minimap path.mm-iowa { fill: none; }
.minimap .mm-row { stroke: #000; stroke-width: .7; opacity: .16; }
.minimap rect.mm-rows { pointer-events: none; }
.minimap .mm-fields { fill: color-mix(in srgb, var(--cream) 70%, var(--card)); }
.minimap .mm-house { fill: var(--ink); }
.minimap .mm-rail.ties { stroke-width: 5; stroke-dasharray: .9 4; stroke-linecap: butt; }
.minimap .mm-townblk rect { fill: color-mix(in srgb, var(--red) 70%, var(--card)); }
.minimap .mm-deedbg { fill: color-mix(in srgb, var(--red) 22%, var(--card)); }
.minimap .mm-deedln { stroke: color-mix(in srgb, var(--red) 75%, var(--card)); stroke-width: 1.6; }
.minimap .mm-p-deed { stroke: color-mix(in srgb, var(--red) 60%, transparent); stroke-width: .6; }
.minimap .mm-twp.road { stroke-width: 1; stroke-dasharray: 2 2; }
.minimap .mm-maptitle { font: 600 26px var(--display); fill: var(--green); }
.minimap .mm-mapsub { font: italic 12.5px var(--serif); fill: var(--muted); }
.minimap .mm-rule { stroke: color-mix(in srgb, var(--wheat) 60%, transparent); stroke-width: .8; }
.minimap text:not(.mm-title):not(.mm-note):not(.mm-key):not(.mm-secn):not(.mm-maptitle):not(.mm-mapsub) { paint-order: stroke; stroke: color-mix(in srgb, var(--cream) 85%, var(--card)); stroke-width: 2.4px; stroke-linejoin: round; }
.inline-fig.map-fig.svg { max-width: 640px; }
.inline-fig.map-fig.svg .figbtn { padding: 0; overflow: hidden; }
.map-card .minimap { border-radius: 4px; }
@media (max-width: 600px) { .two-maps { grid-template-columns: 1fr; } }   /* a phone stacks the two maps so their names can be read */

/* Meet the family: a long group shows its first twenty-four until "Show all" (26 Oct 2026) */
.people-grid.collapsed:not(.searching) .pcard:nth-child(n+25) { display: none; }
.section-h [data-pmore] { margin-left: auto; }
.inline-fig.wide.n2 { gap: 16px; }   /* Carl and Gertrude's portraits, full width side by side (26 Oct 2026) */

/* faces: placed from the FACE numbers in app.js (27 Oct 2026), so every face is the same size and centred, even in cards not yet shown */
.av[data-face], .face-frame[data-face] { position: relative; display: block; }
.av[data-face] > img, .face-frame[data-face] > img { position: absolute; max-width: none; width: var(--fw); height: auto; left: var(--fl); top: var(--ft); object-fit: fill; }
@media (min-width: 900px) { .branch-grid { grid-template-columns: repeat(4, 1fr); } }   /* Carl's seven children sit four and three on a desktop (27 Oct 2026) */

/* ---------- 3 Nov 2026: how am I related (DESIGN.md section 11) ---------- */
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--green); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* the home page card, under the branches */
.rel-card { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 18px 0 8px; padding: 18px 18px 16px; background: var(--card); border-radius: 14px; border-left: 3px solid var(--red); box-shadow: 0 1px 3px rgba(42,38,32,.08); }
.rel-card.set { grid-template-columns: 64px 1fr; align-items: start; }
.rel-card h3 { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--green); margin: 4px 0 8px; line-height: 1.15; }
.rel-card p { margin: 0 0 10px; line-height: 1.5; }
.rel-card .btn { margin: 2px 0 10px; }
.rel-card .chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rel-card .chips .btn { margin: 0; }
.rel-card .chip { cursor: pointer; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.rel-card .av, .rp-who .av, .rp-row .av { position: relative; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--tint); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 24px; color: var(--green); }
.rel-card .av:not([data-face]) img, .rp-who .av:not([data-face]) img, .rp-row .av:not([data-face]) img, .rc-node .av:not([data-face]) img { width: 100%; height: 100%; object-fit: cover; }
/* the line under a person's name */
.rel-wrap { margin: 6px 0 4px; }
.rel-line { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; max-width: 100%; text-align: left; padding: 6px 12px 7px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 7%, var(--card)); color: var(--ink); font: inherit; cursor: pointer; }
.rel-line .rel-h { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--red); }
.rel-line .rel-sub { flex-basis: 100%; font-size: 14px; color: var(--muted); line-height: 1.35; }
.rel-line .rel-tap { font-size: 13px; color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.rel-ask { margin: 0; background: none; border: 0; padding: 11px 0; min-height: 44px; font: inherit; font-size: 14px; color: var(--green); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.rel-none { margin: 6px 0 4px; font-size: 14px; color: var(--muted); }
/* the chain of faces */
.rel-chain { margin: 10px 0 6px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.rel-chain .note { margin: 8px 0 0; }
.rc-way { margin: 4px 0 6px; font-family: var(--sc); letter-spacing: .06em; font-size: 14px; color: var(--green); }
.rc-way:not(:first-child) { margin-top: 14px; }
.rc-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 4px; }
.rc-node { display: flex; flex-direction: column; align-items: center; width: 92px; text-align: center; text-decoration: none; color: var(--ink); }
.rc-node.two { width: 104px; }
.rc-node .avs { display: flex; justify-content: center; }
.rc-node .av { flex: 0 0 auto; position: relative; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--tint); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 19px; color: var(--green); border: 2px solid var(--card); }
.rc-node.two .av + .av { margin-left: -12px; }
.rc-node.you .av { background: var(--red); color: #fff; font-size: 16px; }
.rc-node.gap .av { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.rc-node.this .av { box-shadow: 0 0 0 2px var(--red); }
.rc-node b { display: block; margin-top: 4px; font-family: var(--display); font-size: 15.5px; font-weight: 600; line-height: 1.1; color: var(--title-ink); }
.rc-node small { display: block; font-size: 12px; line-height: 1.25; color: var(--muted); margin-top: 2px; }
.rc-arrow { align-self: flex-start; margin-top: 14px; color: var(--red); font-size: 20px; line-height: 1; }
/* the picker */
.rp-body { max-width: 720px; margin: 0 auto; padding-top: 14px; }
.rp-body h2 { font-size: 28px; margin: 6px 0 8px; }
.rp-out .lab { font-family: var(--sc); letter-spacing: .08em; font-size: 14px; color: var(--green); margin: 16px 0 6px; }
.rp-row { grid-template-columns: 52px 1fr; }
.rp-row .av { width: 52px; height: 52px; font-size: 20px; }
.rp-who { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; margin: 8px 0 10px; }
.rp-who b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--title-ink); }
.rp-who small { color: var(--muted); }
.rp-gens { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.rp-gens .chip { cursor: pointer; background: var(--card); font: inherit; font-size: 16px; padding: 10px 16px; color: var(--ink); }
.rp-gens .chip:hover { border-color: var(--green); }
/* the Tree's switch */
.myline-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 4px 0 2px; }
.myline { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 15px; color: var(--ink); }
.myline input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.myline .sw { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--line); transition: background .2s; flex: 0 0 auto; }
.myline .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.myline input:checked + .sw { background: var(--red); }
.myline input:checked + .sw::after { transform: translateX(16px); }
.myline input:focus-visible + .sw { outline: 2px solid var(--green); outline-offset: 2px; }
.rel-line.static { cursor: default; margin: 0; }

/* the relation chain as a small tree (3 Nov 2026): shared ancestors on top, your side left, theirs right */
.rc-tree { margin: 4px 0 2px; }
.rc-top { display: flex; flex-direction: column; align-items: center; }
.rc-note { margin: 2px 0 0; font-size: 12px; color: var(--muted); font-style: italic; min-height: 1px; }
.rc-cols { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 10px; padding-top: 14px; }
.rc-tree.one .rc-cols { grid-template-columns: 1fr; max-width: 260px; margin-left: auto; margin-right: auto; }
.rc-cols::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 12px; border: 1.5px solid var(--red); border-bottom: 0; border-radius: 8px 8px 0 0; }
.rc-tree.one .rc-cols::before { left: 50%; right: auto; width: 0; border-width: 0 0 0 1.5px; border-radius: 0; }
.rc-cols::after { content: ""; position: absolute; top: -10px; left: 50%; height: 10px; border-left: 1.5px solid var(--red); }
.rc-tree.one .rc-cols::after { display: none; }
.rc-col { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.rc-head { margin: 0 0 6px; text-align: center; font-family: var(--sc); letter-spacing: .06em; font-size: 12.5px; color: var(--green); }
.rc-down { display: block; width: 0; height: 12px; margin: 2px auto; border-left: 1.5px dashed var(--line); }
.rc-tree .rc-node, .rc-tree .rc-node.two { flex-direction: row; align-items: center; gap: 8px; width: auto; text-align: left; padding: 6px 8px; border-radius: 10px; background: var(--card); border: 1px solid color-mix(in srgb, var(--line) 45%, transparent); }
.rc-tree .rc-top .rc-node { border-color: var(--red); }
.rc-tree .rc-node.this { border-color: var(--red); background: color-mix(in srgb, var(--red) 7%, var(--card)); }
.rc-tree .rc-node.this .av { box-shadow: none; }
.rc-tree .rc-node .av { width: 40px; height: 40px; font-size: 16px; }
.rc-tree .rc-t { display: flex; flex-direction: column; min-width: 0; }
.rc-tree .rc-node b { margin-top: 0; font-size: 15px; }
.rc-tree .rc-node small { margin-top: 1px; }
@media (max-width: 480px) { .rc-cols { gap: 0 8px; } .rc-tree .rc-node { padding: 5px 6px; gap: 6px; } .rc-tree .rc-node .av { width: 34px; height: 34px; } .rc-tree .rc-node b { font-size: 14px; } }

/* ---------- tap to read (3 Nov 2026; the web features brief, feature 3) ----------
   The mask is a layer the picture's own size, moved and scaled with it (--k is 1/scale, so lines and the glow stay the same on screen).
   Each box's huge shadow dims everything around the family's entry; the panel under the picture takes the caption's place while on. */
.v-bar .rd-btn { width: auto; flex: 0 0 auto; border-radius: 99px; padding: 0 14px; font-family: var(--sc, var(--display)); font-size: 15px; letter-spacing: .02em; background: rgba(180,146,74,.22); color: #F1E4C4; }
.v-bar .rd-btn[aria-pressed="true"] { background: #B4924A; color: #1b1a16; }
.rd-mask { position: absolute; left: 50%; top: 50%; transform-origin: 0 0; pointer-events: none; overflow: visible; }
.rd-mask i { position: absolute; display: block; border-radius: calc(10px * var(--k, 1)); border: calc(2px * var(--k, 1)) solid rgba(214,180,110,.95);
  box-shadow: 0 0 calc(16px * var(--k, 1)) calc(3px * var(--k, 1)) rgba(214,180,110,.45), 0 0 0 calc(6000px * var(--k, 1)) rgba(12,12,10,.7);
  animation: rd-in .35s ease-out; }
@keyframes rd-in { from { opacity: 0; } to { opacity: 1; } }
.viewer.reading .v-info { display: none; }
.viewer.reading .v-hint { display: none; }
.rd-panel { padding: 14px 18px 16px; padding-bottom: calc(var(--badge) + env(safe-area-inset-bottom)); background: #1d1f1b; border-top: 2px solid #B4924A;
  max-height: 46vh; overflow: auto; font-size: 16px; line-height: 1.5; color: #EEE; -webkit-overflow-scrolling: touch; }
.rd-panel h3 { font-family: var(--display); font-weight: 600; font-size: 21px; margin: 0 0 6px; color: #E8D6A8; }
.rd-panel h4 { font-family: var(--sc, var(--display)); font-weight: 400; font-size: 15px; letter-spacing: .04em; margin: 12px 0 4px; color: #CDB98A; }
.rd-panel ul { margin: 0; padding-left: 1.1em; } .rd-panel li { margin: 0 0 6px; }
.rd-orig { margin: 0 0 8px; } .rd-orig span[lang] { display: block; font-style: italic; color: #fff; }
.rd-orig .rd-en { display: block; color: #c9c2b0; font-size: 14.5px; }
.rd-unc { color: #F1D99A; white-space: nowrap; } .rd-unc small { font-size: 11.5px; margin-left: 4px; padding: 0 5px; border-radius: 99px; border: 1px solid rgba(241,217,154,.5); color: #E3CD93; vertical-align: 1px; font-style: normal; }
.rd-panel a.rd-gl { color: inherit; text-decoration: underline dotted rgba(214,180,110,.9); text-underline-offset: 3px; }
.rd-note { color: #cfc8b6; font-size: 14.5px; margin: 10px 0 0; }
.rd-ref { color: #a9a18f; font-size: 13px; margin: 10px 0 0; }
@media (max-width: 480px) { .v-bar .rd-btn { padding: 0 10px; font-size: 14px; } .rd-panel { max-height: 50vh; padding: 12px 16px; padding-bottom: calc(var(--badge) + env(safe-area-inset-bottom)); font-size: 15.5px; } }
@media (min-width: 900px) { .rd-panel .rd-in { max-width: 760px; margin: 0 auto; } }

/* 3 Nov 2026 (the researcher, 15:52): Read it moves from the top bar to a yellow banner under the picture, by the caption */
.rd-banner { flex: 0 0 auto; padding: 8px 12px 0; display: flex; justify-content: center; }
.rd-banner .rd-btn { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 640px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 10px; background: #E2AD62; color: #2a1d0e;   /* 16:01: toned down, a little more orange */ font-family: var(--display); font-size: 16.5px; font-weight: 600; text-align: left; cursor: pointer; box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.rd-banner .rd-btn::before { content: ""; flex: 0 0 auto; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5c3-1 6-1 9 1 3-2 6-2 9-1v14c-3-1-6-1-9 1-3-2-6-2-9-1z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M12 6v14' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5c3-1 6-1 9 1 3-2 6-2 9-1v14c-3-1-6-1-9 1-3-2-6-2-9-1z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M12 6v14' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; }
.rd-banner .rd-arrow { margin-left: auto; font-size: 22px; line-height: 1; }
.rd-banner .rd-off { display: none; }
.rd-banner .rd-btn[aria-pressed="true"] { background: #B4924A; color: #1b1a16; }
.rd-banner .rd-btn[aria-pressed="true"] .rd-on, .rd-banner .rd-btn[aria-pressed="true"] .rd-arrow { display: none; }
.rd-banner .rd-btn[aria-pressed="true"] .rd-off { display: inline; }
@media (max-width: 480px) { .rd-banner { padding: 6px 10px 0; } .rd-banner .rd-btn { font-size: 15px; padding: 9px 12px; } }
/* Tree "Start from": the same-name labels made the list wider than a phone (audit, 3 Nov 2026); let it shrink to the page */
.tree-head label.note { display: flex; gap: 6px; align-items: center; min-width: 0; max-width: 100%; white-space: nowrap; }
.tree-head select.root-pick { min-width: 0; width: 100%; max-width: 100%; text-overflow: ellipsis; }

/* chapter trees wider than a phone: a quiet hint that they scroll (audit, 9 Nov 2026) */
.tree-hint { display: none; }
.book-tree.scrolls .tree-hint { display: block; margin: 0 0 6px; text-align: center; font-size: 13px; font-style: italic; color: var(--muted); }

/* find your family by surname (11 Nov 2026) */
.surnames { margin: 4px 0 22px; }
.surnames .lab { margin: 0 0 8px; }
.sn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sn-rest { margin-top: 6px; }
.chip.sn, .chip.sn-all { font: inherit; font-size: 13px; padding: 4px 10px; cursor: pointer; background: transparent; color: var(--ink); }
.chip.sn .note { font-size: 12px; color: var(--muted); }
.chip.sn.on { background: var(--green); border-color: var(--green); color: #fff; }
.chip.sn.on .note { color: #fff; }
.chip.sn-all { border-style: solid; color: var(--green); }
.find-fam { text-align: center; margin: 0 auto 18px; max-width: 640px; }
/* not found, Records "show more", and the help line on bare profiles (audit of 11 Nov 2026) */
#recmore[hidden] { display: none !important; }
.help-line { font-style: italic; }

/* the "send it here" line under a picture's caption (sync check S9, 21 Nov 2026) */
.v-tell { margin: 8px 0 0; font-size: 14px; }
.v-tell a { display: inline-block; padding: 10px 0; font-weight: 700; color: #E9D9A8; }   /* light wheat on the viewer's dark panel */
/* the contact and upload form (21 Nov 2026) */
.cform { display: flex; flex-direction: column; gap: 12px; margin: 10px 0 12px; max-width: 560px; }
.cform label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 700; color: var(--muted); }
.cform input:not([type=file]), .cform textarea { font: inherit; font-size: 17px; font-weight: 400; color: var(--ink); background: var(--paper); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; width: 100%; box-sizing: border-box; }
.cform input[type=file] { font: inherit; font-size: 14px; font-weight: 400; color: var(--ink); padding: 4px 0; max-width: 100%; }
.cform .btn { align-self: flex-start; cursor: pointer; }
.cform .btn[disabled] { opacity: .6; }
.cdone { font-family: var(--display); font-size: 22px; color: var(--green); margin: 12px 0; }
