/* ==========================================================================
   ZHDI — shared tokens and components
   Direction: "field evidence". See DESIGN.md for the full spec.
   Rules kept here: animate only transform and opacity, never `transition: all`,
   every interactive element has hover, focus-visible and active states.
   ========================================================================== */

/* ---------- 0. Typefaces (self-hosted; licences in DESIGN.md) ------------- */
@font-face { font-family: "Zodiak"; src: url("../fonts/zodiak-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("../fonts/zodiak-variable-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/switzer-variable-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("../fonts/martian-mono-variable-latin.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-style: normal; font-display: swap; }

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand greens (700/600/500 and olive are sampled from the logo) */
  --green-950: #0A2110;
  --green-900: #0F2E17;
  --green-800: #17421E;
  --green-700: #245E27;
  --green-600: #437647;
  --green-500: #638F67;
  --green-300: #A9BFA8;
  --green-200: #C9D8C6;
  --green-100: #DCE8D5;
  --green-50:  #E9EFE3;
  --olive:     #B6BF76;
  /* Brand yellows */
  --yellow-400: #F9EB50;
  --yellow-200: #FDF5A6;
  /* Neutrals, all leaning green */
  --paper:   #F5F7F1;
  --surface: #FFFFFF;
  --ink:     #0F2A16;
  --ink-2:   #3A5140;
  --ink-3:   #56695A;
  --line:        rgba(15, 42, 22, .12);
  --line-strong: rgba(15, 42, 22, .22);
  --line-dark:   rgba(233, 239, 227, .16);
  /* One functional colour outside the brand: holds and reported issues */
  --rust:      #9A3D1A;
  --rust-tint: #FBE9E1;

  /* Type */
  /* Zodiak sets headlines, statements, names and numerals. Its roman states the works; its italic is
     ZHDI's verifying voice and, as on a chart, anything to do with water. Switzer carries text and UI.
     Martian Mono is kept for evidence data only: photo numbers, coordinates, dates on a stamp. */
  --font-head: "Zodiak", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-ui: "Switzer", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-text: "Switzer", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-data: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-display: clamp(2.5rem, 1.3rem + 4.1vw, 4.5rem);
  --fs-h2: clamp(1.95rem, 1.4rem + 2.3vw, 3.25rem);
  --fs-h3: clamp(1.3rem, 1.18rem + .5vw, 1.625rem);
  --fs-lead: clamp(1.125rem, 1.06rem + .32vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-ui: .9375rem;
  --fs-small: .8125rem;
  --fs-stamp: .75rem;

  /* Spacing (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gutter: 20px;
  --wrap: 1240px;
  --section-y: clamp(64px, 8.5vw, 120px);
  --header-h: 64px;

  /* Radius: prints are tight, cards are soft, controls sit between */
  --r-print: 8px;
  --r-control: 10px;
  --r-card: 16px;
  --r-sheet: 24px;
  --r-pill: 999px;

  /* Elevation: base → elevated → floating. Shadows are tinted with green-900. */
  --shadow-1: 0 1px 1px rgba(15, 46, 23, .06), 0 4px 10px -2px rgba(15, 46, 23, .08), 0 14px 28px -12px rgba(15, 46, 23, .14);
  --shadow-2: 0 2px 4px rgba(15, 46, 23, .08), 0 12px 24px -6px rgba(15, 46, 23, .16), 0 32px 64px -16px rgba(15, 46, 23, .28);
  --shadow-dark: 0 2px 4px rgba(4, 16, 8, .3), 0 14px 28px -8px rgba(4, 16, 8, .45), 0 36px 72px -20px rgba(4, 16, 8, .6);
  --ring: 0 0 0 2px var(--paper), 0 0 0 4px var(--green-700);
  --ring-dark: 0 0 0 2px var(--green-900), 0 0 0 4px var(--yellow-400);

  /* Motion */
  --print: #FBFBF5;                /* the paper edge of a photographic print */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  /* Critically damped spring (no overshoot) and a lightly under-damped one (1.5% overshoot) */
  --spring: linear(0, .057, .18, .321, .455, .573, .671, .75, .812, .86, .896, .924, .944, .96, .971, .979, .985, .989, .992, .994, .996, .997, .998, .999, 1);
  --spring-bounce: linear(0, .039, .132, .252, .38, .503, .615, .712, .792, .856, .906, .944, .971, .99, 1.002, 1.01, 1.014, 1.015, 1.015, 1.014, 1.012, 1.01, 1.008, 1.006, 1.005, 1.004, 1.002, 1.002, 1);
  --t-press: 110ms;
  --t-hover: 220ms;
  --t-move: 280ms;                 /* hover-driven movement stays under 300ms */
  --t-enter: 640ms;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 640px)  { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 76px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

/* ---------- 2. Reset (Tailwind preflight is switched off) ---------------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
/* Worst-case data (break-ui): a name, place or address with no spaces must wrap inside its box
   instead of widening the card or the page. `anywhere` also lets the box itself shrink. */
body { overflow-wrap: break-word; }
h1, h2, h3, h4, dd, dt, li, .lead, .fcard__where, .spot__where, .pager__name, .log__body, .rows__val, .finding { overflow-wrap: anywhere; }
ol, ul { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { background: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
/* Phones: no double-tap wait on anything tappable, and a long press on a control never selects its
   label or raises the callout. Text that is content stays selectable. */
a, button, summary, label, select, [role="button"], [role="tab"] { touch-action: manipulation; }
button, summary, .btn, .chip-btn, [role="tab"] { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
.on-dark :focus-visible { box-shadow: var(--ring-dark); }
::selection { background: var(--yellow-400); color: var(--ink); }
/* The parts the browser draws: caret, scrollbars and underlines come from the palette too */
html { caret-color: var(--green-700); scrollbar-color: var(--green-600) var(--green-50); accent-color: var(--green-700); }
a { text-underline-offset: .2em; text-decoration-thickness: .08em; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-control);
  background: var(--yellow-400); color: var(--ink);
  font: 600 var(--fs-ui)/1.2 var(--font-ui);
  transform: translateY(-200%);
  transition: transform var(--t-hover) var(--ease-out);
}
.skip-link:focus-visible { transform: none; box-shadow: var(--ring-dark); }

/* ---------- 3. Type ------------------------------------------------------ */
.display, .h2, .h3, .figure-num {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -.03em;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}
.display { font-size: var(--fs-display); line-height: 1; }
.h2 { font-size: var(--fs-h2); line-height: 1.04; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.015em; font-weight: 600; }
/* The second voice: a whole clause in italic, never a single accented word */
.display em, .h2 em, .statement em { font-style: italic; font-weight: 400; letter-spacing: -.025em; }
.on-dark .display em, .on-dark .h2 em, .on-dark .statement em { color: var(--yellow-400); }
.data { font-family: var(--font-data); font-stretch: 87.5%; font-size: .6875rem; line-height: 1.5; letter-spacing: 0; font-variant-numeric: tabular-nums; font-weight: 400; }
.lead { font-size: var(--fs-lead); line-height: 1.55; text-wrap: pretty; }
.prose { max-width: 62ch; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.ui { font-family: var(--font-ui); font-size: var(--fs-ui); line-height: 1.35; }
.small { font-family: var(--font-ui); font-size: var(--fs-small); line-height: 1.4; }
.muted { color: var(--ink-3); }
.on-dark { color: #fff; }
.on-dark .muted { color: var(--green-300); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.text-link {
  font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-ui);
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; position: relative; color: var(--green-700);
}
.text-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-move) var(--ease-out);
}
.text-link .icon { transition: transform var(--t-hover) var(--ease-out); }
.on-dark .text-link { color: var(--yellow-400); }
.text-link:active { opacity: .7; }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover::after { transform: scaleX(1); }
  .text-link:hover .icon { transform: translateX(3px); }
}
.text-link:focus-visible::after { transform: scaleX(1); }

/* ---------- 4. Layout ---------------------------------------------------- */
/* The page runs edge to edge (viewport-fit=cover); content keeps clear of the notch in landscape */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.section { position: relative; padding-block: var(--section-y); }
.section--tint { background: var(--green-50); }
.section--dark { background: var(--green-900); color: #fff; }
.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); max-width: 46rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Layered radial gradients + grain for the deep green grounds */
.ground {
  position: relative; isolation: isolate;
  background:
    radial-gradient(58% 60% at 80% 44%, rgba(67, 118, 71, .55), transparent 72%),
    radial-gradient(38% 42% at 8% 4%, rgba(249, 235, 80, .09), transparent 70%),
    radial-gradient(70% 55% at 22% 112%, rgba(36, 94, 39, .7), transparent 72%),
    var(--green-900);
}
.ground::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .2; mix-blend-mode: soft-light;
}
.ground--quiet {
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(67, 118, 71, .4), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(36, 94, 39, .55), transparent 72%),
    var(--green-900);
}
/* Water-lining: the Bayelsa coast echoed outward, as on a chart. The image is generated from the
   real boundary file by atlas.js and handed over in --atlas; without it the ground is simply plain. */
.ground--atlas::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--atlas, none) no-repeat var(--atlas-x, 108%) var(--atlas-y, 42%) / auto var(--atlas-size, 150%);
  opacity: var(--atlas-o, .34);
  -webkit-mask-image: var(--atlas-fade, none); mask-image: var(--atlas-fade, none);
}
/* Three thinning rules instead of one hairline: the same water-lining idea, used as a divider */
.lined { border-top: 2px solid currentColor; box-shadow: inset 0 4px 0 -3px var(--rule, var(--line-strong)), inset 0 9px 0 -8px var(--rule, var(--line)); }

/* ---------- 5. Header and navigation ------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  color: #fff;
}
.site-header::before {            /* solid plate fades in once the page scrolls */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(15, 46, 23, .94);
  box-shadow: 0 1px 0 rgba(233, 239, 227, .1), 0 10px 30px -12px rgba(4, 16, 8, .55);
  opacity: 0; transition: opacity 260ms ease;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header::before { background: rgba(15, 46, 23, .9); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
}
html[data-scrolled] .site-header::before, body[data-header="solid"] .site-header::before { opacity: 1; }
.site-header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: 6px; transition: opacity var(--t-press) ease; }
.brand img { height: 40px; width: auto; }
.brand:active { opacity: .75; }
@media (min-width: 1024px) { .brand img { height: 46px; } }

.nav { display: none; align-items: center; gap: var(--s-2); }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font: 560 var(--fs-ui)/1 var(--font-ui); color: var(--green-100); border-radius: 8px;
  transition: opacity var(--t-press) ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 2px; border-radius: 2px;
  background: var(--yellow-400); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-move) var(--ease-out);
}
.nav__link[aria-current="page"] { color: #fff; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link:active { opacity: .7; }
.nav__link:focus-visible { box-shadow: var(--ring-dark); }
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: #fff; }
  .nav__link:hover::after { transform: scaleX(1); }
}
.nav .btn { margin-left: var(--s-3); }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 16px;
  border-radius: var(--r-control); background: rgba(233, 239, 227, .1);
  box-shadow: inset 0 0 0 1px rgba(233, 239, 227, .2);
  font: 600 var(--fs-ui)/1 var(--font-ui); color: #fff;
  transition: transform var(--t-press) ease-out, opacity var(--t-press) ease;
}
.menu-btn:active { transform: scale(.96); }
.menu-btn:focus-visible { box-shadow: var(--ring-dark); }
.menu-btn__bars { width: 18px; height: 12px; position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform var(--t-hover) var(--ease-out);
}
.menu-btn__bars::before { top: 1px; } .menu-btn__bars::after { bottom: 1px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 1024px) { .nav { display: flex; } .menu-btn { display: none; } }

/* The phone and tablet menu: the sheet's index, a paper card that pops out from the Menu button.
   The layer is one fixed box sized in dvh; the card is laid out in its flow (never fixed chrome
   over an absolute stage) and scrolls inside itself on short screens. site.js drives the card,
   the scrim and the entries from one spring, so only transform and opacity ever change. */
.menu {
  position: fixed; inset: 0 0 auto 0; z-index: 55; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; align-items: flex-end;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 6px) max(12px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  visibility: hidden; pointer-events: none;
}
.menu[data-open] { pointer-events: auto; }
.menu__scrim { position: absolute; inset: 0; background: rgba(4, 16, 8, .62); opacity: 0; touch-action: none; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .menu__scrim { background: rgba(4, 16, 8, .46); -webkit-backdrop-filter: blur(7px) saturate(120%); backdrop-filter: blur(7px) saturate(120%); }
}
.menu__card {
  position: relative; isolation: isolate; width: 100%; max-width: 430px; min-height: 0; max-height: 100%;
  display: flex; flex-direction: column; overflow: hidden auto; overscroll-behavior: contain;
  border-radius: 22px 6px 22px 22px;                 /* the tight corner points at the button it came from */
  background: var(--print); color: var(--ink);
  box-shadow: 0 2px 4px rgba(4, 16, 8, .3), 0 18px 36px -10px rgba(4, 16, 8, .5), 0 44px 80px -24px rgba(4, 16, 8, .6), inset 0 0 0 1px rgba(255, 255, 255, .6);
  transform-origin: calc(100% - 52px) -38px;         /* the Menu button */
  opacity: 0; will-change: transform, opacity;
}
.menu__card:focus-visible { box-shadow: 0 2px 4px rgba(4, 16, 8, .3), 0 18px 36px -10px rgba(4, 16, 8, .5), 0 44px 80px -24px rgba(4, 16, 8, .6), inset 0 0 0 1px rgba(255, 255, 255, .6); border-radius: 22px 6px 22px 22px; }
.menu__card :focus-visible { box-shadow: var(--ring); }
/* The locator: the real outline of Bayelsa with its water-lining, tucked into the top corner */
.menu__map { position: absolute; z-index: -1; right: -34px; top: -30px; width: 218px; aspect-ratio: 1248 / 1152; opacity: .9; pointer-events: none; }
.menu__map svg { width: 100%; height: 100%; }
.menu__lga { fill: var(--green-100); stroke: var(--print); stroke-width: 6; stroke-linejoin: round; }
.menu__pin { fill: var(--print); stroke: var(--green-700); stroke-width: 7; }
.menu__map svg > rect { opacity: .5; }
.menu__top { display: grid; gap: 2px; padding: 22px 22px 14px; }
.menu__title { font: 500 2.125rem/1 var(--font-head); letter-spacing: -.03em; }
.menu__sub { color: var(--ink-3); }
.menu__list { display: grid; padding: 0 10px; }
.menu__row + .menu__row { border-top: 1px solid var(--line); }
.menu__link {
  position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  min-height: 66px; padding: 9px 12px; border-radius: 14px;
  transition: transform var(--t-press) ease-out;
}
.menu__link::before { content: ""; position: absolute; inset: 3px 0; z-index: -1; border-radius: 12px; background: var(--green-50); opacity: 0; transition: opacity var(--t-press) ease; }
.menu__link:active { transform: scale(.985); }
.menu__link:active::before { opacity: 1; }
.menu__link:focus-visible { border-radius: 14px; }
@media (hover: hover) and (pointer: fine) { .menu__link:hover::before { opacity: 1; } .menu__link:hover .menu__go { transform: translateX(3px); } }
/* A survey marker: a ring with its station point. On the page you are on, the point fills the ring. */
.menu__mark { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--green-700); justify-self: center; }
.menu__mark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--green-700); transition: transform 320ms var(--spring-bounce); }
.menu__link[aria-current="page"] .menu__mark { box-shadow: 0 0 0 4px rgba(249, 235, 80, .55); }
.menu__link[aria-current="page"] .menu__mark::after { transform: scale(1.7); }
.menu__body { display: grid; gap: 3px; min-width: 0; }
.menu__name { font: 600 1.4375rem/1.1 var(--font-head); letter-spacing: -.02em; overflow-wrap: anywhere; }
.menu__ev { display: flex; gap: 0 12px; height: 1.5em; overflow: hidden; color: var(--ink-3); white-space: nowrap; }
.menu__ev span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.menu__ev span:first-child { flex: none; max-width: 100%; }
.menu__go { color: var(--green-600); transition: transform var(--t-hover) var(--ease-out); }
.menu__here { font: 650 .6875rem/1 var(--font-ui); letter-spacing: .02em; padding: 6px 9px; border-radius: var(--r-pill); background: var(--yellow-400); color: var(--ink); white-space: nowrap; }
.menu__foot { display: grid; gap: 6px; padding: 14px 22px 16px; margin-top: 6px; background: var(--green-50); border-top: 1px solid var(--line); }
.menu__foot .btn { width: 100%; }
.menu__foot .btn[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--yellow-400); }
/* The haptics switch on paper */
.menu .switch { color: var(--ink-2); }
.menu .switch input { background: var(--green-200); }
.menu .switch input:checked { background: var(--green-700); }
.menu .switch input::after { content: none; }
.menu .switch input:checked::before { background: #fff; }
.menu .switch input:focus-visible { box-shadow: var(--ring); }
@media (max-height: 640px) { .menu__link { min-height: 56px; } .menu__top { padding-top: 16px; } .menu__title { font-size: 1.75rem; } }
@media (min-width: 1024px) { .menu { display: none; } }
@media (prefers-reduced-transparency: reduce) { .menu__scrim { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(4, 16, 8, .8); } }

/* ---------- 6. Buttons --------------------------------------------------- */
.btn {
  --btn-bg: var(--green-700); --btn-fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-control);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 640 var(--fs-ui)/1 var(--font-ui); letter-spacing: -.005em; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(15, 46, 23, .2), 0 6px 14px -6px rgba(15, 46, 23, .35);
  transition: transform var(--t-press) ease-out, opacity var(--t-press) ease;
  user-select: none; -webkit-user-select: none;
}
.btn::after {                    /* hover lift, drawn as a shadow layer that only fades */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 10px 22px -8px rgba(15, 46, 23, .5); opacity: 0;
  transition: opacity var(--t-hover) ease;
}
.btn .icon { transition: transform var(--t-hover) var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { box-shadow: var(--ring); }
.on-dark .btn:focus-visible { box-shadow: var(--ring-dark); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn:hover::after { opacity: 1; }
  .btn:hover .icon { transform: translateX(3px); }
  .btn:hover:active { transform: scale(.97); }
}
.btn--yellow, .on-dark .btn--primary { --btn-bg: var(--yellow-400); --btn-fg: var(--ink); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--green-700);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.on-dark .btn--ghost { --btn-fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(233, 239, 227, .34); }
.btn--ghost::after { box-shadow: none; background: currentColor; }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover::after { opacity: .08; } }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: var(--fs-small); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-control);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1);
  transition: transform var(--t-press) ease-out, opacity var(--t-press) ease;
}
.icon-btn:active { transform: scale(.94); }
.icon-btn[disabled] { opacity: .4; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { transform: translateY(-1px); } .icon-btn:hover:active { transform: scale(.94); } }
.on-dark .icon-btn, .icon-btn--dark { background: rgba(15, 46, 23, .72); color: #fff; box-shadow: inset 0 0 0 1px rgba(233, 239, 227, .22); }

/* ---------- 7. Chips and stamps ------------------------------------------ */
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 12px;
  border-radius: var(--r-pill); background: var(--green-50); color: var(--green-700);
  font: 600 var(--fs-small)/1 var(--font-ui); white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip--plain::before { content: none; }
.chip[data-status="IN_PROGRESS"] { background: var(--yellow-200); color: var(--green-700); }
.chip[data-status="PLANNED"] { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); }
.chip[data-status="ON_HOLD"] { background: var(--rust-tint); color: var(--rust); }
.chip[data-status="COMPLETED"] { background: var(--green-700); color: #fff; }
.on-dark .chip { background: rgba(233, 239, 227, .12); color: var(--green-100); }
.on-dark .chip[data-status="IN_PROGRESS"] { background: rgba(249, 235, 80, .16); color: var(--yellow-400); }

/* Filter chip (a real button): used on the tracker */
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font: 600 var(--fs-ui)/1 var(--font-ui);
  transition: transform var(--t-press) ease-out, opacity var(--t-press) ease;
}
.chip-btn[aria-pressed="true"] { background: var(--green-700); color: #fff; box-shadow: none; }
.chip-btn:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .chip-btn:hover { opacity: .82; } }

/* The stamp: our typeset echo of the GPS camera plate. Cells, never a dot-joined string. */
.stamp {
  display: inline-flex; align-items: stretch; border-radius: 6px; overflow: hidden;
  background: rgba(10, 33, 16, .78); color: #fff;
  font: 560 var(--fs-stamp)/1 var(--font-ui); letter-spacing: .01em;
  font-variant-numeric: tabular-nums lining-nums;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .stamp { background: rgba(10, 33, 16, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.stamp { max-width: 100%; flex-wrap: wrap; }
.stamp > * { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; min-width: 0; line-height: 1.25; }
.stamp > * > span { min-width: 0; overflow-wrap: anywhere; }
.chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.stamp > * + * { border-left: 1px solid rgba(233, 239, 227, .2); }
.stamp__key { color: var(--yellow-400); }
.stamp--light { background: var(--green-50); color: var(--ink-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
.stamp--light > * + * { border-left-color: var(--line); }
.stamp--light .stamp__key { color: var(--green-700); }

/* ---------- 8. Stage meter (cards) and stage track (programme) ----------- */
.stage { display: grid; gap: 8px; }
.stage__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); font-family: var(--font-ui); }
.stage__label { font-weight: 660; font-size: var(--fs-ui); color: var(--ink); }
.stage__name { font-size: var(--fs-small); color: var(--ink-3); }
.stage__pct { font-weight: 700; font-size: var(--fs-ui); font-variant-numeric: tabular-nums; }
.stage-meter { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.stage-meter__seg { height: 7px; border-radius: 4px; background: var(--green-100); overflow: hidden; position: relative; }
.stage-meter__seg[data-state="VERIFIED"] { background: var(--green-700); }
/* Works underway are hatched like site tape; a verified stage is solid */
.stage-meter__seg[data-state="IN_PROGRESS"]::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-55deg, var(--green-700) 0 4px, var(--yellow-400) 4px 8px);
}
.on-dark .stage__label { color: #fff; }
.on-dark .stage__name { color: var(--green-300); }
.on-dark .stage-meter__seg { background: rgba(233, 239, 227, .18); }
.on-dark .stage-meter__seg[data-state="VERIFIED"] { background: var(--yellow-400); }
.on-dark .stage-meter__seg[data-state="IN_PROGRESS"]::after { background: repeating-linear-gradient(-55deg, var(--yellow-400) 0 4px, rgba(15, 46, 23, .9) 4px 8px); }

/* The inspection card: one box per step of the protocol. A box is stamped when ZHDI has verified
   that step, and the next may only begin after it. Phones read it top to bottom, desktops left to right. */
.icard { --ic-line: var(--line-strong); --ic-ink: var(--green-700); --ic-soft: var(--ink-3); display: grid; counter-reset: none; }
.on-dark .icard { --ic-line: rgba(233, 239, 227, .26); --ic-ink: var(--yellow-400); --ic-soft: var(--green-200); }
.icard__step { position: relative; display: grid; grid-template-columns: 76px 1fr; column-gap: var(--s-4); padding-bottom: var(--s-5); align-items: start; }
.icard__step::before { content: ""; position: absolute; left: 37px; top: 76px; bottom: 0; width: 2px; background: var(--ic-line); }
.icard__step:last-child { padding-bottom: 0; }
.icard__step:last-child::before { content: none; }
.icard__step[data-state="VERIFIED"]::before { background: var(--ic-ink); }
.icard__box {
  position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px dashed var(--ic-line); color: var(--ic-soft);
  font: 500 1.75rem/1 var(--font-head); font-variant-numeric: lining-nums;
}
.icard__step[data-state="IN_PROGRESS"] .icard__box { border-style: solid; border-color: var(--ic-ink); color: var(--ic-ink); }
.icard__step[data-state="IN_PROGRESS"] .icard__box::before {   /* site tape round the box that is being worked on */
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: repeating-linear-gradient(-55deg, var(--ic-ink) 0 4px, transparent 4px 9px); opacity: .28;
}
.icard__step[data-state="VERIFIED"] .icard__box { border-color: transparent; }
.icard__box .rstamp { position: absolute; inset: 0; width: 100%; height: 100%; }
/* A stamped box is larger than an empty one: the stamp has to be read */
.icard__step[data-state="VERIFIED"] { grid-template-columns: 112px 1fr; }
.icard__step[data-state="VERIFIED"] .icard__box { width: 112px; height: 112px; }
.icard__step[data-state="VERIFIED"]::before { left: 55px; top: 112px; }
.icard__title { font: 600 1.1875rem/1.2 var(--font-head); letter-spacing: -.01em; padding-top: 6px; }
.icard__scope { font-size: .9375rem; line-height: 1.5; color: var(--ic-soft); margin-top: 4px; max-width: 30rem; }
.icard__meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 1024px) {
  .icard { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .icard__step { grid-template-columns: 1fr; padding: 0 var(--s-5) 0 0; align-content: start; }
  .icard__step::before, .icard__step[data-state="VERIFIED"]::before { left: 76px; right: 0; top: 37px; bottom: auto; width: auto; height: 2px; }
  .icard__step[data-state="VERIFIED"] { grid-template-columns: 1fr; }
  .icard__step[data-state="VERIFIED"] .icard__box { margin: -18px 0 -18px -6px; }
  .icard__step[data-state="VERIFIED"]::before { left: 110px; }
  .icard__step[data-state="VERIFIED"] .icard__title { padding-top: var(--s-5); }
  .icard { padding-top: 18px; }
  .icard__title { padding-top: var(--s-4); }
  .icard__scope { font-size: var(--fs-small); }
}

/* The rubber stamp. Drawn in currentColor; it lands once (see [data-land]) and then stays put. */
.rstamp { display: block; width: 112px; height: 112px; color: var(--green-700); transform: rotate(var(--stamp-tilt, -8deg)); overflow: visible; }
.on-dark .rstamp { color: var(--yellow-400); }
.rstamp circle { fill: none; stroke: currentColor; }
.rstamp text { fill: currentColor; font-family: var(--font-ui); font-weight: 760; letter-spacing: .1em; }
.rstamp .rstamp__date { font-family: var(--font-data); font-stretch: 80%; font-weight: 500; letter-spacing: .04em; }
.rstamp .rstamp__main { letter-spacing: .04em; font-weight: 800; }
.rstamp[data-land] { animation: stamp-land 460ms var(--spring-bounce) both; animation-delay: var(--d, 0ms); }
@keyframes stamp-land { from { opacity: 0; transform: rotate(calc(var(--stamp-tilt, -8deg) - 9deg)) scale(1.5); } 55% { opacity: 1; } to { opacity: 1; transform: rotate(var(--stamp-tilt, -8deg)) scale(1); } }

/* Programme timeline, drawn as a map's scale bar: one segment per month, alternately filled */
.tline { --tl-ink: var(--ink); --tl-soft: var(--ink-3); display: grid; gap: 10px; }
.on-dark .tline { --tl-ink: #fff; --tl-soft: var(--green-200); }
.tline__bar { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 14px; border: 1.5px solid var(--tl-ink); border-radius: 2px; }
.tline__seg:nth-child(odd) { background: var(--tl-ink); }
.tline__months { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; font: 600 var(--fs-small)/1.2 var(--font-ui); color: var(--tl-soft); }
.tline__months span { padding-left: 1px; }
.tline__marks { position: relative; height: 116px; }
.tline__mark { position: absolute; top: 0; left: var(--at); display: grid; gap: 10px; padding: 12px 0 0 10px; border-left: 1.5px solid var(--tl-ink); max-width: 15rem; }
.tline__item { display: grid; gap: 2px; }
.tline__mark[data-side="left"] { transform: translateX(-100%); border-left: 0; border-right: 1.5px solid var(--tl-ink); padding: 12px 10px 0 0; text-align: right; }
.tline__mark[data-row="2"] { padding-top: 58px; }
.tline__date { color: var(--tl-soft); }
.tline__label { font: 600 var(--fs-small)/1.3 var(--font-ui); color: var(--tl-ink); }
.tline__today { position: absolute; z-index: 2; left: var(--at); top: -9px; bottom: -9px; width: 0; border-left: 3px solid var(--yellow-400); }
.tline__today::before { content: ""; position: absolute; inset: 0 auto 0 -4.5px; width: 6px; border: 1.5px solid var(--ink); border-radius: 2px; }
.tline__today span { position: absolute; bottom: calc(100% + 6px); left: 0; transform: translateX(-50%); white-space: nowrap; padding: 4px 8px; border-radius: 4px; background: var(--yellow-400); color: var(--ink); font: 700 var(--fs-stamp)/1 var(--font-ui); }
.tline__today[data-edge="start"] span { transform: translateX(-12px); }
.tline__today[data-edge="end"] span { transform: translateX(calc(-100% + 12px)); }
@media (max-width: 719px) {
  .tline__marks { height: auto; display: grid; gap: var(--s-3); padding-top: var(--s-2); }
  .tline__mark, .tline__mark[data-side="left"], .tline__mark[data-row="2"] { position: static; transform: none; max-width: none; text-align: left; border: 0; border-left: 1.5px solid var(--tl-ink); padding: 0 0 0 10px; }
}

/* ---------- 9. Facility card --------------------------------------------- */
/* --press is written every frame of a Force Touch. It must not inherit, or each frame would
   restyle the whole card; the card and its photo each get the value directly from components.js. */
@property --press { syntax: "<number>"; inherits: false; initial-value: 0; }
.fcard {
  --press: 0;                      /* 0 → 1, driven by Force Touch pressure */
  position: relative; display: flex; flex-direction: column; isolation: isolate;
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-1);
  transform: translateY(var(--lift, 0px)) scale(calc(1 - var(--press) * .035));
  transition: transform var(--t-hover) var(--ease-out);
}
.fcard::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: var(--shadow-2); opacity: 0; transition: opacity var(--t-hover) ease;
}
.fcard[data-pressing] { transition: none; }
.fcard__media { position: relative; margin: 6px 6px 0; aspect-ratio: 16 / 10; border-radius: calc(var(--r-card) - 6px); overflow: hidden; background: var(--green-100); }
.fcard__img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1 + var(--zoom, 0) + var(--press) * .05));
  transition: transform 520ms var(--ease-out);
}
.fcard[data-pressing] .fcard__img { transition: none; }
/* Evidence treatment: a light multiply tint and a top-only shade. The bottom stays clear so
   the GPS plate baked into the photo remains readable. */
.fcard__media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--green-700); mix-blend-mode: multiply; opacity: .12; pointer-events: none; }
.fcard__media::after { content: ""; position: absolute; inset: 0 0 55% 0; z-index: 1; background: linear-gradient(to bottom, rgba(4, 16, 8, .5), transparent); pointer-events: none; }
.fcard__tags { position: absolute; z-index: 2; left: 10px; top: 10px; right: 10px; display: flex; justify-content: space-between; gap: 8px; }
.fcard__tags > * { min-width: 0; flex-shrink: 1; } .fcard__tags .chip { flex-shrink: 0; }
.fcard__nophoto { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: var(--s-5); text-align: center; font: 560 var(--fs-small)/1.4 var(--font-ui); color: var(--ink-2); }
/* The photo's own record, set under it like the pencilled edge of a print */
.fcard__plate { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 8px var(--s-5) 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.fcard__plate b { font-weight: 500; color: var(--green-700); }
.fcard__plate { justify-content: space-between; }
/* Site position: the survey-marker glyph ties these figures to the pin on the map, not to the photo */
.sitepos { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sitepos__mark { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; position: relative; flex: none; }
.sitepos__mark::after { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; background: currentColor; }
.fcard__body { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-4) var(--s-5) var(--s-5); flex: 1; }
.fcard__name { font: 600 1.4375rem/1.1 var(--font-head); letter-spacing: -.015em; }
.fcard__fact--water { font: italic 500 1rem/1.3 var(--font-head); color: var(--green-700); }
.fcard__link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--r-card); }  /* whole card is the link */
.fcard__link:focus-visible { box-shadow: none; }
.fcard__link:focus-visible::after { box-shadow: var(--ring); }
.fcard__where { font: 500 var(--fs-ui)/1.35 var(--font-ui); color: var(--ink-3); margin-top: 4px; }
.fcard__facts { display: grid; gap: 6px; font: 500 var(--fs-small)/1.4 var(--font-ui); color: var(--ink-2); }
.fcard__fact { display: flex; gap: 8px; align-items: flex-start; }
.fcard__fact .icon { margin-top: 1px; color: var(--green-600); }
.fcard__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); margin-top: auto; }
.fcard__preview { position: relative; z-index: 4; }
.fcard__open { font: 640 var(--fs-ui)/1 var(--font-ui); color: var(--green-700); display: inline-flex; align-items: center; gap: 6px; }
.fcard__open .icon { transition: transform var(--t-hover) var(--ease-out); }
.fcard:active { --lift: 0px; }
@media (hover: hover) and (pointer: fine) {
  .fcard:hover { --lift: -2px; --zoom: .03; }
  .fcard:hover::after { opacity: 1; }
  .fcard:hover .fcard__open .icon { transform: translateX(3px); }
}
.fcard:focus-within::after { opacity: 1; }

/* ---------- 10. Rails (native horizontal scroll with snap) --------------- */
.rail {
  display: grid; grid-auto-flow: column; gap: var(--s-5);
  grid-auto-columns: min(84vw, 340px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 40px; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail:focus-visible { box-shadow: none; outline: 2px solid var(--green-700); outline-offset: -2px; }
@media (min-width: 640px) { .rail { grid-auto-columns: 340px; } }
/* Let the rail bleed to the viewport edge on wide screens while its first card stays on the wrap line */
@media (min-width: 1336px) {
  .rail { --bleed: calc((100vw - var(--wrap)) / 2); margin-inline: calc(var(--bleed) * -1); padding-inline: var(--bleed); scroll-padding-inline: var(--bleed); }
}
.rail-nav { display: flex; gap: var(--s-2); }

/* ---------- 11. Bayelsa map ---------------------------------------------- */
.bmap { position: relative; width: 100%; user-select: none; -webkit-user-select: none; }
.bmap__stage { position: relative; width: 100%; aspect-ratio: 1048 / 952; }
.bmap__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; touch-action: pan-y; cursor: default; }
.bmap[data-zoomed] .bmap__svg { touch-action: none; cursor: grab; }
.bmap[data-dragging] .bmap__svg { cursor: grabbing; }
.bmap__clip { position: absolute; inset: 0; border-radius: var(--r-card); }
.bmap[data-zoomed] .bmap__clip { overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-dark); }
/* Sheet furniture, all computed from the map file: water-lining round the coast, a graticule with
   its degrees in the margin, and a scale bar. The lining and margin figures step back when zoomed. */
.bmap__lining { position: absolute; pointer-events: none; opacity: .5; transition: opacity 320ms ease; }
.bmap--light .bmap__lining { opacity: .9; }
.bmap[data-zoomed] .bmap__lining, .bmap[data-zoomed] .bmap__deg { opacity: 0; }
.bmap__grat { stroke: rgba(233, 239, 227, .1); stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; pointer-events: none; }
.bmap--light .bmap__grat { stroke: rgba(15, 42, 22, .09); }
.bmap__deg { font-family: var(--font-data); font-stretch: 80%; fill: var(--green-300); opacity: .8; pointer-events: none; transition: opacity 320ms ease; }
.bmap--light .bmap__deg { fill: var(--ink-3); }
.bmap__lga[data-lay], .bmap__label[data-lay] { animation: fade 560ms ease both; animation-delay: var(--d, 0ms); }
.bmap__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px var(--s-4); margin-top: var(--s-3); }
.bmap__scale { display: flex; align-items: flex-end; gap: 10px; color: var(--green-200); }
.bmap--light .bmap__scale { color: var(--ink-2); }
.bmap__scale-bar { position: relative; width: 124px; transform-origin: 0 50%; height: 7px; border: 1.5px solid currentColor; border-radius: 1px; background: linear-gradient(to right, currentColor 0 25%, transparent 25% 50%, currentColor 50% 75%, transparent 75%); }
.bmap__north { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; font: 600 .6875rem/1 var(--font-ui); }
.bmap__north svg { width: 9px; height: 13px; fill: currentColor; }
.bmap__lga { fill: rgba(99, 143, 103, .26); stroke: rgba(253, 245, 166, .42); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; cursor: pointer; outline: none; }
.bmap__lga:nth-of-type(3n) { fill: rgba(99, 143, 103, .36); }
.bmap__lga:nth-of-type(3n + 1) { fill: rgba(67, 118, 71, .42); }
.bmap__lga-hi { fill: rgba(249, 235, 80, .2); stroke: var(--yellow-400); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; pointer-events: none; opacity: 0; transition: opacity 260ms ease; }
.bmap__lga-hi[data-on] { opacity: 1; }
.bmap__label { font-family: var(--font-ui); font-weight: 650; letter-spacing: .09em; text-transform: uppercase; fill: rgba(233, 239, 227, .8); text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(15, 46, 23, .55); stroke-width: 3px; stroke-linejoin: round; }
.bmap__label[data-on] { fill: #fff; }
.bmap__pin { cursor: pointer; outline: none; }
.bmap__pin-hit { fill: transparent; }
/* A survey marker: a ring with its station point. Selected, the point grows to fill the ring. */
.bmap__pin-dot { fill: var(--green-950); stroke: var(--yellow-400); vector-effect: non-scaling-stroke; stroke-width: 2.25; transform-box: fill-box; transform-origin: center; transition: transform 320ms var(--spring-bounce); }
.bmap__pin-core { fill: var(--yellow-400); pointer-events: none; transform-box: fill-box; transform-origin: center; transition: transform 320ms var(--spring-bounce); }
.bmap__pin-ring { fill: none; stroke: var(--yellow-400); vector-effect: non-scaling-stroke; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.bmap__pin[data-on] .bmap__pin-dot { transform: scale(1.45); }
.bmap__pin[data-on] .bmap__pin-core { transform: scale(3.1); }
.bmap__pin { transition: opacity 220ms ease; }
.bmap__pin[data-off] { opacity: .16; pointer-events: none; }
.bmap__pin[data-on] .bmap__pin-ring { animation: pin-ring 1100ms var(--ease-out) 2; }
.bmap__pin:focus-visible .bmap__pin-dot { stroke: #fff; stroke-width: 4; }
@media (hover: hover) and (pointer: fine) { .bmap__pin:hover .bmap__pin-dot { transform: scale(1.3); } .bmap__pin[data-on]:hover .bmap__pin-dot { transform: scale(1.45); } }
.bmap__pin:active .bmap__pin-dot { transform: scale(1.1); }
@keyframes pin-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }
.bmap__tools { display: flex; gap: 6px; margin-left: auto; }
.bmap__credit { flex-basis: 100%; font: 500 .6875rem/1.3 var(--font-ui); color: var(--green-300); text-align: right; }
/* Light-surface variant (tracker and facility pages) */
.bmap--light .bmap__lga { fill: var(--green-100); stroke: #fff; }
.bmap--light .bmap__lga:nth-of-type(3n) { fill: var(--green-200); }
.bmap--light .bmap__lga:nth-of-type(3n + 1) { fill: #D2DFCB; }
.bmap--light .bmap__lga-hi { fill: rgba(36, 94, 39, .22); stroke: var(--green-700); }
.bmap--light .bmap__label { fill: var(--ink-2); stroke: rgba(245, 247, 241, .8); }
.bmap--light .bmap__pin-dot { fill: #fff; stroke: var(--green-700); }
.bmap--light .bmap__pin-core { fill: var(--green-700); }
.bmap--light .bmap__pin-ring { stroke: var(--green-700); }
.bmap--light .bmap__credit { color: var(--ink-3); }
.bmap--light .bmap__lga:focus-visible, .bmap__lga:focus-visible { stroke-width: 3; }

/* ---------- 12. Home: hero (who ZHDI is) and the results ledger ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--header-h); color: #fff; overflow: clip; }
.hero__grid { flex: 1; display: grid; gap: var(--s-7); align-items: center; padding-block: var(--s-6) var(--s-8); }
.hero__copy { display: grid; gap: var(--s-5); justify-items: start; }
.hero__title { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.25rem); }
.hero__sub { color: var(--green-100); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.hero__sub strong, .survey__sub strong { font-weight: 640; color: #fff; }
.hero__plate { border-top: 1px solid var(--line-dark); }
.plate { display: grid; }
.plate__cell { display: grid; gap: 4px; padding-block: var(--s-4); border-bottom: 1px solid var(--line-dark); }
.plate__cell:last-child { border-bottom: 0; }
.plate__key { font: 560 var(--fs-small)/1.2 var(--font-ui); color: var(--green-300); }
.plate__val { font: 500 1.3125rem/1.2 var(--font-head); letter-spacing: -.01em; font-variant-numeric: lining-nums; }
.plate__val { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.plate__val span { white-space: nowrap; }                /* a date never breaks; the note wraps under it as one unit */
.plate__val em { font: italic 400 1.1875rem/1.2 var(--font-head); color: var(--yellow-400); white-space: nowrap; }
@media (min-width: 640px) {
  .plate { grid-template-columns: repeat(3, 1fr); }
  .plate__cell { border-bottom: 0; padding: var(--s-5) var(--s-5) var(--s-5) 0; }
  .plate__cell + .plate__cell { border-left: 1px solid var(--line-dark); padding-left: var(--s-5); }
}
@media (max-width: 639px) { .hero__actions { display: grid; width: 100%; } .hero__actions .btn { width: 100%; } }

/* Results so far: a field ledger. Each figure starts its own sentence, right-aligned in its column
   as figures are in a ledger, and the whole row leads to the report it comes from. The two voices
   hold here too: ZHDI's own figures are italic (yellow on dark), the programme's are roman. */
.results { --num-size: clamp(2.5rem, 1.7rem + 2.6vw, 4.25rem); --num-w: calc(var(--num-size) * 2.25);
  display: grid; gap: var(--s-4); min-width: 0; }
.results__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); }
.results__title { font: 600 var(--fs-h3)/1.15 var(--font-head); letter-spacing: -.015em; }
.results__list { list-style: none; margin: 0; padding: 0; display: grid; }
/* Water-lining over the ledger: three thinning rules, drawn from the left as the figures arrive */
.results__list::before { content: ""; height: 9px; transform-origin: 0 50%;
  background: linear-gradient(rgba(233, 239, 227, .55) 0 1.5px, transparent 1.5px 4px, rgba(233, 239, 227, .28) 4px 5px, transparent 5px 8px, rgba(233, 239, 227, .13) 8px 9px); }
html.js .results__list::before { animation: draw 720ms var(--ease-out) 220ms both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: none; } }
.result { position: relative; isolation: isolate; border-bottom: 1px solid var(--line-dark); }
.result__link { position: relative; display: grid; grid-template-columns: var(--num-w) minmax(0, 1fr) 20px; column-gap: var(--s-5); align-items: center;
  padding-block: var(--s-4); border-radius: 8px; color: inherit; transition: transform var(--t-press) ease-out; }
.result__link::before { content: ""; position: absolute; inset: 0 calc(var(--s-3) * -1); z-index: -1; border-radius: 8px; background: rgba(233, 239, 227, .07); opacity: 0; transition: opacity var(--t-hover) ease; }
.result__num { font: 400 var(--num-size)/.9 var(--font-head); letter-spacing: -.04em; text-align: right; white-space: nowrap; font-variant-numeric: lining-nums; color: #fff; }
.result[data-voice="zhdi"] .result__num { font-style: italic; letter-spacing: -.035em; padding-right: .06em; color: var(--yellow-400); }
.result__what { display: grid; gap: 4px; min-width: 0; }
.result__label { font: 620 1.0625rem/1.3 var(--font-ui); color: #fff; text-wrap: pretty; }
.result__detail { font: 450 var(--fs-small)/1.45 var(--font-ui); color: var(--green-300); text-wrap: pretty; }
.result__go { width: 20px; height: 20px; color: var(--green-300); transition: transform var(--t-hover) var(--ease-out); }
.result__link:active { transform: scale(.985); }
.result__link:focus-visible { box-shadow: none; }
.result__link:focus-visible::before { opacity: 1; box-shadow: var(--ring-dark); }
@media (hover: hover) and (pointer: fine) {
  .result__link:hover::before { opacity: 1; }
  .result__link:hover .result__go { color: var(--yellow-400); transform: translateX(3px); }
  .result__link:hover:active { transform: scale(.985); }
}
.result--skel { padding-block: var(--s-4); }
.result--skel .skel { display: block; height: calc(var(--num-size) * .9); }
.results__note { font: 450 var(--fs-small)/1.5 var(--font-ui); color: var(--green-300); max-width: 40rem; }
@media (max-width: 639px) {
  .results { --num-size: clamp(2.25rem, 1.5rem + 3.2vw, 2.75rem); --num-w: calc(var(--num-size) * 2.2); }
  .result__link { column-gap: var(--s-4); grid-template-columns: var(--num-w) minmax(0, 1fr) 16px; align-items: start; }
  .result__label { font-size: 1rem; }
  .result__go { width: 16px; height: 16px; margin-top: 3px; }
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 5.2fr) minmax(0, 6.8fr); gap: var(--s-8); padding-block: var(--s-6) var(--s-7); }
  .hero__grid[data-solo] { grid-template-columns: minmax(0, 48rem); }
  .hero__title { font-size: clamp(2.75rem, .9rem + 3.3vw, 4.25rem); }
}

/* ---------- 12a. Home: the facility works, on their own map sheet ---------- */
/* The dark survey sheet lies on the tinted table: copy, the Bayelsa map with its tour and the
   selected facility's print, and the status plate. The facility rail follows on the table. */
.survey { border-radius: var(--r-sheet); overflow: clip; box-shadow: var(--shadow-2); margin-bottom: var(--s-7); }
.survey__grid { display: grid; gap: var(--s-7); align-items: center; padding: var(--s-7) var(--s-5) var(--s-6); }
.survey__copy { display: grid; gap: var(--s-5); justify-items: start; }
.survey__sub { color: var(--green-100); max-width: 34rem; }
.survey .h2 { font-size: clamp(1.95rem, 1.3rem + 1.8vw, 3rem); }
.survey__map { position: relative; width: 100%; max-width: 660px; justify-self: center; }
.survey__spot { margin-top: var(--s-5); transition: transform 460ms var(--ease-out); }
.survey__leader { position: absolute; left: 0; top: 0; z-index: 3; width: 1px; height: 1.5px; background: var(--yellow-400); transform-origin: 0 50%; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.survey__plate { border-top: 1px solid var(--line-dark); padding-inline: var(--s-5); }
/* The sheet lays itself in when it comes into view, not while it is still below the fold */
html.js .survey:not([data-seen]) :is(.bmap__lga[data-lay], .bmap__label[data-lay], .bmap__pin[data-drop]) { animation-play-state: paused; }
.rail-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-5); margin-bottom: var(--s-4); }
.rail-head p { max-width: 42rem; font-size: var(--fs-body); line-height: 1.6; }
@media (max-width: 639px) { .survey { margin-inline: calc(var(--gutter) * -1); border-radius: 0; } }
@media (min-width: 640px) { .survey__grid { padding: var(--s-8) var(--s-7) var(--s-6); } .survey__plate { padding-inline: var(--s-7); } }
@media (min-width: 1024px) {
  .survey__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-7); }
  .survey__map { max-width: none; justify-self: stretch; }
  .survey__spot { position: absolute; left: 0; bottom: 62px; width: min(56%, 348px); margin-top: 0; z-index: 4; }
  .survey__leader[data-on] { opacity: .75; }
}
/* Tablet landscape and small laptops: the map takes more of the sheet so the facility card keeps
   room for a long name without breaking it mid-word */
@media (min-width: 1024px) and (max-width: 1279px) {
  .survey__grid { grid-template-columns: minmax(0, 4.3fr) minmax(0, 6.7fr); gap: var(--s-6); }
  .survey__spot { width: min(64%, 348px); }
  .survey__spot .spot { grid-template-columns: 104px 1fr; }
}

/* A photographic print: paper edge, the photo, and its record pencilled underneath */
.print { position: relative; display: block; padding: 5px 5px 0; border-radius: 3px; background: var(--print); color: var(--ink);
  box-shadow: 0 1px 1px rgba(4, 16, 8, .22), 0 6px 14px -4px rgba(4, 16, 8, .34), 0 18px 32px -14px rgba(4, 16, 8, .4);
  transform: rotate(var(--tilt, 0deg)) translateY(var(--lift, 0px)); transition: transform var(--t-move) var(--ease-out); }
.print__photo { position: relative; display: block; aspect-ratio: var(--ar, 4 / 3); overflow: hidden; border-radius: 1px; background: var(--green-100); }
.print__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 520ms var(--ease-out); }
.print__photo::after { content: ""; position: absolute; inset: 0; background: var(--green-700); mix-blend-mode: multiply; opacity: .1; pointer-events: none; }
.print__plate { display: flex; justify-content: space-between; gap: 8px; padding: 5px 1px 6px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.print__plate b { font-weight: 500; color: var(--green-700); flex: none; }
.print__plate span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.print--bare { padding-bottom: 5px; }

/* The selected facility, shown beside the map: its print and where the works stand */
.spot {
  position: relative; display: grid; grid-template-columns: 124px 1fr; gap: var(--s-4); align-items: center;
  padding: 12px 14px 12px 12px; border-radius: var(--r-card);
  background: rgba(10, 33, 16, .8); box-shadow: var(--shadow-dark), inset 0 0 0 1px rgba(233, 239, 227, .14);
  color: #fff;
  transition: transform var(--t-hover) var(--ease-out);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .spot { background: rgba(10, 33, 16, .6); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); }
}
.spot .print { --tilt: -3.5deg; margin: -22px 0 -4px -20px; }
.spot__body { display: grid; gap: 8px; min-width: 0; }
.spot__name { font: 600 1.1875rem/1.12 var(--font-head); letter-spacing: -.01em; }
.spot__where { font: 500 var(--fs-small)/1.3 var(--font-ui); color: var(--green-200); padding-right: 40px; }
.spot__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.spot__link:focus-visible { box-shadow: none; }
.spot__link:focus-visible::after { box-shadow: var(--ring-dark); }
.spot:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) { .spot:hover { transform: translateY(-2px); } .spot:hover .print { --tilt: -1.5deg; } .spot:hover:active { transform: scale(.985); } }
/* Pause or resume the tour of facilities (anything that keeps moving has a stop) */
.spot__tour { position: absolute; right: 6px; top: 6px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--green-200); transition: transform var(--t-press) ease-out, opacity var(--t-press) ease; }
.spot__tour::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(233, 239, 227, .3); }
.spot__tour .icon { position: relative; width: 14px; height: 14px; stroke-width: 2.6; }
.spot__tour:active { transform: scale(.9); }
.spot__tour:focus-visible { box-shadow: none; }
.spot__tour:focus-visible::before { box-shadow: var(--ring-dark); }
@media (hover: hover) and (pointer: fine) { .spot__tour:hover { color: #fff; } }
@media (max-width: 419px) { .spot { grid-template-columns: 104px 1fr; } }

/* ---------- 13. Home: programme ledger ----------------------------------- */
.ledger { display: grid; color: var(--ink); }
.ledger__row { display: grid; grid-template-columns: clamp(7.4rem, 33vw, 14.5rem) 1fr; column-gap: var(--s-5); align-items: baseline; padding-block: var(--s-4); border-bottom: 1px solid var(--line-strong); }
.figure-num { font-size: clamp(3.25rem, 2.1rem + 4.6vw, 6rem); line-height: .86; font-weight: 400; letter-spacing: -.04em; color: var(--green-700); font-variant-numeric: lining-nums; }
.ledger__row[data-voice="zhdi"] .figure-num { font-style: italic; }
.ledger__what { font: 660 1.125rem/1.25 var(--font-ui); }
.ledger__note { display: block; font: 480 var(--fs-ui)/1.45 var(--font-ui); color: var(--ink-3); margin-top: 2px; }
/* The contact sheet: one baseline print per facility, laid out by hand and straightened on approach */
.sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); padding-top: var(--s-3); }
.sheet .print { --ar: 4 / 3; }
.sheet .print:nth-child(4n + 1) { --tilt: -1.6deg; }
.sheet .print:nth-child(4n + 2) { --tilt: 1.1deg; }
.sheet .print:nth-child(4n + 3) { --tilt: .7deg; }
.sheet .print:nth-child(4n + 4) { --tilt: -1deg; }
.sheet .print:focus-visible { box-shadow: var(--ring); }
.sheet .print:active { --lift: 0px; --tilt: 0deg; }
@media (hover: hover) and (pointer: fine) {
  .sheet .print:hover { --tilt: 0deg; --lift: -4px; z-index: 1; }
  .sheet .print:hover img { transform: scale(1.03); }
}
@media (min-width: 640px) { .sheet { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .sheet { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); } .sheet .print__plate span:last-child { display: none; } }

/* ---------- 14. Home: method steps, values, outreach, voices -------------- */
.steps { display: grid; counter-reset: step; }
.steps__item { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: var(--s-4); padding-block: var(--s-5); border-top: 1px solid var(--line-dark); }
.steps__item::before { content: counter(step); font: italic 400 2.5rem/.95 var(--font-head); color: var(--yellow-400); font-variant-numeric: lining-nums; }
.steps__title { font: 600 1.3125rem/1.2 var(--font-head); letter-spacing: -.01em; }
.steps__text { color: var(--green-200); margin-top: 6px; font-size: 1rem; line-height: 1.6; }
.statement { font: 500 clamp(2.125rem, 1.3rem + 3.3vw, 4rem)/1.03 var(--font-head); letter-spacing: -.03em; text-wrap: balance; }
.statement em { display: block; margin-top: .18em; }

.values { display: grid; gap: 0; }
.value { display: grid; grid-template-columns: clamp(4.5rem, 22vw, 7rem) 1fr; column-gap: var(--s-4); align-items: start; align-content: start; padding-block: var(--s-5); border-top: 1px solid var(--line-strong); }
.value__letter { font: 400 clamp(5.5rem, 3rem + 10vw, 13rem)/.8 var(--font-head); letter-spacing: -.04em; color: var(--green-700); }
.value__name { font: 600 1.5rem/1.15 var(--font-head); letter-spacing: -.015em; }
.value__text { margin-top: 8px; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
@media (min-width: 900px) {
  .values { grid-template-columns: repeat(4, 1fr); column-gap: var(--s-6); }
  .value { grid-template-columns: 1fr; row-gap: var(--s-5); padding-block: var(--s-6) 0; border-top: 2px solid var(--ink); }
}

.story {
  position: relative; display: grid; isolation: isolate; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-1);
  transform: translateY(var(--lift, 0px)); transition: transform var(--t-hover) var(--ease-out);
}
.story::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: var(--shadow-2); opacity: 0; transition: opacity var(--t-hover) ease; pointer-events: none; }
/* The whole card is the link. The title's link stretches over the card with ::after, so nothing
   between it and .story may be positioned: the photo, its treatment and the title are stacked in
   one grid cell instead of with position:absolute (which made the photo the link's box, and left
   "Read the report" in the body dead). */
.story__media { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); margin: 6px; aspect-ratio: 4 / 3; border-radius: calc(var(--r-card) - 6px); overflow: hidden; background: var(--green-800); }
.story__media > *, .story__media::before, .story__media::after { grid-area: 1 / 1; }
.story__media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform 520ms var(--ease-out); }
/* Photo treatment for outreach covers: brand multiply layer plus a bottom shade for the title */
.story__media::before { content: ""; z-index: 1; background: var(--green-700); mix-blend-mode: multiply; opacity: .14; }
.story__media::after { content: ""; z-index: 1; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent 62%); }
.story__title { z-index: 2; align-self: end; margin: var(--s-5); color: #fff; }
.story__body { display: grid; gap: var(--s-4); padding: var(--s-4) var(--s-5) var(--s-5); align-content: start; }
.story__link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--r-card); }
.story__link:focus-visible { box-shadow: none; }
.story__link:focus-visible::after { box-shadow: var(--ring); }
.story:active { --lift: 0px; }
@media (hover: hover) and (pointer: fine) { .story:hover { --lift: -2px; } .story:hover::after { opacity: 1; } .story:hover .story__media img { transform: scale(1.03); } .story:hover .fcard__open .icon { transform: translateX(3px); } }
.story { grid-template-rows: auto 1fr; }
.stories { display: grid; gap: var(--s-6); }
@media (min-width: 760px) { .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } .story__media { aspect-ratio: 3 / 2; } }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
.figures__num { font: 400 2.75rem/1 var(--font-head); letter-spacing: -.03em; color: var(--green-700); font-variant-numeric: lining-nums; }
.figures__label { font: 500 var(--fs-small)/1.35 var(--font-ui); color: var(--ink-3); margin-top: 4px; }

.quote { display: grid; gap: var(--s-5); align-content: space-between; padding: var(--s-6); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-1); min-height: 100%; }
.quote__text { font: 400 1.3125rem/1.42 var(--font-head); letter-spacing: -.005em; text-wrap: pretty; }
.quote__text::before { content: "\201C"; display: block; font: italic 400 5rem/.6 var(--font-head); color: var(--green-600); margin-bottom: 10px; }
.quote__who { font: 680 var(--fs-ui)/1.3 var(--font-ui); }
.quote__ctx { display: block; font-weight: 480; color: var(--ink-3); margin-top: 2px; }
.rail--quotes { grid-auto-columns: min(86vw, 400px); }
@media (min-width: 640px) { .rail--quotes { grid-auto-columns: 400px; } }

/* ---------- 14a. Home: news slideshow (news.js) ---------------------------- */
.news-head { display: grid; gap: var(--s-5); margin-bottom: var(--s-6); }
@media (min-width: 1024px) { .news-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-7); } }
.news-routes { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.news { display: grid; gap: var(--s-6); }

/* The position is a scale bar, like the programme timeline: one segment per item, alternately
   filled, newest at the left. The current segment is inked yellow (filling while it plays). */
.news__bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-3) var(--s-5); }
.news__ctrl { display: flex; align-items: center; gap: var(--s-2); }
.news__play { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: transform var(--t-press) ease-out, opacity var(--t-press) ease; }
.news__play::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); transition: opacity var(--t-hover) ease; }
.news__play .icon { position: relative; width: 14px; height: 14px; stroke-width: 2.6; }
.news__play:active { transform: scale(.9); }
.news__play:focus-visible { box-shadow: none; }
.news__play:focus-visible::before { box-shadow: var(--ring); }
@media (hover: hover) and (pointer: fine) { .news__play:hover::before { box-shadow: inset 0 0 0 1.5px var(--ink); } }
.news__scale { display: grid; gap: 0; min-width: 0; }
.news__ticks { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
.news__tick { position: relative; display: block; width: 100%; height: 44px; padding: 0; background: transparent; cursor: pointer; }
.news__tick::before, .news__fill { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 14px; margin-top: -7px; }
.news__tick::before { border-block: 1.5px solid var(--ink); }
.news__ticks li:first-child .news__tick::before { border-left: 1.5px solid var(--ink); border-radius: 2px 0 0 2px; }
.news__ticks li:last-child .news__tick::before { border-right: 1.5px solid var(--ink); border-radius: 0 2px 2px 0; }
.news__ticks li:nth-child(odd) .news__tick::before { background: var(--ink); }
.news__fill { z-index: 1; background: var(--yellow-400); box-shadow: inset 0 0 0 1.5px var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
/* The needle over the current segment, as "Today" on the timeline */
.news__tick::after { content: ""; position: absolute; z-index: 2; left: 50%; top: 4px; width: 9px; height: 7px; margin-left: -4.5px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: 0; transition: opacity var(--t-hover) ease; }
.news__tick[aria-current="true"]::after { opacity: 1; }
.news__tick:focus-visible { outline: 2px solid var(--green-700); outline-offset: -1px; border-radius: 4px; box-shadow: none; }
.news__tick:active .news__fill { opacity: .75; }
@media (hover: hover) and (pointer: fine) { .news__tick:not([aria-current="true"]):hover::after { opacity: .45; } }
.news__ends { display: flex; justify-content: space-between; gap: var(--s-4); color: var(--ink-3); margin-top: -6px; }
.news__count { font: 600 var(--fs-ui)/1 var(--font-ui); color: var(--ink-2); white-space: nowrap; }
.news__count .num { font: 500 1.75rem/1 var(--font-head); letter-spacing: -.02em; color: var(--green-700); margin-right: 3px; }
@media (max-width: 719px) {
  .news__bar { grid-template-columns: minmax(0, 1fr) auto; }
  .news__scale { grid-column: 1 / -1; }
  .news__count { order: 1; }
  .news__ctrl { order: 2; }
}

/* The deck: every slide sits in one cell, so the height never jumps between items */
.news__deck { display: grid; touch-action: pan-y; overscroll-behavior-x: contain; }
.news__slide { grid-area: 1 / 1; display: grid; gap: var(--s-6); align-content: start; min-width: 0; }
.news__slide[data-active] { z-index: 1; }
.news__slide:not([data-active]):not([data-leaving]) { visibility: hidden; }
.news__slide[data-leaving] { pointer-events: none; }
@media (min-width: 760px) { .news__slide { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-6); align-items: center; align-content: center; } }
@media (min-width: 1024px) { .news__slide { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); } }

.news__media { position: relative; display: block; padding: 8px 6px 0; -webkit-user-drag: none; }
.news__media img { -webkit-user-drag: none; }
.news__print { --tilt: -1deg; }
/* Several facilities: their prints fanned on the table, the newest on top */
.news__media--fan { padding: 30px 44px 0 10px; }
.news__print--back { position: absolute; left: 10px; right: 44px; top: 30px; transform: translate(var(--dx), var(--dy)) rotate(var(--tilt)); }
.news__print--back[data-n="1"] { --dx: 30px; --dy: -18px; --tilt: 3deg; }
.news__print--back[data-n="2"] { --dx: 14px; --dy: -28px; --tilt: -4deg; }
.news__print--back .print__photo { aspect-ratio: 4 / 3; }
.news__print--back .print__photo img { filter: saturate(.7); }
.news__media:active .news__print:not(.news__print--back) { --lift: 0px; --tilt: -1deg; }
@media (hover: hover) and (pointer: fine) {
  .news__media:hover .news__print:not(.news__print--back) { --tilt: 0deg; --lift: -3px; }
  .news__media:hover .news__print:not(.news__print--back) img { transform: scale(1.03); }
}
/* No photograph: a blank print on the survey sheet, the place marked on it */
.news__blank { display: grid; place-items: center; background: radial-gradient(60% 70% at 30% 20%, rgba(67, 118, 71, .5), transparent 70%), var(--green-900); color: var(--green-100); isolation: isolate; }
.news__blank::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--atlas, none) no-repeat 50% 50% / 160% auto; opacity: .4; }
.news__blank::after { opacity: 0; }
.news__blank-in { display: inline-flex; align-items: center; gap: 10px; padding: var(--s-5); font: 500 clamp(1.125rem, 1rem + .6vw, 1.5rem)/1.2 var(--font-head); text-align: center; }

.news__text { display: grid; gap: var(--s-4); justify-items: start; align-content: start; min-width: 0; }
.news__title { font: 500 clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem)/1.06 var(--font-head); letter-spacing: -.03em; text-wrap: balance; overflow-wrap: break-word; padding-bottom: .06em; }
/* Long headlines are shown in full, a step smaller, never cut off */
.news__title[data-long="l"] { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); }
.news__title[data-long="xl"] { font-size: clamp(1.375rem, 1.05rem + 1.1vw, 1.875rem); line-height: 1.12; }
.news__names { display: flex; align-items: center; gap: 10px; font: 600 var(--fs-ui)/1.35 var(--font-ui); color: var(--green-700); }
.news__excerpt { color: var(--ink-2); max-width: 36rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.news__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.news__more { margin-top: calc(var(--s-2) * -1); }
@media (max-width: 419px) { .news__actions .btn--primary { flex: 1 1 auto; } }

/* ---------- 14b. Home: what ZHDI does, as the key to the sheet --------------- */
/* A map's legend in its neatline: each strand of work has a survey symbol (shape + station point),
   its name, what it is, where and since when. The facility symbol is the hero map's marker. */
.work { display: grid; list-style: none; margin: 0; padding: 0 var(--s-5); border: 1.5px solid rgba(15, 42, 22, .6); border-radius: 3px;
  box-shadow: inset 0 0 0 4px var(--print), inset 0 0 0 5px var(--line-strong), var(--shadow-1); background: var(--print); color: var(--ink); }
.work__row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-6); }
.work__row + .work__row { border-top: 1px solid var(--line); }
.work__glyph { width: 44px; height: 44px; fill: none; stroke: var(--green-700); stroke-width: 2; stroke-linejoin: round; }
.work__point { fill: var(--green-700); stroke: none; }
.work__body { display: grid; gap: var(--s-3); justify-items: start; min-width: 0; }
.work__name { font: 600 clamp(1.3rem, 1.15rem + .6vw, 1.625rem)/1.15 var(--font-head); letter-spacing: -.015em; text-wrap: balance; overflow-wrap: anywhere; }
.work__text { color: var(--ink-2); font-size: 1rem; line-height: 1.65; max-width: 40rem; text-wrap: pretty; }
.work__where { margin-top: 2px; }
.work__where .data { font-size: .6875rem; }
.work .text-link { margin-top: calc(var(--s-2) * -1); }
/* Phones: the symbol sits beside the name and the text takes the full width of the key */
@media (max-width: 639px) {
  .work { padding: 0 var(--s-4); }
  .work__row { grid-template-columns: 36px minmax(0, 1fr); gap: var(--s-3) var(--s-3); align-items: center; justify-items: start; padding-block: var(--s-5); }
  .work__glyph { width: 36px; height: 36px; }
  .work__body { display: contents; }
  .work__body > * { grid-column: 1 / -1; }
  .work__body > .work__name { grid-column: 2; }
}
@media (min-width: 640px) { .work { padding: 0 var(--s-7); } .work__row { grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-5); } .work__glyph { width: 52px; height: 52px; } }
.work-intro .h2 { font-size: clamp(1.95rem, 1.4rem + 2vw, 3rem); }

/* ---------- 15. Closing: partners and donate ------------------------------ */
.partners { display: grid; }
.partners li { padding-block: 14px; border-top: 1px solid var(--line-dark); font: 500 1.1875rem/1.3 var(--font-head); letter-spacing: -.005em; color: var(--green-100); }
.partners li:last-child { border-bottom: 1px solid var(--line-dark); }
.give { background: var(--yellow-200); color: var(--ink); border-radius: var(--r-sheet); padding: var(--s-6); box-shadow: var(--shadow-dark); display: grid; gap: var(--s-5); }
.give :focus-visible { box-shadow: 0 0 0 2px var(--yellow-200), 0 0 0 4px var(--green-700); }
.on-dark .give .text-link { color: var(--green-700); }
.give__rows { display: grid; border-top: 1px solid rgba(15, 42, 22, .25); }
.give__row { display: grid; gap: 2px; padding-block: 12px; border-bottom: 1px solid rgba(15, 42, 22, .25); }
.give__key { font: 560 var(--fs-small)/1.3 var(--font-ui); color: var(--ink-2); }
.give__val { font: 660 1.0625rem/1.3 var(--font-ui); }
.give__acct { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
.give__num { font: 500 clamp(1.75rem, 1.3rem + 2.1vw, 2.5rem)/1 var(--font-data); font-stretch: 80%; letter-spacing: 0; font-variant-numeric: tabular-nums lining-nums; }
@media (min-width: 640px) { .give { padding: var(--s-7); } }

/* ---------- 16. Forms (shared spec; used from Phase B on) ----------------- */
.field { display: grid; gap: 6px; }
.field__label { font: 600 var(--fs-ui)/1.3 var(--font-ui); }
.field__input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-control);
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  font: 400 1rem/1.4 var(--font-ui);          /* 16px: stops iOS zooming on focus */
}
.field__input::placeholder { color: var(--ink-3); }
.field__input:focus-visible { box-shadow: inset 0 0 0 2px var(--green-700), 0 0 0 4px rgba(36, 94, 39, .16); border-radius: var(--r-control); }
.field__input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--rust); }
.field__error { font: 500 var(--fs-small)/1.35 var(--font-ui); color: var(--rust); }
textarea.field__input { min-height: 132px; resize: vertical; }

/* The haptics switch is a real <input type="checkbox" switch>: on iOS 18+ a direct tap gives the system haptic */
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 560 var(--fs-ui)/1.2 var(--font-ui); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: rgba(233, 239, 227, .22); position: relative; flex: none; cursor: pointer; margin: 0; }
.switch input::before { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(4, 16, 8, .4); transition: transform 240ms var(--spring-bounce); }
.switch input::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--yellow-400); opacity: 0; transition: opacity 200ms ease; z-index: -1; }
.switch input { isolation: isolate; }
.switch input:checked { background: var(--yellow-400); }
.switch input:checked::before { transform: translateX(18px); background: var(--green-900); }
.switch input:active::before { transform: scale(.92); }
.switch input:checked:active::before { transform: translateX(18px) scale(.92); }
.switch input:focus-visible { box-shadow: var(--ring-dark); border-radius: 14px; }

/* ---------- 17. Toast (floating layer) ------------------------------------ */
.toasts { position: fixed; z-index: 120; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(92vw, 420px); }
.toast {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: var(--r-pill);
  background: var(--green-950); color: #fff; box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(233, 239, 227, .16);
  font: 600 var(--fs-ui)/1.3 var(--font-ui);
  animation: toast-in 380ms var(--spring-bounce) both;
}
.toast .icon { color: var(--yellow-400); }
.toast[data-kind="warning"] .icon { color: #FFB59B; }
.toast[data-leaving] { animation: toast-out 180ms var(--ease-out) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- 17a. Share card (floating layer, share.js) --------------------- */
/* A small paper slip against its button: WhatsApp first and inked, the others in the margin colour,
   Copy link set apart under a rule. Native popover (top layer) or a fixed fallback. */
.share-host { display: contents; }
.share {
  position: fixed; inset: auto; margin: 0; z-index: 110;
  width: min(288px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain;
  padding: 14px 8px 8px; border: 0; border-radius: var(--r-card);
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line);
  font-family: var(--font-ui);
}
.share[hidden] { display: none; }
.share:popover-open { display: block; }
.share::backdrop { background: transparent; }
.share__title { padding: 0 12px; font: 600 1.0625rem/1.2 var(--font-head); letter-spacing: -.01em; }
.share__what { padding: 2px 12px 10px; font: 480 var(--fs-small)/1.4 var(--font-ui); color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.share__list { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.share__list li:last-child { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.share__row {
  position: relative; display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 12px;
  width: 100%; min-height: 48px; padding: 0 12px 0 8px; border-radius: var(--r-control);
  font: 600 var(--fs-ui)/1 var(--font-ui); color: var(--ink); text-align: left; background: transparent;
  transition: transform var(--t-press) ease-out;
}
.share__row::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--green-50); opacity: 0; transition: opacity var(--t-press) ease; }
.share__row > * { position: relative; }
.share__row:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--green-700); }
.share__row:focus-visible::before { opacity: 1; }
.share__row:active { transform: scale(.98); }
.share__row:active::before { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .share__row:hover::before { opacity: 1; } }
.share__mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--green-50); color: var(--green-700); box-shadow: inset 0 0 0 1px var(--line);
  font: 760 .9375rem/1 var(--font-ui); letter-spacing: -.02em;
}
.share__mark .icon { width: 18px; height: 18px; }
.share__mark[data-key="wa"] { background: var(--green-700); color: #fff; box-shadow: none; }
.share__mark[data-key="in"] { font-size: .875rem; }

/* ---------- 18. Quick Look (floating layer) ------------------------------- */
.ql { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; padding: 0; visibility: hidden; }
.ql[data-open] { visibility: visible; }
.ql__scrim { position: absolute; inset: 0; background: rgba(4, 16, 8, .56); opacity: 0; transition: opacity 260ms ease; }
.ql[data-open] .ql__scrim { opacity: 1; }
.ql__sheet {
  position: relative; width: 100%; max-width: 560px;
  max-height: 88vh; max-height: 88dvh;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--shadow-2);
  transform: translateY(100%); opacity: 0;
  overflow: hidden; touch-action: pan-y;
}
.ql__grab { flex: none; display: grid; place-items: center; height: 26px; cursor: grab; touch-action: none; }
.ql__grab::before { content: ""; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); }
/* Rows are max-content: with plain auto rows a clipped child (the photo) may be squeezed to nothing when the sheet has to scroll */
.ql__scroll { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--s-5) calc(var(--s-5) + env(safe-area-inset-bottom)); display: grid; grid-auto-rows: max-content; gap: var(--s-5); }
.ql__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-print); overflow: hidden; background: var(--green-100); }
.ql__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ql__close { position: absolute; right: 12px; top: 12px; z-index: 2; }
.ql__finding { font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.ql__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: start; }
.ql__head .rstamp { width: 96px; height: 96px; margin: 2px 4px 0 0; }
.ql__coords { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--ink-3); }
.ql__coords b { font-weight: 500; color: var(--green-700); }
.ql__actions { display: grid; gap: var(--s-3); }
@media (min-width: 720px) {
  .ql { place-items: center; padding: var(--s-6); }
  .ql__sheet { border-radius: var(--r-sheet); transform: scale(.94); transform-origin: var(--ql-origin, 50% 50%); }
  .ql__grab { display: none; }
  .ql__scroll { padding-top: var(--s-5); }
  .ql__actions { grid-template-columns: 1fr auto; }
}

/* ---------- 19. Footer ---------------------------------------------------- */
.site-footer { position: relative; isolation: isolate; overflow: clip; --atlas-o: .16; --atlas-x: 112%; --atlas-y: 30%; --atlas-size: 210%; background: var(--green-950); color: var(--green-200); padding-block: var(--s-8) calc(var(--s-6) + env(safe-area-inset-bottom)); font-family: var(--font-ui); font-size: var(--fs-ui); line-height: 1.55; }
.site-footer__grid { display: grid; gap: var(--s-7); }
.site-footer__brand img { height: 56px; width: auto; }
.site-footer h2 { font: 640 var(--fs-small)/1.2 var(--font-ui); color: var(--green-300); margin-bottom: var(--s-3); }
.site-footer a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: #fff; transition: opacity var(--t-press) ease; text-decoration: underline; text-decoration-color: rgba(233, 239, 227, .3); text-underline-offset: 4px; }
.site-footer a:not(.btn):active { opacity: .6; }
.site-footer a:focus-visible { box-shadow: var(--ring-dark); }
@media (hover: hover) and (pointer: fine) { .site-footer a:not(.btn):hover { text-decoration-color: var(--yellow-400); } }
.site-footer__legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); justify-content: space-between; font-size: var(--fs-small); color: var(--green-300); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.1fr 1fr; } }

/* ---------- 19a. Page head (tracker, facility) ----------------------------- */
.page-head { padding-top: calc(var(--header-h) + var(--s-7)); padding-bottom: var(--s-7); color: #fff; overflow: clip; }
.page-head__grid { display: grid; gap: var(--s-7); align-items: end; }
.page-head__copy { display: grid; gap: var(--s-5); justify-items: start; }
@media (min-width: 1024px) { .page-head { padding-top: calc(var(--header-h) + var(--s-8)); padding-bottom: var(--s-8); } .page-head__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); } }
/* Countdown: the figure is ZHDI's own date, so it takes the italic */
.count { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-5); align-items: end; padding-top: var(--s-5); color: #fff; border-top: 2px solid var(--yellow-400); }
.count__n { font: italic 400 clamp(5rem, 3.4rem + 6vw, 7.5rem)/.78 var(--font-head); letter-spacing: -.04em; color: var(--yellow-400); font-variant-numeric: lining-nums; }
.count__body { display: grid; gap: 6px; padding-bottom: 4px; }
.count__label { font: 500 1.375rem/1.15 var(--font-head); letter-spacing: -.01em; text-wrap: balance; }
.count__date { color: var(--yellow-400); font-size: .75rem; }
.count__why { font: 450 var(--fs-ui)/1.45 var(--font-ui); color: var(--green-200); max-width: 26rem; }

/* ---------- 19b. Tracker --------------------------------------------------- */
.trk { display: grid; gap: var(--s-7); align-items: start; }
.trk__map { min-width: 0; }
.trk__spot { margin-top: var(--s-6); padding-left: 20px; }
.trk__hint { font: 450 var(--fs-ui)/1.5 var(--font-ui); color: var(--ink-3); margin-left: -20px; max-width: 26rem; }
.trk__spot .spot { background: var(--green-900); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow-2); }
.trk__side { min-width: 0; }
.trk__filters { display: grid; gap: var(--s-5); }
.trk__set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.trk__set legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn__n { font-weight: 500; opacity: .7; }
.chip-btn:focus-visible { box-shadow: var(--ring); border-radius: var(--r-pill); }
.search { position: relative; }
.search .icon { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--ink-3); pointer-events: none; }
.search .field__input { padding-left: 44px; }
.search .field__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.trk__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px var(--s-4); min-height: 44px; margin: var(--s-6) 0 var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line-strong); color: var(--ink-2); font-weight: 560; }
.trk__grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.trk__grid > .empty { grid-column: 1 / -1; }
.fcard[data-active] { box-shadow: var(--shadow-1), 0 0 0 2px var(--green-700); }
@media (min-width: 1024px) {
  .trk { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); }
  .trk__map { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- 19c. Facility page --------------------------------------------- */
.fac-hero__grid { display: grid; gap: var(--s-7); align-items: center; }
.fac-hero__copy { display: grid; gap: var(--s-4); justify-items: start; min-width: 0; }
.fac-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fac-hero__name { font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4rem); overflow-wrap: anywhere; }
.fac-hero__sum { color: var(--green-100); max-width: 36rem; }
.back { margin-bottom: calc(var(--s-2) * -1); }
.back .icon { transition: transform var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .back:hover .icon { transform: translateX(-3px); } }
@media (min-width: 1024px) { .fac-hero__grid { grid-template-columns: minmax(0, 6.4fr) minmax(0, 5.6fr); gap: var(--s-8); } }
@media (min-width: 640px) { .plate--4 { grid-template-columns: repeat(2, 1fr); } .plate--4 .plate__cell:nth-child(odd) { border-left: 0; padding-left: 0; } .plate--4 .plate__cell:nth-child(n + 3) { border-top: 1px solid var(--line-dark); } }
@media (min-width: 1024px) { .plate--4 { grid-template-columns: repeat(4, 1fr); } .plate--4 .plate__cell:nth-child(odd) { border-left: 1px solid var(--line-dark); padding-left: var(--s-5); } .plate--4 .plate__cell:first-child { border-left: 0; padding-left: 0; } .plate--4 .plate__cell:nth-child(n + 3) { border-top: 0; } }

/* The fan: the cover print with two more from the same visit behind it. They spread on approach. */
.fan { position: relative; width: min(100%, 520px); aspect-ratio: 4 / 3.25; justify-self: center; margin-block: var(--s-4); }
.fan__print { position: absolute; inset: 0 6% 8% 6%; display: block; text-align: left; cursor: zoom-in; border-radius: 3px; transform: translate(var(--fx, 0), var(--fy, 0)) rotate(var(--fr, 0deg)); transition: transform 520ms var(--ease-out); }
.fan__print .print { display: block; height: 100%; --tilt: 0deg; }
.fan__print .print__photo { aspect-ratio: auto; height: calc(100% - 28px); }
.fan__print:nth-child(1) { --fr: -7deg; --fx: -5%; --fy: 2%; }
.fan__print:nth-child(2) { --fr: 5.5deg; --fx: 5%; --fy: 1%; }
.fan__print:last-child { --fr: -1.5deg; --fx: 0%; --fy: 0%; }
.fan__print:focus-visible { box-shadow: var(--ring-dark); z-index: 3; }
.fan__print:active { transform: translate(var(--fx, 0), var(--fy, 0)) rotate(var(--fr, 0deg)) scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .fan:hover .fan__print:nth-child(1) { --fr: -11deg; --fx: -9%; }
  .fan:hover .fan__print:nth-child(2) { --fr: 9deg; --fx: 9%; }
  .fan:hover .fan__print:last-child { --fr: 0deg; --fx: 0%; --fy: -1.5%; }
}
.inline-link { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow-400); border-radius: 3px; transition: opacity var(--t-press) ease; }
.inline-link:active { opacity: .7; }
@media (hover: hover) and (pointer: fine) { .inline-link:hover { color: var(--yellow-400); } }
.fan__count { position: absolute; right: 8%; bottom: 0; z-index: 4; }

.fac-cols { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 1024px) { .fac-cols { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); } }
.fac-block + .fac-block { margin-top: var(--s-7); }
.fac-block .h3 { margin-bottom: var(--s-3); }
.finding { font: 400 clamp(1.25rem, 1.1rem + .7vw, 1.5rem)/1.45 var(--font-head); letter-spacing: -.005em; max-width: 40rem; text-wrap: pretty; }
.scope { display: grid; border-top: 1px solid var(--line-strong); counter-reset: bld; }
.scope li { counter-increment: bld; display: grid; grid-template-columns: 2.4rem 1fr; align-items: baseline; padding-block: 12px; border-bottom: 1px solid var(--line-strong); font: 560 1.0625rem/1.35 var(--font-ui); }
.scope li::before { content: counter(bld); font: 400 1.5rem/1 var(--font-head); color: var(--green-700); font-variant-numeric: lining-nums; }
.access { display: flex; gap: 12px; align-items: flex-start; font-size: 1.0625rem; line-height: 1.55; max-width: 36rem; }
.access .icon { margin-top: 4px; width: 22px; height: 22px; color: var(--green-700); }
.access--water { font: italic 500 1.3125rem/1.4 var(--font-head); color: var(--green-700); }
#fac-baseline-data .sitepos { gap: 20px; flex-wrap: wrap; white-space: normal; }
.posplate { margin-top: var(--s-5); display: grid; gap: 4px; padding-top: var(--s-4); border-top: 1px solid var(--line-strong); }
.posplate__coords { font-size: .8125rem; color: var(--ink); display: flex; flex-wrap: wrap; gap: 4px 18px; }
.posplate__src { font: 450 var(--fs-small)/1.45 var(--font-ui); color: var(--ink-3); }

/* Gallery: prints on the table, each a button that opens the lightbox */
.prints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
.prints__btn { display: block; text-align: left; border-radius: 3px; cursor: zoom-in; transition: transform var(--t-press) ease-out; }
.prints__btn .print { display: block; --ar: 4 / 3; }
.prints__btn:nth-child(5n + 1) .print { --tilt: -1.2deg; }
.prints__btn:nth-child(5n + 2) .print { --tilt: .9deg; }
.prints__btn:nth-child(5n + 3) .print { --tilt: -.5deg; }
.prints__btn:nth-child(5n + 4) .print { --tilt: 1.3deg; }
.prints__btn:nth-child(5n + 5) .print { --tilt: -.9deg; }
.prints__btn:focus-visible { box-shadow: var(--ring); }
.prints__cap { display: block; margin-top: 10px; font: 500 .8125rem/1.45 var(--font-ui); color: var(--ink-2); overflow-wrap: anywhere; }
.prints__btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .prints__btn:hover .print { --tilt: 0deg; --lift: -4px; } .prints__btn:hover img { transform: scale(1.03); } }
@media (min-width: 640px) { .prints { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .prints { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); } }
.prints__more { margin-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }

/* Updates: newest first, dated down the margin like entries in a site diary */
.log { display: grid; }
.log__item { display: grid; gap: 6px var(--s-6); padding-block: var(--s-5); border-top: 1px solid var(--line-strong); }
.log__item:last-child { border-bottom: 1px solid var(--line-strong); }
.log__when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-2); font-size: .75rem; }
.log__title { font: 600 1.375rem/1.2 var(--font-head); letter-spacing: -.01em; }
.log__body { margin-top: 6px; max-width: 40rem; color: var(--ink-2); }
.log__imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--s-3); margin-top: var(--s-4); max-width: 40rem; }
@media (min-width: 760px) { .log__item { grid-template-columns: 13rem minmax(0, 1fr); } }
.chip[data-type="ISSUE"] { background: var(--rust-tint); color: var(--rust); }
.chip[data-type="VERIFICATION"] { background: var(--green-700); color: #fff; }

/* Report a concern */
.concern { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 1024px) { .concern { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); } }
.form { display: grid; gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-sheet); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-dark); }
.form :focus-visible { box-shadow: var(--ring); }
.form .field__input:focus-visible { box-shadow: inset 0 0 0 2px var(--green-700), 0 0 0 4px rgba(36, 94, 39, .16); }
.form__row { display: grid; gap: var(--s-4); }
.form__note { font: 450 var(--fs-small)/1.5 var(--font-ui); color: var(--ink-3); }
.form__status { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-control); font: 560 var(--fs-ui)/1.45 var(--font-ui); }
.form__status[data-kind="error"] { background: var(--rust-tint); color: var(--rust); }
.form__status[data-kind="success"] { background: var(--green-100); color: var(--green-700); }
.form__status .icon { margin-top: 2px; }
.form__done { display: grid; gap: var(--s-4); justify-items: start; }
.form__done .rstamp { width: 128px; height: 128px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[data-busy] { pointer-events: none; opacity: .7; }
@media (min-width: 640px) { .form { padding: var(--s-6); } .form__row { grid-template-columns: 1fr 1fr; } }

/* Previous and next facility */
.pager { display: grid; gap: var(--s-4); }
.pager__link { position: relative; display: grid; gap: 4px; padding: var(--s-5); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-1); transition: transform var(--t-hover) var(--ease-out); }
.pager__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-2); opacity: 0; transition: opacity var(--t-hover) ease; pointer-events: none; }
.pager__dir { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--fs-small)/1.2 var(--font-ui); color: var(--ink-3); }
.pager__name { font: 600 1.375rem/1.15 var(--font-head); letter-spacing: -.015em; }
.pager__link[data-dir="next"] { text-align: right; justify-items: end; }
.pager__link:active { transform: scale(.985); }
.pager__link:focus-visible { box-shadow: var(--shadow-1), var(--ring); border-radius: var(--r-card); }
@media (hover: hover) and (pointer: fine) { .pager__link:hover { transform: translateY(-2px); } .pager__link:hover::after { opacity: 1; } .pager__link:hover:active { transform: scale(.985); } }
@media (min-width: 760px) { .pager { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }

/* ---------- 19d. Lightbox (floating layer): one flex flow, sized in dvh ---- */
.lb { position: fixed; inset: 0 0 auto 0; z-index: 110; height: 100vh; height: 100dvh; display: flex; flex-direction: column; color: #fff; visibility: hidden; overscroll-behavior: contain; touch-action: none; }
.lb[data-open] { visibility: visible; }
.lb__scrim { position: absolute; inset: 0; background: var(--green-950); opacity: 0; transition: opacity 240ms ease; }
.lb[data-open] .lb__scrim { opacity: 1; }
.lb__bar { position: relative; z-index: 2; flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 10px var(--gutter); padding-top: calc(10px + env(safe-area-inset-top)); min-height: 64px; }
.lb__bar--foot { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.lb__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; color: var(--green-100); font-size: .75rem; min-width: 0; }
.lb__meta b { color: var(--yellow-400); font-weight: 500; }
.lb__stage { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: zoom-in; }
.lb__stage[data-zoomed] { cursor: grab; }
.lb__frame { width: 100%; height: 100%; display: grid; place-items: center; padding: 0 var(--gutter); transform-origin: 0 0; will-change: transform; }
.lb__img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity 200ms ease; }
.lb__img[data-ready] { opacity: 1; }
.lb__hint { font: 450 var(--fs-small)/1.3 var(--font-ui); color: var(--green-300); text-align: center; flex: 1; }
.lb .icon-btn { background: rgba(233, 239, 227, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(233, 239, 227, .22); }
.lb .icon-btn:focus-visible { box-shadow: var(--ring-dark); }
@media (max-width: 639px) { .lb__hint { display: none; } .lb__bar--foot { justify-content: center; } }

/* ---------- 19e. Reading pages: about, stories, story, donate, contact, 404 - */
.cols-2 { display: grid; gap: var(--s-7); align-items: start; }
.cols-2 > * { min-width: 0; }
@media (min-width: 1024px) { .cols-2 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); } .cols-2--rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.stack { display: grid; gap: var(--s-5); align-content: start; justify-items: start; }
/* A short heading column keeps the long column beside it company instead of leaving a blank */
@media (min-width: 1024px) { .cols-2 > .stack { position: sticky; top: calc(var(--header-h) + 24px); } }
.prose p { font-size: 1.0625rem; line-height: 1.7; }
.prose .finding { margin-bottom: var(--s-2); }
.person { display: grid; gap: 4px; padding-top: var(--s-4); border-top: 2px solid var(--ink); max-width: 24rem; }
.person__name { font: 500 1.625rem/1.15 var(--font-head); letter-spacing: -.015em; }
.person__role { font: 560 var(--fs-ui)/1.4 var(--font-ui); color: var(--ink-3); }
.rows { display: grid; border-top: 1px solid var(--line-strong); }
.rows__row { display: grid; gap: 2px; padding-block: 14px; border-bottom: 1px solid var(--line-strong); }
.rows__key { font: 560 var(--fs-small)/1.3 var(--font-ui); color: var(--ink-3); }
.rows__val { font: 600 1.0625rem/1.4 var(--font-ui); overflow-wrap: anywhere; }
.rows__val a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green-700); text-decoration: underline; text-decoration-color: var(--line-strong); transition: opacity var(--t-press) ease; }
.rows__val a:active { opacity: .6; }
@media (hover: hover) and (pointer: fine) { .rows__val a:hover { text-decoration-color: currentColor; } }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.story__excerpt { color: var(--ink-2); font-size: 1rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story__title { overflow-wrap: anywhere; text-wrap: balance; }
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.figs > div { padding-top: var(--s-4); border-top: 2px solid var(--ink); min-width: 0; }
.figs__num { font: 400 clamp(3rem, 1.9rem + 4.4vw, 5.5rem)/.86 var(--font-head); letter-spacing: -.04em; color: var(--green-700); font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.figs__label { font: 600 var(--fs-ui)/1.35 var(--font-ui); color: var(--ink-2); margin-top: 10px; }
@media (min-width: 760px) { .figs { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.closing { font: italic 400 clamp(1.75rem, 1.2rem + 2.4vw, 3rem)/1.1 var(--font-head); letter-spacing: -.025em; color: var(--green-700); text-wrap: balance; max-width: 22ch; }
.form--light { box-shadow: var(--shadow-1); background: var(--surface); }
.hero--short { min-height: 0; }
.lost { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding-bottom: var(--s-9); }

/* ---------- 19f. Staff panel: clarity first, in the same system ------------ */
.adm-head { padding-top: calc(var(--header-h) + var(--s-6)); padding-bottom: var(--s-6); }
.adm-head__in { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-4); }
.adm { padding-top: var(--s-6); }
.adm-tabs { margin-bottom: var(--s-6); padding-bottom: var(--s-5); border-bottom: 1px solid var(--line-strong); }
.chip-btn[aria-selected="true"] { background: var(--green-700); color: #fff; box-shadow: none; }
#adm-view:focus-visible { box-shadow: none; }
/* Every grid here has a minmax(0, 1fr) column: a long file path or an unbroken word in staff or
   public input must never widen the page. */
.adm-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.adm-fields, .adm-gallery, .adm-list { grid-template-columns: minmax(0, 1fr); }
.adm .field__input { min-width: 0; max-width: 100%; }
.adm-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-1); min-width: 0; }
.adm-card--flat { padding: 0; box-shadow: none; background: none; width: 100%; }
.adm-signin { max-width: 28rem; }
.adm-fields { display: grid; gap: var(--s-4); min-width: 0; }
.adm-fields .field { min-width: 0; }
@media (min-width: 760px) { .adm-card { padding: var(--s-6); } .adm-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .field--wide { grid-column: 1 / -1; } }
select.field__input { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; text-overflow: ellipsis; }
.checks { display: flex; flex-wrap: wrap; gap: 6px var(--s-5); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 500 var(--fs-ui)/1.3 var(--font-ui); cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; }
.adm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.adm-actions select.field__input { width: 14rem; max-width: 100%; flex: 1 1 14rem; }
.adm .field { grid-template-columns: minmax(0, 1fr); }
.adm-upload { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.adm-crumb { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
button.text-link { background: none; }
.adm-list { display: grid; border-top: 1px solid var(--line-strong); }
.adm-list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-4); padding-block: 14px; border-bottom: 1px solid var(--line-strong); min-width: 0; }
.adm-list > li > div:first-child, .adm-list details { flex: 1 1 16rem; min-width: 0; }
.adm-list b { display: block; font: 600 1.0625rem/1.35 var(--font-ui); overflow-wrap: anywhere; }
.adm-list .form__note { display: block; overflow-wrap: anywhere; }
.adm-list--plain > li b { font-weight: 600; }
.adm-list summary { cursor: pointer; display: grid; gap: 2px; min-height: 44px; align-content: center; list-style: none; border-radius: 6px; }
.adm-list summary::-webkit-details-marker { display: none; }
.adm-list summary:focus-visible { box-shadow: var(--ring); }
.adm-msg__who { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.adm-list li[data-unread="false"] .adm-msg__who b { font-weight: 500; }
.adm-msg__text { margin-block: var(--s-3); max-width: 46rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-msg__meta { display: grid; gap: 4px; margin-bottom: var(--s-4); font: 500 var(--fs-ui)/1.4 var(--font-ui); }
.adm-msg__meta div { display: flex; flex-wrap: wrap; gap: 8px; } .adm-msg__meta dt { color: var(--ink-3); min-width: 4.5rem; } .adm-msg__meta dd { overflow-wrap: anywhere; min-width: 0; }
.adm .inline-link, .notice .inline-link, .form .inline-link { text-decoration-color: var(--green-600); }
@media (hover: hover) and (pointer: fine) { .adm .inline-link:hover, .notice .inline-link:hover, .form .inline-link:hover { color: var(--green-700); } }
.form .inline-link { display: inline-block; padding-block: 12px; margin-block: -12px; }   /* a 44px target inside a small note */
.site-footer__links { display: inline-flex; flex-wrap: wrap; gap: 0 var(--s-5); }

/* ---------- 19g. Privacy notice: quiet and readable ------------------------ */
.notice-head { padding-top: calc(var(--header-h) + var(--s-6)); padding-bottom: var(--s-6); }
.notice { padding-top: var(--s-7); }
.notice__list { max-width: 54rem; }
.notice__row { gap: 6px var(--s-6); padding-block: var(--s-5); }
.notice__key { font: 600 1.3125rem/1.2 var(--font-head); letter-spacing: -.01em; }
.notice__val { display: grid; gap: .7em; font-size: 1.0625rem; line-height: 1.7; max-width: 62ch; }
.notice__date { margin-top: var(--s-5); color: var(--ink-3); font-size: .75rem; }
@media (min-width: 760px) { .notice__row { grid-template-columns: 14rem minmax(0, 1fr); } }
.adm-gallery { display: grid; gap: var(--s-3); }
.adm-gallery__item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; }
.adm-gallery__item img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; background: var(--green-100); }
.adm-path { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-stage { background: var(--yellow-200); }
.btn--danger { --btn-bg: var(--rust); }
.adm-dialog { width: min(92vw, 34rem); max-height: 88vh; max-height: 88dvh; overflow-y: auto; padding: var(--s-5); border: 0; border-radius: var(--r-sheet); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-2); }
.adm-dialog[open] { display: grid; gap: var(--s-4); }
.adm-dialog::backdrop { background: rgba(4, 16, 8, .56); }
@media (max-width: 519px) { .adm-gallery__item { grid-template-columns: 72px minmax(0, 1fr); } .adm-gallery__item > .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- 19h. With thanks: acknowledgement plates and the roll of honour --
   Each person is a plate: an engraved double frame, their portrait as a print (or a seal with
   their initials), the name in Zodiak, the role in Switzer and what they gave in ZHDI's italic. */
.hon-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); align-items: start; }
@media (min-width: 900px) { .hon-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hon {
  position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: "pic head" "pic text";
  grid-template-rows: auto 1fr; gap: 0 var(--s-5); align-items: start;
  padding: var(--s-5); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-1);
}
.hon > .print, .hon > .hon__seal { grid-area: pic; }
.hon__head { grid-area: head; display: grid; gap: 6px; min-width: 0; }
.hon__text { grid-area: text; display: grid; gap: 6px; min-width: 0; margin-top: 6px; }
.hon::before {        /* the engraved inner line of the plate */
  content: ""; position: absolute; inset: 6px; border-radius: calc(var(--r-card) - 5px); pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--line);
}
.hon__photo { --tilt: -2deg; --ar: 4 / 5; width: 88px; margin-top: 4px; }
.hon__photo .print__photo { aspect-ratio: 4 / 5; }
.hon__seal {
  position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; margin-top: 2px;
  background: var(--green-900); color: var(--yellow-400);
  box-shadow: inset 0 0 0 3px var(--green-900), inset 0 0 0 4.5px rgba(249, 235, 80, .55), var(--shadow-1);
}
.hon__seal .icon { width: 30px; height: 30px; }
.hon__mono { font: italic 400 2.125rem/1 var(--font-head); letter-spacing: -.02em; transform: translateY(1px); }
.hon__name { font: 600 1.375rem/1.15 var(--font-head); letter-spacing: -.015em; overflow-wrap: anywhere; text-wrap: balance; }
.hon__role { font: 560 var(--fs-ui)/1.4 var(--font-ui); color: var(--ink-3); overflow-wrap: anywhere; }
.hon__gift { font: italic 400 1.1875rem/1.4 var(--font-head); color: var(--green-700); overflow-wrap: anywhere; margin-top: 4px; }
.hon__bio { font-size: 1rem; line-height: 1.65; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; margin-top: 4px; }
.hon__bio[data-clamped="true"] { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hon__more { justify-self: start; min-height: 44px; }
/* Phones: the portrait sits beside the name; what they gave and their story take the full width */
@media (max-width: 559px) {
  .hon { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "pic head" "text text"; grid-template-rows: auto auto; column-gap: var(--s-4); align-items: start; padding: var(--s-4) var(--s-4) var(--s-5); }
  .hon__photo { width: 64px; } .hon__seal { width: 64px; height: 64px; } .hon__mono { font-size: 1.625rem; }
  .hon__text { margin-top: var(--s-3); }
  .hon__name { font-size: 1.25rem; }
  .hon__gift { font-size: 1.0625rem; }
}
/* The roll: a count in the page head, then one group per facility */
.roll-count { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-5); align-items: end; padding-top: var(--s-5); border-top: 2px solid var(--yellow-400); color: #fff; }
.roll-count__n { font: italic 400 clamp(4.5rem, 3rem + 5vw, 6.5rem)/.8 var(--font-head); letter-spacing: -.04em; color: var(--yellow-400); }
.roll-count__label { font: 500 1.25rem/1.2 var(--font-head); letter-spacing: -.01em; text-wrap: balance; padding-bottom: 4px; }
.roll { padding-top: var(--s-8); }
.roll-group + .roll-group { margin-top: var(--s-8); }
.roll-group { border-top: 2px solid var(--ink); padding-top: var(--s-4); }
.roll-group__head { display: grid; gap: 6px; align-content: start; margin-bottom: var(--s-5); }
.roll-group .hon-list { grid-template-columns: minmax(0, 1fr); }
/* Wide screens read like a ledger: the facility on the left, the people it thanks on the right */
@media (min-width: 1024px) {
  .roll-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-8); }
  .roll-group__head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
}
/* On a facility page a single plate takes a comfortable width instead of half a row */
.hon-list > .hon:only-child { grid-column: 1 / -1; max-width: 48rem; }
.roll-group__name { font: 500 clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem)/1.1 var(--font-head); letter-spacing: -.02em; overflow-wrap: anywhere; }
.roll-group__name a { border-radius: 4px; text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1.5px; text-underline-offset: .14em; transition: opacity var(--t-press) ease; }
.roll-group__name a:active { opacity: .7; }
@media (hover: hover) and (pointer: fine) { .roll-group__name a:hover { text-decoration-color: var(--green-700); } }
.roll-group__where { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--ink-3); }
/* Empty: a dignified, plainly worded plate rather than a blank page */
.hon-empty { position: relative; display: grid; gap: var(--s-5); align-items: center; max-width: 46rem; padding: var(--s-6); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-1); }
.hon-empty::before { content: ""; position: absolute; inset: 6px; border-radius: calc(var(--r-card) - 5px); pointer-events: none; box-shadow: inset 0 0 0 1px var(--line); }
.hon-empty__body { display: grid; gap: var(--s-3); justify-items: start; max-width: 34rem; }
.hon-empty__title { font: italic 400 clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem)/1.15 var(--font-head); letter-spacing: -.02em; color: var(--green-700); }
.hon__seal--empty { background: var(--green-50); color: var(--green-700); box-shadow: inset 0 0 0 3px var(--green-50), inset 0 0 0 4.5px var(--green-600); }
@media (min-width: 640px) { .hon-empty { grid-template-columns: 88px minmax(0, 1fr); padding: var(--s-7); } }

/* Staff panel: the supporters editor */
.sup-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.sup-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--line-strong); }
.sup-row:first-child { border-top: 0; padding-top: 0; }
.sup-row__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.sup-row__title { font: 600 1.125rem/1.3 var(--font-head); overflow-wrap: anywhere; min-width: 0; }
.sup-row__photo { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.sup-row__photo img, .sup-row__photo .hon__seal { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.sup-row__photo .hon__seal { border-radius: 50%; } .sup-row__photo .hon__mono { font-size: 1.5rem; }
.sup-consent { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--r-control); background: var(--yellow-200); font: 600 var(--fs-ui)/1.4 var(--font-ui); cursor: pointer; }
.sup-consent input { width: 22px; height: 22px; flex: none; margin-top: 0; accent-color: var(--green-700); }
.sup-consent small { display: block; font-weight: 450; color: var(--ink-2); margin-top: 2px; }
.sup-row[data-consent="false"] .sup-consent { background: var(--rust-tint); }
.sup-flag { font: 650 var(--fs-stamp)/1 var(--font-ui); padding: 6px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.sup-flag[data-on="true"] { background: var(--green-100); color: var(--green-700); }
.sup-flag[data-on="false"] { background: var(--rust-tint); color: var(--rust); }

/* ---------- 20. Loading and empty states ---------------------------------- */
.skel { position: relative; overflow: hidden; background: var(--green-100); border-radius: var(--r-print); color: transparent !important; }
.on-dark .skel { background: rgba(233, 239, 227, .12); }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .5) 50%, transparent 80%); transform: translateX(-100%); animation: skel 1.4s ease-in-out infinite; }
.on-dark .skel::after { background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .12) 50%, transparent 80%); }
@keyframes skel { to { transform: translateX(100%); } }
.empty { padding: var(--s-6); border-radius: var(--r-card); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-family: var(--font-ui); color: var(--ink-2); }
.on-dark .empty { box-shadow: inset 0 0 0 1.5px var(--line-dark); color: var(--green-200); }

/* ---------- 21. Entrance choreography (hero, once per load) ---------------- */
@keyframes rise { from { opacity: 0; transform: translateY(var(--rise, 14px)); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { opacity: 0; transform: scale(.965); } to { opacity: 1; transform: none; } }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-14px) scale(.4); } to { opacity: 1; transform: none; } }
html.js [data-enter] { animation: rise var(--t-enter) var(--ease-out) both; animation-delay: var(--d, 0ms); }
html.js [data-enter="fade"] { animation-name: fade; }
html.js [data-enter="settle"] { animation-name: settle; animation-duration: 820ms; }
.bmap__pin[data-drop] { animation: pin-drop 520ms var(--spring-bounce) both; animation-delay: var(--d, 0ms); transform-box: fill-box; transform-origin: center bottom; }

/* ---------- 22. Reduced motion and other preferences ---------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  html.js [data-enter], .bmap__pin[data-drop], .bmap__lga[data-lay], .bmap__label[data-lay] { animation: fade 200ms ease both; }
  .rstamp[data-land] { animation: fade 200ms ease both; }
  .fcard, .story, .btn, .spot, .fcard__img, .story__media img, .print__photo img { transition-property: opacity; transform: none; }
  .print, .fan__print, .survey__spot, .prints__btn, .pager__link, .lb__scrim { transition: none; }
  .ql__sheet { transition: opacity 200ms ease; }
  .skel::after { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header::before, .spot, .stamp { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--green-900); }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(15, 42, 22, .4); --line-strong: rgba(15, 42, 22, .6); --ink-3: var(--ink-2); }
  .spot { background: var(--green-950); }
}
@media print {
  .site-header, .menu, .toasts, .ql, .bmap__tools { display: none !important; }
}
