/* ==========================================================
   B-9856 · Lotenhulle — site patrimonial
   Postaal erfgoed: inkt, crème, papier, één koperrood accent
   en een gedempt postblauw voor de luchtpostrand.
   Geen frameworks, geen externe bronnen. Zie DESIGN.md.
   ========================================================== */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url("../fonts/poppins-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url("../fonts/poppins-latin-ext-800.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #17211b;
  --ink-2: #26322a;
  --text: #333832;
  --muted: #61665e;          /* contrast ≥ 5:1 op crème */
  --cream: #f3efe6;
  --paper: #faf8f3;
  --sheet: #fffdf8;          /* wit papier: labels, zegels */
  --line: #e2dbcd;
  --line-2: #d2c8b4;
  --acc: #c8461f;
  --acc-dark: #a8391a;       /* accent voor kleine tekst (contrast) */
  --acc-soft: #f3d9cc;
  --post: #2e4a74;           /* gedempt luchtpostblauw */
  --post-soft: #dfe5ee;
  --wrap: 1180px;
  --read: 42rem;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "Courier New", Courier, "Nimbus Mono PS", ui-monospace, monospace;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(23,33,27,.04), 0 10px 24px -14px rgba(23,33,27,.28);
  --airmail: repeating-linear-gradient(135deg, var(--acc) 0 12px, transparent 12px 20px, var(--post) 20px 32px, transparent 32px 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration-color: var(--acc); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--acc-dark); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--acc-soft); color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); letter-spacing: -.045em; line-height: 1; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin-top: 0; }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin-top: 1.8em; }
p { margin: 0 0 1.05em; }
em, .serif { font-family: var(--serif); font-style: italic; }
h1 em, h2 em { font-weight: 400; letter-spacing: -.02em; color: var(--acc); }
strong { color: var(--ink); font-weight: 600; }
abbr { text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

h1, h2 { text-wrap: balance; }
h3, .lead { text-wrap: pretty; }
p, li { text-wrap: pretty; }

/* bronverwijzingen: klein en rustig (voetnootnummer, geen kadertje).
   Inline (niet inline-block): zo breekt een nummer nooit los van het woord ervoor. */
sup { line-height: 0; font-size: .64em; vertical-align: super; }
sup a { padding: 0 .08em; text-decoration: none; color: var(--acc-dark); font-family: var(--font); font-weight: 600; font-variant-numeric: tabular-nums; border-radius: 2px; }
sup a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; }
sup a:focus-visible { outline-width: 2px; outline-offset: 1px; }
/* direct opeenvolgende nummers: JS zet .fn-next (CSS "+" negeert tekst ertussen); zonder JS een kleine spatie */
sup:has(> a) { margin-left: .06em; }
html:not(.js) sup:has(> a) + sup:has(> a) { margin-left: .22em; }
sup.fn-next { margin-left: 0; }
sup.fn-next::before { content: ","; content: "," / ""; color: var(--muted); }
h1 sup, h2 sup, .lead sup { font-size: .5em; }
.eyebrow sup, .kicker-mono sup, .meta sup, .when sup, .figures__label sup { font-size: .72em; text-transform: lowercase; letter-spacing: 0; vertical-align: .45em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.read { max-width: var(--read); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; color: #fff; }
.eyebrow, .kicker-mono { display: block; font-family: var(--mono); font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--acc-dark); margin-bottom: .9em; }
.eyebrow::before { content: ""; display: inline-block; width: 1.6em; height: 2px; margin-right: .6em; vertical-align: .32em; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--ink-2); }
.tag { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: .86em; letter-spacing: .06em; padding: .05em .5em; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 3px; color: var(--ink); white-space: nowrap; }

/* ---------- navigatie ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(243,239,230,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav::before { content: ""; display: block; height: 5px; background: var(--airmail), var(--sheet); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 62px; height: 21px; transition: transform .25s; }
.brand:hover img { transform: rotate(-3deg); }
.brand span { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
.brand span i { font-family: var(--serif); font-weight: 400; color: var(--acc-dark); }
/* Menu: gegenereerd door _werk/menu.py (zie README). Hoofditems (.nav__link) en groepen
   (.nav__group = knop + .nav__sub uitklaplijst). Zonder JS: groep opent bij hover/focus;
   met JS (html.js): knop met aria-expanded, Esc sluit. Onder 860 px: menuknop + paneel. */
.nav__nav { margin-left: auto; }
.nav__menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; font-size: .93rem; }
.nav__item { position: relative; }
.nav__link, .nav__group { display: block; padding: 8px 12px; border: 0; border-radius: 6px; background: none; font: inherit; font-weight: 500; line-height: 1.5; text-decoration: none; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.nav__link:hover, .nav__group:hover { background: var(--paper); color: var(--ink); }
.nav__link[aria-current="page"], .nav__item.is-current > .nav__group { color: var(--acc-dark); box-shadow: inset 0 -2px 0 var(--acc); border-radius: 0; }
.nav__group::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .45em; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-.2em) rotate(45deg); transition: transform .15s; }
.nav__group[aria-expanded="true"]::after { transform: translateY(.05em) rotate(-135deg); }
.nav__sub { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 15rem; margin: 0; padding: 6px; list-style: none; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 14px 30px -16px rgba(23,33,27,.45); }
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* brug: hover blijft over de opening */
.nav__sub a { display: block; padding: 8px 12px; border-radius: 4px; text-decoration: none; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.nav__sub a:hover { background: var(--paper); color: var(--ink); }
.nav__sub a[aria-current="page"] { color: var(--acc-dark); background: var(--acc-soft); }
/* zonder JS: openen bij hover of toetsenbordfocus */
html:not(.js) .nav__item:hover > .nav__sub, html:not(.js) .nav__item:focus-within > .nav__sub { display: block; }
/* met JS: de knop bepaalt het (aria-expanded) */
.nav__group[aria-expanded="true"] + .nav__sub { display: block; }
.nav__burger { display: none; }
/* groep met overzichtspagina (.nav__item--split): de naam is een link, de pijlknop ernaast
   (.nav__group--toggle, aria-label "… submenu") opent de uitklaplijst */
.nav__item--split { display: flex; align-items: center; }
.nav__item--split > .nav__link--parent { padding-right: 3px; }
.nav__group--toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 38px; padding: 0 9px 0 6px; }
.nav__group--toggle::after { margin-left: 0; }
.nav__item--split.is-current > .nav__link--parent { color: var(--acc-dark); box-shadow: inset 0 -2px 0 var(--acc); border-radius: 0; }
.nav__item--split.is-current > .nav__group--toggle { color: var(--acc-dark); box-shadow: none; border-radius: 6px; }
/* spellingschakelaar "anno 1770" (gegenereerd door menu.py, alleen op NL- en oud-pagina's):
   een rubberstempel naast de taalwissel. Uit = grijze inkt; aan (.is-on, op een oud-pagina) =
   rode inkt, iets schever. Het is een gewone link; de toestand staat in de naam (aria-label). */
.spelling { display: inline-flex; align-items: baseline; flex: none; min-height: 32px; padding: 7px 8px 5px; border: 3px double currentColor; border-radius: 4px; color: var(--muted); text-decoration: none; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: .92rem; line-height: 1; white-space: nowrap; transform: rotate(-4deg); transition: transform .15s, background-color .15s, color .15s; }
.spelling__anno { font-family: var(--mono); font-style: normal; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; white-space: pre; }
.spelling:hover { color: var(--acc-dark); background: var(--acc-soft); transform: rotate(-6deg); }
.spelling.is-on { color: var(--acc-dark); background: var(--acc-soft); transform: rotate(-8deg); }
.spelling.is-on:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .spelling { transition: none; } }

/* taalwissel: tweevaks-schakelaar (het "|" wordt verborgen) */
.lang { display: inline-flex; margin: 0; font-size: 0; line-height: 1; white-space: nowrap; border: 1.5px solid var(--ink); border-radius: 5px; overflow: hidden; background: var(--sheet); }
.lang > * { font-family: var(--mono); font-size: .8rem; font-weight: 700; letter-spacing: .08em; padding: 7px 9px; }
.lang a { color: var(--ink-2); text-decoration: none; }
.lang a:hover { background: var(--acc-soft); color: var(--acc-dark); }
.lang a:focus-visible { outline-offset: -3px; }
.lang span[aria-current] { background: var(--ink); color: var(--cream); }

/* smalle desktop (volledig menu + taalwissel + 1770-stempel): ondertitel naast het logo weg, zodat niets afbreekt */
.brand span { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1080px) {
  .brand span i { display: none; }
  .nav__inner { gap: 12px; }
}
/* gsm: de ondertitel naast het logo valt weg, zodat taalwissel en menuknop passen */
@media (max-width: 480px) {
  .nav__inner { gap: 10px; }
  .brand { gap: 8px; }
  .brand span i { display: none; }
  .js .nav__burger { padding: 8px 10px; }
  .lang > * { padding: 7px 7px; }
  .spelling__anno { display: none; }
  .spelling { padding: 7px 6px 5px; }
}
/* heel smal (taalwissel + 1770-stempel): de menuknop toont alleen het icoon;
   "Menu" blijft als verborgen tekst de toegankelijke naam */
@media (max-width: 420px) {
  .js .nav__burger { padding: 9px 11px; min-height: 36px; }
  .js .nav__burger > span:not(.nav__burger-icon) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* zeer kleine gsm (≤ 360 px): alleen het logo; de link houdt zijn aria-label */
@media (max-width: 360px) { .brand span { display: none; } }
/* smal scherm (< 860 px) */
@media (max-width: 860px) {
  .brand span { font-size: .98rem; white-space: nowrap; }
  .lang { margin-left: auto; flex: none; }
  .nav__burger { flex: none; }
  /* zonder JS: alle items zichtbaar op een eigen regel, groepen plat uitgeklapt */
  html:not(.js) .nav__inner { flex-wrap: wrap; padding: 10px 0; row-gap: 4px; }
  html:not(.js) .nav__nav { order: 3; width: 100%; margin: 0 -8px; }
  html:not(.js) .nav__menu { flex-wrap: wrap; align-items: flex-start; }
  html:not(.js) .nav__group { display: none; }
  html:not(.js) .nav__sub, html:not(.js) .nav__item:hover > .nav__sub { display: contents; }
  html:not(.js) .nav__sub li, html:not(.js) .nav__item--group { display: contents; }
  html:not(.js) .nav__sub a, html:not(.js) .nav__link { padding: 6px 8px; }
  /* met JS: menuknop + paneel onder de kop */
  .js .nav__burger { display: inline-flex; align-items: center; gap: 8px; order: 3; padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 5px; background: var(--sheet); color: var(--ink); font: inherit; font-size: .88rem; font-weight: 600; line-height: 1; cursor: pointer; }
  .js .nav__burger:hover { background: var(--paper); }
  .nav__burger-icon { position: relative; width: 16px; height: 2px; background: currentColor; border-radius: 1px; transition: background .15s; }
  .nav__burger-icon::before, .nav__burger-icon::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .15s; }
  .nav__burger-icon::before { top: -5px; }
  .nav__burger-icon::after { top: 5px; }
  .nav__burger[aria-expanded="true"] .nav__burger-icon { background: transparent; }
  .nav__burger[aria-expanded="true"] .nav__burger-icon::before { transform: translateY(5px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] .nav__burger-icon::after { transform: translateY(-5px) rotate(-45deg); }
  .js .nav__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; max-height: calc(100vh - 80px); overflow-y: auto; background: var(--cream); border-bottom: 1px solid var(--line-2); box-shadow: 0 18px 30px -18px rgba(23,33,27,.45); }
  .js .nav__nav.is-open { display: block; }
  .js .nav__menu { flex-direction: column; align-items: stretch; gap: 0; width: min(100% - 32px, var(--wrap)); margin: 0 auto; padding: 8px 0 14px; font-size: 1rem; }
  .js .nav__menu > li { border-bottom: 1px solid var(--line); }
  .js .nav__menu > li:last-child { border-bottom: 0; }
  .js .nav__link, .js .nav__group { width: 100%; padding: 12px 4px; text-align: left; border-radius: 0; }
  .js .nav__link[aria-current="page"], .js .nav__item.is-current > .nav__group { box-shadow: inset 3px 0 0 var(--acc); padding-left: 12px; }
  .js .nav__group { display: flex; justify-content: space-between; align-items: center; }
  .js .nav__sub { position: static; min-width: 0; margin: 0 0 10px; padding: 0 0 0 12px; border: 0; border-left: 2px solid var(--line-2); border-radius: 0; box-shadow: none; background: none; }
  .js .nav__sub::before { display: none; }
  .js .nav__sub a { padding: 9px 10px; white-space: normal; }
  /* gesplitste groep in het paneel: link + pijlknop op één rij, uitklaplijst eronder */
  .js .nav__item--split { flex-wrap: wrap; }
  .js .nav__item--split > .nav__link--parent { flex: 1 1 0; width: auto; padding-right: 4px; }
  .js .nav__item--split > .nav__group--toggle { flex: none; width: 48px; min-height: 48px; padding: 0; justify-content: center; border-left: 1px solid var(--line); }
  .js .nav__item--split.is-current > .nav__link--parent { box-shadow: inset 3px 0 0 var(--acc); padding-left: 12px; }
  .js .nav__item--split.is-current > .nav__group--toggle { box-shadow: none; padding-left: 0; border-radius: 0; }
  .js .nav__item--split > .nav__sub { flex: 0 0 100%; }
}

/* ---------- luchtpost-hulpstukken ---------- */
.airmail { border: 8px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--airmail) border-box, var(--sheet) border-box; border-radius: 6px; }
.airmail-rule { border: 0; height: 6px; margin: 40px 0; background: var(--airmail), var(--sheet); border-radius: 1px; }
.cancel { display: block; width: 220px; max-width: 100%; height: 60px; background: url("../img/deco/cancel-inkt.svg") center / 100% 100% no-repeat; opacity: .2; }

/* ---------- poststempel ---------- */
.postmark { --pm: url("../img/deco/postmark-rood.svg"); position: relative; display: inline-grid; place-items: center; width: 150px; aspect-ratio: 1; color: var(--acc); background: var(--pm) center / contain no-repeat; transform: rotate(-12deg); opacity: .85; pointer-events: none; flex: none; }
.postmark--blue { --pm: url("../img/deco/postmark-blauw.svg"); color: var(--post); }
.postmark--ink { --pm: url("../img/deco/postmark-inkt.svg"); color: var(--ink); }
.postmark--light { --pm: url("../img/deco/postmark-licht.svg"); color: var(--cream); }
.postmark--sm { width: 92px; }
.postmark--sm .postmark__date { font-size: .7rem; }
.postmark__date { font-family: var(--mono); font-weight: 700; font-size: 1.02rem; letter-spacing: .04em; line-height: 1; white-space: nowrap; }

@keyframes stamp-drop {
  0%   { opacity: 0; transform: translateY(-14px) scale(1.5) rotate(-4deg); }
  55%  { opacity: 1; transform: scale(.96) rotate(var(--rot, -12deg)); }
  75%  { transform: scale(1.02) rotate(var(--rot, -12deg)); }
  100% { opacity: var(--op, .85); transform: scale(1) rotate(var(--rot, -12deg)); }
}
@keyframes cancel-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.postmark { --rot: -12deg; }
.postmark.is-dropping { animation: stamp-drop .7s cubic-bezier(.3,.7,.3,1) both; }
.is-dropping .hero__inner::before { --rot: -14deg; --op: .8; animation: stamp-drop .7s .15s cubic-bezier(.3,.7,.3,1) both; }
.pagehead.is-dropping::before { --rot: -12deg; --op: .5; animation: stamp-drop .7s .15s cubic-bezier(.3,.7,.3,1) both; }
.is-dropping .hero__inner::after, .pagehead.is-dropping::after, .hero-zip__mark.is-dropping::after { animation: cancel-in .5s .7s ease-out both; }

/* ---------- foto-hero (bestaand) ---------- */
.hero { position: relative; color: var(--cream); background: var(--ink); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,33,27,.15) 0%, rgba(23,33,27,.25) 45%, rgba(23,33,27,.9) 100%); }
.hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; z-index: 2; background: var(--airmail), var(--sheet); }
.hero__inner { position: relative; z-index: 1; min-height: clamp(460px, 72vh, 720px); display: flex; flex-direction: column; justify-content: flex-end; padding: 48px 0 40px; }
.hero__inner::before { content: ""; position: absolute; top: clamp(24px, 6vw, 64px); right: 0; width: clamp(110px, 16vw, 190px); aspect-ratio: 1; background: url("../img/deco/postmark-licht.svg") center / contain no-repeat; transform: rotate(-14deg); opacity: .8; }
.hero__inner::after { content: ""; position: absolute; top: calc(clamp(24px, 6vw, 64px) + clamp(30px, 4.5vw, 54px)); right: clamp(90px, 13vw, 160px); width: clamp(140px, 22vw, 300px); height: clamp(40px, 5vw, 64px); background: url("../img/deco/cancel-licht.svg") center / 100% 100% no-repeat; opacity: .45; }
.hero h1 { color: var(--cream); }
.hero h1 em { color: #f0b49c; }
.hero .lead { color: #ece6d9; max-width: 36em; }
.hero .eyebrow { color: #f0b49c; }
.hero sup a, .section--ink sup a { color: #f0b49c; }
.hero sup a:hover, .section--ink sup a:hover { color: var(--cream); }
.hero__credit { position: relative; z-index: 1; font-size: .74rem; color: #d9d2c3; padding-bottom: 20px; margin: 0 auto; }
.hero__credit a { color: #f3efe6; }

/* ---------- postcode-hero (nieuw) ---------- */
/* De hero vult het scherm onder de menubalk (72 px): tekst + 9856 bovenaan, de foto neemt de rest
   (min. ca. 150 px, zodat ze altijd zichtbaar is). Op heel hoge schermen niet hoger dan 1040 px.
   Tussenruimtes en titel schalen mee met de schermhoogte (vh), zodat ook 1280×720 past. */
.hero-zip { --nav-h: 72px; position: relative; display: flex; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); overflow: hidden;
  min-height: min(calc(100vh - var(--nav-h)), 1040px); min-height: min(calc(100svh - var(--nav-h)), 1040px); }
.hero-zip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--airmail), var(--sheet); }
.hero-zip__inner { flex: none; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding: clamp(18px, 4.4vh, 88px) 0 clamp(18px, 3.8vh, 80px); }
.hero-zip h1 { font-size: clamp(2.5rem, min(6.4vw, 9.2vh), 5.2rem); }
.hero-zip .eyebrow { margin-bottom: clamp(.5em, 1.6vh, .9em); }
.hero-zip .lead { max-width: 34em; font-size: clamp(1rem, min(1.6vw, 2.45vh), 1.25rem); line-height: 1.55; }
.hero-zip__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(14px, 3vh, 28px) 0 0; }
.hero-zip__mark { position: relative; display: flex; justify-content: center; align-items: center; min-height: 240px; }
.hero-zip__mark::before { content: ""; position: absolute; inset: 8% -6% 8% 4%; background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 25% 100%; border: 1px solid var(--line); opacity: .7; z-index: 0; }
.hero-zip__mark .zip { position: relative; z-index: 1; margin: 0 auto 0 0; font-size: clamp(4rem, 8.4vw, 8.6rem); }
.hero-zip__mark .postmark { position: absolute; z-index: 2; top: -16%; right: -3%; width: clamp(110px, 12vw, 170px); --rot: -14deg; transform: rotate(-14deg); mix-blend-mode: multiply; }
.hero-zip__mark::after { content: ""; position: absolute; z-index: 2; top: calc(-16% + clamp(34px, 4.4vw, 58px)); right: calc(-3% + clamp(100px, 12.5vw, 160px)); width: clamp(120px, 18vw, 260px); height: clamp(36px, 4.5vw, 58px); background: url("../img/deco/cancel-rood.svg") center / 100% 100% no-repeat; opacity: .55; mix-blend-mode: multiply; }
.hero-zip__photo { position: relative; flex: 1 0 auto; min-height: clamp(160px, 28vh, 300px); margin: 0; }
/* object-position 38 %: het punt op 38 % van de fotohoogte (net onder de torenspits) komt op 38 % van de
   strook; zo blijft de kerk met spits zichtbaar, hoe smal de strook ook wordt (vanaf ca. 140 px).
   Op een gsm (≤ 640 px) een eigen uitsnede rond de kerk (<picture>, …-gsm.webp, 900×500). */
.hero-zip__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.hero-zip__credit, .hero-zip__photo figcaption { position: absolute; left: 0; right: 0; bottom: 8px; padding: 22px 16px 10px; font-size: .74rem; color: #ece6d9; background: linear-gradient(transparent, rgba(23,33,27,.75)); }
.hero-zip__photo figcaption a { color: var(--cream); }
@media (max-width: 860px) {
  .hero-zip__inner { grid-template-columns: 1fr; }
  .hero-zip__mark { order: -1; min-height: 0; padding: 10px 0 0; justify-content: flex-start; }
  .hero-zip__mark::before { inset: 0 -16px; }
  .hero-zip__mark .zip { font-size: clamp(4.2rem, 19vw, 8.5rem); }
  .hero-zip__mark .postmark { top: -14px; right: 0; width: clamp(96px, 20vw, 150px); }
  .hero-zip__mark::after { top: 20px; right: 76px; width: 140px; height: 40px; }
}

/* ---------- groot postcodecijfer + rol-teller ---------- */
.zip { font-family: var(--font); font-weight: 800; font-size: clamp(5rem, 15vw, 12.5rem); line-height: 1.05; letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; margin: 0; }
.zip__prefix { font-size: .42em; letter-spacing: -.02em; color: var(--acc); vertical-align: .95em; margin-right: .04em; }
.zip--light { color: var(--cream); }
.reel { display: inline-block; height: 1.05em; overflow: hidden; vertical-align: top; }
.reel__strip { display: block; transform: translateY(calc(var(--i, 0) * -1.05em)); }
.reel__strip > span { display: block; height: 1.05em; }
.reel.is-rolling .reel__strip { transition: transform var(--dur, 1.4s) cubic-bezier(.2,.75,.25,1); }

/* ---------- paginakop ---------- */
.pagehead { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); background: var(--paper); }
.pagehead::before { content: ""; position: absolute; top: clamp(18px, 4vw, 44px); right: clamp(-30px, 2vw, 40px); width: clamp(110px, 15vw, 180px); aspect-ratio: 1; background: url("../img/deco/postmark-rood.svg") center / contain no-repeat; transform: rotate(-12deg); opacity: .5; pointer-events: none; }
.pagehead::after { content: ""; position: absolute; top: calc(clamp(18px, 4vw, 44px) + clamp(32px, 4.3vw, 52px)); right: calc(clamp(-30px, 2vw, 40px) + clamp(92px, 12.5vw, 150px)); width: clamp(120px, 20vw, 280px); height: clamp(38px, 4.6vw, 56px); background: url("../img/deco/cancel-rood.svg") center / 100% 100% no-repeat; opacity: .3; pointer-events: none; }
.pagehead .wrap { position: relative; z-index: 1; }
.pagehead h1 { font-size: clamp(2.3rem, 6.5vw, 4.6rem); max-width: 14em; }
.pagehead .lead { max-width: 38em; margin-top: .6em; }
@media (max-width: 640px) { .pagehead::before { opacity: .28; top: 12px; right: -24px; } .pagehead::after { display: none; } }

/* ---------- layout ---------- */
.section { padding: clamp(44px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #d8d2c4; border-bottom: 0; }
.section--ink h2, .section--ink h3 { color: var(--cream); }
.section--ink h2 em { color: #f0b49c; }
.section--ink .eyebrow { color: #f0b49c; }
.section--ink a { color: var(--cream); }
.section--ink .lead { color: #ece6d9; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.grid-2--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .grid-2, .grid-2--even { grid-template-columns: minmax(0, 1fr); } }
/* raster met maar één kind (bv. kader weggehaald): geen lege rechterkolom */
.grid-2 > :only-child { grid-column: 1 / -1; }

/* inhoudsopgave: getypte labeltjes */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 4px; font-size: .86rem; text-decoration: none; background: var(--sheet); color: var(--ink-2); transition: border-color .15s, color .15s, transform .15s; }
.toc a:hover { border-color: var(--acc); color: var(--acc-dark); transform: translateY(-1px); }

/* knoppen */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: 11px 20px; border-radius: 6px; background: var(--ink); color: var(--cream); font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid var(--ink); transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: var(--acc-dark); border-color: var(--acc-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.hero .btn, .section--ink .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.hero .btn--ghost, .section--ink .btn--ghost { background: transparent; color: var(--cream); }

/* ---------- feitenkader: achterkant van een envelop ---------- */
.facts { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 30px 24px 22px; font-size: .94rem; box-shadow: var(--shadow); overflow: hidden; }
.facts::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--airmail), var(--sheet); }
.section--paper .facts { background: var(--sheet); }
.facts h2, .facts h3 { font-family: var(--mono); font-size: .92rem; margin: 0 0 1em; text-transform: uppercase; letter-spacing: .14em; color: var(--acc-dark); }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0 16px; }
.facts dt, .facts dd { padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; }
.facts p:last-child { margin-bottom: 0; }

/* ---------- figuren: fotoafdrukken ---------- */
figure { margin: 0; }
.fig { margin: 28px 0; width: fit-content; max-width: 100%; }
/* foto's nooit groter dan hun echte grootte: width auto + max-width.
   Het bijschrift volgt de breedte van de foto (width 0 / min-width 100%). */
.fig img { width: auto; max-width: 100%; padding: 7px; background: var(--sheet); border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow); }
.fig > figcaption { width: 0; min-width: 100%; }
.grid-2 > .fig:first-child:last-child, .grid-2 > div > .fig { margin-top: 0; }
.grid-2 > .fig { margin-top: 0; }
.fig figcaption, .card figcaption { font-size: .82rem; line-height: 1.5; color: var(--muted); margin-top: 10px; }
.fig figcaption { padding-left: 12px; border-left: 2px solid var(--acc); }
.fig figcaption b, .card figcaption b { color: var(--ink-2); font-weight: 600; }
.credit { display: block; margin-top: 2px; }
.credit a { color: var(--muted); }
.fig--wide { margin: clamp(28px, 4vw, 48px) 0; }
.fig--portrait img { max-width: min(360px, 100%); }
.figrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 28px 0; }
.figrow .fig { margin: 0; width: auto; }
/* gelijke vakken; staande of kleine foto's worden niet bijgesneden of uitvergroot,
   maar op het papier gecentreerd (contain) */
.figrow img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.figrow--tall img { aspect-ratio: 3 / 4; }
.figrow--cover img { object-fit: cover; }

/* ---------- krantenknipsel / archiefscan ---------- */
.clipping { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; padding: 14px 14px 12px; background: var(--sheet); border: 1px solid var(--line); box-shadow: 0 2px 0 rgba(23,33,27,.04), 0 14px 28px -16px rgba(23,33,27,.4); transform: rotate(-.6deg); }
.clipping::before { content: ""; position: absolute; top: -11px; left: 50%; width: 92px; height: 22px; margin-left: -46px; background: rgba(226,219,205,.8); border: 1px solid rgba(210,200,180,.7); transform: rotate(2deg); box-shadow: 0 1px 2px rgba(23,33,27,.08); }
.fig.clipping img { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; filter: grayscale(1) contrast(1.05) sepia(.08); }
.fig.clipping img { width: auto; max-width: 100%; }
.clipping figcaption { width: 0; min-width: 100%; }

/* ---------- codelijst: sorteerrek ---------- */
.codes { list-style: none; margin: 24px 0; padding: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 4px; background: var(--ink); border-radius: 6px; }
.codes li { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; background: var(--paper); border-radius: 2px; box-shadow: inset 0 8px 10px -9px rgba(23,33,27,.4); }
.codes__num { flex: none; min-width: 4.4em; padding: 2px 8px; text-align: center; font-family: var(--mono); font-weight: 700; font-size: 1.05rem; letter-spacing: .08em; color: var(--ink); background: var(--sheet); border: 1px solid var(--line-2); border-radius: 3px; }
.codes__name { font-weight: 500; color: var(--ink-2); }
.codes li.is-current { background: var(--acc-soft); }
.codes li.is-current .codes__num { background: var(--acc-dark); border-color: var(--acc-dark); color: #fff; }
.codes li.is-current .codes__name { font-weight: 700; color: var(--ink); }
.codes li.is-current::after { content: "◄"; content: "◄" / ""; margin-left: auto; color: var(--acc-dark); font-size: .8rem; }

/* ---------- postzegel ---------- */
.stamp { --r: 5px; --s: 14px; position: relative; display: inline-block; margin: 0; padding: calc(var(--r) * 2 + 4px); background: var(--sheet); max-width: 100%;
  -webkit-mask: radial-gradient(circle, transparent var(--r), #000 calc(var(--r) + .5px)) calc(var(--s) / -2) calc(var(--s) / -2) / var(--s) var(--s) round, linear-gradient(#000 0 0) center / calc(100% - var(--r) * 2) calc(100% - var(--r) * 2) no-repeat;
          mask: radial-gradient(circle, transparent var(--r), #000 calc(var(--r) + .5px)) calc(var(--s) / -2) calc(var(--s) / -2) / var(--s) var(--s) round, linear-gradient(#000 0 0) center / calc(100% - var(--r) * 2) calc(100% - var(--r) * 2) no-repeat;
  filter: drop-shadow(0 0 .5px rgba(23,33,27,.4)); }
.stamp img { display: block; width: 100%; outline: 1px solid rgba(23,33,27,.15); outline-offset: -1px; }
.stamp__value { position: absolute; left: calc(var(--r) * 2 + 10px); bottom: calc(var(--r) * 2 + 8px); font-weight: 800; font-size: 1.5rem; letter-spacing: -.03em; line-height: 1; color: var(--cream); text-shadow: 0 1px 6px rgba(23,33,27,.6); }
.stamp--text { display: grid; place-items: center; min-width: 120px; min-height: 140px; text-align: center; font-weight: 800; color: var(--ink); }
.stamp-art { display: block; width: 160px; height: auto; transform: rotate(3deg); filter: drop-shadow(0 6px 10px rgba(23,33,27,.18)); }

/* ---------- envelop + adreslabel ---------- */
.envelope { position: relative; padding: clamp(22px, 3vw, 34px); padding-right: clamp(22px, 3vw, 34px); border: 9px solid transparent; border-radius: 6px; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--airmail) border-box, var(--sheet) border-box; box-shadow: var(--shadow); }
.envelope--plain { border: 1px solid var(--line); background: var(--paper); }
.envelope--call { border-style: dashed; border-width: 2px; border-color: var(--line-2); background: var(--sheet); }
.envelope--call .envelope__kicker { color: var(--acc-dark); }
.envelope__corner { float: right; display: flex; align-items: flex-start; gap: 6px; margin: -6px -6px 12px 16px; }
.envelope__corner .stamp { width: 84px; --r: 4px; --s: 11px; transform: rotate(2deg); }
.envelope__corner .postmark { margin: 6px 0 0 0; mix-blend-mode: multiply; }
.envelope__kicker { font-family: var(--mono); font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--post); margin: 0 0 .8em; }
.envelope__title { margin: 0 0 .7em; font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.envelope > :last-child { margin-bottom: 0; }
.label { display: block; width: fit-content; max-width: 100%; margin: 18px 0 22px; padding: 14px 20px 14px 18px; font-family: var(--mono); font-style: normal; font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--sheet); border: 1px solid var(--line-2); box-shadow: 0 2px 0 rgba(23,33,27,.05), 0 6px 14px -8px rgba(23,33,27,.3); transform: rotate(-.8deg); }
.label b, .label strong { font-weight: 700; letter-spacing: .06em; }
.label .is-struck, .label del { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--acc); text-decoration-thickness: 2px; }
.label ins { text-decoration: none; color: var(--acc-dark); font-weight: 700; }
.section--ink .label { color: var(--ink); }

/* ---------- kerncijfers: sorteervakken ---------- */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px; margin: 28px 0 0; padding: 6px; background: var(--ink); border-radius: 6px; }
.figures__item { position: relative; display: flex; flex-direction: column; min-height: 150px; padding: 12px 18px 16px; background: var(--paper); border-radius: 2px; box-shadow: inset 0 10px 14px -10px rgba(23,33,27,.45), inset 0 -1px 0 var(--line); }
.figures__item > * { margin: 0; }
.figures__label { margin: 0 0 12px !important; font-family: var(--mono); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.figures__num { order: 1; font-weight: 800; font-size: clamp(2.2rem, 4.2vw, 3.1rem); line-height: 1.05; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: auto; }
.figures__num small { font-size: .38em; font-weight: 600; letter-spacing: 0; margin-left: .2em; color: var(--ink-2); }
.figures__num sup { font-size: .3em; vertical-align: 1.6em; }
.figures__note { order: 2; font-size: .84rem; line-height: 1.45; color: var(--muted); margin-top: 6px; }
.figures__item.is-key .figures__num { color: var(--acc); }
.section--ink .figures { background: #0e1511; }
@media (max-width: 640px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures__item { min-height: 120px; padding: 10px 12px 12px; }
  .figures__label { font-size: .68rem; }
  .figures__num { font-size: clamp(1.7rem, 8vw, 2.2rem); }
}

/* ---------- kaarten (patrimoine, personnalités) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; margin-top: 28px; }
.card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 1px 0 rgba(23,33,27,.04), 0 18px 34px -18px rgba(23,33,27,.4); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: 20px 22px 22px; }
.card h3 { margin-top: 0; }
.card .meta { font-family: var(--mono); font-size: .82rem; font-weight: 700; color: var(--acc-dark); margin-bottom: .7em; }
.card p { font-size: .95rem; }
.card figcaption { padding: 0 22px 18px; margin-top: auto; }

/* ---------- tijdlijn ---------- */
.timeline { list-style: none; margin: 28px 0 0; padding: 0; border-left: 2px dashed var(--line-2); }
.timeline li { position: relative; padding: 0 0 24px 28px; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); border: 3px solid var(--acc); }
.section--paper .timeline li::before { background: var(--paper); }
.timeline time, .timeline .when { display: inline-block; margin-bottom: 4px; padding: 1px 8px; font-family: var(--mono); font-weight: 700; font-size: .95rem; letter-spacing: .06em; color: var(--acc-dark); border: 1.5px solid currentColor; border-radius: 3px; transform: rotate(-1.5deg); background: var(--sheet); }
.timeline p { margin: 0; }
.timeline li.is-key::before { background: var(--acc); }
.timeline li.is-key .when, .timeline li.is-key time { background: var(--acc-dark); color: #fff; border-color: var(--acc-dark); }

@media (min-width: 900px) {
  .timeline--post { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 20px; border-left: 0; border-top: 2px dashed var(--line-2); margin-top: 44px; }
  .timeline--post li { padding: 30px 0 0; }
  .timeline--post li::before { left: 0; top: -8px; }
  .timeline--post .when, .timeline--post time { font-size: 1.15rem; }
}

/* ---------- citaat: briefkaart ---------- */
.quote { position: relative; margin: 32px 0; padding: 22px 26px 20px 26px; background: var(--sheet); border: 1px solid var(--line); border-left: 4px solid var(--acc); border-radius: 0 6px 6px 0; font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.55; color: var(--ink); box-shadow: var(--shadow);
  background-image: repeating-linear-gradient(transparent 0 calc(1.55em - 1px), rgba(46,74,116,.09) calc(1.55em - 1px) 1.55em); background-position: 0 22px; }
.quote p { margin: 0 0 .5em; }
.quote footer { font-family: var(--font); font-style: normal; font-size: .82rem; color: var(--muted); margin-top: .6em; }

.note { font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 28px; }
.callout { position: relative; background: var(--paper); padding: 16px 20px 16px 26px; border-radius: 0 6px 6px 0; font-size: .95rem; margin: 24px 0; border: 1px solid var(--line); border-left: 0; }
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(180deg, var(--acc) 0 10px, var(--sheet) 10px 14px, var(--post) 14px 24px, var(--sheet) 24px 28px); }

/* voetnoten */
.footnotes { margin: 28px 0 0; padding: 14px 0 0 1.6em; border-top: 1px solid var(--line); font-size: .86rem; line-height: 1.55; color: var(--muted); }
.footnotes li { margin-bottom: .4em; padding-left: .2em; }
.footnotes li::marker { font-family: var(--mono); font-weight: 700; color: var(--acc-dark); }
.footnotes li:target { background: var(--acc-soft); }

/* ---------- personen ---------- */
.person { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
/* Geen sticky meer: de zijkolom (portret + kerngegevens) is hoger dan het scherm,
   waardoor de kerngegevens pas zichtbaar werden aan het einde van de sectie. */
.person__head { margin-bottom: clamp(20px, 3vw, 32px); }
.person__head .lifespan { margin-bottom: 0; }
@media (max-width: 860px) { .person { grid-template-columns: minmax(0, 1fr); } .person__aside { max-width: 340px; } }
.lifespan { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--acc-dark); margin: -.2em 0 1em; }

/* ---------- bronnen: fiches ---------- */
.sources { counter-reset: none; list-style: none; padding: 0; margin: 24px 0 0; }
/* compact: kleine letters, nummer als sober getal, url gedempt */
.sources li { display: grid; grid-template-columns: 2.6em 1fr; gap: 0 10px; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.5; }
.sources li:target { background: var(--acc-soft); border-radius: 4px; }
.sources .n { align-self: start; justify-self: end; padding-top: .05em; font-family: var(--mono); font-weight: 700; font-size: .9em; color: var(--acc-dark); line-height: 1.5; }
.sources .t { font-weight: 600; color: var(--ink); }
.sources .u { overflow-wrap: anywhere; font-size: .84rem; }
.sources .u a, .sources a.u { color: var(--muted); text-decoration-color: var(--line-2); }
.sources .u a:hover, .sources a.u:hover { color: var(--acc-dark); text-decoration-color: var(--acc); }
.sources .d { color: var(--muted); font-size: .8rem; }
.photocredits { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 20px; }
.photocredits th, .photocredits td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.photocredits th { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.photocredits img { width: 84px; height: 60px; object-fit: cover; border-radius: 2px; padding: 3px; background: var(--sheet); border: 1px solid var(--line); }
.tablewrap { overflow-x: auto; }
/* bronnen: tabel met de urenschatting (rubriek "Hoe deze site gemaakt werd") */
.effort { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 14px 0 6px; }
.effort th, .effort td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); }
.effort thead th { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.effort td:last-child, .effort th:last-child { text-align: right; white-space: nowrap; padding-right: 0; font-variant-numeric: tabular-nums; }
.effort tfoot th, .effort tfoot td { font-weight: 700; border-bottom: 0; }
@media (max-width: 640px) {
  .photocredits thead { display: none; }
  .photocredits tr { display: grid; grid-template-columns: 84px 1fr; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .photocredits td { border: 0; padding: 0; }
  .photocredits td:first-child { grid-row: span 4; }
}

/* ---------- teasers + vervolg-links: sorteervakken ---------- */
.teasers, .next { counter-reset: vak; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.teasers > li { display: flex; }
.teaser, .next a { counter-increment: vak; position: relative; display: flex; flex-direction: column; width: 100%; padding: 44px 22px 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); text-decoration: none; color: var(--text); box-shadow: inset 0 10px 14px -12px rgba(23,33,27,.35), var(--shadow); transition: border-color .2s, box-shadow .2s, transform .2s; overflow: hidden; }
.section--paper .teaser, .section--paper .next a { background: var(--sheet); }
.teaser::after, .next a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--airmail), var(--sheet); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.teaser:hover, .next a:hover { border-color: var(--line-2); color: var(--text); box-shadow: inset 0 10px 14px -12px rgba(23,33,27,.35), 0 18px 30px -18px rgba(23,33,27,.45); }
.teaser:hover::after, .next a:hover::after, .teaser:focus-visible::after, .next a:focus-visible::after { transform: scaleX(1); }
.next a::before { content: counter(vak, decimal-leading-zero); content: counter(vak, decimal-leading-zero) / ""; }
.teaser__no, .next a::before { position: absolute; top: 12px; left: 14px; font-family: var(--mono); font-weight: 700; font-size: .76rem; letter-spacing: .1em; color: var(--muted); padding: 1px 7px; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 3px; }
.teaser__img { max-width: none; width: calc(100% + 44px); margin: -44px -22px 16px; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 25%; }
.teaser:has(.teaser__img) .teaser__no { z-index: 1; }
/* teaser zonder foto: zelfde hoogte als met foto, met een rustig sorteervak + stempel */
.teasers:has(.teaser__img) .teaser:not(:has(.teaser__img))::before { content: ""; display: block; width: calc(100% + 44px); margin: -44px -22px 16px; aspect-ratio: 16 / 9; background:
  url("../img/deco/postmark-inkt.svg") 72% 50% / auto 62% no-repeat,
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 33.4%,
  linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 25% 100%,
  var(--cream); opacity: .9; border-bottom: 1px solid var(--line); }
.section--paper .teasers:has(.teaser__img) .teaser:not(:has(.teaser__img))::before { background-color: var(--paper); }
.teaser__title, .next b { display: block; font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: -.015em; margin-bottom: 4px; }
.teaser__text, .next span { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.teaser__go { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--acc-dark); transition: transform .2s; }
.teaser:hover .teaser__go { transform: translateX(4px); }
/* overzichtspagina (geschiedenis.html / fr/histoire.html): grotere vakken, twee per rij;
   de titel is daar een <h3> */
.teasers--wide { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; margin-top: 0; }
.teasers--wide .teaser { padding-bottom: 24px; }
.teasers--wide .teaser__title { margin: 0 0 6px; font-size: 1.3rem; line-height: 1.25; }
.teasers--wide .teaser__text { font-size: .96rem; }
/* vanaf 720 px: twee per rij, beeld links en tekst rechts */
@media (min-width: 720px) {
  .teasers--wide { grid-template-columns: 1fr 1fr; }
  .teasers--wide .teaser { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 20px; padding: 0 20px 0 0; }
  .teasers--wide .teaser__img { grid-column: 1; grid-row: 1 / -1; width: 100%; height: 100%; min-height: 210px; margin: 0; aspect-ratio: auto; border-right: 1px solid var(--line); contain: size; } /* contain: de hoogte volgt de tekst, niet het beeld */
  .teasers--wide .teaser__title { grid-column: 2; margin-top: 22px; }
  .teasers--wide .teaser__text { grid-column: 2; }
  .teasers--wide .teaser__go { grid-column: 2; padding-bottom: 18px; }
}
/* schets als teaserbeeld: op ruitjespapier, uitsnede rond het midden */
.teaser__img--sketch { object-position: 50% 48%; background: var(--sheet); border-bottom: 1px solid var(--line); }

/* ---------- pastiche (oud/index.html, spelling van ca. 1770) ---------- */
.pastiche-note { background: var(--ink); color: #e6dfd0; font-size: .84rem; line-height: 1.45; }
.pastiche-note__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 18px; padding: 8px 0; }
.pastiche-note p { margin: 0; }
.pastiche-note b { color: var(--cream); font-weight: 600; }
.pastiche-note a { color: var(--cream); font-weight: 600; white-space: nowrap; }
.pastiche-note a:hover { color: #f0b49c; }
/* schrijfletter (Georgia, al in de stijl) voor een oud gevoel; cijfers, labels en stempels blijven */
.is-oud main, .is-oud .footer p { font-family: var(--serif); }
.is-oud main :is(h1, h2, h3) { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
.is-oud main .lead { font-size: clamp(1.1rem, min(1.7vw, 2.7vh), 1.32rem); }
/* de hero past onder menubalk + uitlegbalk: Georgia is breder, dus titel en tekst iets kleiner,
   en de fotostrook mag smaller (vanaf 160 px blijft de kerk met spits zichtbaar) */
.is-oud .hero-zip { --nav-h: 108px; }
.is-oud .hero-zip h1 { font-size: clamp(2.3rem, min(5.3vw, 8.2vh), 4.8rem); }
.is-oud .hero-zip .lead { font-size: clamp(1rem, min(1.55vw, 2.4vh), 1.25rem); line-height: 1.5; }
.is-oud .hero-zip__photo { min-height: clamp(160px, 22vh, 300px); }
@media (max-width: 640px) { .is-oud .hero-zip { --nav-h: 170px; } }

/* ---------- kanteling (JS zet --rx/--ry) ---------- */
.is-tilting { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-2px); transition: transform .08s linear, box-shadow .2s, border-color .2s; will-change: transform; }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--ink); color: #d8d2c4; padding: 48px 0 44px; font-size: .9rem; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--airmail), var(--sheet); }
.footer::after { content: ""; position: absolute; right: clamp(-40px, 3vw, 60px); bottom: -34px; width: 150px; aspect-ratio: 1; background: url("../img/deco/postmark-licht.svg") center / contain no-repeat; transform: rotate(-12deg); opacity: .14; pointer-events: none; }
.footer__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.footer img { width: 84px; height: 28px; }
.footer a { color: var(--cream); }
.footer p { margin: 0; }

/* ==========================================================
   Componenten voor de nieuwe pagina's (zie DESIGN.md §5)
   ========================================================== */

/* ---------- .figure: schets, kaart of figuur ---------- */
.figure { margin: 28px 0; width: fit-content; max-width: 100%; }
.figure > img, .figure > svg, .figure__media { display: block; width: auto; max-width: 100%; height: auto; }
.figure > figcaption { width: 0; min-width: 100%; margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--acc); font-size: .82rem; line-height: 1.5; color: var(--muted); }
.figure > figcaption b { color: var(--ink-2); font-weight: 600; }
.figure--wide { width: auto; }
.figure--wide > img, .figure--wide > svg { width: 100%; }
.figure--center { margin-inline: auto; }
/* kaartuitsnede: dun kader op papier */
.figure--map > img { padding: 6px; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 2px; box-shadow: var(--shadow); }
/* soortlabel in het bijschrift: "Schéma" / "Schets" / "Carte" / "Kaart" */
.figure__kind { display: inline-block; margin-right: .5em; padding: 0 .45em; font-family: var(--mono); font-weight: 700; font-size: .78em; letter-spacing: .12em; text-transform: uppercase; color: var(--post); border: 1px solid currentColor; border-radius: 2px; line-height: 1.5; vertical-align: .08em; }

/* schets: ruitjespapier van de landmeter, dunne kaderlijn, geen schaduw-show */
.figure--sketch > img, .figure--sketch > svg, .figure--sketch .figure__media { padding: 10px; border: 1px solid var(--line-2); border-radius: 2px; background:
  linear-gradient(rgba(46,74,116,.07) 1px, transparent 1px) 0 0 / 16px 16px,
  linear-gradient(90deg, rgba(46,74,116,.07) 1px, transparent 1px) 0 0 / 16px 16px,
  var(--sheet); box-shadow: 0 1px 0 rgba(23,33,27,.04); }

/* nog niet klaar: gestippeld vak met korte tekst (tekst staat in de HTML) */
.figure--pending { width: 100%; max-width: 560px; }
.figure__placeholder { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 24px; text-align: center; font-family: var(--mono); font-size: .86rem; letter-spacing: .06em; color: var(--muted); border: 2px dashed var(--line-2); border-radius: 4px; background:
  repeating-linear-gradient(135deg, transparent 0 14px, rgba(226,219,205,.45) 14px 15px), var(--sheet); }

/* ---------- .notes: compacte notenlijst onderaan een pagina ---------- */
.notes { margin-top: 0; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.notes h2, .notes__title { font-family: var(--mono); font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--acc-dark); margin: 0 0 12px; }
.notes ol { list-style: none; counter-reset: note; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); max-width: var(--read); }
.notes li { counter-increment: note; position: relative; padding: 3px 0 3px 2.4em; }
.notes li::before { content: counter(note); content: counter(note) / ""; position: absolute; left: 0; width: 1.8em; text-align: right; font-family: var(--mono); font-weight: 700; color: var(--acc-dark); }
.notes li[value]::before { content: attr(value); content: attr(value) / ""; }
.notes li:target { background: var(--acc-soft); border-radius: 3px; color: var(--text); }
.notes cite { font-style: italic; font-family: var(--font); color: var(--ink-2); }
.notes a { color: var(--muted); text-decoration-color: var(--line-2); overflow-wrap: anywhere; }
.notes a:hover { color: var(--acc-dark); text-decoration-color: var(--acc); }
.notes .back { margin-left: .3em; text-decoration: none; }
@media (min-width: 1000px) { .notes--cols ol { max-width: none; columns: 2; column-gap: 48px; } .notes--cols li { break-inside: avoid; } }

/* ---------- .compare: kaart "toen / nu" ----------
   Zonder JS: twee beelden onder elkaar met hun label.
   Met JS (.is-ready): over elkaar, schuifregelaar (input range, toetsenbord). */
.compare { margin: 28px 0; }
.compare__item { position: relative; margin: 0 0 12px; }
.compare__item img { display: block; width: 100%; height: auto; background: var(--sheet); border: 1px solid var(--line); }
.compare__label { position: absolute; top: 10px; left: 10px; padding: 2px 8px; font-family: var(--mono); font-weight: 700; font-size: .78rem; letter-spacing: .08em; color: var(--ink); background: var(--sheet); border: 1px solid var(--line-2); border-radius: 2px; }
.compare__item + .compare__item .compare__label { left: auto; right: 10px; }
.compare > figcaption { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--acc); font-size: .82rem; line-height: 1.5; color: var(--muted); }
.compare > figcaption b { color: var(--ink-2); font-weight: 600; }
.compare.is-ready .compare__stage { position: relative; display: grid; border: 1px solid var(--line-2); background: var(--sheet); overflow: hidden; touch-action: pan-y; }
.compare.is-ready .compare__item { grid-area: 1 / 1; margin: 0; }
.compare.is-ready .compare__item img { border: 0; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; pointer-events: none; }
.compare.is-ready .compare__stage { cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.compare.is-ready .compare__item + .compare__item { clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare.is-ready .compare__stage::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; margin-left: -1.5px; background: var(--acc); box-shadow: 0 0 0 1px rgba(255,253,248,.7); pointer-events: none; }
.compare__range { display: block; width: 100%; margin: 10px 0 0; accent-color: var(--acc); cursor: ew-resize; }
.compare__range:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.compare__handle { position: absolute; top: 50%; left: var(--pos, 50%); z-index: 2; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--acc); box-shadow: var(--shadow); pointer-events: none; }
.compare__handle::before { content: "‹ ›"; content: "‹ ›" / ""; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: var(--acc-dark); line-height: 1; }
.compare.has-focus .compare__handle { outline: 3px solid var(--acc); outline-offset: 2px; }

/* ---------- .lineage: opvolging (heren, eigenaars) als verticale lijn ---------- */
.lineage { list-style: none; margin: 24px 0; padding: 0; position: relative; }
.lineage li { position: relative; display: grid; grid-template-columns: 6.2em 1fr; gap: 0 32px; padding: 0 0 18px; }
.lineage li::before { content: ""; position: absolute; left: calc(6.2em + 15px); top: .55em; bottom: -.55em; width: 0; border-left: 2px solid var(--line-2); }
.lineage li:last-child::before { display: none; }
.lineage li::after { content: ""; position: absolute; left: calc(6.2em + 10px); top: .42em; width: 12px; height: 12px; border-radius: 50%; background: var(--cream); border: 2px solid var(--ink); }
.section--paper .lineage li::after { background: var(--paper); }
.lineage__date { grid-column: 1; justify-self: end; font-family: var(--mono); font-weight: 700; font-size: .9rem; color: var(--acc-dark); white-space: nowrap; line-height: 1.6; }
.lineage__body { grid-column: 2; }
.lineage__name { display: block; font-weight: 700; color: var(--ink); line-height: 1.4; }
.lineage__note { display: block; font-size: .9rem; color: var(--muted); }
/* overgang (koop, huwelijk, erfenis): klein getypt etiketje */
.lineage__via { display: inline-block; margin-top: 2px; padding: 0 .4em; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; color: var(--post); border: 1px dashed var(--post); border-radius: 2px; }
.lineage li.is-gap .lineage__name { font-weight: 500; font-style: italic; color: var(--muted); }
.lineage li.is-gap::before { border-left-style: dashed; }
@media (max-width: 520px) { .lineage li { grid-template-columns: 4.6em 1fr; gap: 0 26px; } .lineage li::before { left: calc(4.6em + 12px); } .lineage li::after { left: calc(4.6em + 7px); } .lineage__date { font-size: .82rem; } }

/* ---------- .tree: kleine stamboom (genest ul), boven naar onder ---------- */
.tree { margin: 28px 0; overflow-x: auto; padding-bottom: 6px; }
.tree ul { position: relative; display: flex; justify-content: center; margin: 0; padding: 22px 0 0; list-style: none; }
.tree > ul { padding-top: 0; width: max-content; min-width: 100%; }
.tree li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 22px 8px 0; }
.tree > ul > li { padding-top: 0; }
/* verbindingslijnen */
.tree li::before, .tree li::after { content: ""; position: absolute; top: 0; height: 22px; border-top: 1.5px solid var(--line-2); width: 50%; }
.tree li::before { right: 50%; }
.tree li::after { left: 50%; border-left: 1.5px solid var(--line-2); }
.tree li:first-child::before, .tree li:last-child::after { border-top: 0; }
.tree li:only-child::before { display: none; }
.tree li:only-child::after { border-top: 0; }
.tree li:last-child::before { border-right: 1.5px solid var(--line-2); border-top-right-radius: 4px; }
.tree li:first-child::after { border-top-left-radius: 4px; }
.tree > ul > li::before, .tree > ul > li::after { display: none; }
.tree ul ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 22px; border-left: 1.5px solid var(--line-2); }
.tree__card { display: block; min-width: 7em; max-width: 15em; padding: 8px 12px; text-align: center; font-size: .86rem; line-height: 1.35; background: var(--sheet); border: 1px solid var(--line-2); border-radius: 3px; box-shadow: 0 1px 0 rgba(23,33,27,.05); }
.tree__card b { display: block; color: var(--ink); font-weight: 700; }
.tree__card small { display: block; font-family: var(--mono); font-size: .78rem; color: var(--acc-dark); }
.tree__card.is-key { border-color: var(--acc); box-shadow: inset 0 3px 0 var(--acc); }

/* ---------- .timeline--compact: dichte jaartallenlijst ---------- */
.timeline--compact li { padding-bottom: 12px; }
.timeline--compact .when, .timeline--compact time { font-size: .82rem; transform: none; }
.timeline--compact p { font-size: .94rem; }

/* ---------- 404: onbestelbare envelop met retourstempel ---------- */
.notfound { padding: clamp(40px, 7vw, 96px) 0; }
.notfound__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.notfound h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
.notfound__code { font-family: var(--mono); font-weight: 700; letter-spacing: .12em; color: var(--acc-dark); }
.notfound .envelope { overflow: hidden; }
.notfound .label { position: relative; }
.returnmark { display: inline-block; margin: 6px 0 18px; padding: 10px 16px 9px; border: 3px double var(--acc); border-radius: 4px; color: var(--acc); font-family: var(--mono); font-weight: 700; font-size: clamp(.92rem, 2.4vw, 1.1rem); line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; text-align: center; transform: rotate(-6deg); mix-blend-mode: multiply; }
.returnmark span { display: block; }
.returnmark small { display: block; margin-top: 4px; font-size: .72em; letter-spacing: .14em; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.4em 0 0; padding: 0; list-style: none; }
@media (max-width: 860px) { .notfound__inner { grid-template-columns: 1fr; } }
.notfound__alt { margin-top: 1.6em; }

/* ---------- kleine hulpklassen (vervangen vroegere style="…", strikte CSP) ---------- */
.fig.fig--flush { margin-top: 0; }
.flush { margin: 0; }

/* ---------- privacyverklaring (privacy.html, fr/confidentialite.html) ---------- */
.legal__meta { margin: -.2em 0 1em; font-family: var(--mono); font-size: .84rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.legal h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-top: 1.8em; }
.legal h2:first-child { margin-top: 0; }
.legal address.label { margin: 0 0 1em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }

/* ---------- beweging uit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .is-tilting { transform: none !important; }
}

@media print {
  .nav, .footer, .hero::before, .pagehead::before, .pagehead::after, .postmark, .cancel { display: none !important; }
  body { background: #fff; }
}

/* ---------- 6. Onderzoeksronde november 2026: tabellen, uitklapblok, grafiek ---------- */
/* Gegevenstabel (pastoors, burgemeesters, molens, slachtoffers, bevolking). Binnen .tablewrap: op gsm horizontaal schuifbaar. */
.datatable { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.45; margin: 18px 0 8px; }
.datatable caption { text-align: left; font-family: var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc-dark); padding-bottom: 8px; }
.datatable th, .datatable td { text-align: left; vertical-align: top; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); }
.datatable thead th { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--line-2); }
.datatable tbody th { font-weight: 600; color: var(--ink); }
.datatable tr.is-gap th, .datatable tr.is-gap td { color: var(--muted); font-style: italic; font-weight: 400; }
.datatable tr.is-group th { padding-top: 16px; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--post); border-bottom: 1px dashed var(--post); }
.datatable--num td:nth-child(2) { font-variant-numeric: tabular-nums; text-align: right; padding-right: 22px; }
@media (max-width: 640px) { .datatable { font-size: .86rem; } .datatable th, .datatable td { padding-right: 10px; } }
/* Uitklapblok (<details class="fold">) */
details.fold { margin: 22px 0; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); padding: 0 18px; }
.section--paper details.fold { background: var(--sheet); }
details.fold > summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink); list-style-position: outside; margin-left: 1.1em; }
details.fold > summary:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 3px; }
details.fold[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
details.fold .lineage { margin-top: 12px; }
/* Grafiek (inline SVG) */
.figure--chart { margin: 28px 0; max-width: 760px; }
.figure--chart .chart { display: block; width: 100%; height: auto; background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__axis { stroke: var(--ink-2, #3a4a40); stroke-width: 1; }
.chart__tick { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
.chart__line { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__dot { fill: var(--acc); stroke: var(--sheet); stroke-width: 2; }
.chart__dot:hover { fill: var(--ink); }
.chart__label { font-family: var(--mono); font-size: 13px; font-weight: 700; fill: var(--ink); }
@media (forced-colors: active) { .chart__line { stroke: CanvasText; } .chart__dot { fill: CanvasText; } }
@media (max-width: 640px) { .chart__tick { font-size: 22px; } .chart__label { font-size: 24px; } .chart__line { stroke-width: 3; } .chart__dot { r: 6px; } }
