/* Case-story pages (site/public/stories/*.html): additions to site.css. DRAFT 12.11.2026 – not linked from the landing page.
   Same desk, sheets, letterhead and footer as the landing page; story.js rules the head and draws the thread; rules for new pages: site/DESIGN.md. */

.story-desk { padding-top: 0; }
.story-desk .register { padding-bottom: calc(var(--lh) * 1.5); }
.storyhead { position: relative; padding-top: calc(var(--lh) * 2); }
.storyhead h1 { max-width: 15em; }
.storyhead .lead { margin-top: var(--in); }
.storyhead .meta { margin-top: var(--in); font-size: 14px; line-height: var(--lh); color: var(--muted); }

/* the head sheet is ruled like the landing page register, but only once story.js has put every line of the heading
   on a rule (baseline 3px above it; --rule-top = letterhead + draft band, a whole number of rules). No script: no rules,
   so a rule never runs through text. */
.story-desk .register:not(.snapped) { background-image: none; }
.story-desk .register.snapped { background-position: 0 var(--rule-top); }
.story-desk .register.snapped::before { top: var(--rule-top); }

/* the draft banner: a slate band across the sheet, impossible to miss */
.draftbar { margin: 0 calc(-1 * var(--pad-r)) 0 calc(-1 * (var(--margin) + var(--gutter)));
            padding: 8px var(--pad-r) 8px calc(var(--margin) + var(--gutter));
            background: var(--btn-inner); border-bottom: 1px solid var(--record-edge);
            font: 500 15px/22px var(--body); color: var(--ink); max-width: none; }
.draftbar span { font: var(--label); letter-spacing: .14em; text-transform: lowercase; font-variant-caps: small-caps; color: var(--seal); margin-right: .6em; }

/* the story text */
.story { max-width: 860px; }
.story h2 { font-size: clamp(22px, 2.4vw, 26px); line-height: calc(var(--lh) * 1.25); }
.story .grp > h2 + p { margin-top: var(--in); }
.story p, .story li { max-width: var(--measure); }
.story q, .story .rq { font-style: italic; }
.story ul.dash { margin-top: var(--in); }
.story ul.dash li + li { margin-top: 4px; }
.draftnote { border-left: 3px double var(--faded); padding: 4px 0 4px 16px; margin-top: var(--in); font-style: italic; color: var(--ink); }
.draftnote b { font-style: normal; font-weight: 500; color: var(--ink); }

/* a document print with a placeholder until the public-domain image is fetched */
.docfig { margin: var(--in) 0; max-width: 460px; }
.docfig .placeholder { aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 18px; text-align: center;
                       border: 1px dashed var(--field-line); background: var(--paper); color: var(--muted); font-size: 14px; line-height: 22px; }

/* the line back: a quiet list of generations */
.genline { list-style: none; padding: 0; margin-top: var(--in); border-top: 1px solid var(--card-line); }
.genline li { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 0 14px; padding: 6px 0; border-bottom: 1px solid var(--card-line); font-size: 16px; line-height: 25px; max-width: none; }
.genline li b { font-weight: 500; font-family: var(--display); color: var(--seal); font-size: 18px; }

/* sources box */
.sources { max-width: 1060px; }
.sources table { margin-top: var(--in); font-size: 14.5px; }
.sources th { padding: 4px 10px 4px 0; border-bottom: 1px solid var(--card-line); }
.sources td { padding: 6px 10px 6px 0; line-height: 22px; border-bottom: 1px solid var(--card-line); }
.sources td:last-child { color: var(--muted); white-space: nowrap; }
.sources .legend { margin-top: var(--in); }
@media (max-width: 760px) {
  .sources table, .sources tbody, .sources tr, .sources td { display: block; width: 100%; }
  .sources thead { display: none; }
  .sources tr { padding: 8px 0; border-bottom: 1px solid var(--card-line); }
  .sources td { border: 0; padding: 0; }
  .sources td:first-child { font-weight: 500; }
  .sources td:last-child { white-space: normal; }
}

/* site.css sets line-height 0 on inline b/span inside li; the generation list needs real lines */
.genline li > b, .genline li > span { line-height: 25px; }
/* open points: plain dashes, not the ticks of .dash (those mean "you get this") */
.openlist { list-style: none; padding: 0; margin-top: var(--in); }
.openlist li { position: relative; padding-left: 1.2em; }
.openlist li + li { margin-top: 4px; }
.openlist li::before { content: "–"; position: absolute; left: 0; color: var(--faded); }
.sources .legend { max-width: 60em; }
.genline + p, .openlist + p { margin-top: var(--in); }

/* ==================================================================
   Visual pass (owner approval 12.11.2026): pictures, maps, timeline, family tree, clue cards, reconstruction.
   All colours via tokens; motion only in story.js (one thread draw, the reading glass), none with reduced motion.
   ================================================================== */
.story .grp > figure, .story .grp > .clues, .story .grp > .recon, .story .grp > .thennow, .story .grp > .famcards, .story .grp > .withside { margin-top: var(--in); }
.story figure + p, .story .clues + p, .story .recon + p, .story .thennow + p, .story .famcards + p, .story .withside + p { margin-top: var(--in); }
.sheet.wide { max-width: 1060px; }
.print figcaption { max-width: none; }

/* the passport: a cropped print of the form, the applicant's photo as a smaller print beside it */
.docpair { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, .75fr); gap: 18px 22px; align-items: start; max-width: 780px; }
.docpair .photo { margin-top: 26px; rotate: 1.2deg; }
@media (max-width: 600px) { .docpair { grid-template-columns: minmax(0, 1fr); } .docpair .photo { max-width: 220px; margin-top: 0; } }

/* clue cards: index cards with a ruled head line; what the paper said above, what the register says below */
.clues { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: none; }
.clue { position: relative; background: var(--paper-2); border: 1px solid var(--record-edge); padding: 8px 14px 12px;
        box-shadow: 0 6px 16px -10px var(--shadow-far); max-width: none; }
.clue > .src:first-of-type { margin: 0 -14px; padding: 0 14px 6px; border-bottom: 1px solid color-mix(in srgb, var(--seal) 55%, transparent); }
.clue p { max-width: none; margin: 0; }
.clue .src { font: var(--label); letter-spacing: .1em; text-transform: lowercase; font-variant-caps: small-caps; color: var(--muted); line-height: 22px; }
.clue .said { font: 25px/36px var(--display); color: var(--ink); margin-top: 6px; }
.clue .to { font-size: 20px; line-height: 22px; color: var(--faded); margin: 2px 0; }
.clue .found { font: var(--head-weight) 17.5px/25px var(--head); color: var(--ink); }
.clue .ev { font-size: 13px; line-height: 20px; color: var(--muted); margin-top: 6px; }
.clue.herring .said { position: relative; display: inline-block; color: var(--muted); }
.clue.herring .said::after { content: ""; position: absolute; left: -4px; right: -6px; top: 52%; height: 2px; background: var(--ink); rotate: -4deg; border-radius: 1px; }
.clue .stamp { display: inline-block; margin: 4px 0 6px; font: var(--label); letter-spacing: .14em; text-transform: lowercase; font-variant-caps: small-caps; line-height: 20px;
               color: var(--faded); border: 1px solid var(--faded); padding: 0 6px; rotate: 4deg; }
.clue .note2 { font-size: 15px; line-height: 23px; color: var(--ink); }
@media (max-width: 820px) { .clues { grid-template-columns: minmax(0, 1fr); } }

/* the way home: map panels (I inset Germany, II the Atlantic, III Ohio) in map A's style */
.waymap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "a a" "h o"; gap: 16px; margin: var(--in) 0 0; max-width: none; }
.waymap .wm-wide { grid-area: a; } .waymap [data-order="1"] { grid-area: h; } .waymap [data-order="3"] { grid-area: o; }
.waymap.two { grid-template-areas: "a a" "h t"; } .waymap .side { grid-area: t; align-self: end; }
.wm { display: block; width: 100%; height: auto; box-shadow: 0 0 0 1px var(--record-edge), 0 6px 16px -10px var(--shadow-far); }
.wm .thr { fill: none; stroke: var(--thread); stroke-width: 2.4; stroke-dasharray: 9 6; stroke-linecap: round; stroke-linejoin: round; }
.wm .reveal { fill: none; stroke: var(--mask-on); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.wm .ret { fill: none; stroke: var(--map-route); stroke-width: 1.2; stroke-dasharray: 1.5 4.5; stroke-linecap: round; }
.wm .state { fill: none; stroke: var(--map-border); stroke-width: .9; stroke-dasharray: 5 2 1.2 2; stroke-opacity: .65; }
.wm .rlabel { font-family: var(--body); font-style: italic; font-size: 13.5px; fill: var(--map-ink-2); paint-order: stroke; stroke: var(--map-water); stroke-width: 3px; stroke-linejoin: round; }
.wm .rlabel.out { fill: var(--thread-label); }
.wm .rnote { font-family: var(--body); font-size: 11.5px; fill: var(--map-ink-3); paint-order: stroke; stroke: var(--map-water); stroke-width: 3px; }
.wm .vlabel.small { font-size: 18px; }
.wm text.sea { font-size: 14px; }
.waymap + .caption { margin-top: 10px; }
@media (max-width: 600px) {
  .waymap, .waymap.two { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "a" "o"; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--pad-r) + 6px); }
  .waymap.two { grid-template-areas: "h" "a" "t"; }
  .wm-wide .ph-hide, .wm-wide .cart .c4 { display: none; }
  .wm-wide .town.r1, .wm-wide .town.r2, .wm-wide .town.r3 { font-size: 30px; }
  .wm-wide .vlabel.small { font-size: 34px; stroke-width: 6px; }
  .wm-wide .rlabel { font-size: 25px; stroke-width: 5px; }
  .wm-wide .note { font-size: 24px; }
  .wm-wide text.sea { font-size: 22px; }
  .wm-wide .region { font-size: 24px; }
  .wm-wide .cart .c2 { font-size: 26px; } .wm-wide .cart .box { display: none; }
}

/* the timeline, written on a ruled sheet: years in the margin, one event per line */
.ledger { background-color: var(--paper); max-width: 960px; padding-top: calc(var(--lh) * 2 + 5px); /* +5px: baselines 3px above the rule, as on the register */
          background-image: linear-gradient(to top, var(--rule) 1px, transparent 1px); background-size: 100% var(--lh); }
.ledger::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--margin) - 3px); width: 6px;
                  border-left: 1px solid var(--margin-rule); border-right: 1px solid var(--margin-rule); pointer-events: none; }
.ledger h2 { line-height: calc(var(--lh) * 2); }
/* everything written on the ledger sits on its rules (16.11.2026): text lines one rule high, gaps in whole rules */
.ledger .grp > p, .ledger .grp > .entry { line-height: var(--lh); margin-top: 0; }
.ledger .grp > * + p:not(.entry), .ledger .grp > .tl + p { margin-top: var(--lh); }
.tl { list-style: none; padding: 0; margin-top: var(--lh); max-width: none; }
.tl li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; line-height: var(--lh); max-width: none; }
.tl li > span { line-height: var(--lh); }
.tl .yr { position: absolute; right: calc(100% + var(--gutter) + 12px); top: 0; font: 19px/var(--lh) var(--display); color: var(--seal); white-space: nowrap; font-variant-numeric: oldstyle-nums; }
.tl .ev { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.tl li.trip .what { color: var(--faded); font-style: italic; }
.tl + .fine { margin-top: var(--lh); line-height: var(--lh); }
/* the life line (16.11.2026, as in the client report): one continuous line with a dot per year; birth filled red,
   leaving a red ring, crossings small and hollow; li.part = "In Dodenau" / "In Ohio" */
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--seal); opacity: .55; }
.tl li { padding-left: 24px; }
.tl li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box;
                 background: var(--paper-2); border: 2px solid var(--seal); }
.tl li.key::before { background: var(--thread); border-color: var(--thread); }
.tl li.ship::before { border-color: var(--thread); border-width: 2.5px; }
.tl li.trip::before { width: 8px; height: 8px; left: 2px; top: 10px; border-width: 1.5px; }
.tl li.part::before { display: none; }
.tl li.part .what { font: var(--label); letter-spacing: .14em; text-transform: lowercase; font-variant-caps: small-caps; color: var(--muted); }
.tl li.key .what { font-weight: 600; }
@media (max-width: 600px) {
  .tl li { grid-template-columns: 3.1em minmax(0, 1fr); }
  .tl .yr { position: static; grid-row: 1 / span 2; font-size: 16px; }
  .tl .ev { grid-column: 2; }
}

/* the reconstruction with the reading glass (story.js draws the ink) */
.recon { position: relative; background: var(--paper-2); border: 1px solid var(--record-edge); padding: 8px clamp(12px, 2.4vw, 22px) 12px; max-width: 760px;
         box-shadow: 0 6px 16px -10px var(--shadow-far); }
.recon .lbl { font: var(--label); letter-spacing: .12em; text-transform: lowercase; font-variant-caps: small-caps; color: var(--muted); line-height: 22px; max-width: none; }
.recon .hand { margin-top: 4px; }
.recon .hand .rl { stroke: var(--rule); stroke-width: 1; }
.recon + .hint { margin-top: 8px; }
.withside { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 22px; align-items: start; max-width: none; }
.withside figure.print + .recon { margin-top: var(--in); }
.withside .side { margin-top: 30px; rotate: .8deg; }
@media (max-width: 820px) { .withside { grid-template-columns: minmax(0, 1fr); } .withside .side { max-width: 220px; margin-top: 0; } }

/* the village, then and now */
.thennow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 22px; align-items: start; max-width: 860px; }
.thennow .print:first-child { rotate: -.5deg; } .thennow .print:last-child { rotate: .4deg; margin-top: 14px; }
@media (max-width: 600px) { .thennow { grid-template-columns: minmax(0, 1fr); } .thennow .print:last-child { margin-top: 0; } }

/* the paternal line as a compact tree: newest at the top; the red thread is the line, one row per generation */
.tree { list-style: none; padding: 0; margin-top: var(--in); max-width: 760px; }
.tree li { position: relative; display: grid; grid-template-columns: 4.4em minmax(0, 1fr) auto; gap: 0 16px; padding: 0 0 12px; max-width: none; }
.tree li::before { content: ""; position: absolute; left: calc(4.4em + 16px + 6px); top: 20px; bottom: -6px; width: 2px;
                   background: repeating-linear-gradient(to bottom, var(--thread) 0 9px, transparent 9px 15px); }
.tree li:last-child::before { display: none; }
.tree .y { font: 19px/26px var(--display); color: var(--seal); text-align: right; font-variant-numeric: oldstyle-nums; padding-top: 1px; }
.tree .n { position: relative; padding-left: 26px; }
.tree .n::before { content: ""; position: absolute; left: 1px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--thread); box-sizing: border-box; }
.tree .n b { font-weight: 500; font-size: 17.5px; line-height: 26px; }
.tree .n span { display: block; font-size: 14.5px; line-height: 21px; color: var(--muted); }
.tree .m { font-size: 13.5px; line-height: 26px; color: var(--muted); white-space: nowrap; }
.tree .n span.house { display: inline-block; margin-top: 3px; font: var(--label); letter-spacing: .1em; text-transform: lowercase; font-variant-caps: small-caps;
                      line-height: 18px; color: var(--ink); background: var(--btn-inner); border-left: 3px solid var(--faded); padding: 0 8px 0 7px; }
.tree li.hyp .n::before { border-style: dashed; border-color: var(--faded); }
.tree li.hyp .n b, .tree li.hyp .y { color: var(--muted); font-style: italic; }
.tree li.stop::before { background: none; border-left: 2px dotted var(--faded); width: 0; }
.tree + .fine { margin-top: 6px; }
@media (max-width: 600px) {
  .tree li { grid-template-columns: 3.2em minmax(0, 1fr); }
  .tree li::before { left: calc(3.2em + 16px + 6px); }
  .tree .m { grid-column: 2; padding-left: 26px; line-height: 20px; }
  .tree .y { font-size: 16px; }
}

/* family cards (demo-02): the two Heinrichs side by side, the facts that tell them apart marked */
.famcards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 22px; max-width: none; }
.fam { background: var(--paper-2); border: 1px solid var(--record-edge); padding: 8px 16px 12px; box-shadow: 0 6px 16px -10px var(--shadow-far); }
.fam.ours { border-top: 3px solid var(--thread); }
.fam.other { border-top: 3px solid var(--faded); }
.fam .who { font: var(--label); letter-spacing: .12em; text-transform: lowercase; font-variant-caps: small-caps; color: var(--muted); line-height: 22px; max-width: none; }
.fam.ours .who { color: var(--thread-label); }
.fam h3 { font: 24px/34px var(--display); margin: 0 0 4px; }
.fam dl { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 0; font-size: 15px; line-height: 22px; }
.fam dt, .fam dd { margin: 0; padding: 5px 0; border-top: 1px dotted var(--card-line); }
.fam dt { font: var(--label); letter-spacing: .08em; text-transform: lowercase; font-variant-caps: small-caps; color: var(--muted); line-height: 22px; padding-right: 8px; }
.fam dd.same { color: var(--muted); }
.fam .diff { background: var(--btn-inner); }
.fam dd.diff { font-weight: 500; padding-left: 6px; }
.fam dt.diff { padding-left: 6px; color: var(--ink); }
.fam .src { display: block; font-weight: 400; font-size: 12.5px; line-height: 18px; color: var(--muted); }
.famkey { margin-top: 8px; }
.famkey .k { display: inline-block; width: 26px; height: 12px; background: var(--btn-inner); vertical-align: -1px; margin-right: 6px; }
@media (max-width: 760px) { .famcards { grid-template-columns: minmax(0, 1fr); } .fam dl { grid-template-columns: 6.4em minmax(0, 1fr); } }

/* "How we know this": one fold, the sources table inside */
.howwe details { border-top: 1px solid var(--card-line); border-bottom: 1px solid var(--card-line); margin-top: var(--in); }
.howwe summary { cursor: pointer; font: var(--head-weight) 19px/28px var(--head); padding: 12px 36px 12px 0; list-style: none; position: relative; }
.howwe summary::-webkit-details-marker { display: none; }
.howwe summary::after { content: "+"; position: absolute; right: 4px; top: 11px; font: 400 22px/1 var(--body); color: var(--faded); }
.howwe details[open] summary::after { content: "–"; }
.howwe summary:hover { color: var(--faded); }
.howwe details > div { padding: 0 0 18px; }
.howwe details > div > h3 { margin-top: var(--lh); }
.howwe details > div > h3 + p, .howwe details > div > h3 + table, .howwe details > div > h3 + ul { margin-top: 6px; }
.howwe table { margin-top: 6px; font-size: 14.5px; }
.howwe th { padding: 4px 10px 4px 0; border-bottom: 1px solid var(--card-line); }
.howwe td { padding: 6px 10px 6px 0; line-height: 22px; border-bottom: 1px solid var(--card-line); }
.howwe td:last-child { color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) {
  .howwe table, .howwe tbody, .howwe tr, .howwe td { display: block; width: 100%; }
  .howwe thead { display: none; }
  .howwe tr { padding: 8px 0; border-bottom: 1px solid var(--card-line); }
  .howwe td { border: 0; padding: 0; }
  .howwe td:first-child { font-weight: 500; }
  .howwe td:last-child { white-space: normal; }
}

/* picture credits on the page */
footer.foot .credits { max-width: 62em; }
footer.foot .credits a { line-height: inherit; }

/* ==================================================================
   Source cards ("What the family had" on the stories, "What most families have" on articles). DESIGN.md, "Cards".
   One card = one paper and what it says about origin: label (record, year) · the words, in quotes · what that means ·
   picture (only if we may show it) at the foot. All cards in a row stand straight, are the same height, and every
   picture in one panel sits in a window of the same height (--pic-h). Credit number: bottom right, as on every print.
   ================================================================== */
.story .grp > .hmapfig, .story .grp > .had { margin-top: var(--in); }
.story .hmapfig + p, .story .had + p { margin-top: var(--in); }
.story .grp > figure.print.narrow { max-width: 620px; }
.withside.wideside { grid-template-columns: minmax(0, 1fr) minmax(0, 330px); }
.withside.wideside > div > p + p { margin-top: var(--in); }
.story .withside.wideside + p { margin-top: var(--in); }
@media (max-width: 820px) { .withside.wideside { grid-template-columns: minmax(0, 1fr); } .withside.wideside .side { max-width: 420px; } }

.had { --pic-h: 64px; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; max-width: none; }
.had.photos { --pic-h: 170px; }
/* the papers on the table: the cards of one panel lie together on a shared board – a slightly darker paper tone with a
   hairline edge, so they read as one group (no extra lines, no colour code) */
.had { padding: 14px; background: color-mix(in srgb, var(--desk) 38%, var(--paper)); border: 1px solid var(--card-line);
       box-shadow: inset 0 1px 3px var(--fold-dark); }
.had:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.had li { position: relative; display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--record-edge);
          padding: 8px 12px 12px; box-shadow: 0 6px 16px -10px var(--shadow-far); max-width: none; }
.had p { max-width: none; margin: 0; }
.had .src { font: var(--label); letter-spacing: .1em; text-transform: lowercase; font-variant-caps: small-caps; color: var(--muted); line-height: 20px;
            padding-bottom: 6px; margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-bottom: 1px solid var(--card-line); }
.had .said { font: 21px/28px var(--display); color: var(--ink); margin-top: 6px; }
.had .said.none { font-style: italic; color: var(--muted); }
.had .means { font-size: 14px; line-height: 21px; color: var(--muted); margin-top: 2px; }
.had img { display: block; width: 100%; height: var(--pic-h); margin-top: auto; object-fit: contain; object-position: 50% 50%;
           background: var(--paper); border: 1px solid var(--card-line); }
.had li:has(img) .means { margin-bottom: 10px; }
.had img.fill { object-fit: cover; object-position: var(--focus, 50% 50%); }
.had .picref { right: 18px; bottom: 18px; }
.had-take { margin-top: var(--in); padding: 2px 0 2px 16px; border-left: 3px double var(--faded); font-style: italic; max-width: var(--measure); }
.story .had + .had-take { margin-top: calc(var(--lh) / 2 + 4px); }
.had-take + .fine { margin-top: 6px; }
@media (max-width: 820px) { .had, .had:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .had, .had:has(> li:nth-child(4):last-child) { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 10px; } .had.photos { --pic-h: 200px; } }

/* the three Hesses: towns as dots, coloured by state – no borders drawn */
.hmapfig { max-width: 640px; }
.hmap { display: block; width: 100%; height: auto; box-shadow: 0 0 0 1px var(--record-edge), 0 6px 16px -10px var(--shadow-far); }
.hmap .hm-sheet { fill: var(--map-sheet); }
.hmap .hm-neat { fill: none; stroke: var(--map-border); stroke-width: .7; stroke-opacity: .55; }
.hmap .hm-rivers path { fill: none; stroke: var(--map-river); stroke-width: 1.8; stroke-opacity: .55; stroke-linecap: round; stroke-linejoin: round; }
.hmap .hm-river { font: italic 14px "Spectral", Georgia, serif; fill: var(--map-river-label); }
.hmap .hm-t { stroke: var(--map-sheet); stroke-width: 1.2; }
.hmap .hm-t.gd { fill: var(--map-tint-1); } .hmap .hm-t.el { fill: var(--map-tint-3); } .hmap .hm-t.na { fill: var(--map-tint-6); }
.hmap .hm-t.ot { fill: var(--map-sheet); stroke: var(--map-ink-3); stroke-width: 1.3; }
.hmap .hm-t.cap { stroke: var(--map-ink); stroke-width: 1.8; }
.hmap .hm-hl { fill: none; stroke: var(--map-ink-3); stroke-width: 1.1; stroke-dasharray: 3 3; }
.hmap .hm-town { font-family: "Cormorant SC", Georgia, serif; font-weight: 600; fill: var(--map-ink); paint-order: stroke; stroke: var(--map-sheet); stroke-width: 3.5px; stroke-linejoin: round; }
.hmap .hm-town.r1 { font-size: 19px; } .hmap .hm-town.r2 { font-size: 16px; }
.hmap .hm-st { font: italic 20px "IM Fell English", Georgia, serif; fill: var(--map-land-label); paint-order: stroke; stroke: var(--map-sheet); stroke-width: 4px; stroke-linejoin: round; }
.hmap .hm-st.sub { font-size: 16px; }
.hmap .hm-note { font: italic 13.5px "Spectral", Georgia, serif; fill: var(--map-ink-3); paint-order: stroke; stroke: var(--map-sheet); stroke-width: 3px; }
.hmap .hm-leg { font: 15px "Spectral", Georgia, serif; fill: var(--map-ink); }
.hmap .hm-fine { font: italic 12.5px "Spectral", Georgia, serif; fill: var(--map-ink-3); }

/* Click-to-enlarge (assets/zoom.js): the picture is lifted off the desk as a print – desk-grey backdrop,
   paper mat with the sheet shadow, caption in the print-caption style, a round paper close button. */
img.zoomable { cursor: zoom-in; }
img.zoomable:focus-visible { outline: 2px solid var(--faded); outline-offset: 3px; }
dialog.zoom { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0;
  background: transparent; color: var(--ink); cursor: zoom-out; box-sizing: border-box;
  display: none; align-items: center; justify-content: center; }
dialog.zoom[open] { display: flex; }
dialog.zoom::backdrop { background: color-mix(in srgb, var(--desk) 94%, transparent); }
dialog.zoom .zoom-print { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; background: var(--paper-2);
  padding: 10px 10px 0; border: 1px solid var(--record-edge);
  box-shadow: 0 0 0 1px var(--sheet-edge), 0 1px 2px var(--shadow-near), 0 14px 36px -8px var(--shadow-far); }
dialog.zoom img { display: block; max-width: calc(100vw - 54px); max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; margin: 0 auto; background: var(--paper); }
dialog.zoom .zoom-cap { margin: 0; max-width: 60em; padding: 8px 2px 10px; font-size: 13.5px; line-height: 20px; color: var(--muted); }
dialog.zoom .zoom-cap[hidden] { display: none; }
dialog.zoom .zoom-print:not(:has(.zoom-cap:not([hidden]))) { padding-bottom: 10px; }
dialog.zoom .zoom-close { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  background: var(--paper); color: var(--ink); border: 1px solid var(--sheet-edge); box-shadow: 0 1px 2px var(--shadow-near);
  font: 26px/1 var(--body); cursor: pointer; }
dialog.zoom .zoom-close:hover, dialog.zoom .zoom-close:focus-visible { color: var(--paper); background: var(--ink); }

/* The thread on article and story pages (story.js part 4; #thread, .line, .knot and .cap come from site.css).
   An open ring (data-knot="open") marks a village still to be found: the end of an article's thread at the CTA. */
#thread .knot.open circle { fill: var(--paper-2); stroke: var(--thread); stroke-width: 2; }
.story-desk .slip p + .btns { margin-top: calc(var(--lh) / 2 + 4px); }

/* ---------- Pencil notes (DESIGN.md §14; story.js part 5) ----------
   <p class="pn" data-at="ID"><svg class="ptr" …></svg>at most six words</p>, right after the paragraph, list or figure that
   holds the words (id="ID"). Wide screens with script: in the margin column right of the text, level with those words
   (data-dy nudges it), tilted by --tilt (≤ 2°). Phones, small windows, no script, and beside a side picture
   (.withside, where the margin column is taken): under its paragraph, straight, arrow pointing up.
   .pn.oncard: on a source card, under the quoted words. Caveat is only fetched where a .pn is on the page. */
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/caveat-400.woff2") format("woff2"); }
.story .pn { display: block; font: 400 20px/1.12 "Caveat", "Segoe Print", "Bradley Hand", cursive; color: var(--ink-dry);
             margin: 4px 0 0 1.2em; max-width: 20em; letter-spacing: .005em; text-wrap: balance; }
.story .pn:not(.oncard) + * { margin-top: var(--in); }
.pn svg.ptr { display: inline-block; width: .8em; height: .7em; margin-right: .35em; overflow: visible; rotate: 90deg; vertical-align: 0; }
.pn svg.ptr path { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.had .pn.oncard { font-size: 19.8px; margin: 2px 0 4px; }
@media (min-width: 1100px) {
  .story .grp.pn-host { position: relative; }
  .story .grp.pn-host > .pn[data-at] { position: absolute; left: calc(612px + 34px); top: 0; width: 186px; margin: 0;
             font-size: 22px; rotate: var(--tilt, -1.4deg); transform-origin: left center; text-indent: -1.65em; padding-left: 1.65em; }
  .story .grp.pn-host > .pn[data-at] svg.ptr { rotate: none; width: 1.35em; height: .7em; margin-right: .3em; vertical-align: .05em; }
  .had .pn.oncard { rotate: -1.5deg; transform-origin: left center; }
}

/* Story end: one quiet line to the sample report and the prices (14.11.2026) */
.howwe .storyend { margin-top: var(--in); }
