/* germanlegacy.net - the stylesheet of every page except the home page (home.css). Look since 2026-11-21: the landing
   page design "Reconnect to Your Heritage" - warm ivory, dark brown ink, forest-green accent; IM Fell English = headings
   (fonts/fonts.css; back on the user's order 2026-11-21), Public Sans = reading text (fonts/home-fonts.css), Courier Prime = dates and archive references (fonts/fonts.css).
   Header + footer: chrome.css. (2026-11-12 to 2026-11-20: "old family album" look, parchment + oxblood, IM Fell.) */

:root {
  --paper: #F5F0E6; --card: #FBF8F2; --mat: #EDE5D6; --hover: #F0E9DC; --white: #FFFFFF;
  --ink: #302B25; --ink-2: #3E372F; --ink-3: #4A4239; --muted: #5E554A;
  --rule: #D8CBB8; --rule-2: #C9B9A1; --frame: #D8CBB8;
  --accent: #304A3B; --accent-dark: #1F3328; --navy: #1F3B57; --foot-text: #E9E1D3; --foot-ship: #C9B9A1;
  --f-display: 'IM Fell English', Georgia, 'Times New Roman', serif;   /* headings (back to IM Fell, user 2026-11-21) */
  --f-sc: 'IM Fell English SC', Georgia, 'Times New Roman', serif;   /* small headings (FAQ sub-questions, eligibility check) */
  --f-text: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Courier Prime', 'Courier New', monospace;
  --shadow-print: 0 18px 40px rgba(48, 43, 37, .12), 0 1px 0 #D8CBB8;
  --shadow-snap: 0 14px 28px -16px rgba(48, 43, 37, .45);
  --shadow-card: 0 16px 30px -24px rgba(48, 43, 37, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--f-text); font-size: 17px; line-height: 1.6; }
body > main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0; }
p { margin: 0 0 16px; }
button { font: inherit; color: inherit; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); font-size: 15px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.draft { display: inline-block; padding: 1px 7px; border-radius: 2px; background: #F2D5CF; color: #6B1F17; font-family: var(--f-mono); font-size: 12px; line-height: 1.6; vertical-align: middle; }
.preview-note { margin: 0; padding: 6px 24px; background: var(--ink); color: var(--foot-text); font-family: var(--f-mono); font-size: 13px; text-align: center; }

/* ---------- header and footer ---------- */
.site-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 36px; padding-top: 22px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { flex: none; width: 44px; height: 37px; color: var(--accent); stroke-width: 1.7; }
.brand span { font-family: var(--f-sc); font-size: 28px; line-height: 1; letter-spacing: .04em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 16px; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.head-rule { border-top: 4px double var(--ink); }

.site-foot { background: var(--ink); color: var(--foot-text); }
.site-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 28px; font-size: 15px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-sc); font-size: 21px; letter-spacing: .04em; }
.foot-brand svg { width: 34px; height: 28px; color: var(--foot-ship); stroke-width: 1.8; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-foot a { color: var(--foot-text); }
.site-foot a:hover { color: #FFFFFF; }

/* ---------- shared pieces ---------- */
.page { max-width: 1160px; margin: 0 auto; padding: 40px 24px 76px; }
.page--narrow { max-width: 808px; }
.page--wide { max-width: 1320px; }
.page h1 { font-size: 54px; line-height: 1.02; margin-bottom: 14px; }
.crumbs { margin: 0 0 14px; font-size: 15px; }
.crumbs .sep { color: var(--muted); }
.lead { max-width: 740px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--f-sc); font-size: 19px; letter-spacing: .06em; color: var(--accent); }
.eyebrow::before, .eyebrow--both::after { content: ""; flex: none; width: 36px; height: 1px; background: currentColor; }
.section-label { display: flex; align-items: center; gap: 16px; margin: 0 0 22px; font-family: var(--f-sc); font-size: 22px; letter-spacing: .06em; }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.rule-head { margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); font-size: 32px; }
.rule-head .count { font-family: var(--f-mono); font-size: 15px; color: var(--muted); }
.dc::first-letter { float: left; padding: 7px 10px 0 0; font-family: var(--f-display); font-size: 68px; line-height: .82; color: var(--accent); }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 2px; font-family: var(--f-text); font-size: 17px; text-decoration: none; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--card); font-weight: 700; }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--card); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--card); }
.btn--small { min-height: 46px; padding: 0 18px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.card { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 22px; background: var(--card); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.card:hover { border-color: var(--accent); background: #FFFBF3; color: var(--ink); }
.card-no { font-family: var(--f-sc); font-size: 17px; letter-spacing: .05em; color: var(--accent); }
.card-title { font-family: var(--f-display); font-size: 27px; line-height: 1.12; }
.card-rule { height: 1px; background: var(--rule-2); }
.card-text { font-size: 15px; line-height: 1.6; color: var(--ink-3); }
.card-arrow { width: 22px; height: 22px; margin-top: auto; color: var(--accent); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); font-weight: 700; }
.pager a { max-width: 48%; }
.pager .next { margin-left: auto; text-align: right; }

/* ---------- home ---------- */
.home { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 52px; align-items: center; padding: 64px 0 76px; }
.hero .btn { padding: 0 22px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: 78px; line-height: .98; letter-spacing: -.01em; }
.hero-text > p { margin: 0; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.hero .btn-row { padding-top: 6px; }
.print { margin: 0; padding: 14px 14px 12px; background: var(--card); border: 1px solid var(--frame); box-shadow: var(--shadow-print); transform: rotate(-1.4deg); }
.print img { display: block; width: 100%; }
.print figcaption { margin-top: 12px; font-style: italic; font-size: 15px; color: var(--muted); }
.onsite { padding: 0 0 76px; }
.onsite .card { min-height: 236px; }
.onsite .all { margin: 20px 0 0; font-size: 16px; }

.journey { padding: 72px 0 80px; border-top: 4px double var(--ink); border-bottom: 1px solid var(--rule); }
.journey-head { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.journey-head h2 { font-size: 50px; line-height: 1.05; text-align: center; }
.journey-head p { margin: 8px 0 0; font-size: 18px; line-height: 1.8; color: var(--ink-2); }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 56px; }
.strip figure { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.snap { padding: 10px; background: var(--card); border: 1px solid var(--frame); box-shadow: var(--shadow-snap); }
.strip figure:nth-child(1) .snap { transform: rotate(-1deg); }
.strip figure:nth-child(2) .snap { transform: rotate(.8deg); }
.strip figure:nth-child(3) .snap { transform: rotate(-.6deg); }
.snap img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.strip figcaption { display: flex; flex-direction: column; gap: 4px; }
.year-line { display: flex; align-items: baseline; gap: 12px; }
.year { font-family: var(--f-display); font-size: 34px; line-height: 1; color: var(--accent); }
.year-label { font-family: var(--f-sc); font-size: 19px; letter-spacing: .05em; }
.strip .cap { font-style: italic; font-size: 15px; color: var(--muted); }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; padding: 68px 0 72px; }
.pair h2 { margin-bottom: 16px; font-size: 36px; }
.pair p { margin: 0; font-size: 17px; line-height: 1.8; color: var(--ink-2); }

.airmail { margin: 0 0 84px; padding: 10px; background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--card) 14px 24px, var(--navy) 24px 38px, var(--card) 38px 48px); box-shadow: var(--shadow-card); }
.airmail-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; padding: 40px 44px; background: var(--card); }
.airmail h2 { font-size: 44px; line-height: 1; }
.airmail p { margin: 0 0 14px; font-size: 18px; line-height: 1.65; }
.airmail p.muted { font-size: 14px; }

/* ---------- walkthrough ---------- */
.wt-title { margin: 0 0 18px; font-family: var(--f-display); font-style: italic; font-size: 26px !important; line-height: 1.2; color: var(--ink-3); }
.wt-intro { margin-bottom: 24px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.wt-card { display: flex; flex-direction: column; gap: 20px; padding: 38px 40px; background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow-card); }
#app { display: flex; flex-direction: column; gap: 20px; }
#app > * { margin: 0; }
.wt-label { font-family: var(--f-sc); font-size: 18px; letter-spacing: .05em; color: var(--accent); }
#app h2 { font-size: 46px; line-height: 1.08; }
#app details { padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
#app summary { cursor: pointer; font-weight: 700; font-size: 16px; color: var(--accent); }
#app details p { margin: 12px 0 4px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
#app .wt-text { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
/* documents usually required, under the result (eligibility/index.njk) */
.wt-docs { padding-top: 22px; border-top: 1px solid var(--rule); }
.wt-docs h3 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; }
.wt-docs .wt-docs-intro { margin: 0 0 6px; font-style: italic; font-size: 16px; line-height: 1.6; color: var(--ink-3); }
.wt-docs h4 { margin: 20px 0 6px; font-family: var(--f-sc); font-size: 18px; font-weight: 400; letter-spacing: .04em; color: var(--accent); }
.wt-docs ul { margin: 0; padding-left: 22px; }
.wt-docs li { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
/* "Need help?" form under the document list (eligibility/index.njk helpForm) */
.wt-help { padding-top: 22px; border-top: 1px solid var(--rule); }
.wt-help h3 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; }
.wt-help p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.wt-help-form label { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.wt-help-row { display: flex; gap: 10px; flex-wrap: wrap; }
.wt-help-row input { flex: 1 1 240px; min-width: 0; min-height: 48px; padding: 10px 14px; background: var(--white); border: 1px solid var(--rule-2); border-radius: 2px; font: inherit; font-size: 17px; color: var(--ink); }
.wt-help-row input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.wt-help-send { min-height: 48px; padding: 10px 26px; background: var(--accent); border: 1px solid var(--accent); border-radius: 2px; font: inherit; font-size: 17px; font-weight: 700; color: var(--white); cursor: pointer; }
.wt-help-send:hover { filter: brightness(1.08); }
.wt-help-send:disabled { opacity: .6; cursor: default; }
.wt-help .wt-help-status { margin: 10px 0 0; font-size: 16px; }
.wt-help .wt-help-status:empty { display: none; }
.wt-help-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 58px; padding: 14px 20px; background: var(--white); border: 1px solid var(--rule-2); border-radius: 2px; font-size: 19px; line-height: 1.35; color: var(--ink); text-align: left; cursor: pointer; }
.opt::after { content: "›"; flex: none; font-size: 24px; line-height: 1; color: var(--accent); }
.opt:hover { border-color: var(--accent); background: var(--hover); }
/* question 1 as a family tree (eligibility/index.njk familyTree): wide = pedigree chart on its side */
.page--tree { max-width: 1040px; }
.tree-wrap { display: flex; flex-direction: column; gap: 16px; }
.tree-hint { margin: 0; font-style: italic; font-size: 16px; color: var(--ink-3); }
.ftree { display: flex; justify-content: center; padding: 6px 0; }
.ftree ul { list-style: none; margin: 0; padding: 0; }
.ftree li { display: flex; align-items: center; }
.ftree ul.kids { position: relative; margin-left: 14px; }
.ftree ul.kids::before { content: ""; position: absolute; left: -14px; top: 50%; width: 14px; border-top: 1px solid #A8927A; }
.ftree ul.kids > li { position: relative; padding: 4px 0 4px 14px; }
.ftree ul.kids > li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; border-top: 1px solid #A8927A; }
.ftree ul.kids > li::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1px solid #A8927A; }
.ftree ul.kids > li:first-child::after { top: 50%; }
.ftree ul.kids > li:last-child::after { bottom: 50%; }
.node { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 36px; padding: 6px 11px; background: var(--white); border: 1px solid var(--rule-2); border-radius: 2px; font-family: var(--f-text); font-size: 15px; line-height: 1.2; color: var(--ink); text-align: left; cursor: pointer; }
.node .sub { font-size: 12px; font-style: italic; color: var(--muted); }
.node:hover, .ftree li.path > .node { border-color: var(--accent); background: var(--hover); }
.ftree li.path > .node .nm { color: var(--accent); }
.g0 > .node { width: 96px; min-height: 44px; font-size: 17px; }
.g0 > .node .nm { font-weight: 700; }
.g1 > .node { width: 112px; font-size: 16px; }
.g2 > .node { width: 134px; }
.g3 > .node { width: 164px; font-size: 14.5px; }
.g4 > .node { width: 198px; font-size: 14px; min-height: 32px; padding: 5px 11px; }
.g4-toggle { display: none; align-self: flex-start; min-height: 44px; padding: 0 16px; background: transparent; border: 1px solid var(--ink); border-radius: 2px; font-size: 15px; cursor: pointer; }
.g4-toggle:hover { background: var(--ink); color: var(--card); }
@media (max-width: 900px) {   /* narrow = indented tree, father's branch first; great-great-grandparents on request */
  .ftree { display: block; }
  .ftree li { display: block; }
  .ftree ul.kids { margin-left: 18px; }
  .ftree ul.kids::before { display: none; }
  .ftree ul.kids > li { padding: 4px 0 4px 16px; }
  .ftree ul.kids > li::before { top: 26px; width: 16px; }
  .ftree ul.kids > li:first-child::after { top: 0; }
  .ftree ul.kids > li:last-child::after { bottom: auto; height: 26px; }
  .ftree .node, .g0 > .node, .g4 > .node { width: 100%; min-height: 44px; font-size: 16px; }
  .g0 > .node { min-height: 44px; }
  .ftree:not(.show-g4) ul.to-g4 { display: none; }
  .g4-toggle { display: inline-flex; align-items: center; }
}
#nav { display: flex; flex-wrap: wrap; gap: 12px; }
#nav:empty { display: none; }
.wt-back { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; background: transparent; border: 1px solid var(--ink); border-radius: 2px; font-size: 16px; color: var(--ink); cursor: pointer; }
.wt-back:hover { background: var(--ink); color: var(--card); }
.wt-restart { min-height: 46px; padding: 0 18px; background: transparent; border: 0; font-size: 16px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#answered { margin-top: 32px; }
#answered h2 { margin: 0 0 12px; font-family: var(--f-sc); font-size: 19px; letter-spacing: .05em; }
.trail { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.trail li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.trail .qa { display: flex; flex-direction: column; gap: 2px; }
.trail .q { font-size: 15px; color: var(--muted); }
.trail a { font-size: 15px; }
.wt-foot { margin-top: 24px; }

/* ---------- documents ---------- */
.type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 32px; }
.type-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.type-card:hover { border-color: var(--accent); background: #FFFBF3; color: var(--ink); }
.type-card .mat { height: 180px; }
.type-card .body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.type-card .no { font-family: var(--f-mono); font-size: 14px; font-weight: 700; color: var(--accent); }
.type-card .title { font-family: var(--f-display); font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; }
.doc .title, .chips a, .doc-info h1, .fields dd { overflow-wrap: anywhere; }
.type-card .years { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.mat { display: flex; align-items: center; justify-content: center; padding: 14px; background: var(--mat); }
.mat img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 2px 5px rgba(42, 31, 23, .3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 36px; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 7px 13px; background: var(--card); border: 1px solid var(--rule); border-radius: 2px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.chips a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--card); }
.chips .no { margin-right: 6px; font-family: var(--f-mono); font-size: 13px; }
.doc-group { margin-bottom: 40px; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.doc { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.doc:hover { border-color: var(--accent); background: #FFFBF3; color: var(--ink); }
.doc .mat { height: 210px; }
.doc .body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.doc .year { font-family: var(--f-mono); font-size: 14px; font-weight: 700; color: var(--accent); }
.doc .title { font-weight: 700; font-size: 15px; line-height: 1.4; }
.docgrid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.docgrid figure { margin: 0; padding: 24px; background: var(--mat); border: 1px solid var(--rule); }
.docgrid figure img { display: block; width: 100%; box-shadow: 0 4px 10px rgba(42, 31, 23, .3); }
.docgrid figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }
.doc-info { display: flex; flex-direction: column; gap: 22px; }
.doc-info .year-big { font-family: var(--f-mono); font-size: 16px; font-weight: 700; color: var(--accent); }
.doc-info h1 { margin: 8px 0 0; font-size: 38px; line-height: 1.1; }
.fields { display: grid; grid-template-columns: max-content minmax(0, 1fr); margin: 0; border-top: 1px solid var(--rule); }
.fields dt { padding: 12px 20px 12px 0; border-bottom: 1px solid var(--rule); font-family: var(--f-sc); font-size: 17px; letter-spacing: .04em; color: var(--muted); }
.fields dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.note { margin: 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-head { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 4px double var(--ink); }
.faq-head h1 { font-size: 52px; line-height: 1.04; margin-bottom: 12px; }
.faq-head h1:last-child { margin-bottom: 0; }   /* answer pages have no byline since 2026-11-20 */
.byline { margin: 0; font-style: italic; font-size: 15px; color: var(--muted); }
.answer { font-size: 19px; line-height: 1.75; overflow-wrap: break-word; }
.answer p, .answer ul, .answer ol, .answer blockquote, .answer table, .answer pre { margin: 0 0 20px; }
.answer ul, .answer ol { padding-left: 26px; }
.answer li { margin: 0 0 8px; }
.answer li > ul, .answer li > ol { margin: 8px 0 0; }
.answer blockquote { padding: 6px 0 6px 22px; border-left: 3px solid #B89A6A; color: var(--ink-3); }
.answer blockquote > :last-child { margin-bottom: 0; }
.answer h2 { margin: 40px 0 14px; font-size: 32px; line-height: 1.15; }
.answer h3 { margin: 32px 0 12px; font-size: 26px; }
.answer h4 { margin: 28px 0 10px; font-family: var(--f-sc); font-size: 21px; letter-spacing: .03em; }
.answer a { overflow-wrap: anywhere; }
.answer table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.answer th, .answer td { padding: 8px 12px; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.answer th { background: var(--mat); font-weight: 700; }
.answer code, .answer pre { font-family: var(--f-mono); font-size: .9em; }
.answer pre { overflow-x: auto; padding: 12px 14px; background: var(--card); border: 1px solid var(--rule); }
.answer hr { margin: 32px 0; border: 0; border-top: 1px solid var(--rule); }
.pn { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 36px; }
.pn a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--card); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.pn a:hover { border-color: var(--accent); background: #FFFBF3; color: var(--ink); }
.pn .dir { font-family: var(--f-sc); font-size: 16px; letter-spacing: .05em; color: var(--muted); }
.pn .t { font-weight: 700; }
.pn .next { text-align: right; }
.licence { margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.toc { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: q; border-top: 1px solid var(--rule); }
.toc li { counter-increment: q; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 18px; line-height: 1.45; }
.toc li::before { content: counter(q); padding-top: 2px; font-family: var(--f-mono); font-size: 15px; color: var(--accent); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero, .strip, .pair, .airmail-inner, .docgrid { grid-template-columns: 1fr; }
  .hero { gap: 36px; padding: 40px 0 56px; }
  .hero h1 { font-size: 54px; }
  .print { transform: rotate(-.8deg); }
  .strip { gap: 40px; }
  .journey { padding: 52px 0 60px; }
  .journey-head h2 { font-size: 40px; }
  .pair { gap: 44px; padding: 52px 0; }
  .airmail-inner { gap: 20px; padding: 30px 26px; }
  .page h1, .faq-head h1 { font-size: 40px; }
  #app h2 { font-size: 36px; }
  .wt-card { padding: 28px 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .home, .page { padding-left: 16px; padding-right: 16px; }
  .brand svg { width: 38px; height: 32px; }
  .brand span { font-size: 24px; }
  .site-nav { gap: 4px 18px; font-size: 15px; }
  .page { padding-top: 28px; }
  .hero h1 { font-size: 44px; }
  .page h1, .faq-head h1 { font-size: 34px; }
  .answer { font-size: 18px; }
  #app h2 { font-size: 30px; }
  .wt-card { padding: 22px 18px; }
  .opt { font-size: 17px; }
  .airmail h2 { font-size: 36px; }
  .toc li { grid-template-columns: 36px minmax(0, 1fr); font-size: 17px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 20px -16px 28px; padding: 0 16px 8px; scrollbar-width: thin; }
  .chips li { flex: none; }
  .chips a { white-space: nowrap; overflow-wrap: normal; }
}

/* ---------- Deprived of Citizenship (/deprived/: search page, person and surname pages, About) ----------
   Built like the Konsulatsmatrikel Finder: home = a centred wordmark + one search box; results and person pages = a
   slim bar with the small wordmark and the search box, then a ledger table or the entry. */
.dp { max-width: 1160px; margin: 0 auto; padding: 0 24px 76px; }
.dp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 18px 0; margin-bottom: 26px; border-bottom: 1px solid var(--rule); }
.dp-h1 { margin: 0; font: inherit; line-height: 1; }
.dp-mark { font-family: var(--f-display); font-size: 30px; line-height: 1; color: var(--ink); text-decoration: none; }
.dp-mark:hover { color: var(--ink); }
.dp-sub { display: none; margin: 0; color: var(--muted); font-size: 17px; }
.dp-about { font-size: 15px; }
.dp-search { display: flex; gap: 10px; flex: 1; max-width: 640px; min-width: 0; }
.dp-search input { flex: 1; min-width: 0; height: 46px; padding: 10px 16px; font: inherit; font-size: 16px; color: var(--ink); background: var(--card); border: 1px solid #8C7A63; border-radius: 2px; }
.dp-search input:hover { border-color: var(--muted); }
.dp-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(48, 74, 59, .18); }
.dp-search button { height: 46px; padding: 0 22px; font: 700 15px var(--f-text); color: var(--card); background: var(--accent); border: 1px solid var(--accent); border-radius: 2px; cursor: pointer; }
.dp-search button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
body.dp-home main.dp { display: flex; flex-direction: column; justify-content: center; }
body.dp-home .dp-top { flex-direction: column; justify-content: center; gap: 22px; margin: 0; padding: 7vh 0 12vh; border-bottom: 0; text-align: center; }
body.dp-home .dp-mark { font-size: clamp(42px, 8vw, 76px); }
body.dp-home .dp-sub { display: block; }
body.dp-home .dp-search { flex: none; width: 100%; max-width: 584px; }
body.dp-home .dp-search input { height: 50px; }
body.dp-home .dp-search button { height: 50px; }
.dp-count { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); }
.dp-tablewrap { overflow-x: auto; }
.dp-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.dp-table th { padding: 6px 10px; text-align: left; font: 400 16px var(--f-sc); letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--ink); }
.dp-table td { padding: 8px 10px; vertical-align: top; border-bottom: 1px solid #E2D5BE; overflow-wrap: anywhere; }
.dp-table td .sub { font-size: 13.5px; color: var(--muted); }
.dp-table td.date { white-space: nowrap; }
.dp-entry .fields .muted { font-size: inherit; }   /* one font and size per line */
.dp-name { text-decoration: none; }
.dp-name:hover { text-decoration: underline; }
.dp-tag { display: inline-block; padding: 1px 8px; border-radius: 2px; font-size: 13.5px; line-height: 1.5; background: var(--mat); color: var(--ink-3); }
.dp-tag--d, .dp-tag--dp, .dp-tag--n { background: #F2D5CF; color: #6B1F17; }
.dp-entry { max-width: 808px; }
.dp-entry h1 { margin: 10px 0 12px; font-size: 46px; line-height: 1.05; }
.dp-entry h2 { margin: 0 0 10px; font-size: 26px; }
.dp-kind { margin: 0 0 22px; }
.dp-entry .fields { margin-bottom: 26px; }
.dp-entry .fields dd { overflow-wrap: anywhere; }
.dp-orig { margin-bottom: 26px; font-size: 17px; }
.dp-steps { margin: 0; padding-left: 24px; }
.dp-steps li { margin-bottom: 10px; padding-left: 4px; }
.dp-steps li:last-child { margin-bottom: 0; }
.dp-orig p:last-child, .dp-proves p:last-child { margin-bottom: 0; }
.dp-proves { margin-bottom: 22px; }
.dp-more { font-weight: 700; }
.dp-hub { margin-bottom: 22px; }
.dp-hub h1 { margin-top: 8px; }
.dp-text { max-width: 760px; }
.dp-text h1 { margin: 10px 0 18px; font-size: 46px; line-height: 1.05; }
.dp-text .lead { margin-bottom: 8px; }
.dp-counts { min-width: 520px; margin-bottom: 18px; }
.dp-text h2 { margin: 34px 0 12px; font-size: 30px; }
.dp-text ul { margin: 0 0 16px; padding-left: 22px; }
.dp-text li { margin-bottom: 6px; }
@media (max-width: 860px) {
  .dp-entry h1, .dp-text h1 { font-size: 38px; }
}
@media (max-width: 560px) {
  .dp { padding-left: 16px; padding-right: 16px; }
  .dp-search { flex-basis: 100%; max-width: none; }
  .dp-search button { padding: 0 16px; }
  .dp-entry h1, .dp-text h1 { font-size: 32px; }
  .dp-entry .fields { grid-template-columns: 1fr; }
  .dp-entry .fields dt { padding-bottom: 0; border-bottom: 0; }
}

/* ---------- Law project (/law/) ---------- */
.law-cards { margin: 28px 0 22px; }
.law-foot { max-width: 760px; }
.law-year { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 26px 0 10px; padding: 18px 20px; background: var(--card); border: 1px solid var(--rule); max-width: 620px; }
.law-year label { font-family: var(--f-sc); font-size: 20px; letter-spacing: .04em; }
.law-year input { width: 9em; min-height: 46px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: 2px; background: var(--white); font: 20px var(--f-mono); color: var(--ink); }
.law-year--small { margin: 0 0 26px; padding: 10px 14px; max-width: 460px; }
.law-year--small label { font-size: 17px; }
.law-year--small input { font-size: 17px; width: 7em; min-height: 42px; }
.law-result { min-height: 24px; margin: 0 0 30px; max-width: 760px; }
.law-options { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.law-options li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.law-versions { columns: 2 340px; column-gap: 40px; margin: 18px 0 0; padding-left: 28px; font-size: 15.5px; }
.law-versions li { break-inside: avoid; margin-bottom: 4px; }
.law-versions .lv-dates { font-family: var(--f-mono); font-size: 14.5px; }
.law-versions .lv-name { color: var(--muted); }
.law .rule-head { margin-top: 40px; }

.lawdoc { max-width: 800px; }
.lawdoc--inline { margin-top: 54px; padding-top: 30px; border-top: 4px double var(--ink); }
.law-h1 { margin: 10px 0 12px; font-size: 38px !important; line-height: 1.12 !important; }
.law-h2 { margin: 10px 0 12px; font-size: 30px; line-height: 1.15; }
.law-inforce { margin: 0 0 26px; font-family: var(--f-mono); font-size: 15.5px; color: var(--ink-3); }
.law-meta { margin: 0 0 26px; padding: 12px 16px; background: var(--card); border: 1px solid var(--rule); font-size: 14.5px; line-height: 1.55; }
.law-meta div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 3px 0; }
.law-meta dt { font-family: var(--f-sc); color: var(--muted); }
.law-meta dd { margin: 0; overflow-wrap: anywhere; }
.lawtext { font-size: 16.5px; line-height: 1.7; hyphens: auto; overflow-wrap: break-word; }
.lawtext h2 { margin: 34px 0 10px; font-size: 25px; line-height: 1.2; }
.lawtext h3 { margin: 26px 0 8px; font-size: 21px; color: var(--accent); }
.lawtext h4 { margin: 18px 0 6px; font-size: 18px; }
.lawtext p { margin: 0 0 12px; }
.lawtext table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; margin: 0 0 16px; }
.lawtext th, .lawtext td { padding: 5px 9px; border: 1px solid var(--rule); vertical-align: top; }
.lawtext blockquote { margin: 0 0 14px; padding-left: 16px; border-left: 3px solid var(--rule-2); color: var(--ink-2); }
.lt-page { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.law-top { margin-top: 18px; font-size: 15px; }

.law-prose { max-width: 800px; }
.law-prose h1 { margin: 10px 0 18px; font-size: 46px !important; line-height: 1.05 !important; }
.law-prose h2 { margin: 38px 0 12px; font-size: 30px; line-height: 1.15; }
.law-prose h3 { margin: 26px 0 10px; font-size: 23px; line-height: 1.2; }
.law-prose h4 { margin: 20px 0 8px; font-size: 19px; }
.law-prose ul, .law-prose ol { margin: 0 0 16px; padding-left: 24px; }
.law-prose li { margin-bottom: 6px; }
.law-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; line-height: 1.5; }
.law-prose th { padding: 7px 10px; text-align: left; font: 400 16px var(--f-sc); letter-spacing: .03em; color: var(--muted); border-bottom: 1px solid var(--ink); }
.law-prose td { padding: 7px 10px; vertical-align: top; border-bottom: 1px solid #E2D5BE; }
.law-prose blockquote { margin: 0 0 16px; padding-left: 16px; border-left: 3px solid var(--rule-2); color: var(--ink-2); }
.law-prose img { display: block; margin: 12px 0 8px; border: 1px solid var(--frame); box-shadow: var(--shadow-card); max-width: min(100%, 560px); }
.law-thumb { float: right; width: 150px; margin: 4px 0 12px 20px; cursor: zoom-in; }
.law-thumb img { display: block; margin: 0; width: 100%; height: auto; }
.law-prose h2, .law-prose h3 { clear: both; }
.law-zoom { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; cursor: zoom-out; }
.law-zoom::backdrop { background: rgba(20, 16, 10, .82); }
.law-zoom img { display: block; max-width: 96vw; max-height: 96vh; width: auto; height: auto; box-shadow: 0 6px 30px rgba(0,0,0,.5); }
@media (max-width: 520px) { .law-thumb { width: 110px; margin-left: 14px; } }
.law-prose code { font-family: var(--f-mono); font-size: .92em; }
.law-prose--long { font-size: 16.5px; }
.lawref { font-size: .82em; white-space: nowrap; }
.law-toc { margin: 0 0 30px; padding: 14px 20px; background: var(--card); border: 1px solid var(--rule); font-size: 15.5px; }
.law-toc summary { cursor: pointer; font-family: var(--f-sc); font-size: 19px; letter-spacing: .04em; }
.law-toc ul { list-style: none; margin: 10px 0 0; padding-left: 4px; }
.law-toc li { margin-bottom: 4px; }
.law-index { list-style: none; margin: 0 0 18px; padding: 0; }
.law-index li { display: grid; grid-template-columns: 11.5em 1fr; gap: 14px; padding: 7px 0; border-bottom: 1px solid #E2D5BE; }
.law-index .li-date { font-family: var(--f-mono); font-size: 14.5px; color: var(--muted); padding-top: 2px; }
.law-list { max-width: 800px; }

.p71 { max-width: 980px; margin: 24px 0 10px; }
.p71-map { margin: 0; }
.p71-map svg { display: block; width: 100%; height: auto; background: #E4EAEC; border: 1px solid var(--frame); box-shadow: var(--shadow-card); }
.p71-sea { fill: #D7E2E5; }
.p71-ctx { fill: #ECE6DA; stroke: #B7AB97; stroke-width: .7; }
.p71-st { stroke: #6E5E4E; stroke-width: .6; cursor: pointer; }
.p71-st:hover { filter: brightness(1.06); stroke: var(--accent); stroke-width: 1.2; }
.p71-st.is-sel { stroke: var(--accent); stroke-width: 2; filter: saturate(1.4); }
.p71-map .is-off { display: none; }
.p71-year { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 10px; }
.p71-year label { font-family: var(--f-sc); font-size: 19px; letter-spacing: .04em; }
.p71-year output { font: 700 22px var(--f-mono); color: var(--accent); min-width: 3.2em; }
.p71-year input { flex: 1 1 260px; accent-color: var(--accent); }
.p71-ynote { flex-basis: 100%; font-size: 14px; min-height: 1.4em; }
.p71-town circle { fill: var(--ink-3); stroke: var(--white); stroke-width: 1.2; transition: r .12s; }
.p71-town text { font: 12px var(--f-text); fill: var(--ink); paint-order: stroke; stroke: rgba(255,250,240,.85); stroke-width: 3px; pointer-events: none; }
.p71-town:hover circle, .p71-town:focus circle { fill: var(--accent); r: 6.5; }
.p71-town.is-same circle { fill: var(--navy); }
.p71-town.is-on circle { fill: var(--accent); r: 7.5; }
.p71-town.is-on text { font-weight: 700; }
.p71-map figcaption { margin-top: 8px; font-size: 14px; }
.p71-card { position: sticky; top: 16px; padding: 20px 20px 10px; background: var(--card); border: 1px solid var(--rule); min-height: 240px; }
.p71-label { display: block; font-family: var(--f-sc); font-size: 19px; letter-spacing: .04em; margin-bottom: 6px; }
.p71-card input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: 2px; background: var(--white); font: 17px var(--f-text); color: var(--ink); margin-bottom: 14px; }
.p71-town-name { font-size: 32px; margin: 4px 0 2px; }
.p71-period { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 15.5px; line-height: 1.55; }
.p71-period p { margin: 0 0 6px; }
.p71-when { font-family: var(--f-mono); font-size: 14px; color: var(--muted); }
.p71-state { font-family: var(--f-display); font-size: 23px; }
.p71-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 28px; }
.p71-states h3 { font-size: 21px; margin: 6px 0 6px; color: var(--accent); }
.p71-states ul { list-style: none; margin: 0 0 12px; padding: 0; }
.p71-states li { padding: 3px 0; }
.p71-towns tr:target { background: #F2E3C6; }
@media (max-width: 900px) {
  .p71 { grid-template-columns: 1fr; }
  .p71-card { position: static; }
  .law-prose h1 { font-size: 36px !important; }
  .law-h1 { font-size: 30px !important; }
  .law-index li { grid-template-columns: 1fr; gap: 0; }
}

/* FAQ: preview pictures beside a paragraph (imgur albums hosted here, eleventy.config.js imgur_shots) + big view */
.answer { display: flow-root; }   /* holds the floated picture stacks */
/* picture stack floats right beside its paragraph; the following text flows around it (no empty space below short
   paragraphs). Each stack starts level with its own paragraph (clear: right). 2026-11-20 */
.answer .with-shots { clear: right; margin: 0 0 20px; }
.answer .with-shots > p { margin: 0; }
.shots-col { float: right; display: flex; flex-direction: column; gap: 12px; margin: 4px 0 12px 22px; }
.answer h2, .answer h3, .answer h4, .answer hr, .answer table, .answer .yt, .faq-form { clear: both; }
.shots { position: relative; display: block; width: 150px; padding: 6px 6px 0; background: var(--white); border: 1px solid var(--frame); box-shadow: var(--shadow-snap); text-decoration: none; cursor: zoom-in; }
.shots--many { box-shadow: 4px 4px 0 -1px var(--white), 4px 4px 0 0 var(--frame), 8px 8px 0 -1px var(--white), 8px 8px 0 0 var(--frame), var(--shadow-snap); }
.shots img { display: block; width: 100%; height: 104px; margin: 0; object-fit: cover; object-position: top; background: var(--mat); }
.shots-n { display: block; padding: 3px 0 4px; font-family: var(--f-sc); font-size: 14px; line-height: 1.3; letter-spacing: .03em; color: var(--accent); text-align: center; }
.shots:hover, .shots:focus-visible { border-color: var(--accent); }
.shots:hover .shots-n { text-decoration: underline; }
@media (max-width: 560px) {
  .shots-col { margin-left: 14px; }
  .shots { width: 96px; padding: 4px 4px 0; }
  .shots img { height: 70px; }
  .shots-n { font-size: 12px; }
}
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 14, 10, .94); color: #F3EADB; overscroll-behavior: contain; }
.lb::backdrop { background: rgba(20, 14, 10, .94); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb-fig { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; padding: 56px 72px 20px; box-sizing: border-box; }
.lb-fig img { display: block; max-width: 100%; max-height: calc(100% - 34px); margin: 0; object-fit: contain; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lb-count { margin-top: 10px; font-family: var(--f-sc); font-size: 16px; letter-spacing: .05em; }
.lb button { position: absolute; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; background: rgba(243, 234, 219, .12); border: 1px solid rgba(243, 234, 219, .35); border-radius: 50%; font: 30px/1 var(--f-text); color: #F3EADB; cursor: pointer; }
.lb button:hover, .lb button:focus-visible { background: rgba(243, 234, 219, .28); }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 10px; right: 12px; font-size: 26px !important; }
.lb--one .lb-prev, .lb--one .lb-next, .lb--one .lb-count { display: none; }
@media (max-width: 560px) {
  .lb-fig { padding: 60px 8px 76px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-prev { left: calc(50% - 70px); } .lb-next { right: calc(50% - 70px); }
  .lb-count { position: absolute; top: 22px; left: 16px; margin: 0; }
}

/* FAQ: contact form under an answer (src/_includes/faq-form-record.njk, sent by worker/contact.js) */
.faq-form { margin: 28px 0 0; padding: 22px 24px 24px; background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow-card); }
.faq-form > p:first-child { margin: 0 0 14px; }
.faq-form label { display: block; margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--ink-2); line-height: 1.4; }
.faq-form input:not(.wt-help-trap):not([type=checkbox]), .faq-form textarea { display: block; width: 100%; box-sizing: border-box; min-height: 48px; margin: 0 0 16px; padding: 10px 14px; background: var(--white); border: 1px solid var(--rule-2); border-radius: 2px; font: inherit; font-size: 17px; color: var(--ink); }
.faq-form-choices { margin: 0 0 16px; padding: 0; border: 0; }
.faq-form-choices legend { padding: 0; margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--ink-2); line-height: 1.4; }
.faq-form .faq-form-choices label { display: inline-flex; align-items: center; gap: 8px; margin: 0 24px 0 0; min-height: 44px; font-size: 17px; font-weight: 400; color: var(--ink); cursor: pointer; }
.faq-form .faq-form-choices input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--accent); }
.faq-form textarea { resize: vertical; line-height: 1.5; }
.faq-form input:focus, .faq-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.faq-form .wt-help-send { margin-top: 4px; }
.faq-form-status { margin: 12px 0 0 !important; font-size: 16px; }
.faq-form-status:empty { display: none; }
.answer li > .with-shots { margin: 0; }
.answer .with-shots + ul, .answer .with-shots + ol { margin-top: 8px; }
.shots--words img { object-fit: contain; object-position: center; padding: 0 4px; box-sizing: border-box; }
.shots--cell { width: 110px; margin: 2px 0; }
.shots--cell img { height: 76px; }
.shots--cell .shots-n { font-size: 13px; }
.shots-link { cursor: zoom-in; }

/* FAQ: click-to-play YouTube player (eleventy.config.js "youtube_player", script in faq-entry.njk) */
.yt { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.4em; background: #1a1410; border: 1px solid var(--rule); box-shadow: var(--shadow-card); overflow: hidden; }
.yt-play, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { display: block; padding: 0; background: none; cursor: pointer; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(26, 20, 16, .78); box-shadow: 0 2px 12px rgba(0, 0, 0, .35); transition: background .15s; }
.yt-icon::after { content: ""; position: absolute; left: 30px; top: 22px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.yt-play:hover .yt-icon, .yt-play:focus-visible .yt-icon { background: var(--accent); }
.yt-play:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.yt-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); color: #fff; font-size: 15px; line-height: 1.35; text-align: left; }

/* ---------- document stories (/stories/) ---------- */
.stories-head { max-width: 820px; margin-bottom: 30px; }
.stories-head h1 { margin-top: 10px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; padding: 46px 0; border-top: 1px solid var(--rule); }
.story:nth-of-type(even) .story-pics { order: 2; }
.story-pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 22px; background: var(--mat); border: 1px solid var(--rule); }
.story-pic { display: block; padding: 6px; background: var(--white); border: 1px solid var(--frame); box-shadow: var(--shadow-snap); cursor: zoom-in; }
.story-pic img { display: block; width: 100%; }
.story-pic--main { grid-column: 1 / -1; justify-self: center; }
.story-pic--main img { width: auto; max-height: 560px; }
.story-pics--many .story-pic:not(.story-pic--main) img { height: 120px; object-fit: cover; object-position: top; }
.story-pic:hover, .story-pic:focus-visible { border-color: var(--accent); }
.story-enlarge { grid-column: 1 / -1; margin: 0; font-family: var(--f-sc); font-size: 14px; letter-spacing: .03em; color: var(--muted); text-align: center; }
.story-year { margin: 0 0 4px; font-family: var(--f-mono); font-size: 15px; letter-spacing: .08em; color: var(--accent); }
.story-text h2 { margin-bottom: 16px; font-size: 38px; }
.story-text p:last-child { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.stories-foot { padding-top: 26px; border-top: 1px solid var(--rule); }
@media (max-width: 860px) {
  .story { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 34px 0; }
  .story:nth-of-type(even) .story-pics { order: 0; }
  .story-text h2 { font-size: 32px; }
}
@media (max-width: 560px) { .story-pics { padding: 12px; gap: 10px; } .story-pics--many .story-pic:not(.story-pic--main) img { height: 84px; } }

/* Contact page (src/contact/index.njk) */
.contact-intro p { font-size: 18px; line-height: 1.6; margin: 0 0 14px; }
.contact-example { margin: 4px 0 18px; padding: 14px 20px 2px; border-left: 3px solid var(--accent); background: var(--card); }
.contact-example p { margin: 0 0 12px; }
.contact-form { margin-top: 28px; }
.contact-form input.contact-files { min-height: 0; padding: 10px; }
.contact-file-list { margin: -6px 0 16px; padding-left: 20px; font-size: 16px; }
.contact-file-list:empty { display: none; }
.contact-file-list li { margin: 4px 0; }
.contact-file-remove { margin-left: 6px; padding: 0; background: none; border: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* ---------- 2026-11-21 look: small labels as quiet capitals (they were IM Fell small caps) ---------- */
.eyebrow, .section-label, .card-no, .year-label, .wt-label, .fields dt, .pn .dir, .dp-table th,
.law-year label, .law-meta dt, .law-prose th {
  font-family: var(--f-text); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.eyebrow, .card-no, .wt-label { color: var(--muted); }
.btn { font-family: var(--f-text); font-weight: 600; border-radius: 3px; }
.btn--primary { font-weight: 600; }

/* German missions in the US (/missions/): same look as the map of Germany before 1871 */
.mm { max-width: 1100px; margin: 24px 0 10px; }
.mm-map { margin: 0; }
.mm-map svg { display: block; width: 100%; height: auto; background: #E4EAEC; border: 1px solid var(--frame); box-shadow: var(--shadow-card); }
.mm-st { fill: #E8D3A9; stroke: #6E5E4E; stroke-width: .6; }
.mm-inset { fill: none; stroke: #9AA7AB; stroke-width: .8; stroke-dasharray: 3 3; }
.mm-pin circle { fill: var(--ink-3); stroke: var(--white); stroke-width: 1.2; transition: r .12s; }
.mm-pin text { font: 11.5px var(--f-text); fill: var(--ink); paint-order: stroke; stroke: rgba(255,250,240,.85); stroke-width: 3px; }
.mm-pin:hover circle, .mm-pin:focus circle { fill: var(--accent); r: 6.5; }
.mm-pin:hover text, .mm-pin:focus text { font-weight: 700; fill: var(--accent); }
.mm-map figcaption { margin-top: 8px; font-size: 14px; }
.mm-list td:last-child { word-break: break-all; }
