/* Rising Light UK: site stylesheet. Split from the single-page index.html on 22 Oct 2026;
   the blocks keep their original order, so the cascade is unchanged. */
/* ── block 1: main stylesheet (was <head>) ── */
*{margin:0;padding:0;box-sizing:border-box}
:root{
  /* 77 Media "Cinematic Editorial Noir" design-system palette (exact swatches).
     Paper/ink + warm neutral greys; surfaces step paper -> ink-soft -> surface. */
  --bg:#FFFFFF;--card:#ECECE9;--text:#15140F;--text-dim:#3A382F;--text2:#6B685E;--text3:#706C5E; /* text3 darkened #837F70→#706C5E: 4.6:1 AA on paper */
  --border:rgba(21,20,15,0.14);--accent:#15140F;--accent-hover:#2E2B25;--font:'Inter',system-ui,sans-serif;
  --cinzel:'Cinzel',serif;
  --mono:'JetBrains Mono',monospace;
  /* The accent for moments of state/life (chapter eyebrows, active chips, CTAs, goal fill).
     Owner call 12 Oct 2026: the green theme is REMOVED sitewide, so the accent is the ink
     itself (pure monochrome). Was Alpine green #2C7343 (before that Glaslyn petrol). */
  --accent-2:#15140F; /* = --accent; 18.4:1 on #fff, 15.6:1 on the band */
  /* Edge-light: invisible in light mode; a hairline of light catching the top
     edge of raised surfaces in dark mode (noir elevation, not black shadows). */
  --edge-light:transparent;
  /* Two-tier vertical rhythm: major = between chapters, minor = within one. */
  --gap-major:96px;--gap-minor:28px;
  --band:#ECECE9; /* full-bleed chapter-band surface */
  --hover-bg:#E6E5E1;--hover-bg2:#E6E5E1;--upload-bg:#ECECE9;
  --glow-color:rgba(21,20,15,0.05);
  --dot-color:rgba(21,20,15,0.15);--hero-grid:rgba(21,20,15,0.055);
  --pdf-viewer-bg:#525659;
}
body.dark{
  /* Warm noir — same bone/ink anchors inverted, so dark mode is the same brand
     (warm near-black, not a cold pure #000). */
  /* Surfaces are NEUTRAL grey (same character as light mode's #ECECE9, at the
     same lightness as before) — ink stays warm bone. Owner call 23 Aug. */
  --bg:#000000;--card:#151514;--text:#FAF9F6;--text-dim:#D8D4C8;--text2:#A8A496;--text3:#837F70;
  --border:#282827;--accent:#FAF9F6;--accent-hover:#E6E5E1;
  --accent-2:#FAF9F6; /* = --accent: bone on black (owner call 12 Oct 2026, green removed) */
  --edge-light:rgba(250,249,246,0.055);
  --hover-bg:#1B1B1A;--hover-bg2:#232322;--upload-bg:#121211;
  --band:#151514;
  --pdf-viewer-bg:#121211;
  --glow-color:rgba(250,249,246,0.08);
  --dot-color:rgba(250,249,246,0.19);--hero-grid:rgba(250,249,246,0.06);
}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased;transition:background-color 0.4s cubic-bezier(0.22,1,0.36,1),color 0.4s cubic-bezier(0.22,1,0.36,1)}
/* Scrollbar — 77 Media palette (scroll #D2D1CC / hover #C3C2BC) */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:var(--bg)}
::-webkit-scrollbar-thumb{background:#D2D1CC;border-radius:999px;border:2px solid var(--bg)}
::-webkit-scrollbar-thumb:hover{background:#C3C2BC}
body.dark ::-webkit-scrollbar-thumb{background:#2B2B2A}
body.dark ::-webkit-scrollbar-thumb:hover{background:#383837}
/* color-scheme lives on the ROOT and is driven by the theme JS (dark by default since 19 Oct 2026) — declaring it
   on body.dark alone makes html/body schemes disagree, which stops Chromium
   propagating the body background to the canvas (page ground goes white). */
html{scrollbar-width:thin;scrollbar-color:#D2D1CC var(--bg);color-scheme:dark}
body.dark{scrollbar-color:#2B2B2A #000000}
/* the window scrollbar takes its colours from <html>, where --bg stays light: follow the theme (21 Oct 2026) */
html:has(> body.dark){scrollbar-color:#2B2B2A #000000}
.container{max-width:1200px;margin:0 auto;padding:60px 20px}

/* ── CHAPTER BANDS — every other chapter sits on a full-bleed surface band,
      so the page reads as distinct chapters instead of one long scroll.
      The band is a pseudo-element stretched to the viewport edges; hairline
      rules top+bottom give each boundary an editorial cut. Inside a band,
      card surfaces swap to the page tone so they still read as cards. ── */
.ch-band{position:relative;isolation:isolate;padding:56px 0 44px;margin-bottom:var(--gap-major)}
.ch-band::before{
  content:'';position:absolute;top:0;bottom:0;
  left:calc(50% - 50vw);right:calc(50% - 50vw);
  background:var(--band);z-index:-1;
  border-top:1px solid var(--border);border-bottom:1px solid var(--border);
}
.ch-band{--card:var(--bg);--upload-bg:var(--bg)}
.ch-band > .chapter:last-child{margin-bottom:0}

/* ── CHAPTER RAIL — slim fixed wayfinder on wide screens; numbered ticks,
      the current chapter reads solid. Shares the chapter-bar's scroll spy. ── */
.ch-rail{
  position:fixed;right:22px;top:50%;transform:translateY(-50%);z-index:60;
  display:none;flex-direction:column;gap:16px;align-items:flex-end;
}
@media(min-width:1320px){.ch-rail{display:flex}}
.ch-rail a{
  display:flex;align-items:center;justify-content:flex-end;gap:8px;text-decoration:none;
  font-family:var(--mono);font-size:9.5px;font-weight:600;letter-spacing:1.5px;
  color:var(--text3);transition:color .25s;
}
/* dot sits at the fixed right edge (::after so it renders last in the row) */
.ch-rail a::after{
  content:'';width:5px;height:5px;border-radius:50%;flex:0 0 auto;
  border:1px solid var(--text3);background:transparent;transition:all .25s;
}
/* label collapses to zero width when idle so the numbers stay aligned */
.ch-rail a span{
  max-width:0;overflow:hidden;white-space:nowrap;opacity:0;
  text-transform:uppercase;
  transition:max-width .3s cubic-bezier(0.22,1,0.36,1),opacity .25s;
}
.ch-rail a:hover span,.ch-rail a.active span{max-width:110px;opacity:1}
.ch-rail a:hover{color:var(--text)}
.ch-rail a.active{color:var(--text)}
.ch-rail a.active::after{background:var(--text);border-color:var(--text)}
.header{text-align:center;margin-bottom:var(--gap-major);position:relative;isolation:isolate}
/* Hero backdrop — a faint grid that fades out toward the edges */
.header::before{
  content:'';position:absolute;left:50%;top:-46px;transform:translateX(-50%);
  width:min(860px,116%);height:460px;z-index:-1;pointer-events:none;
  background-image:linear-gradient(var(--hero-grid) 1px,transparent 1px),
                   linear-gradient(90deg,var(--hero-grid) 1px,transparent 1px);
  background-size:46px 46px;
  -webkit-mask-image:radial-gradient(ellipse 56% 58% at 50% 42%,#000 0%,transparent 72%);
  mask-image:radial-gradient(ellipse 56% 58% at 50% 42%,#000 0%,transparent 72%);
}
.title{font-family:var(--cinzel);font-size:56px;font-weight:700;margin-bottom:12px;letter-spacing:2px;color:var(--text)}

/* Title logo — single image used for both modes via CSS filter.
   The source image is white-on-transparent. Default state (light mode)
   inverts it to black for visibility on the off-white background.
   Dark mode removes the filter so it stays white. */
.title-logo{
  display:block;
  margin:0 auto 26px;
  max-width:96px; /* crest, not headline — the live-type h1 below carries the hero */
  height:auto;
  filter:invert(1);
  transition:filter 0.25s;
  -webkit-user-drag:none;
  user-select:none;
}
body.dark .title-logo{filter:none}
@media(max-width:768px){.title-logo{max-width:84px}}

/* Hero kicker — mono dateline above the headline */
/* Hero headline — the tagline set as real display type (and the page's h1) */
.hero-h1{
  font-family:var(--cinzel);font-weight:700;
  font-size:clamp(40px,7vw,72px);line-height:1.08;letter-spacing:2px;
  color:var(--text);margin:0 auto;max-width:900px;
}
/* Mobile scroll cue — hairline + label, shown only on the phone opening frame */
.hero-cue{display:none}

/* Mission overview — STATEMENT LEDE + CAPTION (2026-08 rework).
   The first paragraph reads like a film's opening line: larger, lighter,
   centred, in a tight column. The second shrinks to a quiet muted caption
   under a short hairline. (The old magazine drop cap is retired — a float
   fights centred statement type.) */
.overview{
  max-width:660px;
  margin:38px auto 0;
  padding:0 16px;
  font-family:var(--font);
  text-align:center;
}
.overview p{margin-bottom:0}
.overview p:first-child{
  font-size:clamp(17px,2.1vw,22px);
  line-height:1.7;font-weight:300;letter-spacing:.1px;
  color:var(--text-dim);
}
.overview p:last-child{
  max-width:520px;margin:22px auto 0;
  font-size:13.5px;line-height:1.75;color:var(--text3);
}
/* Scroll ink reveal (21st.dev "Text Reveal", vanilla port): the grassroots
   line rests at its usual dim grey and inks to full text colour word by word
   as the reader scrolls off the hero. Colour-only transition — no transforms,
   no rAF loop, nothing the compositor has to re-blur. */
.overview p:last-child .rw{transition:color .45s ease}
.overview p:last-child .rw.lit{color:var(--text)}
/* short editorial rule between statement and caption */
.overview p:last-child::before{
  content:'';display:block;width:26px;height:1px;
  background:var(--text3);opacity:.5;margin:0 auto 16px;
}
@media(max-width:768px){
  .overview{margin-top:24px;padding:0 12px}
  .overview p:first-child{font-size:16.5px}
  .overview p:last-child{font-size:13px}
}
/* Impact ledger — three numbers on the paper, separated by hairlines.
   No boxes, no hover-lift: an editorial ruled strip, not SaaS stat cards. */
.stats-section{display:grid;grid-template-columns:repeat(3,1fr);max-width:860px;margin:0 auto}
.stat-card{padding:20px 14px 14px;text-align:center;border-left:1px solid var(--border)}
.stat-card:first-child{border-left:none}
.stat-ix{font-family:var(--mono);font-size:10px;letter-spacing:2.5px;color:var(--text3);margin-bottom:14px}
.stat-number{font-family:var(--cinzel);font-size:46px;font-weight:700;margin-bottom:8px;letter-spacing:1px}
.stat-label{font-size:12px;color:var(--text2);text-transform:uppercase;letter-spacing:2.5px;font-weight:600}
/* the date the three figures were last checked (owner call 13 Oct 2026) */
.stats-asof{margin:16px 0 0;text-align:center;font-family:var(--mono);font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:var(--text3)}

/* ── MILESTONE BADGES — expedition-patch roundels, hairline mono ── */
.badge-head{
  font-family:var(--mono);font-size:10px;font-weight:600;letter-spacing:4px;
  text-transform:uppercase;color:var(--text3);text-align:center;margin:44px 0 22px;
}
.badge-wall{
  list-style:none;margin:0 auto;padding:0 20px;max-width:860px;
  display:flex;flex-wrap:wrap;justify-content:center;gap:26px 30px;
}
.badge{width:108px;text-align:center}
.badge-medal{display:block;width:82px;height:82px;margin:0 auto 10px;color:var(--text)}
.badge-medal circle,.badge-medal path,.badge-medal line{stroke:currentColor;fill:none}
.badge-name{
  font-family:var(--mono);font-size:10px;font-weight:700;letter-spacing:1.8px;
  text-transform:uppercase;color:var(--text);line-height:1.5;
}
.badge-sub{
  font-family:var(--mono);font-size:8.5px;font-weight:500;letter-spacing:1.2px;
  text-transform:uppercase;color:var(--text3);margin-top:2px;line-height:1.5;
}
/* not-yet-earned: dashed ring, dimmed — the ring dash is set in the SVG */
.badge.pending .badge-medal{opacity:.48} /* dim the roundel only: dimming the whole badge put its name under AA (13 Oct 2026) */
/* Phones: no lone badge (Joe, 18 Oct 2026). Since one badge came off (Joe, 29 Oct 2026) there are three, so all
   three sit on ONE centred row at every width from 320px: 92px badges with 70px medals, 16px apart and no side
   padding (308px) up to 480px, stepping down at ≤374px (the globe's breakpoint) to 80px badges with 64px medals
   (272px, inside a 320px phone's 284px). Names and subs still break only between words. A fourth badge would
   wrap alone again: change this rule with the list (RL_BADGES in assets/js/v7.js). */
@media(max-width:480px){
  .badge{width:92px}
  .badge-medal{width:70px;height:70px}
  .badge-wall{gap:20px 16px;padding:0}
}
@media(max-width:374px){
  .badge{width:80px}
  .badge-medal{width:64px;height:64px}
}

/* ── FUNDS USED — one figure in the same ledger language as the stats above:
   Cinzel number, uppercase label, mono note, and the outlined accent tag the
   site already uses for its filter chip. Edit the figure in the HTML. ── */
.funds-ledger{max-width:420px;margin:0 auto;padding:0 20px;text-align:center}
.funds-amount{font-family:var(--cinzel);font-size:46px;font-weight:700;letter-spacing:1px;margin-bottom:8px;font-variant-numeric:lining-nums}
.funds-note{font-family:var(--mono);font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:var(--text3);margin-top:10px}
.funds-tag{display:inline-block;margin-top:16px;padding:7px 16px;font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:var(--accent-2);border:1px solid var(--accent-2);border-radius:20px}
@media(max-width:768px){.funds-amount{font-size:28px}}

/* ── CHAPTER SYSTEM — one film-credit header pattern for every section ── */
.chapter{margin-bottom:var(--gap-major)}
.sect-head{text-align:center;margin-bottom:38px}
.sect-head::before{ /* bar-line between movements: small rotated diamond */
  content:'';display:block;width:7px;height:7px;margin:0 auto 18px;
  border:1px solid var(--text3);transform:rotate(45deg);opacity:.55;
}
.sect-eyebrow{
  display:block;font-family:var(--mono);font-size:10.5px;font-weight:500;
  letter-spacing:4px;color:var(--text3);text-transform:uppercase;margin-bottom:12px;
}
.sect-title{font-family:var(--cinzel);font-size:30px;font-weight:600;letter-spacing:2px;color:var(--text)}
.sect-sub{font-size:14px;color:var(--text2);margin-top:10px}
/* Goal + calendar pair into one two-up ledger movement on desktop */
/* CH.03: the goal card and the calendar card stack, one above the other, at every width, and are the same
   box (Joe 18 Oct 2026): one column, so the same width, capped at the width each card had side by side
   ((1160px chapter - 24px gap) / 2 = 568px), and equal rows, so the taller card sets both heights */
.ledger-grid{display:grid;gap:24px;grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;max-width:calc((1160px - 24px) / 2);margin-left:auto;margin-right:auto}
@media(max-width:768px){
  .sect-title{font-size:22px}
  .sect-head{margin-bottom:28px}
}
.search-container{max-width:600px;margin:0 auto 40px;position:relative}
.search-input{width:100%;padding:16px 50px 16px 20px;border:1px solid var(--border);border-radius:12px;font-size:15px;font-family:var(--font);background:var(--card);transition:all 0.2s}
.search-input:focus{outline:none;border-color:var(--text);box-shadow:0 0 0 3px rgba(0,0,0,0.05)}
.search-icon{position:absolute;right:18px;top:50%;transform:translateY(-50%);color:var(--text3);font-size:20px}
.filter-tabs{display:flex;gap:12px;justify-content:center;margin-bottom:40px;flex-wrap:wrap}
.filter-tab{padding:10px 20px;border:1px solid var(--border);border-radius:10px;background:var(--card);font-size:14px;font-weight:600;transition:all 0.4s cubic-bezier(0.22,1,0.36,1);color:var(--text2)}
.filter-tab:hover{background:var(--hover-bg);border-color:var(--text)}
.filter-tab.active{background:var(--text);color:var(--bg);border-color:var(--text)}
.events-header{margin-bottom:var(--gap-minor)}
.events-header .sect-head{margin-bottom:0}
.events-count{display:inline-block;margin-top:14px;font-size:12.5px;color:var(--text2);background:var(--card);padding:7px 15px;border-radius:20px;font-weight:600;border:1px solid var(--border);font-family:var(--mono)}
/* Reset control for the map's country filter — the chip bar that used to
   hold "All Countries" is gone, so without this a filtered list is a trap. */
.filter-clear{display:none;margin:12px auto 0;padding:9px 18px;font-family:var(--mono);font-size:11px;letter-spacing:1.5px;text-transform:uppercase;font-weight:600;color:var(--accent-2);background:transparent;border:1px solid var(--accent-2);border-radius:20px;cursor:pointer;transition:background .25s,color .25s}
.filter-clear.on{display:block;width:max-content}
.filter-clear:hover{background:var(--accent-2);color:var(--bg)}
.events-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px;margin-bottom:80px;transition:opacity 0.25s ease,transform 0.25s cubic-bezier(0.22,1,0.36,1)}
.event-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:28px;transition:all 0.4s cubic-bezier(0.22,1,0.36,1);position:relative}
.event-card:hover{transform:translateY(-6px) scale(1.02);box-shadow:0 20px 60px rgba(0,0,0,0.14),0 8px 20px rgba(0,0,0,0.08);border-color:rgba(128,128,128,0.4)}
.event-badge{position:absolute;top:16px;right:16px;background:var(--text);color:var(--bg);font-size:11px;font-weight:700;padding:6px 12px;border-radius:6px;text-transform:uppercase;letter-spacing:0.5px}

.event-name{font-size:18px;font-weight:700;margin-bottom:8px;line-height:1.3}
.event-meta{font-size:14px;color:var(--text2);margin-bottom:4px;display:flex;align-items:center;gap:8px}
.event-actions{display:flex;gap:8px;margin-top:20px}
.btn{padding:12px 24px;border:none;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;transition:all 0.4s cubic-bezier(0.22,1,0.36,1);font-family:var(--font)}
.btn-primary{background:var(--text);color:var(--bg);flex:1}
.btn-primary:hover{background:var(--accent-hover)}
.btn-delete{background:transparent;color:#DC2626;border:1px solid var(--border);padding:10px 16px}
.btn-delete:hover{background:#FEF2F2;border-color:#DC2626}
.btn-replace{background:transparent;color:var(--text);border:1px solid var(--border);padding:10px 16px}
.btn-replace:hover{background:var(--hover-bg2);border-color:var(--accent)}
.upload-section{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:32px;margin-bottom:60px}
.upload-header{text-align:center;margin-bottom:24px}
.upload-header h2{font-family:var(--cinzel);font-size:24px;font-weight:600;margin-bottom:8px}
.upload-header p{font-size:14px;color:var(--text2)}
.upload-zone{background:var(--upload-bg);border:2px dashed var(--border);border-radius:12px;padding:50px 20px;text-align:center;cursor:pointer;transition:all 0.2s}
.upload-zone:hover{border-color:var(--accent);background:var(--hover-bg2)}
.upload-zone.dragover{border-color:var(--accent);background:var(--hover-bg2);border-style:solid}
.upload-icon{font-size:48px;margin-bottom:16px}
.upload-title{font-size:18px;font-weight:700;margin-bottom:8px}
.upload-hint{font-size:14px;color:var(--text2)}
#file-input{display:none}
.upload-status{margin-top:16px;font-size:13px;color:var(--text2);font-weight:600;padding:12px;border-radius:8px;background:var(--hover-bg2)}
.upload-status.success{color:#15803D;background:#F0FDF4}
.upload-status.error{color:#DC2626;background:#FEF2F2}
.modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.75);z-index:1000;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(16px);transition:opacity 0.4s cubic-bezier(0.22,1,0.36,1)}
.modal.active{display:flex}
.modal-content{background:rgba(250,249,246,0.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-radius:20px;width:100%;max-width:950px;max-height:92vh;max-height:92svh;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 32px 80px rgba(0,0,0,0.25),0 0 0 1px rgba(255,255,255,0.5) inset,0 2px 0 rgba(255,255,255,0.7) inset;border:1px solid rgba(255,255,255,0.3);transform:translateY(0);transition:transform 0.4s cubic-bezier(0.22,1,0.36,1)}
.modal-header{padding:24px 28px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}
.modal-title{font-size:20px;font-weight:700}
.modal-close{background:var(--card);border:none;width:36px;height:36px;border-radius:8px;font-size:20px;cursor:pointer;color:var(--text);transition:all 0.2s;display:flex;align-items:center;justify-content:center}
.modal-close:hover{background:var(--hover-bg)}
.modal-body{flex:1;overflow:auto;-webkit-overflow-scrolling:touch}
.pdf-container{width:100%;height:100%;overflow:hidden;background:var(--pdf-viewer-bg)}
/* Horizontal slider: one slide per page, only the active page in view */
.pdf-track{display:flex;height:100%;transition:transform 0.35s cubic-bezier(0.22,1,0.36,1);will-change:transform}
.pdf-slide{min-width:100%;width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch;display:flex;justify-content:center;align-items:flex-start;padding:20px}
.pdf-page{margin:0 auto;display:block;box-shadow:0 4px 12px rgba(0,0,0,0.3);background:white;max-width:100%;height:auto}
.pdf-controls{display:flex;align-items:center;justify-content:center;gap:12px;padding:16px;background:var(--card);border-bottom:1px solid var(--border)}
/* Slide bar (range input) for scrubbing through pages */
.pdf-sliderbar{padding:12px 20px;background:var(--card);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:14px}
.pdf-sliderbar .pdf-sliderbar-icon{font-size:13px;color:var(--text3);flex-shrink:0}
.pdf-slider{flex:1;width:100%;accent-color:var(--accent);cursor:pointer;height:4px}
.pdf-controls button{background:var(--text);color:var(--bg);border:none;padding:8px 16px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer}
.pdf-controls button:disabled{background:#ccc;cursor:not-allowed}
.pdf-page-info{font-size:14px;font-weight:600}
/* End-credits footer — the page ends like a film, not just stops.
   Top hairline broken by a diamond, Cinzel masthead, role–name credit rows,
   mono catalogue line to close. */
.footer{border-top:1px solid var(--border);padding:46px 20px 34px;margin-top:var(--gap-major);text-align:center;position:relative}
.footer::before{
  content:'';position:absolute;top:-4.5px;left:50%;width:7px;height:7px;margin-left:-4px;
  background:var(--bg);border:1px solid var(--text3);transform:rotate(45deg);
}
.footer-org{font-family:var(--cinzel);font-size:17px;font-weight:700;color:var(--text);letter-spacing:3px;text-transform:uppercase;margin-bottom:8px}
.credits-tag{font-family:var(--mono);font-size:9.5px;color:var(--text3);letter-spacing:3px;text-transform:uppercase;margin-bottom:26px}
.credits{display:flex;flex-direction:column;gap:9px;margin:0 0 28px}
.credits-row{display:grid;grid-template-columns:1fr 1fr;column-gap:26px;align-items:baseline}
.credits-row dt{font-family:var(--mono);font-size:9.5px;letter-spacing:2.5px;color:var(--text3);text-transform:uppercase;text-align:right}
.credits-row dd{margin:0;font-size:13px;color:var(--text-dim);text-align:left}
.credits-row dd a{color:var(--text-dim);text-decoration:none;border-bottom:1px solid var(--border);transition:color .25s,border-color .25s}
/* ── PRIVACY — one line under each Send button, and the plain-English note that opens in
   the footer (native <details>, so it works with no JS and with keyboard/screen readers). ── */
.give-privacy{margin:12px 0 0;font-size:12px;line-height:1.5;color:var(--text-dim);text-align:center}
.give-urgent{margin-top:6px}
.give-privacy a{color:var(--text);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.privacy-note{max-width:560px;margin:26px auto 22px;padding:0 20px;text-align:left}
.privacy-note summary{
  cursor:pointer;list-style:none;text-align:center;padding:10px 0;
  font-family:var(--mono);font-size:10px;letter-spacing:2.5px;text-transform:uppercase;color:var(--text2);
}
.privacy-note summary::-webkit-details-marker{display:none}
.privacy-note summary::after{content:" +";content:" +" / ""}
.privacy-note[open] summary::after{content:" \2212";content:" \2212" / ""}
.privacy-note summary:hover{color:var(--text)}
.privacy-body{border-top:1px solid var(--border);padding-top:14px}
.privacy-body p{margin:0 0 10px;font-size:13px;line-height:1.6;color:var(--text-dim)}
.privacy-body strong{color:var(--text);font-weight:600}
.privacy-body a{color:var(--text);text-decoration-thickness:1px;text-underline-offset:3px}
.privacy-body a[href^="mailto"]{white-space:nowrap} /* never split the address at its hyphen */
.credits-row dd a:hover{color:var(--text);border-color:var(--text2)}
.credits-end{font-family:var(--mono);font-size:9px;letter-spacing:2.5px;color:var(--text3);text-transform:uppercase;opacity:.75}
.loading{text-align:center;padding:60px;color:var(--text2);font-size:15px}
.empty{text-align:center;padding:100px 20px;color:var(--text3)}
.empty-icon{font-size:72px;margin-bottom:20px;opacity:0.3}
.empty-title{font-size:20px;font-weight:600;margin-bottom:8px;color:var(--text2)}
@media(max-width:768px){
  .container{padding:40px 16px}
  .title{font-size:36px}
  .upload-zone{padding:40px 16px}
  .stat-number{font-size:28px}
  .events-grid{grid-template-columns:1fr}
}

/* ── REACH MAP — static blueprint dot-map (replaced the spinning globe:
      same LAND data, flat equirectangular projection, zero animation loop) ── */
.map-section{
  margin:0 auto var(--gap-major);max-width:860px;padding:0 20px 10px;text-align:center;
  position:relative;
}
.map-stage{position:relative;width:100%;margin:0 auto}
.map-dots{display:block;width:100%;height:auto}
.map-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.map-arc{fill:none;stroke:var(--text);stroke-width:1.1;stroke-dasharray:5 5;opacity:.45;stroke-linecap:round}
.map-compass line,.map-compass circle{stroke:var(--text);fill:none}
.map-compass .mc-dot{fill:var(--text);stroke:none}
.map-compass text{fill:var(--text);font-family:var(--mono);font-size:9px;font-weight:700}

/* Location nodes — real buttons, absolutely positioned by JS in stage % */
.map-node{
  position:absolute;transform:translate(-50%,-50%);
  background:none;border:none;padding:12px;cursor:pointer;
  -webkit-tap-highlight-color:transparent;z-index:3;
}
.map-node-mark{position:relative;display:block;width:10px;height:10px;margin:0 auto}
.map-node-mark::before{ /* solid dot */
  content:'';position:absolute;inset:2px;border-radius:50%;background:var(--text);
}
.map-node-mark::after{  /* hairline ring */
  content:'';position:absolute;inset:-5px;border-radius:50%;
  border:1px solid var(--text);opacity:.55;transition:opacity .2s,inset .2s;
}
.map-node:hover .map-node-mark::after,
.map-node:focus-visible .map-node-mark::after,
.map-node[aria-expanded="true"] .map-node-mark::after{opacity:1;inset:-8px}
.map-node:focus-visible{outline:2px solid var(--text);outline-offset:2px;border-radius:8px}
/* mono label + coordinates on a paper chip (the "halo" trick); the CH.05 globe's pin label shares it */
.map-node-tag,.glb-pin-tag{
  position:absolute;left:50%;transform:translateX(-50%);top:100%;margin-top:2px;
  font-family:var(--mono);font-size:10.5px;font-weight:600;letter-spacing:1.6px;
  color:var(--text);white-space:nowrap;background:var(--bg);
  padding:2px 6px;border-radius:4px;line-height:1.5;
}
.map-node-co{display:block;font-size:8.5px;font-weight:500;letter-spacing:.8px;color:var(--text3)}
/* per-node label placement so tags never collide */
.map-node.tag-up .map-node-tag{top:auto;bottom:100%;margin:0 0 2px}
.map-node.tag-left .map-node-tag{left:auto;right:100%;top:50%;transform:translateY(-50%);margin:0 6px 0 0;text-align:right}

/* Info card — one shared card, opened by the nodes */
.map-card{
  position:absolute;z-index:6;min-width:210px;max-width:260px;text-align:left;
  background:var(--bg);border:1px solid var(--border);border-radius:12px;
  padding:16px 18px;box-shadow:0 14px 40px rgba(0,0,0,.16);
}
.map-card[hidden]{display:none}
.map-card-title{font-family:var(--cinzel);font-size:16px;font-weight:700;letter-spacing:.5px}
.map-card-co{font-family:var(--mono);font-size:10.5px;letter-spacing:1.2px;color:var(--text3);margin:4px 0 10px}
.map-card-body{font-size:13px;line-height:1.55;color:var(--text2);margin:0 0 12px}
.map-card-link{
  font-family:var(--mono);font-size:10.5px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;
  background:none;border:1px solid var(--border);border-radius:8px;color:var(--text);
  padding:7px 11px;cursor:pointer;transition:border-color .2s,background .2s;
}
.map-card-link:hover{border-color:var(--text);background:var(--hover-bg)}
@media(max-width:768px){
  .map-node-tag{font-size:9.5px;letter-spacing:1.2px}
  .map-node-co{font-size:8px}
}
@media(max-width:640px){
  /* full-world view on a phone puts Arizona and Guatemala ~25px apart —
     smaller hit areas keep them individually tappable */
  .map-node{padding:7px}
  /* three text chips don't fit a 130px-tall world — markers only; the tap
     card carries the name + coordinates, the legend below says how */
  .map-node-tag{display:none}
  .map-section .map-legend{display:block}
}
.map-legend{
  display:none;margin-top:14px;text-align:center;
  font-family:var(--mono);font-size:9.5px;font-weight:600;letter-spacing:2px;
  text-transform:uppercase;color:var(--text3);
}

/* ── MAP MOTION ── quiet ambient life + a one-time entrance.
   Ambient: the dashed arcs flow, the node rings breathe — two tiny paths and
   three pseudo-elements, nothing like the old globe's full-SVG rebuilds. */
.map-arc{animation:mapArcFlow 1.6s linear infinite}
@keyframes mapArcFlow{to{stroke-dashoffset:-20}}
.map-node-mark::after{animation:mapBreath 3.4s ease-in-out infinite}
@keyframes mapBreath{0%,100%{opacity:.4}50%{opacity:.9}}
.map-node:hover .map-node-mark::after,
.map-node:focus-visible .map-node-mark::after,
.map-node[aria-expanded="true"] .map-node-mark::after{animation:none}
/* Entrance: JS adds .map-pre at render, .map-in when scrolled into view —
   dots fade up, then arcs+compass, then the three nodes pop in west→east. */
.map-pre .map-dots{opacity:0;transition:opacity 1s ease .1s}
.map-pre .map-overlay{opacity:0;transition:opacity .8s ease .6s}
.map-pre .map-node{opacity:0;transform:translate(-50%,-50%) scale(.55);
  transition:opacity .5s cubic-bezier(0.22,1,0.36,1),transform .5s cubic-bezier(0.22,1,0.36,1)}
.map-pre .map-node[data-idx="1"]{transition-delay:.75s}   /* Arizona   */
.map-pre .map-node[data-idx="2"]{transition-delay:.9s}    /* Guatemala */
.map-pre .map-node[data-idx="0"]{transition-delay:1.05s}  /* London    */
.map-pre.map-in .map-dots,.map-pre.map-in .map-overlay{opacity:1}
.map-pre.map-in .map-node{opacity:1;transform:translate(-50%,-50%) scale(1)}
@media(prefers-reduced-motion:reduce){
  .map-arc,.map-node-mark::after{animation:none}
  .map-pre .map-dots,.map-pre .map-overlay,.map-pre .map-node{
    opacity:1;transform:translate(-50%,-50%);transition:none}
}

/* ── MASTHEAD — sticky editorial nav: wordmark, section links, theme toggle ── */
.masthead{
  position:sticky;top:0;z-index:200;
  border-bottom:1px solid transparent;
  transition:background .4s cubic-bezier(0.22,1,0.36,1),border-color .4s cubic-bezier(0.22,1,0.36,1),box-shadow .4s cubic-bezier(0.22,1,0.36,1);
}
.masthead.scrolled{
  background:rgba(250,249,246,0.85);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  border-bottom-color:var(--border);
}
body.dark .masthead.scrolled{background:rgba(16,15,11,0.82)}
.masthead-in{
  max-width:1200px;margin:0 auto;height:var(--rl-mast-h);padding:0 20px; /* 56px, 52px at ≤768: block 7 */
  display:flex;align-items:center;justify-content:space-between;gap:18px;
}
.mast-brand{
  font-family:var(--cinzel);font-size:15px;font-weight:700;letter-spacing:3px;
  color:var(--text);text-decoration:none;white-space:nowrap;
}
.mast-nav{display:flex;align-items:center;gap:22px}
.mast-nav a{
  font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;
  color:var(--text2);text-decoration:none;transition:color .25s;
}
.mast-nav a:hover{color:var(--text)}
@media(max-width:768px){.mast-nav{display:none}}
/* ── JOIN US — the one ask, always in reach on desktop (owner call 12 Oct 2026). An ink
   pill like the hero CTA; it steps aside (.away) while Get Involved or Quiet Battles is on
   screen. Phones use the chapter bar's Join, which now shows from the first screen. ── */
.mast-end{display:flex;align-items:center;gap:12px;flex-shrink:0}
.mast-join{
  font-family:var(--mono);font-size:11px;font-weight:700;letter-spacing:1.8px;text-transform:uppercase;
  background:var(--text);color:var(--bg);text-decoration:none;
  padding:9px 16px;border-radius:999px;white-space:nowrap;
  transition:opacity .3s cubic-bezier(0.22,1,0.36,1),transform .3s cubic-bezier(0.22,1,0.36,1),visibility .3s,background .2s;
}
.mast-join:hover{background:var(--accent-hover)}
.mast-join.away{opacity:0;transform:translateY(-6px);visibility:hidden;pointer-events:none}
.mast-join.away:focus-visible{opacity:1;transform:none;visibility:visible;pointer-events:auto}
/* the brand + 7-link nav + pill + toggle row only fits from ~979px (review, 12 Oct): below that
   the pill would push the theme toggle off-screen, so tablets keep the nav's Get Involved */
@media(max-width:1023px){.mast-join{display:none}}
@media(prefers-reduced-motion:reduce){.mast-join{transition:none}}
/* #anchors still land 72px below the top: html scroll-padding-top (block 7: masthead + 9px) + this margin */
[id]{scroll-margin-top:calc(63px - var(--rl-mast-h))}

/* ── THEME TOGGLE — monochrome SVG sun/moon, lives in the masthead ── */
.theme-toggle{
  position:relative;flex-shrink:0;
  width:36px;height:36px;border-radius:50%;
  background:transparent;border:1px solid var(--border);
  cursor:pointer;color:var(--text);
}
.theme-toggle:hover{background:var(--hover-bg);border-color:var(--text2)}
.theme-toggle svg{
  position:absolute;top:50%;left:50%;width:16px;height:16px;margin:-8px 0 0 -8px;
  transition:opacity .4s cubic-bezier(0.22,1,0.36,1),transform .4s cubic-bezier(0.22,1,0.36,1);
}
.tt-moon{opacity:1;transform:none}
.tt-sun{opacity:0;transform:rotate(-90deg) scale(.4)}
body.dark .tt-moon{opacity:0;transform:rotate(90deg) scale(.4)}
body.dark .tt-sun{opacity:1;transform:none}

/* ── MOBILE CHAPTER BAR — fixed bottom pill nav with scroll-spy ── */
.chapter-bar{
  position:fixed;left:50%;bottom:calc(14px + env(safe-area-inset-bottom,0px));
  transform:translate(-50%,80px);z-index:950;
  display:none;align-items:center;gap:2px;padding:5px;
  background:rgba(250,249,246,0.88);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  border:1px solid var(--border);border-radius:999px;
  box-shadow:0 10px 30px rgba(0,0,0,0.14),inset 0 1px 0 var(--edge-light);
  opacity:0;visibility:hidden;
  transition:opacity .35s cubic-bezier(0.22,1,0.36,1),transform .35s cubic-bezier(0.22,1,0.36,1),visibility .35s;
  max-width:calc(100vw - 24px);
  /* 6 chapters since Quiet Battles joined: trim the gaps on phones so they
     fit, and let the strip scroll rather than CLIP on very narrow screens —
     a nav item you cannot reach is worse than one you have to swipe to. */
  overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;
}
.chapter-bar::-webkit-scrollbar{display:none}
body.dark .chapter-bar{background:rgba(23,21,15,0.88);box-shadow:0 10px 30px rgba(0,0,0,0.5),inset 0 1px 0 var(--edge-light)}
.chapter-bar.show{opacity:1;visibility:visible;transform:translate(-50%,0)}
.chapter-bar a{
  font-family:var(--mono);font-size:10px;font-weight:500;letter-spacing:1.2px;
  text-transform:uppercase;color:var(--text2);text-decoration:none;
  padding:9px 12px;border-radius:999px;white-space:nowrap;flex:none;
  transition:background .3s,color .3s;
}
@media(max-width:430px){.chapter-bar a{padding:9px 9px;letter-spacing:.85px}}
@media(max-width:340px){.chapter-bar a{padding:9px 6px;letter-spacing:.5px}}
@media(max-width:768px){
  html{scroll-padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
  body .footer{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))} /* body: outranks the later phone .footer padding shorthand */
}
.chapter-bar a.active{background:var(--text);color:var(--bg)}
@media(max-width:768px){
  .chapter-bar{display:flex}
  .back-top{display:none} /* the chapter bar + sticky masthead replace it on phones */
  .toast-wrap{bottom:calc(74px + env(safe-area-inset-bottom,0px))} /* clear the bar */
}

/* Film grain retired 2026-08-04 — pure-mono standard is FLAT #fff/#000, no texture. */

/* ── INK-STAMP SELECTION — paper/ink invert, flips with the theme ── */
::selection{background:var(--text);color:var(--bg)}
::-moz-selection{background:var(--text);color:var(--bg)}

/* ── ACTIVITY TICKER ── */
.ticker-wrap{
  background:linear-gradient(135deg,var(--card) 0%,var(--hover-bg) 50%,var(--card) 100%);
  border:1px solid var(--border);border-radius:12px;
  padding:12px 18px;margin-bottom:32px;display:flex;align-items:center;gap:14px;
  overflow:hidden;position:relative;
}
body.dark .ticker-wrap{
  background:linear-gradient(135deg,var(--upload-bg) 0%,var(--hover-bg) 40%,var(--upload-bg) 70%,var(--card) 100%);
}
.ticker-content,.ticker-label{position:relative;z-index:2}
.ticker-label{
  font-size:10px;font-weight:700;letter-spacing:2px;color:var(--text3);
  text-transform:uppercase;flex-shrink:0;font-family:var(--mono);
}
.ticker-label::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent-2);margin-right:6px;animation:tickerPulse 1.6s infinite;vertical-align:middle}
.ticker-content{
  flex:1;overflow:hidden;position:relative;height:18px;
  /* items genuinely fade at the edges (both themes) instead of a grey scrim */
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.ticker-track{position:absolute;white-space:nowrap;animation:tickerSlide 30s linear infinite;font-size:13px;color:var(--text2)}
/* let people actually read the item that caught their eye */
.ticker-wrap:hover .ticker-track,.ticker-wrap:focus-within .ticker-track{animation-play-state:paused}
.ticker-item{display:inline-block;margin-right:50px}
.ticker-item strong{color:var(--text);font-weight:600}
@keyframes tickerSlide{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes tickerPulse{0%,100%{opacity:1}50%{opacity:0.3}}

/* ── COUNTRY FLAGS / FILTERS ── */
.country-filters{display:flex;gap:8px;justify-content:center;margin-bottom:32px;flex-wrap:wrap}
.country-chip{
  padding:8px 16px;border:1px solid var(--border);border-radius:99px;
  background:var(--card);cursor:pointer;font-size:13px;font-weight:500;
  transition:all 0.2s;color:var(--text2);display:inline-flex;align-items:center;gap:8px;
}
.country-chip:hover{border-color:var(--text);color:var(--text)}
.country-chip.active{background:var(--accent-2);color:var(--bg);border-color:var(--accent-2)}
.country-flag{font-size:16px}

/* ── SHARE BUTTONS ── */
.event-share{
  display:flex;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid var(--border);
}
.share-btn{
  flex:1;padding:8px;background:transparent;border:1px solid var(--border);
  border-radius:8px;cursor:pointer;font-size:13px;color:var(--text2);
  transition:all 0.15s;font-family:var(--font);font-weight:500;
}
.share-btn:hover{background:var(--hover-bg);color:var(--text);border-color:var(--text2)}

/* ── ADMIN GATE ── */
.admin-section{display:none}
body.admin .admin-section{display:block}
body.admin .btn-delete{display:inline-flex}
.btn-delete{display:none}
body.admin .btn-replace{display:inline-flex}
.btn-replace{display:none}

.admin-bar{
  position:fixed;bottom:20px;left:20px;z-index:50;
  background:var(--text);color:var(--bg);
  padding:8px 14px;border-radius:8px;font-size:12px;font-weight:600;
  display:none;align-items:center;gap:10px;box-shadow:0 4px 12px rgba(0,0,0,0.2);
}
body.admin .admin-bar{display:inline-flex}
.admin-bar button{background:transparent;border:1px solid currentColor;color:inherit;padding:3px 8px;border-radius:4px;font-size:11px;cursor:pointer;font-family:inherit}

/* Subtle admin entry button — small lock icon, low-contrast.
   Hides automatically when already in admin mode (since admin-bar takes its place). */
.admin-entry{
  position:fixed;bottom:20px;left:20px;z-index:49;
  width:32px;height:32px;border-radius:50%;
  background:transparent;border:1px solid var(--border);
  color:var(--text3);cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  font-size:13px;opacity:0.4;transition:opacity 0.2s,border-color 0.2s;
  font-family:inherit;
}
.admin-entry:hover{opacity:1;border-color:var(--text2);color:var(--text2)}
body.admin .admin-entry{display:none}
/* Breathing room on phones: the floating Daily-Brief pill collides with the
   sticky wordmark up top, and the chapter-bar owns the bottom — there's no clean
   float for it on a phone. So on phones it TUCKS into the masthead as a compact
   icon beside the theme toggle — decluttered, but still one tap from the Daily
   Brief (a touch phone has no 'B' key). Desktop keeps the labelled pill. */
@media(max-width:768px){
  .brief-fab{
    top:8px!important;left:auto!important;right:64px!important;bottom:auto!important;
    width:36px;height:36px;padding:0!important;border-radius:50%!important;
    display:inline-flex!important;align-items:center;justify-content:center;
    font-size:15px!important;line-height:1;z-index:210!important;
  }
  .brief-fab .brief-label{display:none}
}

/* Dark mode tweaks for fixed elements */
body.dark .modal{background:rgba(0,0,0,0.82)}
body.dark .upload-zone{background:var(--upload-bg)}
body.dark .upload-status{background:var(--card);color:var(--text2)}
body.dark .upload-status.success{background:rgba(21,128,61,0.15);color:#4ADE80}
body.dark .upload-status.error{background:rgba(220,38,38,0.15);color:#F87171}
body.dark .btn-primary:hover{background:var(--accent-hover)}

/* Counter num is just a span — no transition needed since we manually animate */

/* ===== v5: NEW FEATURES — ZERO SETUP ===== */

/* Daily Brief panel */
.brief-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 600;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.brief-overlay.open { display: flex; }
body.dark .brief-overlay { background: rgba(18,16,11,0.92); }

.brief-panel {
  width: 720px; max-width: 100%;
  background: rgba(250,249,246,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 40px;
  font-family: var(--font);
  color: var(--text);
  animation: briefSlide 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.6) inset;
}
body.dark .brief-panel {
  background: rgba(16,15,10,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
body.dark .modal-content {
  background: rgba(18,16,11,0.88);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
@keyframes briefSlide {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.brief-close {
  position: absolute; top: 16px; right: 20px;
  background: transparent; border: none;
  font-size: 28px; color: var(--text2); cursor: pointer;
}

.brief-greeting {
  font-family: var(--cinzel); font-size: 32px;
  margin-bottom: 4px; letter-spacing: 1px;
}
.brief-date {
  font-size: 12px; color: var(--text3);
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 28px;
}

.brief-section {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.brief-section:last-child { border-bottom: 0; }
.brief-section h3 {
  font-family: var(--cinzel); font-size: 14px;
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 14px; color: var(--text2);
}

.brief-stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 8px;
}
.brief-stat {
  text-align: center; padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.brief-stat-num {
  font-family: var(--cinzel); font-size: 28px;
  font-weight: 600; line-height: 1; letter-spacing: 0.5px;
}
.brief-stat-lbl {
  font-size: 10px; letter-spacing: 1.5px;
  color: var(--text3); text-transform: uppercase;
  margin-top: 4px;
}

.brief-line {
  padding: 8px 0; font-size: 14px;
  color: var(--text2); line-height: 1.6;
}
.brief-line strong { color: var(--text); }

.brief-print {
  background: var(--accent); color: var(--bg);
  border: none; padding: 10px 22px;
  font-family: var(--font); font-size: 13px;
  font-weight: 600; cursor: pointer;
  border-radius: 8px; margin-right: 8px;
  transition: opacity 0.2s;
}
.brief-print:hover { opacity: 0.85; }

/* Quick-capture FAB (admin only) */
.qc-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: var(--accent); color: var(--bg);
  border: none; border-radius: 50%;
  font-family: var(--cinzel); font-size: 28px;
  font-weight: 600; cursor: pointer;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.25s, box-shadow 0.25s;
  display: none;
  align-items: center; justify-content: center;
}
.qc-fab.visible { display: flex; }
.qc-fab:hover {
  transform: scale(1.08) rotate(90deg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
body.dark .qc-fab:hover { box-shadow: 0 12px 32px rgba(255,255,255,0.15); }

.qc-panel {
  position: fixed; bottom: 96px; right: 24px;
  width: 360px; max-width: calc(100vw - 48px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  z-index: 91;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  transform: translateY(12px) scale(0.96); opacity: 0;
  pointer-events: none; visibility: hidden; /* closed: not focusable, not read out (a11y audit 28 Oct 2026) */
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.qc-panel.open {
  transform: translateY(0) scale(1); opacity: 1;
  pointer-events: auto; visibility: visible;
}
.qc-title {
  font-family: var(--cinzel); font-size: 15px;
  font-weight: 600; letter-spacing: 1px;
  margin-bottom: 12px;
}
.qc-textarea {
  width: 100%; min-height: 88px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font); font-size: 13px;
  color: var(--text); resize: vertical;
  outline: none; transition: border-color 0.15s;
}
.qc-textarea:focus { border-color: var(--text); }
.qc-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px;
}
.qc-hint {
  font-size: 10px; letter-spacing: 1.5px;
  color: var(--text3); text-transform: uppercase; font-family: var(--mono);
}
.qc-save {
  background: var(--accent); color: var(--bg);
  border: none; padding: 6px 14px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  border-radius: 6px; cursor: pointer;
}
.qc-recent {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--border);
  max-height: 140px; overflow-y: auto;
}
.qc-recent-item {
  padding: 6px 0; font-size: 12px;
  color: var(--text2); line-height: 1.5;
  border-bottom: 1px dashed var(--border);
}
.qc-recent-item:last-child { border-bottom: 0; }
.qc-recent-time {
  font-size: 9.5px; color: var(--text3);
  letter-spacing: 0.5px; margin-left: 8px;
}

/* Skeleton loaders */
.skel {
  background: linear-gradient(90deg,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.1) 50%,
    rgba(0,0,0,0.05) 100%);
  background-size: 200% 100%;
  animation: skelShimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
}
body.dark .skel {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.05) 0%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.05) 100%);
  background-size: 200% 100%;
}
@keyframes skelShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}
.skel-line { height: 14px; margin-bottom: 10px; }
.skel-line.tall { height: 32px; margin-bottom: 16px; }
.skel-line.short { width: 50%; }
.skel-line.medium { width: 75%; }

/* Keyboard help */
.kbd-help-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 700;
  display: none;
  align-items: center; justify-content: center;
}
.kbd-help-overlay.open { display: flex; }
.kbd-help-panel {
  width: 540px; max-width: 92vw;
  background: rgba(250,249,246,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  animation: briefSlide 0.4s cubic-bezier(0.22,1,0.36,1);
}
body.dark .kbd-help-panel {
  background: rgba(16,15,10,0.85);
  border: 1px solid rgba(255,255,255,0.08);
}
.kbd-help-title {
  font-family: var(--cinzel); font-size: 22px;
  margin-bottom: 4px;
}
.kbd-help-sub {
  font-size: 11px; letter-spacing: 2px;
  color: var(--text3); text-transform: uppercase;
  margin-bottom: 22px;
}
.kbd-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; font-size: 13px;
  color: var(--text2);
  border-bottom: 1px dashed var(--border);
}
.kbd-row:last-child { border-bottom: 0; }
.kbd-row kbd {
  display: inline-block; padding: 3px 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 4px; font-family: var(--mono);
  font-size: 11px; color: var(--text);
  margin-left: 4px;
}

/* Confetti */
.confetti-overlay {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 800;
  overflow: hidden;
}
.confetti-piece {
  position: absolute; width: 10px; height: 14px;
  will-change: transform, opacity;
}

/* Search highlight — a neutral ink wash (green removed 12 Oct 2026; the raw yellow highlighter is retired) */
.search-highlight {
  background: rgba(21,20,15,0.12);
  color: var(--text);
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 600;
}
body.dark .search-highlight { background: rgba(250,249,246,0.22); }

/* Print styles */
@media print {
  body { background: #fff !important; color: #000 !important; }
  body.dark { background: #fff !important; color: #000 !important; }
  .theme-toggle, .admin-entry, .admin-bar, .qc-fab, .qc-panel,
  .upload-section, .filter-tabs, .country-filters,
  .search-container, .ticker-wrap, .map-section,
  .brief-overlay, .kbd-help-overlay, .modal,
  .masthead, .chapter-bar, .hero-cue, .rl-ig, .scroll-progress, .back-top,
  .events-count, .filter-clear { display: none !important; }
  body::after { display: none !important; } /* no grain on paper-paper */
  .brief-panel { box-shadow: none; border: 2px solid #000; }
  .events-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { break-inside: avoid; }
  .brief-section { break-inside: avoid; }
  .title { color: #000 !important; }
}

/* Pulse animation when stats change */
.stat-pulse { animation: statPulse 0.8s ease-out; }
@keyframes statPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); color: var(--accent); }
  100% { transform: scale(1); }
}


/* ═══════════════════════════════════════════════════
   Hero entrance — clean top-down fade, HELD until the display font is ready
   ═══════════════════════════════════════════════════
   `body.hero-armed` (set pre-paint) hides the hero from the first frame; the
   boot script adds `body.hero-in` once Cinzel has actually loaded (or after a
   short hard-timeout, so it can never hang hidden). Result: the headline never
   flickers from a fallback serif into Cinzel mid-animation, and the old
   per-word stagger is replaced by ONE smooth fade per element, in order.
   Everything below the fold is handled by the .rl-sr scroll observer. */
.header { animation: none; }
@keyframes heroRise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
/* Held hidden until the reveal fires (covers the gap before the animation is
   assigned, and any moment fonts are still loading). */
body.hero-armed:not(.hero-in) .title-logo,
body.hero-armed:not(.hero-in) .hero-h1,
body.hero-armed:not(.hero-in) .overview,
body.hero-armed:not(.hero-in) .hero-cta,
body.hero-armed:not(.hero-in) .hero-cue{opacity:0}
/* One clean top-down fade-rise per element, in order (keyframes are
   deterministic here where transitions fought the pre-existing filter rule). */
body.hero-in .title-logo{animation:heroRise .6s cubic-bezier(0.22,1,0.36,1) 0s both}
body.hero-in .hero-h1{animation:heroRise .6s cubic-bezier(0.22,1,0.36,1) .18s both}
body.hero-in .overview{animation:heroRise .7s cubic-bezier(0.22,1,0.36,1) .32s both}
body.hero-in .hero-cta{animation:heroRise .7s cubic-bezier(0.22,1,0.36,1) .46s both}
body.hero-in .hero-cue{animation:heroRise .7s cubic-bezier(0.22,1,0.36,1) .44s both}



/* ═══════════════════════════════════════════════════
   UPGRADE 8: Spotlight Search UI
   ═══════════════════════════════════════════════════ */
#search-spotlight {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  z-index: 400;
  pointer-events: none;
  transition: background 0.4s cubic-bezier(0.22,1,0.36,1),
              backdrop-filter 0.4s cubic-bezier(0.22,1,0.36,1);
}
#search-spotlight.active {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
.search-container {
  position: relative;
  z-index: 410;
}
.search-input {
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1) !important;
}
.search-container.spotlit .search-input {
  box-shadow: 0 0 0 3px rgba(0,0,0,0.15), 0 20px 60px rgba(0,0,0,0.2) !important;
  border-color: var(--text) !important;
  transform: scale(1.02);
}
body.dark .search-container.spotlit .search-input {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.15), 0 20px 60px rgba(0,0,0,0.5) !important;
}

/* Ensure modal overlays appear above spotlight */
.brief-overlay, .kbd-help-overlay, .modal { z-index: 600; }

/* ═══════════════════════════════════════════════════
   UPGRADE 10: Micro-transitions cleanup
   ═══════════════════════════════════════════════════ */
.theme-toggle {
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1) !important;
}
.filter-tab.active {
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.country-chip {
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1) !important;
  cursor:pointer;
}
.brief-overlay {
  transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1);
}
.brief-overlay.open { display: flex; }
.modal-close {
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1) !important;
}
.share-btn {
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1) !important;
  cursor:pointer;
}
.title-logo {
  transition: filter 0.4s cubic-bezier(0.22,1,0.36,1) !important;
}
/* (stat cards de-carded into the hairline ledger — no hover-lift anymore) */

/* ════════════════════════════════════════════════════════════════════
   v7 — INTERACTIVE GLOBE · IMPACT TRACKER · POLISH
   Everything below is additive. All colors come from the existing
   theme variables, so light/dark mode and the fonts are untouched.
   ════════════════════════════════════════════════════════════════════ */

/* v7.1–7.4 globe pings/arcs/tooltip + v7.13 light rays retired with the globe —
   the reach map is static blueprint (pure-mono standard: no gradient/aurora). */

/* v7.5 Goal thermometer + v7.6 monthly heatmap card */
.goal-card{
  background:var(--card);border:1px solid var(--border);border-radius:16px;
  padding:26px 28px;position:relative;overflow:hidden; /* spacing owned by .ledger-grid */
}
.goal-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.goal-title{font-size:13px;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;color:var(--text2)}
.goal-nums{font-family:var(--cinzel);font-size:22px;font-weight:700;letter-spacing:.5px}
.goal-nums .goal-of{color:var(--text3);font-size:14px;font-weight:600}
.goal-track{height:10px;border-radius:99px;background:var(--hover-bg2);overflow:hidden}
/* Smooth on phones (16 Oct 2026). The fill is laid at its final width at once and slides in on the
   compositor (transform:translateX from fully left of the track) instead of animating width, which was
   layout and paint on the main thread every frame and froze whenever the page was busy. The track's own
   rounded overflow clip hides the part still to come, so the leading end stays a rounded pill in every
   frame (18 Oct 2026: a scaleX grow squashed it flat). At rest the transform is none, so the bar is the
   same box as before. overflow:hidden keeps the shimmer strip inside the fill. */
.goal-fill{
  height:100%;width:0;border-radius:99px;background:var(--text);
  position:relative;overflow:hidden;
  transform:translateX(-100%);transition:transform 1.6s cubic-bezier(0.22,1,0.36,1);
}
/* The shimmer, also on the compositor: the same 220%-wide gradient tile, laid four tiles wide on a
   strip that slides (transform) instead of a background-position animation that repainted the fill
   every frame. Same speed, same phase, same 2.4 s loop. It runs only while the goal card is on screen
   (.goal-live, from an IntersectionObserver) and never under reduced motion. */
.goal-fill::after{
  content:'';position:absolute;top:0;bottom:0;left:-440%;width:880%;
  background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,0.35) 50%,transparent 70%);
  background-size:25% 100%;animation:goalShine 2.4s linear infinite paused;
}
.goal-card.goal-live .goal-fill::after{animation-play-state:running}
@keyframes goalShine{from{transform:translateX(-27.2727%)}to{transform:translateX(27.2727%)}}
body.dark .goal-fill::after{
  background:linear-gradient(100deg,transparent 30%,rgba(0,0,0,0.30) 50%,transparent 70%);
  background-size:25% 100%;
}
/* the count-up holds this box at the final number's width (script), so the head never re-wraps */
#goal-now{display:inline-block;text-align:right}
@media (prefers-reduced-motion:reduce){.goal-fill{transition:none}}
.goal-foot{display:flex;justify-content:space-between;gap:10px;font-size:11.5px;color:var(--text3);margin-top:8px;letter-spacing:.4px}
.goal-pct{font-family:var(--mono)}
.heat-wrap{margin-top:22px;padding-top:20px;border-top:1px solid var(--border)}
.heat-title{font-size:11px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--text3);margin-bottom:12px}
.heat-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:6px}
.heat-cell{height:26px;border-radius:6px;background:var(--text);transition:opacity .6s,transform .2s}
.heat-cell:hover{transform:scale(1.12)}
.heat-month{font-size:9.5px;text-align:center;color:var(--text3);margin-top:5px;letter-spacing:.5px;font-family:var(--mono)}

/* v7.7 Daily Brief — by-country bars */
.brief-cbar-row{display:flex;align-items:center;gap:10px;margin-bottom:9px;font-size:13.5px}
.brief-cbar-label{min-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brief-cbar-track{flex:1;height:6px;border-radius:99px;background:var(--hover-bg2);overflow:hidden}
.brief-cbar-fill{height:100%;width:0;background:var(--text);border-radius:99px;transition:width .9s cubic-bezier(0.22,1,0.36,1)}
.brief-cbar-n{font-family:var(--cinzel);font-weight:700;font-size:14px;min-width:20px;text-align:right}

/* v7.8 Scroll reveal: moved to block 7 (motion foundation, end of file) on 29 Oct 2026 */

/* v7.10 Scroll progress + back-to-top (bottom-left; quick-capture FAB owns bottom-right)
   Compositor-only: full-width bar scaled on X, not width-animated (no layout). */
.scroll-progress{position:fixed;top:0;left:0;height:2.5px;width:100%;transform:scaleX(0);transform-origin:left;background:var(--text);z-index:3000}
.back-top{
  position:fixed;bottom:24px;left:24px;width:46px;height:46px;border-radius:50%;
  background:var(--card);border:1px solid var(--border);color:var(--text);
  font-size:18px;display:flex;align-items:center;justify-content:center;cursor:pointer;
  opacity:0;visibility:hidden;transform:translateY(12px);
  transition:all .35s cubic-bezier(0.22,1,0.36,1);z-index:900;
  box-shadow:0 8px 24px rgba(0,0,0,0.12);
}
.back-top.show{opacity:1;visibility:visible;transform:none}
.back-top:hover{transform:translateY(-3px)}
body.dark .back-top{box-shadow:0 8px 24px rgba(0,0,0,0.5)}

/* v7.11 Toasts */
.toast-wrap{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:10px;z-index:4000;pointer-events:none}
.toast{
  background:var(--text);color:var(--bg);padding:11px 20px;border-radius:99px;
  font-size:13.5px;font-weight:600;box-shadow:0 12px 32px rgba(0,0,0,0.22);
  opacity:0;transform:translateY(14px);transition:all .35s cubic-bezier(0.22,1,0.36,1);
}
.toast.in{opacity:1;transform:none}

/* v7.12 Cursor spotlight on cards — uses the theme's --glow-color.
   (Stat cells were de-carded into the hairline ledger, so the spotlight now
   belongs to event cards only.) */
.event-card::after{
  content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  opacity:0;transition:opacity .35s;
  background:radial-gradient(220px circle at var(--mx,50%) var(--my,50%),var(--glow-color),transparent 65%);
}
.event-card:hover::after{opacity:1}
/* Cards own a permanent stacking context so the z-index:-1 dot layer always
   sits above the card background. Without this, dots only showed when a hover
   transform created a context — and scroll-revealed cards (.rl-sr-in) keep
   transform:none on hover, so their dots never appeared. */
.event-card{isolation:isolate}
/* Card spotlight dots — revealed only under the cursor, behind the text */
.event-card::before{
  content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;
  opacity:0;transition:opacity .35s;
  background:radial-gradient(var(--dot-color) 1px,transparent 1.5px);
  background-size:16px 16px;
  -webkit-mask-image:radial-gradient(190px circle at var(--mx,50%) var(--my,50%),#000 0%,transparent 68%);
  mask-image:radial-gradient(190px circle at var(--mx,50%) var(--my,50%),#000 0%,transparent 68%);
}
.event-card:hover::before{opacity:1}

/* v7 accessibility — honor reduced-motion for the new animations */
@media (prefers-reduced-motion:reduce){
  .goal-fill::after,.ticker-track,.ticker-label::before,.skel,.stat-pulse{animation:none!important}
  .rl-sr{opacity:1;transform:none;transition:none}
  .title-logo,.hero-h1,.overview,.hero-cta,.hero-cue{animation:none!important;opacity:1!important;transform:none!important;transition:none!important}
  .theme-toggle svg{transition:none}
  *{scroll-behavior:auto!important}
}

/* ── PRESSED STATES — the press itself is acknowledged everywhere (on touch,
   this is the only feedback that exists). Transform-only, instant. ── */
.btn:active,.give-btn:active,.filter-tab:active,.country-chip:active,.share-btn:active,
.cal-btn:active,.back-top:active,.theme-toggle:active,.cal-detail-ev:active,.faq-q:active,
.chapter-bar a:active,.rl-ig-card:active,.mom-block.cal-has:active{
  transform:scale(0.97);transition-duration:.08s;
}
/* ── TOUCH ERGONOMICS — 44px-class hit areas where thumbs do the work ── */
@media (hover:none){
  .cal-btn{width:44px;height:44px}
  .cal-detail-ev{padding:11px 16px}
  .share-btn{padding:11px 8px}
}

/* ── DARK ELEVATION — a hairline of light catching the top edge of raised
   surfaces (invisible in light mode via the transparent token). ── */
.goal-card,.cal-card,.event-card,.give-card,.faq-item,.ticker-wrap,.toast,.kbd-help-panel{
  box-shadow:inset 0 1px 0 var(--edge-light);
}

/* ── Events Calendar (Momentum) — set a date per PDF, see it land here ── */
.cal-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:26px 28px;position:relative;isolation:isolate}
.cal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.cal-title{font-size:13px;font-weight:700;letter-spacing:2.5px;text-transform:uppercase;color:var(--text2)}
.cal-nav{display:flex;align-items:center;gap:10px}
.cal-month{font-family:var(--cinzel);font-size:16px;font-weight:700;letter-spacing:.5px;min-width:158px;text-align:center}
.cal-btn{width:32px;height:32px;border-radius:8px;border:1px solid var(--border);background:var(--bg);color:var(--text);cursor:pointer;font-size:16px;line-height:1;display:flex;align-items:center;justify-content:center;transition:all .25s cubic-bezier(0.22,1,0.36,1)}
.cal-btn:hover{background:var(--hover-bg);border-color:var(--text2)}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;max-width:480px;margin:0 auto}
.cal-dow{font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--text3);text-align:center;padding-bottom:4px;font-family:var(--mono)}
.cal-cell{aspect-ratio:1;border-radius:8px;border:1px solid transparent;display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--text2);font-family:var(--mono);transition:all .25s cubic-bezier(0.22,1,0.36,1)}
.cal-cell.cal-pad{opacity:0}
.cal-cell.cal-today{border-color:var(--border);color:var(--text);font-weight:700}
.cal-cell.cal-has{cursor:pointer;background:var(--text);color:var(--bg);font-weight:700}
.cal-cell.cal-has:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,0.16)}
/* Momentum — 18-month overview; a month block lights up when it holds events */
.mom-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.mom-block{position:relative;border:1px solid var(--border);border-radius:12px;background:var(--bg);color:var(--text2);padding:14px 10px;min-height:74px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;transition:all .3s cubic-bezier(0.22,1,0.36,1)}
.mom-m{font-family:var(--cinzel);font-size:15px;font-weight:700;letter-spacing:.5px;line-height:1}
.mom-y{font-family:var(--mono);font-size:10px;color:var(--text3);letter-spacing:1px}
.mom-block.cal-current{border-color:var(--text2)}
.mom-block.cal-current .mom-m{color:var(--text)}
.mom-block.cal-has{cursor:pointer;background:var(--text);border-color:var(--text);color:var(--bg);box-shadow:0 10px 30px rgba(0,0,0,0.18)}
.mom-block.cal-has .mom-y{color:rgba(255,255,255,0.6)}
body.dark .mom-block.cal-has .mom-y{color:rgba(0,0,0,0.55)}
.mom-block.cal-has:hover{transform:translateY(-3px);box-shadow:0 16px 42px rgba(0,0,0,0.26)}
.mom-n{position:absolute;top:7px;right:8px;font-family:var(--mono);font-size:10px;font-weight:700;background:var(--bg);color:var(--text);border-radius:99px;min-width:16px;height:16px;display:flex;align-items:center;justify-content:center;padding:0 4px}
.cal-detail{margin-top:16px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:center}
.cal-detail:empty{display:none}
.cal-detail-day{font-family:var(--mono);font-size:11px;color:var(--text3);letter-spacing:.5px;margin-right:2px}
.cal-detail-ev{background:var(--bg);border:1px solid var(--border);color:var(--text);border-radius:99px;padding:7px 14px;font-size:12.5px;font-weight:600;cursor:pointer;transition:all .25s cubic-bezier(0.22,1,0.36,1);font-family:var(--font)}
.cal-detail-ev:hover{background:var(--text);color:var(--bg);border-color:var(--text)}
/* Admin-only Manage Events panel — its own .admin-section card, shown on sign-in */
.manage-section{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:32px;margin-bottom:60px}
.manage-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--border);flex-wrap:wrap}
.manage-row:last-child{border-bottom:none}
.manage-name{flex:1;min-width:170px;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);padding:9px 12px;font-size:14px;font-family:var(--font)}
.manage-name:focus{outline:none;border-color:var(--text)}
.manage-date{border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);padding:8px 10px;font-family:var(--mono);font-size:12.5px;cursor:pointer;color-scheme:light}
body.dark .manage-date{color-scheme:dark}
.manage-date:focus{outline:none;border-color:var(--text)}
.manage-empty{font-size:14px;color:var(--text3);padding:8px 0}
/* Impact-numbers editor (admin) — reuses the manage-row/manage-name furniture */
.admin-only{display:none}
body.admin .admin-only{display:inline-flex}
/* "Edit numbers" button sits under the chapter title, centred with it */
.stat-edit-btn{margin-top:16px;align-items:center;justify-content:center;font-size:12px;
  letter-spacing:.06em;text-transform:uppercase;padding:8px 16px}
.stat-edit-lbl{flex:0 0 140px;font-size:13.5px;color:var(--text2);font-family:var(--font)}
.stat-edit-hint{font-size:12.5px;color:var(--text2);flex-basis:100%;margin-top:14px;line-height:1.55}
.stat-edit-hint code{font-family:var(--mono);font-size:11.5px;background:var(--bg);border:1px solid var(--border);border-radius:4px;padding:1px 5px}
.stat-edit-code{font-family:var(--mono);font-size:12px;line-height:1.6;background:var(--bg);border:1px solid var(--border);
  border-radius:8px;padding:14px 16px;margin-top:10px;overflow-x:auto;white-space:pre;user-select:all;color:var(--text)}
.manage-row.stat-edit-actions{justify-content:flex-end;gap:10px;border-bottom:none;padding-top:18px}
@media(max-width:560px){.stat-edit-lbl{flex-basis:100%}}
.cal-empty{font-size:12.5px;color:var(--text3);padding:6px 0}
@media(max-width:768px){.cal-card{padding:22px 18px}.cal-cell{font-size:12px}.mom-grid{grid-template-columns:repeat(4,1fr);gap:8px}.mom-block{min-height:64px;padding:10px 6px}.mom-m{font-size:13px}}
@media(max-width:430px){.mom-grid{grid-template-columns:repeat(3,1fr)}}
/* ── CH.05 globe (14 Oct 2026; live GDACS alerts 15 Oct 2026) ─────────────────
   Current Orange and Red disaster alerts from GDACS (Global Disaster Awareness and
   Coordination System) on a cobe WebGL globe: places where help is needed, not Rising
   Light projects. The stage keeps its square from the first paint (aspect-ratio + a
   hairline circle where the sphere will sit: 0.8 × the stage), so the lazy-loaded globe
   shifts nothing — and if the globe can't run, the square is only removed while it is
   wholly below the screen. The alert column holds four rows' room (and, below 960px, the
   "Show all" toggle's) while the file loads (.glb-res), so the alerts arriving move little
   or nothing below it; room they leave unused is a hairline frame, never a bare gap.
   touch-action:pan-y pinch-zoom sits on the sphere's circle (.glb-hit) and the pins
   only — a vertical swipe still scrolls the page and a pinch still zooms it; only
   sideways drags that start on the sphere reach the globe, and the empty corners of
   the square are ordinary page. The pin buttons are moved by transform from the one
   animation-frame callback (no layout per frame).
   Urgency is monochrome (Joe, 15 Oct 2026): a Red alert is the larger dot with a slow
   pulse ring, an Orange alert the original dot with a plain ring, and the words
   "Red alert" / "Orange alert" are always written in the list and the card.
   Inline card = border, no shadow. Monochrome: ink, paper, the existing greys. ── */
.rl-globe{max-width:1040px;margin-left:auto;margin-right:auto}
.glb-wrap{display:grid;gap:24px;align-items:center}
/* two columns: the list is top-aligned level with the sphere's top edge (10% of the 520px stage),
   so choosing an alert grows the card downward and nothing moves under the pointer */
@media(min-width:960px){
  .glb-wrap{grid-template-columns:minmax(0,520px) minmax(0,1fr);gap:56px;align-items:start}
  .glb-side{padding-top:52px}
}
.glb-stage{
  position:relative;width:100%;max-width:520px;margin:0 auto;aspect-ratio:1/1;
  -webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;
}
.glb-stage.glb-live{cursor:grab}
.glb-stage.glb-grab{cursor:grabbing}
.glb-stage::before{ /* quiet placeholder: the sphere's outline until the globe draws */
  content:'';position:absolute;inset:10%;border:1px solid var(--border);border-radius:50%;
  pointer-events:none;transition:opacity .6s cubic-bezier(.22,1,.36,1);
}
.glb-stage.glb-live::before{opacity:0}
.glb-stage canvas{display:block;width:100%;height:100%}
/* the touch target: the sphere's circle, above cobe's canvas wrapper and under the pins */
.glb-hit{position:absolute;inset:10%;z-index:1;border-radius:50%;touch-action:pan-y pinch-zoom}
.glb-pins{position:absolute;inset:0;z-index:2;pointer-events:none}
/* the instrument frame (18 Oct 2026): corner brackets, a centre crosshair, the view-centre readout and a
   compass in the Reach map's style. Static CSS on one layer above cobe's canvas and under the pins
   (z-index 1 after .glb-hit; pointer-events none, so it never takes a pin's or the sphere's input).
   Only the readout's text changes, from the animation-frame callback, at most ~10 times a second, in
   fixed-width boxes (no layout shift). Hidden with the rest of the stage under glb-hold / glb-nogl */
.glb-hud{position:absolute;inset:0;z-index:1;pointer-events:none}
.glb-hud-c{position:absolute;width:18px;height:18px;border:0 solid var(--text3)}
.glb-hud-tl{top:0;left:0;border-top-width:1px;border-left-width:1px}
.glb-hud-tr{top:0;right:0;border-top-width:1px;border-right-width:1px}
.glb-hud-bl{bottom:0;left:0;border-bottom-width:1px;border-left-width:1px}
.glb-hud-br{bottom:0;right:0;border-bottom-width:1px;border-right-width:1px}
/* crosshair: four 12px ticks around a 48px gap, so a chosen pin (ring 36px at most, hit area 44px) sits
   clear inside it; each pair of ticks is one 1px line drawn by its two side borders (no gradient) */
.glb-hud-x{position:absolute;left:50%;top:50%;width:72px;height:72px;margin:-36px 0 0 -36px}
.glb-hud-x::before,.glb-hud-x::after{content:'';position:absolute;box-sizing:border-box;border:0 solid var(--text3)}
.glb-hud-x::before{left:0;top:36px;width:72px;height:1px;border-left-width:12px;border-right-width:12px}
.glb-hud-x::after{top:0;left:36px;width:1px;height:72px;border-top-width:12px;border-bottom-width:12px}
/* the readout sits on a --bg chip (the map labels' halo trick), so it stays AA if the zoomed sphere's
   edge passes under it; mono, right-aligned in fixed boxes: 7 and 8 characters ("90.0° N", "180.0° W") */
.glb-hud-read{
  position:absolute;top:12px;left:12px;padding:2px 6px;border-radius:4px;background:var(--bg);
  font-family:var(--mono);line-height:1.6;white-space:nowrap;
  opacity:0;transition:opacity .6s cubic-bezier(.22,1,.36,1);
}
.glb-stage.glb-live .glb-hud-read{opacity:1}
.glb-hud-k{display:block;font-size:10px;font-weight:500;letter-spacing:1.5px;text-transform:uppercase;color:var(--text3)}
.glb-hud-v{display:block;font-size:10.5px;font-weight:500;letter-spacing:.8px;color:var(--text);font-variant-numeric:tabular-nums}
/* contain:strict makes each box its own layout root, so a rewrite lays out that box alone (2 objects,
   partial) instead of the whole page (12, full); the explicit height (the 1.6 line) and top alignment
   keep every rect where it was (a contained box has no baseline) */
.glb-hud-lat,.glb-hud-lng{display:inline-block;text-align:right;contain:strict;height:1.6em;vertical-align:top}
.glb-hud-lat{width:calc(7 * (1ch + .8px))}
.glb-hud-lng{width:calc(8 * (1ch + .8px))}
.glb-hud-sep{margin:0 4px;color:var(--text3)}
.glb-hud-compass{position:absolute;left:12px;bottom:12px;width:34px;height:48px;overflow:visible;opacity:.75}
.glb-hud-compass line,.glb-hud-compass circle{stroke:var(--text);fill:none}
.glb-hud-compass .mc-dot{fill:var(--text);stroke:none}
.glb-hud-compass text{fill:var(--text);font-family:var(--mono);font-size:9px;font-weight:600}
/* phones: smaller brackets; the readout drops its label and stacks latitude over longitude so it
   stays outside the resting sphere on a 284px stage (320 phones) */
@media(max-width:480px){
  .glb-hud-c{width:14px;height:14px}
  .glb-hud-read{top:8px;left:8px}
  .glb-hud-k,.glb-hud-sep{display:none}
  .glb-hud-lat,.glb-hud-lng{display:block;width:calc(8 * (1ch + .8px))} /* one width, so N/S sits over E/W */
  .glb-hud-compass{left:8px;bottom:8px}
}
.glb-pin{
  position:absolute;left:0;top:0;width:44px;height:44px;margin:-22px 0 0 -22px;padding:0;
  border:0;border-radius:50%;background:none;color:var(--text);cursor:pointer;touch-action:pan-y pinch-zoom;
  pointer-events:auto;opacity:0;will-change:transform,opacity;-webkit-tap-highlight-color:transparent;
}
.glb-pin.glb-off{pointer-events:none}
/* Orange alert: the original 8px dot + its 20px hairline ring */
.glb-pin-dot{position:absolute;left:50%;top:50%;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:currentColor}
.glb-pin-dot::after{ /* hairline ring, solid when selected */
  content:'';position:absolute;inset:-6px;border-radius:50%;border:1px solid currentColor;opacity:.4;
  transition:opacity .2s cubic-bezier(.22,1,.36,1),transform .2s cubic-bezier(.22,1,.36,1);
}
.glb-pin[aria-pressed="true"] .glb-pin-dot::after{opacity:1;transform:scale(1.35)}
/* Red alert: a 12px dot (24px ring) and a second ring that pulses outward every 2.4s —
   transform + opacity only, so it runs on the compositor. It pauses while the stage is off
   screen (no .glb-on), while keyboard focus is in the chapter (.glb-focus) and on the far
   side (.glb-off); it stops for good once the visitor turns the globe or chooses an alert
   (.glb-calm, the idle spin's WCAG 2.2.2 rule) and never runs under reduced motion. When
   stopped it stays as a still second ring, so Red still reads as Red */
.glb-pin.glb-red{z-index:1}
.glb-red .glb-pin-dot{width:12px;height:12px;margin:-6px 0 0 -6px}
.glb-red .glb-pin-dot::before{
  content:'';position:absolute;inset:-6px;border-radius:50%;border:1px solid currentColor;
  opacity:0;animation:glbPulse 2.4s cubic-bezier(.22,1,.36,1) infinite;pointer-events:none;
}
@keyframes glbPulse{from{opacity:.6;transform:scale(1)}to{opacity:0;transform:scale(2)}}
.glb-stage:not(.glb-on) .glb-red .glb-pin-dot::before,
.rl-globe.glb-focus .glb-red .glb-pin-dot::before,
.glb-pin.glb-off .glb-pin-dot::before{animation-play-state:paused}
.glb-stage.glb-calm .glb-red .glb-pin-dot::before{animation:none;opacity:.4;transform:scale(1.5)}
.glb-pin[aria-pressed="true"]{z-index:2}
/* the chip itself is the Reach map's .map-node-tag (shared rule); only the differences here.
   Capped at 200px so a long name can never run far past the stage */
.glb-pin-tag{
  margin-top:-6px;text-transform:uppercase;max-width:200px;overflow:hidden;text-overflow:ellipsis;
  opacity:0;transition:opacity .2s cubic-bezier(.22,1,.36,1);pointer-events:none;
}
.glb-red .glb-pin-tag{margin-top:-2px}
.glb-pin[aria-pressed="true"] .glb-pin-tag{opacity:1}
@media(hover:hover){
  .glb-pin:hover{z-index:3}
  .glb-pin:hover .glb-pin-dot::after,.glb-pin:hover .glb-pin-tag{opacity:1}
  .glb-item:hover{border-color:var(--text)}
}
.glb-pin.glb-dim .glb-pin-tag{opacity:0} /* a pin faded under 60% would composite its label below AA 4.5:1 (light < .58, dark < .47) */
.glb-side{display:flex;flex-direction:column;gap:20px;width:100%;max-width:520px;margin:0 auto;min-width:0}
/* one line above the list: loading / how many / none / unavailable (role=status, polite) */
.glb-status{margin:0;font-size:14px;line-height:1.6;color:var(--text2)}
.glb-status a,.glb-credit a{color:var(--text);text-decoration:underline;text-underline-offset:2px}
.glb-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* the feed status strip (18 Oct 2026), above the status line: feed state, source, when the DATA last
   changed (the snapshot's generatedAt, UK time), the check cadence and the counts by level beside the
   pins' own marks (it is also the legend). aria-hidden: the status line and the credit carry the same facts as
   text. Every cell is one line and the line count depends only on the strip's width (container
   queries), never on the data, so loading -> ready moves nothing: 3 lines by default, 2 from 460px
   (needs 440 at worst), 4 under 324px (where cadence + counts no longer fit one line) */
.glb-bar{container-type:inline-size;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:10px 0}
.glb-bar-in{
  display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"feed feed" "upd upd" "cad count";
  column-gap:12px;row-gap:2px;font-family:var(--mono);font-size:10px;font-weight:500;letter-spacing:1.2px;
  line-height:1.6;text-transform:uppercase;color:var(--text3);font-variant-numeric:tabular-nums;
}
.glb-bar-feed{grid-area:feed;display:flex;align-items:center;min-width:0;white-space:nowrap}
.glb-bar-dot{flex:0 0 6px;height:6px;margin-right:8px;border:1px solid var(--text);border-radius:50%;box-sizing:border-box}
.glb-bar.glb-bar-ok .glb-bar-dot{background:var(--text)} /* filled = active; hollow = loading, unavailable or out of date. Never pulses */
.glb-bar-state{min-width:0;overflow:hidden;text-overflow:ellipsis;font-weight:600;color:var(--text)}
.glb-bar-src{flex:none}
.glb-bar-state::before{content:'·';content:'·' / '';margin:0 6px;font-weight:500;color:var(--text3)}
.glb-bar-upd{grid-area:upd;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text2)}
.glb-bar-cad{grid-area:cad;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.glb-bar-count{grid-area:count;display:flex;justify-content:flex-end;gap:8px;white-space:nowrap}
.glb-bar-n{display:inline-flex;align-items:center;gap:5px}
/* the legend marks are the globe's pins at half size, drawn still (review, 18 Oct 2026: the list's marks
   showed Orange with no ring, but on the globe both levels have one). Orange: 4px dot + 10px ring at the
   pin's 40%; Red: 6px dot + 12px ring + the second ring a calm Red pin rests at (18px, the outline), both
   40%. One 18px box each, so the outer ring never hangs past the strip's edge (the strip keeps its height) */
.glb-bar-pin{position:relative;flex:0 0 18px;height:16px}
.glb-bar-pin::before,.glb-bar-pin::after{content:'';position:absolute;left:50%;top:50%;box-sizing:border-box;border-radius:50%}
.glb-bar-pin::before{width:4px;height:4px;margin:-2px 0 0 -2px;background:var(--text)}
.glb-bar-pin::after{width:10px;height:10px;margin:-5px 0 0 -5px;border:1px solid var(--text);opacity:.4}
.glb-red .glb-bar-pin::before{width:6px;height:6px;margin:-3px 0 0 -3px}
.glb-red .glb-bar-pin::after{width:12px;height:12px;margin:-6px 0 0 -6px;outline:1px solid var(--text);outline-offset:2px}
.glb-bar-v{font-weight:600;color:var(--text)}
@container (min-width:460px){
  .glb-bar-in{grid-template-areas:"feed count" "upd cad";letter-spacing:1.5px}
  .glb-bar-cad{text-align:right}
}
@container (max-width:323.98px){ /* measured: cadence + counts need 321.2px ("Red 01  Orange 03": counts are always two digits) */
  .glb-bar-in{grid-template-columns:minmax(0,1fr);grid-template-areas:"feed" "upd" "cad" "count"}
  .glb-bar-count{justify-content:flex-start}
}
.glb-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.glb-list>li{min-width:0}
.glb-list:empty{display:none}
/* the loading room (.glb-res on the column, from the first paint): the list keeps four rows (4 × 89px
   rows + 3 × 8px gaps; the usual count, and the rows phones show before "Show all") and, below 960px,
   the toggle's row too (its 20px gap + 44px, held invisibly), so alerts arriving while the column is on
   screen move nothing below them. The room goes once the column is below the screen (_glbSetState /
   the side observer), where shrinking it moves nothing in view. While it is held, room the alerts do
   not fill is never a bare gap: fewer than four alerts (.glb-few; below 960px four or fewer, .glb-fit,
   as there is no toggle then and its room joins the list's) leave a hairline frame under them that
   says there are no others (alt text '': the status line already gives the count), and none at all
   (empty or error, .glb-void) turn the status line itself into a hairline frame the size of the
   room, its message centred */
.glb-res .glb-list{display:flex;flex-direction:column;min-height:calc(4 * var(--glb-row,89px) + 3 * 8px)}
.glb-res .glb-list.glb-few::after,.glb-res .glb-list.glb-fit::after{
  content:'No other current alerts';content:'No other current alerts' / '';
  flex:1 1 0;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:0 16px;
  border:1px dashed var(--border);border-radius:12px;font-size:13px;line-height:1.55;color:var(--text3);text-align:center;
} /* dashed: an empty slot, not one more (solid-bordered, pressable) alert */
@media(min-width:960px){.glb-res .glb-list.glb-fit:not(.glb-few)::after{content:none}} /* four fill the room there */
/* the slot only takes room the rows leave (flex-basis 0, no padding), so it never pushes anything down.
   --glb-row is the row height every room rule assumes: under 375px titles wrap (rows measured
   105-126px, not 89), so there every variant (list, no-toggle fit, empty/error frame) is sized for 126 */
@media(max-width:374px){.rl-globe{--glb-row:126px}}
.glb-item{
  display:flex;align-items:flex-start;gap:12px;width:100%;min-width:0;min-height:44px;padding:14px 16px;
  font:inherit;text-align:left;color:var(--text);background:var(--bg);
  border:1px solid var(--border);border-radius:12px;cursor:pointer;-webkit-tap-highlight-color:transparent;
  transition:background-color .25s cubic-bezier(.22,1,.36,1),border-color .25s cubic-bezier(.22,1,.36,1),color .25s cubic-bezier(.22,1,.36,1);
}
.glb-item[aria-pressed="true"]{background:var(--text);border-color:var(--text);color:var(--bg)}
.glb-item:active{transform:scale(0.97);transition-duration:.08s}
/* the list mark mirrors the pin: 8px dot for Orange, 12px dot inside a hairline ring for Red */
.glb-item-mark{flex:0 0 12px;height:16px;display:flex;align-items:center;justify-content:center}
.glb-item-mark::before{content:'';width:8px;height:8px;border-radius:50%;background:currentColor}
.glb-red .glb-item-mark::before{width:12px;height:12px;outline:1px solid currentColor;outline-offset:2px}
/* main column: the kicker and the date share the first line (date right), so the title and the type /
   country line below get the row's full width (18 Oct 2026; the date stays last in reading order) */
.glb-item-main{flex:1 1 auto;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
.glb-item-kicker,.glb-item-date{
  font-family:var(--mono);font-size:10px;font-weight:500;letter-spacing:1.5px;text-transform:uppercase;
  line-height:1.6;color:var(--text3);
}
.glb-item-kicker{display:block;min-width:0}
/* "Orange alert" never breaks in two on narrow phones (the type now sits on the third line), and the
   tracking tightens to the 1.2px the map chips use at phone widths */
.glb-item-alert{white-space:nowrap}
@media(max-width:430px){.glb-item-kicker,.glb-item-date{letter-spacing:1.2px}}
.glb-red .glb-item-alert{font-weight:600;color:var(--text)}
/* indexed list (18 Oct 2026): the kicker reads "01/04 · Orange alert" (the index is aria-hidden: the list
   itself gives "1 of 4"); the third line names the type as its short code beside its full name, then the
   country: "TC · Tropical cyclone · Guam". The code is aria-hidden (the full name follows). Every row is
   now three lines, so rows are 89 tall wherever the title fits one line */
.glb-item-ix{font-variant-numeric:tabular-nums}
.glb-item-alert::before{content:'·';content:'·' / '';margin:0 6px;font-weight:500;color:var(--text3)}
.glb-item-code{font-family:var(--mono);font-size:10px;font-weight:600;letter-spacing:1.2px;color:var(--text)}
.glb-item-code+.glb-item-type::before,.glb-item-country::before{content:'·';content:'·' / '';margin:0 6px}
.glb-item-date{grid-row:1;grid-column:2;white-space:nowrap}
.glb-item-name,.glb-item-where{grid-column:1 / -1}
/* overflow-wrap here and on the card text: a word with no spaces (odd or hostile data) wraps inside
   its border instead of spilling past it */
.glb-item-name{display:block;margin-top:2px;font-size:15px;font-weight:600;line-height:1.4;color:var(--text);overflow-wrap:anywhere}
.glb-item-where{display:block;font-size:13px;line-height:1.55;color:var(--text2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.glb-item[aria-pressed="true"] .glb-item-kicker,.glb-item[aria-pressed="true"] .glb-item-alert,
.glb-item[aria-pressed="true"] .glb-item-date,.glb-item[aria-pressed="true"] .glb-item-name,
.glb-item[aria-pressed="true"] .glb-item-where,.glb-item[aria-pressed="true"] .glb-item-code,
.glb-item[aria-pressed="true"] .glb-item-alert::before{color:inherit}
/* "Show all N alerts": phones and tablets only (the list is clipped to four there, no inner scroller).
   scroll-margin-bottom: an alert that takes focus (the first one "Show all" reveals) clears the phone
   chapter bar — the bar's room (html scroll-padding-bottom) plus 16px for the focus ring */
.glb-more{align-self:flex-start;font-weight:600;min-height:44px}
.glb-more[hidden]{display:none}
@media(max-width:959px){
  .glb-list.glb-clip>li:nth-child(n+5){display:none}
  .glb-res .glb-more[hidden]{display:inline-block;visibility:hidden} /* the toggle's room, while the room is held */
  .glb-res .glb-list.glb-fit{min-height:calc(4 * var(--glb-row,89px) + 3 * 8px + 20px + 44px)} /* no toggle: its room joins the frame */
  .glb-res .glb-list.glb-fit+.glb-more[hidden]{display:none}
}
@media(max-width:768px){.glb-item{scroll-margin-bottom:16px}}
/* no alerts while the room is held: list and toggle step out and the status line takes their room
   exactly (its own line + 20px gap + the list's four rows [+ 20px gap + the 44px toggle]) */
.glb-res.glb-void .glb-list,.glb-res.glb-void .glb-more[hidden]{display:none}
.glb-res.glb-void .glb-status{
  display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;
  min-height:calc(14px * 1.6 + 20px + 4 * var(--glb-row,89px) + 3 * 8px);border:1px solid var(--border);border-radius:12px;
}
.glb-res.glb-void .glb-status>span{max-width:36ch}
@media(max-width:959px){.glb-res.glb-void .glb-status{min-height:calc(14px * 1.6 + 20px + 4 * var(--glb-row,89px) + 3 * 8px + 20px + 44px)}}
/* desktop: the whole list in the column; a long one scrolls inside it (the browser's normal
   scroll chaining is kept, so a wheel at either end moves the page on). The 4px padding,
   taken back by the margin, keeps the focus ring clear of the scroller's edge */
@media(min-width:960px){
  .glb-list{max-height:400px;overflow-y:auto;padding:4px;margin:-4px}
  .glb-res .glb-list{min-height:calc(4 * var(--glb-row,89px) + 3 * 8px + 8px)} /* + the 4px padding, top and bottom */
  .glb-more{display:none}
}
/* the card: title, type · alert · country, dates · severity, what the level means, source line, report link */
.glb-card{min-width:0}
.glb-card:empty{margin-top:-20px} /* no card yet: take back the column's gap so the credit sits under the list */
.glb-card.on{background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:16px 18px;text-align:left}
.glb-card-title{font-family:var(--cinzel);font-size:22px;font-weight:600;letter-spacing:1px;line-height:1.25;color:var(--text);overflow-wrap:anywhere}
/* the data sheet (18 Oct 2026): aligned mono label / value rows between hairlines. Both columns share an
   18px line so the 10px labels and 11px values sit on (near) one baseline; long values wrap in place */
.glb-spec{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:16px;margin:12px 0 0;border-top:1px solid var(--border)}
.glb-spec dt,.glb-spec dd{margin:0;padding:6px 0;border-bottom:1px solid var(--border);font-family:var(--mono);line-height:18px}
.glb-spec dt{font-size:10px;font-weight:500;letter-spacing:1.5px;text-transform:uppercase;color:var(--text3);white-space:nowrap}
.glb-spec dd{font-size:11px;font-weight:400;letter-spacing:.5px;color:var(--text);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.glb-card-body{font-size:14px;line-height:1.6;color:var(--text2);margin:12px 0;overflow-wrap:anywhere}
.glb-card-note{font-size:12.5px;line-height:1.6;color:var(--text3);margin:0 0 14px}
/* the shared .map-card-link asks for Mono 700, which is not loaded: 600 here (pack 3.1) */
.glb-card .map-card-link{font-weight:600;display:inline-flex;align-items:center;gap:6px;text-decoration:none}
/* the source credit under the list (GDACS terms: credit, "filtered and simplified", official authorities) */
.glb-credit{margin:0;font-size:12.5px;line-height:1.6;color:var(--text3)}
/* the "Updated" stamp has its own line, held from the first paint, so it arrives without moving anything */
.glb-updated{display:block;min-height:1.6em}
/* touch: the card's report link gets the house 44px thumb target (TOUCH ERGONOMICS);
   scoped to this card, so the Reach map's floating card is unchanged */
@media(hover:none){.glb-card .map-card-link{min-height:44px}}
/* no WebGL (or the module failed to load). glb-nogl: the stage was wholly below the screen, so it is
   removed and the list + card carry the chapter alone. glb-hold: a reader may have seen the stage,
   so its square stays, showing only the hairline circle (a placeholder, not a blank gap), and nothing
   on the page moves. */
.rl-globe.glb-nogl .glb-stage{display:none}
.rl-globe.glb-nogl .glb-wrap{grid-template-columns:minmax(0,520px);justify-content:center}
.rl-globe.glb-nogl .glb-side{padding-top:0}
.rl-globe.glb-hold .glb-stage{cursor:auto}
.rl-globe.glb-hold .glb-stage>*{visibility:hidden}
.rl-globe.glb-hold .glb-stage::before{opacity:1}
@media(prefers-reduced-motion:reduce){
  .glb-stage::before,.glb-pin-dot::after,.glb-pin-tag,.glb-item,.glb-hud-read{transition:none}
  .glb-red .glb-pin-dot::before{animation:none;opacity:.4;transform:scale(1.5)}
}
@media print{.glb-stage{display:none}}

/* ── Live-site fixes found by the Design Pack (15 Oct 2026) ───────────────────
   Each rule below restates one that an earlier, weaker-placed rule meant to set.
   1. Footer closing line: no .75 fade. 9px --text3 at .75 measured 3.17:1 light /
      3.30:1 dark (under AA 4.5:1); solid --text3 clears it in both themes.
   2. Phones (<=768): the chapter bar replaces back-to-top. The rule in the 768px
      block lost to the later base .back-top{display:flex}, so the button sat on
      top of the chapter bar.
   3. Touch: 44px calendar arrows and roomier event chips. The (hover:none) rule
      lost to the later base .cal-btn / .cal-detail-ev rules (measured 32x32). */
.credits-end{opacity:1}
@media(max-width:768px){.back-top{display:none}}
@media (hover:none){
  .cal-btn{width:44px;height:44px}
  .cal-detail-ev{padding:11px 16px}
}
@media (hover:none) and (max-width:340px){ /* 44px arrows + the widest month ("September 2027", 139px) fit a 320px phone */
  .cal-nav{gap:6px}
  .cal-month{min-width:140px}
}
/* ── block 2: phone layout + overflow (was inside the events band) ── */
  /* Clip sideways overflow WITHOUT making the document a scroll container:
     overflow-x:hidden turns html/body into a scroller, which on iOS fails to
     repaint isolated/overflow cards (calendar, goal) during momentum scroll —
     content visibly clips. overflow-x:clip avoids that; hidden is the fallback. */
  html,body{overflow-x:hidden;overflow-x:clip;max-width:100%}
  html{-webkit-text-size-adjust:100%}
  .give-section{max-width:900px;margin:0 auto 80px;padding:0 4px}
  .give-grid{display:grid;grid-template-columns:1fr;gap:20px;max-width:560px;margin:0 auto} /* single column: Volunteer card stacks above Contact Us */
  .give-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:26px;display:flex;flex-direction:column;gap:12px}
  .give-card-title{font-family:var(--cinzel);font-size:18px;font-weight:700;letter-spacing:.5px;margin:0 0 4px}
  .give-field{display:flex;flex-direction:column;gap:6px}
  .give-field>span{font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--text2)}
  .give-field input,.give-field textarea{width:100%;padding:12px 14px;border:1.5px solid var(--text3);border-radius:10px;font-size:16px;font-family:var(--font);background:var(--bg);color:var(--text);outline:none;transition:border-color .2s;resize:vertical}
  .give-field input:focus,.give-field textarea:focus{border-color:var(--text)}
  .give-btn{margin-top:6px;background:var(--text);color:var(--bg);border:none;border-radius:10px;padding:13px;font-size:13px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;cursor:pointer;font-family:var(--font);transition:transform .2s,opacity .2s;-webkit-tap-highlight-color:transparent}
  .give-btn:disabled{opacity:.55;cursor:default}
  /* spam honeypot — invisible to people, tempting to bots */
  .give-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}
  .give-btn:hover{transform:translateY(-2px);background:var(--accent-hover)}

  /* ── Mobile scale-down: smaller UI + visuals = more breathing room on iOS ──
     Sits after the main stylesheet, so these win on equal specificity.
     Trims the hero, stats, map and cards a notch and widens side gutters,
     leaving more empty space around everything on a phone screen. */
  @media(max-width:768px){
    :root{--gap-major:64px;--gap-minor:20px}      /* tighter chapter rhythm on phones */
    .container{padding:24px 20px 32px}            /* airier side gutters, shorter top */

    /* Hero flows from the TOP on a phone — the same top-down load as desktop.
       (Was a forced 100svh centre-frame + a scroll cue desktop never had, which
       is what made mobile "load differently"; both are gone now.) */
    .header{margin-bottom:52px}
    .header::before{background-size:34px 34px}    /* keep the grid's density at phone scale */
    .title-logo{max-width:78px;margin-bottom:22px}
    /* Fluid scale with real slack: the longest LINE ("Has No Borders") clears
       the box on every phone (320–480), even before Cinzel-700 swaps in. */
    .hero-h1{font-size:clamp(26px,7.5vw,38px);letter-spacing:0}
    .hero-cue{display:none}   /* desktop has no scroll cue — match it exactly */

    .stat-card{padding:14px 8px 10px}
    .stat-number{font-size:26px}
    .stat-label{font-size:9.5px;letter-spacing:1.5px}
    .stat-ix{font-size:9px;letter-spacing:2px;margin-bottom:10px}

    .upload-header h2{font-size:20px}

    .events-grid{gap:16px;margin-bottom:52px}
    .event-card{padding:20px}
    .event-name{font-size:16px}
    .event-meta{font-size:13px}

    .map-section{padding:0 10px 4px}

    .give-grid{gap:16px}
    .give-card{padding:20px}

    .upload-section{padding:22px;margin-bottom:44px}
    .footer{margin-top:52px;padding:30px 20px 26px}
  }
  @media(max-width:480px){
    .container{padding:20px 18px 26px}
    .title-logo{max-width:70px}
    .stat-number{font-size:24px}
    .event-card,.give-card{padding:18px}
  }
/* ── block 3 (was inside the events band) ── */
  .faq-section{max-width:760px;margin:0 auto 80px;padding:0 4px}
  .faq-list{display:flex;flex-direction:column;gap:12px}
  .faq-item{border:1px solid var(--border);border-radius:14px;background:var(--card);overflow:hidden;transition:border-color .25s ease}
  .faq-item[open]{border-color:var(--accent-2)}
  /* answer settles into place (box still snaps open natively — no height hacks) */
  .faq-item[open] .faq-a{animation:faqIn .35s cubic-bezier(.22,1,.36,1) both}
  @keyframes faqIn{from{opacity:0;transform:translateY(-6px)}}
  @media (prefers-reduced-motion:reduce){.faq-item[open] .faq-a{animation:none}}
  .faq-q{list-style:none;cursor:pointer;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-weight:600;font-size:16px;color:var(--text)}
  .faq-q::-webkit-details-marker{display:none}
  .faq-q:focus-visible{outline-offset:-3px} /* inside the clipped card, so the ring shows (a11y audit 28 Oct 2026) */
  .rl-vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0} /* visually hidden; NOT .rl-sr, which is the scroll-reveal class */
  .rl-ig-li{display:contents}
  .faq-q:hover{background:var(--hover-bg)}
  .faq-ico{flex:0 0 auto;width:22px;height:22px;position:relative}
  .faq-ico::before,.faq-ico::after{content:"";position:absolute;background:var(--text2);border-radius:2px}
  .faq-ico::before{top:10px;left:3px;right:3px;height:2px}
  .faq-ico::after{left:10px;top:3px;bottom:3px;width:2px;transition:transform .3s cubic-bezier(.22,1,.36,1)}
  .faq-item[open] .faq-ico::after{transform:scaleY(0)}
  .faq-a{padding:2px 22px 20px;color:var(--text2);font-size:15px;line-height:1.7}
  .faq-a a{color:var(--text);text-decoration:underline;text-underline-offset:2px}
  @media(max-width:600px){.faq-section{margin-bottom:52px}.faq-q{padding:16px 18px;font-size:15px}.faq-a{padding:2px 18px 18px}}
/* ── block 4: Quiet Battles (was inside CH.06) ── */
  /* ── CH.06 Quiet Battles ─────────────────────────────────────────────────
     Scoped to .qb so nothing here can leak into the aid chapters. The crisis
     panel is the site's standard card surface (--card / --border / 16px, the
     same as .event-card) so it reads as part of the site rather than a slab
     dropped into it. No accent colour inside it on purpose — the numbers do
     the work, and green on grey buys nothing.
     ⚠️ The one contrast trap: the global light --text3 (#706C5E) is tuned for
     PAPER, and drops under AA on the grey card. The small uppercase hours line
     therefore uses a local --qb-muted, darkened the same way .ch-band darkens
     text3. Do not "simplify" it back to var(--text3). */
  /* the branch wordmark: the section title set as the Quiet Battles text
     lockup — uppercase Cinzel over a tracked mono credit line, matching the
     identity sheet. The sub's colours are the AA-safe pair the crisis panel
     already uses, NOT --text3 (paper-tuned, too thin at 10.5px). */
  .qb .qb-lockup{
    text-transform:uppercase;font-weight:700;
    font-size:clamp(30px,4.6vw,42px);letter-spacing:.09em;
    display:flex;flex-direction:column;align-items:center;gap:9px;
    line-height:1.15;
  }
  .qb .qb-lockup-sub{
    font-family:var(--mono);font-size:10.5px;font-weight:600;
    letter-spacing:.26em;text-transform:uppercase;color:#5F5C4C;
  }
  body.dark .qb .qb-lockup-sub{color:#A8A496}
  .qb .qb-lede{
    max-width:660px;margin:0 auto;padding:0 4px;text-align:center;
    font-size:clamp(16px,1.7vw,18px);line-height:1.75;color:var(--text-dim);
  }
  .qb .qb-scope{
    display:grid;grid-template-columns:1fr 1fr;gap:20px 34px;
    max-width:660px;margin:34px auto 0;padding:0 4px;
  }
  .qb .qb-col-head{
    font-family:var(--mono);font-size:11px;font-weight:600;
    letter-spacing:2px;text-transform:uppercase;color:var(--text3);
    padding-bottom:9px;border-bottom:1px solid var(--border);margin-bottom:12px;
  }
  .qb .qb-col-head.qb-yes{color:var(--accent-2);border-bottom-color:var(--accent-2)}
  .qb .qb-list{list-style:none;margin:0;padding:0;display:grid;gap:7px}
  .qb .qb-list li{font-size:15px;line-height:1.55;color:var(--text-dim)}
  .qb .qb-list-no li{color:var(--text3)}
  .qb .qb-note{
    max-width:660px;margin:26px auto 0;padding:0 4px;text-align:center;
    font-size:14.5px;line-height:1.7;color:var(--text2);
  }
  /* the crisis panel — the site's own card surface */
  .qb .qb-crisis{
    --qb-muted:#5F5C4C;
    max-width:660px;margin:38px auto 0;
    background:var(--card);color:var(--text);
    border:1px solid var(--border);
    border-radius:16px;padding:26px 26px 22px;
  }
  /* dark uses the --text2 bone rather than --text3: at 10.5px uppercase the
     text3 value measured 4.55:1, which clears AA by almost nothing. Crisis
     text gets headroom. */
  body.dark .qb .qb-crisis{--qb-muted:#A8A496}
  .qb .qb-crisis-head{
    font-family:var(--mono);font-size:11px;font-weight:700;
    letter-spacing:2.4px;text-transform:uppercase;
    color:var(--qb-muted);margin:0 0 4px;
  }
  .qb .qb-lines{list-style:none;margin:0;padding:0}
  .qb .qb-line{
    display:grid;grid-template-columns:1fr auto;align-items:baseline;
    gap:2px 18px;padding:14px 0;
    border-top:1px solid var(--border);
  }
  .qb .qb-who{font-size:15px;font-weight:600;line-height:1.35}
  .qb .qb-num{
    font-family:var(--mono);font-weight:700;font-size:clamp(17px,2.4vw,21px);
    letter-spacing:-.2px;font-variant-numeric:tabular-nums;white-space:nowrap;
    text-align:right;color:inherit;text-decoration:none;
    border-bottom:1px solid transparent;transition:border-color .2s;
  }
  .qb .qb-num:hover,.qb .qb-num:focus-visible{border-bottom-color:currentColor}
  .qb .qb-when{
    grid-column:1/-1;
    font-family:var(--mono);font-size:10.5px;font-weight:500;
    letter-spacing:1.1px;text-transform:uppercase;color:var(--qb-muted);line-height:1.5;
  }
  .qb .qb-crisis-foot{
    margin:18px 0 0;padding-top:16px;
    border-top:1px solid var(--border);
    font-size:14px;line-height:1.65;color:var(--qb-muted);
  }
  .qb .qb-outro{
    max-width:660px;margin:30px auto 0;padding:0 4px;text-align:center;
    font-size:15px;line-height:1.7;color:var(--text2);
  }
  .qb .qb-outro a{color:var(--accent-2);text-decoration:underline;text-underline-offset:3px}
  @media(max-width:600px){
    .qb .qb-scope{grid-template-columns:1fr;gap:22px}
    .qb .qb-crisis{padding:22px 18px 18px;border-radius:12px}
    .qb .qb-line{grid-template-columns:1fr;gap:3px;padding:13px 0}
    .qb .qb-num{text-align:left}
  }
  /* print: drop the grey fill, keep the box so the numbers stay grouped */
  @media print{
    .qb .qb-crisis{background:transparent!important;color:#000!important;border:1.5px solid #000}
    .qb .qb-crisis-head,.qb .qb-when,.qb .qb-crisis-foot{color:#333!important}
    .qb .qb-line{border-top-color:#999}
  }
/* ── block 5: Instagram strip + late refinements (was before </body>) ── */
.rl-ig{max-width:1100px;margin:0 auto var(--gap-major);padding:0 20px 4px}
.rl-ig-sub{font-size:14px;color:var(--text2);margin-top:10px}
.rl-ig-sub a{color:var(--text);font-weight:600;text-decoration:none;border-bottom:1px solid var(--border)}
.rl-ig-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.rl-ig-card{position:relative;aspect-ratio:3/4;border-radius:14px;overflow:hidden;background:var(--card);border:1px solid var(--border);display:block;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:transform .25s cubic-bezier(.22,1,.36,1)}
.rl-ig-card:hover{transform:translateY(-3px)}
/* Archive film stills — monochrome at rest with a warm-paper cast; the frame
   "develops" to full colour on intent (hover/focus). Dimmed slightly in dark
   mode so the photography rests in the page instead of glaring against it. */
.rl-ig-card img{
  width:100%;height:100%;object-fit:cover;display:block;background:var(--card);
  filter:grayscale(.9) contrast(1.05) sepia(.07);
  transition:transform .5s cubic-bezier(.22,1,.36,1),filter .45s cubic-bezier(.22,1,.36,1);
}
.rl-ig-card:hover img,.rl-ig-card:focus-visible img{transform:scale(1.05);filter:none}
body.dark .rl-ig-card img{filter:grayscale(.9) contrast(1.05) sepia(.07) brightness(.85)}
body.dark .rl-ig-card:hover img,body.dark .rl-ig-card:focus-visible img{filter:brightness(.95)}
/* 13 Oct 2026: the caption scrim is solid under every caption line (up to 3), then fades — the old
   .66 → 0 ramp left the top line at 3.8:1 over a light photo. Functional scrim, not decoration. */
.rl-ig-ov{position:absolute;inset:0;display:flex;align-items:flex-end;padding:12px;background:linear-gradient(to top,rgba(21,20,15,.86) 0%,rgba(21,20,15,.86) 32%,rgba(21,20,15,0) 68%);opacity:0;transition:opacity .25s}
.rl-ig-card:hover .rl-ig-ov,.rl-ig-card:focus-visible .rl-ig-ov{opacity:1}
.rl-ig-cap{color:#FAF9F6;font-size:12px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* Corner marks sit on a small ink chip (13 Oct 2026): white-on-photo with only a text-shadow vanished
   over a light still (the frame number measured ~1:1 on the white image). The chip keeps them legible
   on any photo; the Instagram glyph gets the same chip so the two corners match. */
.rl-ig-badge{position:absolute;top:8px;right:8px;width:29px;height:29px;padding:4px;box-sizing:border-box;border-radius:6px;background:rgba(21,20,15,.78);color:#FAF9F6;pointer-events:none}
/* Frame marker — mono reel number in the corner of each still */
.rl-ig-fr{position:absolute;top:10px;left:10px;font-family:var(--mono);font-size:10px;font-weight:500;letter-spacing:1.5px;line-height:1.3;color:#FAF9F6;background:rgba(21,20,15,.78);padding:3px 6px 3px 7px;border-radius:4px;pointer-events:none}
.rl-ig-skel{aspect-ratio:3/4;border-radius:14px;border:1px solid var(--border);background:linear-gradient(100deg,var(--card) 28%,var(--hover-bg) 50%,var(--card) 72%);background-size:200% 100%;animation:rl-ig-shim 1.3s linear infinite}
@keyframes rl-ig-shim{to{background-position:-200% 0}}
/* Phones: swipeable film-strip (native scroll-snap, GPU-composited, zero JS) */
@media(max-width:600px){
  .rl-ig{padding-bottom:0}
  .rl-ig-grid{
    display:flex;overflow-x:auto;gap:12px;padding:4px 8px 10px;
    scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .rl-ig-grid::-webkit-scrollbar{display:none}
  /* Keyboard focus (29 Oct 2026). Chrome scrolls a focused card into the strip only when the card is wholly
     outside the scrollport, so Tab to card 2, which shows a sliver at the edge (35px at 390), left it there. While
     a card has keyboard focus the scrollport is narrowed by 16vw a side (the pick's value; 189px of the 314px
     strip at 390), the sliver counts as hidden and the card is scrolled to the centre, whole. Only while focused:
     at all times it made the snapport narrower than a card, and a swipe then came to rest up to 38px off centre.
     The strip's padding is 4px on the top and 8px at the sides (was 2px): it clips at its padding edge and the
     focus ring (2px, 2px out) needs 4px, so every card's top keeps the whole ring; the sides keep 4px spare, as
     scroll positions are whole pixels and 68vw cards are not (at 4px, the last card's ring lost 0.4px at 360 and
     480). Browsers without :has() keep the old behaviour. */
  .rl-ig-grid:has(.rl-ig-card:focus-visible){scroll-padding-inline:16vw}
  .rl-ig-card,.rl-ig-skel{flex:0 0 68vw;scroll-snap-align:center}
}
/* Touch: the caption is hover-locked on desktop — surface it for thumbs */
@media(hover:none){
  .rl-ig-ov{opacity:1} /* same scrim as desktop (13 Oct 2026); only its visibility differs */
}
@media(prefers-reduced-motion:reduce){.rl-ig-card,.rl-ig-card img,.rl-ig-skel{transition:none;animation:none}}

/* ── GLASLYN PETROL — the single colour accent (owner-chosen from 12 candidates,
      previewed on the live site first). Scarce by design: it marks only the
      LIVE moments — progress, the reach routes, the current chapter, the open
      question, the summited badge. Everything else stays pure mono. */
.goal-fill{background:var(--accent-2)}
.map-arc{stroke:var(--accent-2);opacity:.55}
.map-node-mark::before{background:var(--accent-2)}
.map-node-mark::after{border-color:var(--accent-2)}
.badge-snowdon .badge-medal{color:var(--accent-2)}
.ch-rail a.active{color:var(--accent-2)}
.ch-rail a.active::after{background:var(--accent-2);border-color:var(--accent-2)}
.chapter-bar a.active{background:var(--accent-2);color:#FFFFFF}
body.dark .chapter-bar a.active{color:#15140F}
.filter-tab.active{background:var(--accent-2);border-color:var(--accent-2);color:#FFFFFF}
body.dark .filter-tab.active{color:#15140F}
.faq-item[open] .faq-q{color:var(--accent-2)}
.overview p:last-child::before{background:var(--accent-2);opacity:.85}

/* tier 2 — the theme threads SITEWIDE (owner request): every chapter head,
   links, primary buttons, calendar-lit dates, the progress bar, selection. */
.scroll-progress{background:var(--accent-2)}
.sect-eyebrow{color:var(--accent-2)}
.sect-head::before{border-color:var(--accent-2);opacity:.75}
.footer::before{border-color:var(--accent-2)}
.stat-ix{color:var(--accent-2)}
.goal-pct{color:var(--accent-2)}
.mast-nav a:hover{color:var(--accent-2)}
.faq-a a{color:var(--accent-2)}
.credits-row dd a{color:var(--accent-2);border-bottom-color:var(--accent-2)}
.credits-row dd a:hover{color:var(--text);border-color:var(--text2)}
.map-card-link:hover{border-color:var(--accent-2);color:var(--accent-2);background:transparent}
.cal-cell.cal-has{background:var(--accent-2);color:#FFFFFF}
body.dark .cal-cell.cal-has{color:#15140F}
.mom-block.cal-has{background:var(--accent-2);border-color:var(--accent-2);color:#FFFFFF}
body.dark .mom-block.cal-has{color:#15140F}
.give-btn{background:var(--accent-2);color:#FFFFFF}
body.dark .give-btn{color:#15140F}
.give-btn:hover{background:var(--accent-hover)}
body.dark .give-btn:hover{background:var(--accent-hover)}
::selection{background:var(--accent-2);color:#FFFFFF}
body.dark ::selection{color:#15140F}
.cal-cell.cal-today{border-color:var(--accent-2);color:var(--accent-2)}

/* ── POST-AUDIT FIXES (2026-08-22 UX audit) ── */
.hero-cta{display:inline-flex;align-items:center;gap:8px;margin-top:30px;
  font-family:var(--mono);font-size:12px;font-weight:700;letter-spacing:2.2px;text-transform:uppercase;
  background:var(--accent-2);color:#FFFFFF;text-decoration:none;
  padding:15px 28px;border-radius:999px;transition:transform .2s,background .2s;}
body.dark .hero-cta{color:#15140F}
.hero-cta:hover{transform:translateY(-2px);background:var(--accent-hover)}
body.dark .hero-cta:hover{background:var(--accent-hover)}
:focus-visible{outline:2px solid var(--accent-2)!important;outline-offset:2px}
/* inside a band --text3 is retuned for the band surface, per theme: light #5F5C4C
   (5.68:1 on #ECECE9); dark the bone --text2 (7.32:1 on #151514; the light value
   measured 2.72:1 there). Milestones, badge subs, Funds Used and the ticker LIVE read it. */
.ch-band{--text3:#5F5C4C}
body.dark .ch-band{--text3:var(--text2)}
/* the Momentum goal and calendar cards sit on the grey card surface (#ECECE9) outside any band:
   light --text3 #706C5E measured 4.44:1 there, so they take the band value (5.68:1). Dark passes already. */
body:not(.dark) .goal-card,body:not(.dark) .cal-card{--text3:#5F5C4C}
/* ── 13 Oct 2026 (owner request): dividers, smooth scroll, calendar first paint ── */
/* hero → CH.01 was the one chapter boundary with no hairline (every band already has one top and
   bottom; the footer has one): the same full-bleed hairline as the bands */
.map-section{padding-top:48px}
.map-section::before{content:'';position:absolute;top:0;left:calc(50% - 50vw);right:calc(50% - 50vw);border-top:1px solid var(--border);pointer-events:none}
@media(max-width:768px){.map-section{padding-top:36px}}
/* anchor links glide instead of jumping; reduced-motion visitors keep the instant jump */
@media(prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
/* the phone chapter bar is the one inner horizontal scroller without it (old iOS only; momentum is
   native since iOS 13). The page itself already avoids iOS momentum locks: overflow-x:clip, not hidden */
.chapter-bar{-webkit-overflow-scrolling:touch}
/* calendar: the month label keeps its line while blank, and the first real paint fades in (opacity only) */
.cal-month{min-height:1.4em}
/* (16 Oct 2026) one card-coloured veil over the six week rows fades out, instead of 31 day cells each
   fading in on a layer of its own: the same pixels frame by frame (cell x o + card x (1 - o), same
   0.24 s ease-out), one layer instead of 31. The day-name row is not under it, as before. */
@keyframes rl-cal-veil{from{opacity:1}to{opacity:0}}
.cal-grid{position:relative}
.cal-grid.cal-enter::after{content:'';position:absolute;grid-column:1/-1;grid-row:2/8;inset:0;background:var(--card);pointer-events:none;animation:rl-cal-veil .24s ease-out both}
@media(prefers-reduced-motion:reduce){.cal-grid.cal-enter::after{display:none}}
@media(max-width:768px){.admin-entry{display:none}}
@media(hover:none){
  .masthead.scrolled{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--bg)}
  body.dark .masthead.scrolled{background:var(--bg)}
  /* the chapter bar is now on screen for the whole scroll on phones (12 Oct 2026), so it
     drops its backdrop blur there too: a solid surface, same as the masthead above */
  .chapter-bar,body.dark .chapter-bar{-webkit-backdrop-filter:none;backdrop-filter:none;background:var(--bg)}
}
.map-legend-lead{margin-right:2px}
.map-legend-btn{background:none;border:none;cursor:pointer;
  font-family:var(--mono);font-size:10.5px;font-weight:700;letter-spacing:2px;text-transform:uppercase;
  color:var(--accent-2);padding:14px 10px;margin:0 -2px;-webkit-tap-highlight-color:transparent}
.map-legend-btn:active{opacity:.6}
/* ── block 6: the site as separate pages (22 Oct 2026). Values from the Design Pack: ink
      accent, --border hairlines, 16px card radius, house easing, no shadows, no lifts. ── */
/* skip link: hidden until a keyboard user tabs to it */
.skip-link{position:absolute;left:12px;top:12px;z-index:1000;background:var(--text);color:var(--bg);
  font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:1.8px;text-transform:uppercase;
  text-decoration:none;padding:10px 16px;border-radius:999px;transform:translateY(-80px);
  transition:transform .2s cubic-bezier(0.22,1,0.36,1)}
.skip-link:focus{transform:none}
#main:focus,#main:focus-visible{outline:none!important}
/* current page: ink colour plus a 1px ink underline in the masthead; ink pill in the phone bar (existing .active) */
.mast-nav a[aria-current="page"]{color:var(--text);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:7px}
/* footer: every page, one line of small mono links under the credits */
.footer-pages{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 20px;max-width:820px;margin:28px auto 22px}
.footer-pages a{font-family:var(--mono);font-size:10.5px;letter-spacing:1.8px;text-transform:uppercase;color:var(--text2);text-decoration:none;transition:color .25s cubic-bezier(0.22,1,0.36,1)}
.footer-pages a:hover,.footer-pages a[aria-current="page"]{color:var(--text)}
/* Home: one bordered card per area of the site */
.rl-explore{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:16px;max-width:1160px;margin:0 auto}
@media(max-width:1023px){.rl-explore{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.rl-explore{grid-template-columns:1fr;gap:12px}}
.rl-ex{height:100%;display:flex;flex-direction:column;gap:10px;padding:24px 22px 22px;background:var(--card);
  border:1px solid var(--border);border-radius:16px;color:var(--text);text-decoration:none;
  box-shadow:inset 0 1px 0 var(--edge-light);transition:border-color .25s cubic-bezier(0.22,1,0.36,1)}
.rl-ex:hover{border-color:var(--text2)}
.rl-ex-ix{font-family:var(--mono);font-size:10px;letter-spacing:2.5px;color:var(--text2)}
.rl-ex-title{font-family:var(--cinzel);font-size:20px;font-weight:600;letter-spacing:1px;line-height:1.3}
.rl-ex-text{font-size:14px;line-height:1.6;color:var(--text2)}
.rl-ex-go{margin-top:auto;padding-top:6px;font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:1.8px;text-transform:uppercase;color:var(--text)}
@media(prefers-reduced-motion:reduce){.rl-ex,.skip-link,.footer-pages a{transition:none}}
/* About */
.about-copy{max-width:640px;margin:0 auto;text-align:center}
.about-copy p{font-size:15px;line-height:1.75;color:var(--text-dim);margin:0 0 16px}
.about-copy .about-lead{font-size:clamp(17px,2.1vw,21px);font-weight:300;line-height:1.65;color:var(--text)}
.about-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 22px;margin-top:22px!important}
.about-links a{color:var(--text);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
/* no separator dots: three underlined links with a gap never leave a dot hanging at a line end */
/* Privacy page: the footer note's own styles, at reading size */
.privacy-page .privacy-body{max-width:640px;margin:0 auto;text-align:left}
.privacy-page .privacy-body p{font-size:14.5px;line-height:1.7;margin-bottom:14px}
/* 28 Oct 2026: the founder's name on About, and the one status line in the footer (official-pages-kit Branch D).
   Existing tokens and sizes only: strong = .privacy-body strong; the status line = .credits-row dd (13px, --text-dim). */
.about-copy strong{color:var(--text);font-weight:600}
.footer-status{max-width:640px;margin:22px auto 14px;font-size:13px;line-height:1.6;color:var(--text-dim);text-align:center}
/* Admin page: signed-out and signed-in states (body.admin is set by checkAdmin) */
.admin-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;max-width:640px;margin:0 auto}
.admin-actions .give-btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 20px;text-decoration:none;margin-top:0;line-height:1.2;min-height:46px;min-width:240px}
.admin-in{display:none!important}
body.admin .admin-in{display:inline-flex!important}
body.admin p.admin-in{display:block!important}
body.admin .admin-out{display:none!important}
/* owner tools stay off public pages: the Daily Brief button shows only once signed in */
body:not(.admin) .brief-fab{display:none!important}
/* 404: four links, no index numbers */
.nf-links .rl-ex{min-height:120px}
.empty-sub{font-size:14px;line-height:1.6;margin-top:8px;color:var(--text2)}
.empty-sub a{color:var(--text);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
/* Our Work opens on the Reach map: its hero-to-map divider has no hero above it there */
#main > .map-section:first-child::before{display:none}
/* the events grid's empty and loading blocks span every column, so they sit centred (review, 23 Oct 2026) */
.events-grid > .empty,.events-grid > .loading{grid-column:1/-1}
/* Events page while no events are listed (Joe, 23 Oct 2026): the goal stays; the month grid and the calendar
   wait for real events (main.js loadEvents removes .mom-empty when rows arrive) */
#momentum.mom-empty .heat-wrap,#momentum.mom-empty #cal-card{display:none}
/* Events loading block holds the empty state's height (24 Oct 2026): no jump when the list or the empty message lands */
.events-grid.is-loading{min-height:262px;align-content:start}
@media(max-width:600px){.events-grid.is-loading{min-height:285px}}

/* ── block 7: site-wide motion foundation (29 Oct 2026, UI upgrade surface B) ──────────────────────────────
   READ BEFORE ADDING MOTION. Everything here is opt-in: the default stylesheet is static, and every moving
   rule sits inside @media (prefers-reduced-motion:no-preference). House easing var(--rl-ease).
   1. html.js: set by the motion-boot script in _src/partials/head.html before this file loads. Gate every
      hidden START state on it (html.js …) so nothing waits at opacity 0 without JavaScript. html.rl-sr-off
      is added by the same script when assets/js/motion.js has not started 3s later (a script failed or is
      still crawling in): every .rl-sr is then simply shown.
   2. Scroll reveal .rl-sr / .rl-sr-in, the site's one reveal (code and notes: assets/js/motion.js). Put
      class="rl-sr" on an element in the markup, or call window.rlReveal(el|list) for content added later.
      Nothing already on the first screen is ever hidden (pack 7.3), and the screen a #fragment will land on
      counts as the first screen: motion.js takes .rl-sr off those markup items (and off any that hold the
      #fragment's target), and never adds it there from script, before it adds html.rl-sr-live, which the hidden
      state waits for. The one exception is the Home hero's impact row, hidden from the first paint on html.js and
      held for the hero entrance: the cells on the first screen play in after the call to action, the rest come
      in on scroll (motion.js, HERO).
      It starts 16px low (--rl-sr-y) and transparent, and comes in ONCE, 0.6s, when 15% of it is above the
      bottom 10% of the screen, and at the end of any scroll, whatever is on screen. Items that come in together
      step 60ms apart in reading order, capped at 5 steps (300ms); style="--i:n" fixes an item's step. Once
      played, .rl-sr is removed (.rl-sr-in stays as a marker), so the element's own transitions, hovers and
      transforms are untouched afterwards. The name means scroll reveal only; .rl-vh is the visually-hidden helper.
   3. Page cross-fade: cross-document View Transitions, 0.25s on the root. Browsers without them get
      html.rl-nvt (head script) and a 0.25s opacity fade-in of .container (main + footer) on load instead;
      the masthead and the phone bar never fade.
   4. Reduced motion: each component still ships its own reduce rule (pack §10 rule 6); the catch-all at the
      end of this block stops anything that forgets. Scripts never force behavior:'smooth': they leave it to
      html{scroll-behavior}, which is smooth only under no-preference.
   5. Sticky chrome vs keyboard focus: html scroll-padding-top = the masthead (--rl-mast-h, plus its 1px
      bottom border) + 8px (2px ring + 2px offset + 4px air), so Shift+Tab never parks a focused item under
      the masthead. The phone bar's room is html scroll-padding-bottom (block 1, ≤768px: bar 46px tall,
      14px up, plus 12px); wider screens keep 8px at the bottom for the ring. [id] scroll-margin-top
      (block 1) keeps every #anchor landing 72px down, as before.
   6. Heights: never size layout with 100vh (a phone's address bar covers part of it). Write the vh line
      first as the fallback, then the same value in svh (fits with the bar showing) or dvh (follows it).
   Smooth by construction: transforms and opacity only; scroll/resize/pointer handlers rAF-coalesced with no
   layout reads inside them; no backdrop-filter on sticky or fixed elements; no will-change. ── */
:root{--rl-ease:cubic-bezier(0.22,1,0.36,1);--rl-mast-h:56px}
@media(max-width:768px){:root{--rl-mast-h:52px}}
html{scroll-padding-top:calc(var(--rl-mast-h) + 9px)}
@media(min-width:769px){html{scroll-padding-bottom:8px}} /* ring room at the bottom edge; phones: the bar's room (block 1) */
@media screen and (prefers-reduced-motion:no-preference){
  /* the transition sits on the way-in state only, so adding .rl-sr hides at once and only the reveal animates.
     The hidden state waits for html.rl-sr-live (note 2), except in the Home hero, which keeps html.js. */
  html.rl-sr-live:not(.rl-sr-off) .rl-sr:not(.rl-sr-in),html.js:not(.rl-sr-off) .header .rl-sr:not(.rl-sr-in){opacity:0;transform:translateY(var(--rl-sr-y,16px))}
  html.js:not(.rl-sr-off) .rl-sr.rl-sr-in{transition:opacity .6s var(--rl-ease),transform .6s var(--rl-ease);transition-delay:calc(min(var(--i,0),5) * 60ms)}
  @view-transition{navigation:auto}
  ::view-transition-group(root){animation-duration:.25s;animation-timing-function:cubic-bezier(0.22,1,0.36,1)}
  @keyframes rl-page-in{from{opacity:0}}
  html.rl-nvt .container{animation:rl-page-in .25s var(--rl-ease)}
}
/* reduced-motion catch-all (belt and braces): whatever a component forgot plays its end state at once */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;transition-delay:0s!important;scroll-behavior:auto!important}
}

/* ── block 8: Home first screen (29 Oct 2026, UI upgrade surface A; markup _src/pages/_hero.html and
   home-explore.html; motion primitives in block 7). Pure mono tokens, borders not shadows, no new colours.
   Every moving rule sits inside prefers-reduced-motion:no-preference; nothing here is hidden without JavaScript.
   1. Headline: each word rises in on its own (Kinetic Text Reveal pattern, no blur): 0.6s house easing, starting
      0.14s after the hero entrance and 75ms apart (--w = 0…3 in the markup), so the last word lands at 0.965s.
      It replaces the headline's single heroRise fade; the h1 is still held hidden until body.hero-in (block 4).
      Screen readers read the .rl-vh copy, never the split words. */
.hero-words .w{display:inline-block}
@keyframes rl-word{from{opacity:0;transform:translateY(.3em)}}
@media screen and (prefers-reduced-motion:no-preference){
  body.hero-in .hero-h1{animation:none}
  body.hero-in .hero-words .w{animation:rl-word .6s var(--rl-ease) calc(.14s + var(--w,0) * 75ms) both}
}
/* 2. Backdrop: a static dot matrix in place of the hairline grid: 2.5px dots of the ink at 12% (color-mix of --text,
      so it follows the theme), 23px apart (17px at ≤768, half the old grid cells), in the old box. The functional
      mask is the old ellipse with a solid centre (to 20%), so the dots read behind the crest and headline and fade
      out before the lede. Browsers without color-mix keep the hairline grid (block 1). */
@supports (color:color-mix(in srgb,#000 12%,transparent)){
  .header::before{background-image:radial-gradient(circle,color-mix(in srgb,var(--text) 12%,transparent) 1.25px,transparent 1.75px);
    background-size:23px 23px;background-position:center top;
    -webkit-mask-image:radial-gradient(ellipse 56% 58% at 50% 42%,#000 20%,transparent 72%);
    mask-image:radial-gradient(ellipse 56% 58% at 50% 42%,#000 20%,transparent 72%)}
  @media(max-width:768px){.header::before{background-size:17px 17px}}
}
/* 3. Impact row: About's figures (the build writes them; v7.js counts them up). A hairline ledger like About's
      stat strip: label above, Cinzel figure, 1px --border rules, no boxes; the £ cell (.rl-imp-funds) adds its own
      one-line source below ("Estimated · self-funded"), and one shared "Figures as of" line sits under the whole row
      in About's own .stats-asof (Joe's picks W1 + W4, 29 Oct 2026; it was one source line per cell). Each cell
      carries its own rules, so the ledger draws in cell by cell with the scroll reveal and shows nothing early.
      4 across from 1024px, 2 x 2 below, and on phones (≤560) one ruled row per figure, the figure on the right.
      In the 2 x 2 (561–1023) the two rows are equal (grid-auto-rows:1fr): only the £ cell has a source line, and
      without it the top row sat 23px shorter than the bottom one (29 Oct 2026).
      Cinzel has no tabular figures, so the figure's box is the FINAL figure's width (the hidden ::before alone sets
      it) and the counting value is pinned to its right edge (position:absolute): the box never changes size while
      the count runs, nothing around it moves, and the last digit stays put. An in-between value wider than the final
      one (Cinzel's 0 and 2 are wider than 3 and 5) spills up to 5px to the left, into the cell padding or the 16px
      column gap. From 1024px the cells' side padding is 8px and the source line tracks 1px (12px and 1.2px below),
      so the £ cell's source fits its one line; when the funds month differs from the shared line's, the build adds
      it ("Estimated · self-funded · September 2026") and text-wrap:balance splits the two lines evenly. */
.rl-impact{max-width:860px;margin:48px auto 0}
.rl-imp-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.rl-imp{display:flex;flex-direction:column;align-items:center;gap:8px;padding:20px 12px 18px;text-align:center;
  border-top:1px solid var(--border);border-bottom:1px solid var(--border);border-left:1px solid var(--border)}
.rl-imp:first-child{border-left:0}
.rl-imp-k{font-size:12px;font-weight:600;line-height:1.6;letter-spacing:2.5px;text-transform:uppercase;color:var(--text2)}
.rl-imp-n{font-family:var(--cinzel);font-size:clamp(24px,3vw,30px);font-weight:700;line-height:1.2;letter-spacing:1px;
  color:var(--text);font-variant-numeric:lining-nums tabular-nums}
.rl-imp-fig{display:inline-block;position:relative}
.rl-imp-fig::before{content:attr(data-final);visibility:hidden}
.rl-imp-v{position:absolute;top:0;right:0;white-space:nowrap}
.rl-imp-src{font-family:var(--mono);font-size:10px;line-height:1.6;letter-spacing:1.2px;text-transform:uppercase;color:var(--text3);text-wrap:balance}
@media(min-width:1024px){.rl-imp{padding:20px 8px 18px}.rl-imp-src{letter-spacing:1px}}
@media(max-width:1023px){
  .rl-imp-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rl-imp:nth-child(3){border-left:0}
  .rl-imp:nth-child(n+3){border-top:0}
}
@media(min-width:561px) and (max-width:1023px){.rl-imp-list{grid-auto-rows:1fr}}   /* equal rows in the 2 x 2 (W4) */
@media(max-width:768px){.rl-impact{margin-top:40px}}
@media(max-width:560px){
  .rl-imp-list{grid-template-columns:minmax(0,1fr)}
  .rl-imp{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'k n';align-items:center;
    column-gap:16px;row-gap:2px;padding:14px 4px;text-align:left;border-left:0}
  .rl-imp-funds{grid-template-areas:'k n' 's n'}   /* the one cell with a source line */
  .rl-imp:nth-child(n+2){border-top:0}
  .rl-imp-k{grid-area:k}
  .rl-imp-n{grid-area:n}
  .rl-imp-src{grid-area:s}
}
/* 4. Explore cards: hover AND keyboard focus (:focus-visible, as .glb-item: a mouse press that ends off the card
      leaves it at rest) shift the border to --text2 (block 6) and lift the card 2px, no shadow (Joe's brief,
      28 Oct 2026; pack rule 4 said "no new lifts" before it). The lift is hover-capable screens only for the
      pointer, every screen for focus. N°05 (Initiatives) spans the whole row at every width; from 1024px its parts
      sit on the four cards' own columns (4 tracks, 62px apart = the 16px grid gap plus both 22px card paddings and
      both 1px borders), so its text starts where card 2's does. */
.rl-ex:focus-visible{border-color:var(--text2)}
@media screen and (prefers-reduced-motion:no-preference){
  .rl-ex{transition:border-color .25s var(--rl-ease),transform .25s var(--rl-ease)}
  .rl-ex:focus-visible{transform:translateY(-2px)}
  @media(hover:hover){.rl-ex:hover{transform:translateY(-2px)}}
}
.rl-ex-wide{grid-column:1/-1}
@media(min-width:1024px){
  .rl-ex-wide .rl-ex{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:62px;row-gap:10px;align-items:start}
  .rl-ex-wide .rl-ex-ix{grid-area:1/1}
  .rl-ex-wide .rl-ex-title{grid-area:2/1}
  .rl-ex-wide .rl-ex-text{grid-area:2/2/3/4}
  .rl-ex-wide .rl-ex-go{grid-area:2/4;align-self:center;margin-top:0;padding-top:0}
}

/* ── block E+G: About story timeline and partners strip (29 Oct 2026, UI upgrade surfaces E and G; markup
   _src/pages/_story.html and _partners.html, on about.html after the intro). Pure mono tokens, borders not shadows,
   no new colours. Static by default; the motion is opt-in, under block 7's rules.
   E. TIMELINE (the Milestone Timeline pattern, rebuilt): a plain <ol>, 640 wide and centred like the About copy.
      Each item draws its own piece of the rail: a 1px --border hairline from its marker down to the next marker
      (--rl-tl-y into the next item: the middle of the date's first line, 9px on phones, 13px from 769px), so nothing
      is measured. The marker is the site's 7px diamond (.sect-head::before): ink-filled for what has happened,
      hollow for the planned item (.rl-tl-next), whose piece of rail is dashed (pending, as the badge wall's dashed
      ring) and which says "Coming up" in a label, so the state is never colour alone. From 769px the date sits in a
      176px column beside the text. The planned item keeps "120 hat-and-glove" on one line (.rl-tl-nw, the
      .rl-give-init a device), so the number never parts from what it counts.
      Motion (no-preference only): each item's text comes in with the .rl-sr reveal (on .rl-tl-body, never the li,
      whose rail must not move), and its marker fades in with it (opacity only, so the rail never moves; no bare
      marker waits in the bottom band), and an ink line draws down each finished piece of rail as the reading
      position passes it: a CSS scroll-driven animation on the piece itself (animation-timeline:view()), running
      from its top marker at mid-screen to the next marker at mid-screen, so the pieces join into one line. No
      JavaScript and nothing on the main thread; transform only. Without scroll-driven animations (or :has) the
      hairline rail stays as it is: that is the static fallback, and the no-JavaScript and reduced-motion state.
   G. PARTNERS STRIP: <section hidden> until a partner agrees in writing (its source comment says how to add one). A
      bordered row of text names, no logos: Inter 600 13px uppercase in --text2 inside 1px --border cells that share
      their edges, centred, 860 wide. It stays out of sight while the list holds no names, even unhidden. ── */
.rl-tl-list{list-style:none;max-width:640px;margin:0 auto;padding:0;text-align:left;--rl-tl-y:9px}
.rl-tl{position:relative;padding:0 0 var(--gap-minor) 32px}
.rl-tl:last-child{padding-bottom:0}
.rl-tl::before{content:'';position:absolute;left:4px;top:var(--rl-tl-y);bottom:calc(-1 * var(--rl-tl-y));border-left:1px solid var(--border)}
.rl-tl:last-child::before{content:none}
.rl-tl:has(+ .rl-tl-next)::before{border-left-style:dashed}
.rl-tl-dot{position:absolute;z-index:1;left:1px;top:calc(var(--rl-tl-y) - 3.5px);width:7px;height:7px;background:var(--text);border:1px solid var(--text);transform:rotate(45deg)}
.rl-tl-next .rl-tl-dot{background:var(--bg)}
.rl-tl-when{font-family:var(--mono);font-size:11px;font-weight:500;line-height:18px;letter-spacing:1.5px;text-transform:uppercase;color:var(--text2)}
.rl-tl-what{margin-top:4px;font-size:15px;line-height:26px;color:var(--text-dim);text-wrap:pretty}
.rl-tl-next .rl-tl-when{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.rl-tl-tag{font-size:10px;font-weight:600;line-height:12px;color:var(--text);padding:2px 6px;border:1px solid var(--text);border-radius:4px}
.rl-tl-nw{white-space:nowrap}
@media(min-width:769px){
  .rl-tl-list{--rl-tl-y:13px}
  .rl-tl-body{display:grid;grid-template-columns:176px minmax(0,1fr);column-gap:24px;align-items:start}
  .rl-tl-when{line-height:26px}
  .rl-tl-what{margin-top:0}
}
@media(forced-colors:active){
  .rl-tl-dot{forced-color-adjust:none;background:CanvasText;border-color:CanvasText}
  .rl-tl-next .rl-tl-dot{background:Canvas}
}
@keyframes rl-tl-fill{from{transform:scaleY(0)}to{transform:none}}
@media screen and (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:view()) and selector(:has(+ *)){
    .rl-tl::after{content:'';position:absolute;left:4px;top:var(--rl-tl-y);bottom:calc(-1 * var(--rl-tl-y));border-left:1px solid var(--text);
      transform-origin:50% 0;animation:rl-tl-fill linear both;animation-timeline:view();animation-range:entry 50vh entry calc(100% + 50vh)}
    .rl-tl:last-child::after,.rl-tl:has(+ .rl-tl-next)::after{content:none}
  }
}
@media screen and (prefers-reduced-motion:no-preference){
  html.rl-sr-live:not(.rl-sr-off) .rl-tl:has(> .rl-tl-body.rl-sr:not(.rl-sr-in)) > .rl-tl-dot{opacity:0}
  html.js:not(.rl-sr-off) .rl-tl:has(> .rl-tl-body.rl-sr-in) > .rl-tl-dot{transition:opacity .6s var(--rl-ease)}
}
.rl-partners[hidden]{display:none}
.rl-partners:not(:has(.rl-pt)){display:none}
.rl-pt-list{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;max-width:860px;margin:0 auto;padding:0 1px 1px 0}
.rl-pt{flex:0 1 280px;display:flex;align-items:center;justify-content:center;min-height:72px;margin:0 -1px -1px 0;padding:16px 20px;
  border:1px solid var(--border);text-align:center;font-size:13px;font-weight:600;line-height:1.5;letter-spacing:2px;text-transform:uppercase;color:var(--text2)}
.rl-pt a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:var(--border);text-underline-offset:5px}
.rl-pt a:hover{color:var(--text);text-decoration-color:var(--text2)}
@media(max-width:480px){.rl-pt{flex-grow:1}}
@media screen and (prefers-reduced-motion:no-preference){
  .rl-pt a{transition:color .25s var(--rl-ease),text-decoration-color .25s var(--rl-ease)}
}

/* ── block F: Initiatives page (29 Oct 2026, UI upgrade surface F; markup _src/pages/initiatives.html). Pure mono
   tokens, borders not shadows, no new colours; every size is one the pack already uses (named beside it). Static by
   default: the only motion is block 7's scroll reveal on the wrappers, and the CTA's colour shift.
   - Each initiative is its own <article class="rl-init"> inside .rl-init-list (860 wide, as About's stat strip and
     Home's impact row). A second one is parted from the first by a hairline and the chapter gap.
   - Head centred like the About copy: N°01 (Explore index), Cinzel 600 title, About-lead sentence. Facts: a hairline
     ledger like Home's impact row (label above value, 1px --border rules), one ruled row per fact on phones.
   - How it works: the Vertical How It Works pattern, rebuilt: a plain <ol>, numbers by CSS counters ("01", empty alt
     text so a screen reader says "1 of 3" once), a 32px ring of ink on the page ground per step and a 1px --border
     rail from each ring down to the next. No JavaScript.
   - Part headings (h3) in the form-card title's type (Cinzel 700 18px), not one more tracked mono label (/impeccable
     critique, 29 Oct 2026). What the banks ask for: hairline rows with the site's 7px diamond mark. Sources and the
     new-tab note in the globe credit's type.
   - The call to action is an ink pill (the hero call-to-action's box in the View Details button's type, so no Mono
     700, pack gap 8); hover shifts the fill to --accent-hover, no lift. A transparent border shows in forced colours.
   - Two columns (steps | banks) from 960px; below that one column, its parts (and the facts strip) 640 wide. ── */
.rl-init-list{max-width:860px;margin:0 auto}
.rl-init + .rl-init{margin-top:var(--gap-major);padding-top:var(--gap-major);border-top:1px solid var(--border)}
.rl-init-head{max-width:640px;margin:0 auto;text-align:center}
.rl-init-ix{font-family:var(--mono);font-size:10px;letter-spacing:2.5px;color:var(--text2)}
.rl-init-title{margin-top:10px;font-family:var(--cinzel);font-size:24px;font-weight:600;letter-spacing:1px;line-height:1.3;color:var(--text);text-wrap:balance}
.rl-init-lead{margin-top:14px;font-size:clamp(17px,2.1vw,21px);font-weight:300;line-height:1.65;color:var(--text);text-wrap:balance}
.rl-init-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:40px 0 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.rl-init-fact{display:flex;flex-direction:column;align-items:center;gap:8px;padding:20px 12px 18px;text-align:center}
.rl-init-fact + .rl-init-fact{border-left:1px solid var(--border)}
.rl-init-fact dt{font-size:12px;font-weight:600;line-height:1.6;letter-spacing:2.5px;text-transform:uppercase;color:var(--text2)}
.rl-init-fact dd{margin:0;font-size:15px;line-height:1.6;color:var(--text);text-wrap:pretty}
.rl-init-cols{display:grid;grid-template-columns:minmax(0,1fr);gap:40px;margin-top:48px}
.rl-init-h{margin-bottom:20px;padding-bottom:9px;border-bottom:1px solid var(--border);font-family:var(--cinzel);font-size:18px;font-weight:700;
  line-height:1.6;letter-spacing:.5px;color:var(--text)}
.rl-steps{list-style:none;margin:0;padding:0;counter-reset:rl-step}
.rl-step{position:relative;counter-increment:rl-step;min-height:32px;padding:0 0 24px 52px}
.rl-step:last-child{padding-bottom:0}
.rl-step::before{content:counter(rl-step,decimal-leading-zero);content:counter(rl-step,decimal-leading-zero) / '';
  position:absolute;z-index:1;left:0;top:0;display:flex;align-items:center;justify-content:center;width:32px;height:32px;
  border:1px solid var(--text);border-radius:50%;background:var(--bg);font-family:var(--mono);font-size:12px;font-weight:600;
  line-height:1;color:var(--text);font-variant-numeric:tabular-nums}
.rl-step::after{content:'';position:absolute;left:15.5px;top:32px;bottom:0;border-left:1px solid var(--border)}
.rl-step:last-child::after{content:none}
.rl-step-t{font-size:16px;font-weight:600;line-height:32px;color:var(--text)}
.rl-step-d{font-size:15px;line-height:1.7;color:var(--text-dim);text-wrap:pretty}
.rl-step-d a{color:var(--text);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.rl-rules{list-style:none;margin:0;padding:0}
.rl-rules li{display:flex;align-items:baseline;gap:14px;padding:12px 0;border-bottom:1px solid var(--border);font-size:15px;line-height:1.55;color:var(--text)}
.rl-rules li:first-child{padding-top:0}
.rl-rules li::before{content:'';flex:none;width:7px;height:7px;border:1px solid var(--text);transform:rotate(45deg)}
.rl-init-note{margin-top:16px;font-size:14.5px;line-height:1.7;color:var(--text2)}
.rl-init-src{margin-top:6px;font-size:12.5px;line-height:1.6;color:var(--text3)}
.rl-init-why{margin-top:48px}
.rl-why{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:28px;align-items:baseline}
.rl-why-n{font-family:var(--cinzel);font-size:46px;font-weight:700;line-height:1.2;letter-spacing:1px;color:var(--text);font-variant-numeric:lining-nums}
.rl-why-t{font-size:clamp(17px,2.1vw,21px);font-weight:300;line-height:1.65;color:var(--text);text-wrap:pretty}
.rl-init-act{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:56px;text-align:center}
.rl-init-cta{display:inline-flex;align-items:center;gap:8px;padding:15px 28px;border:1px solid transparent;border-radius:999px;
  background:var(--text);color:var(--bg);font-size:14px;font-weight:600;line-height:1.4;text-decoration:none}
.rl-init-cta:hover{background:var(--accent-hover)}
.rl-init-tab{font-size:12.5px;line-height:1.6;color:var(--text3)}
.rl-init-privacy{margin-top:4px;font-size:14px;line-height:1.6}
.rl-init-privacy a,.rl-give-init a{color:var(--text);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.rl-give-init a{white-space:nowrap} /* the name never breaks in two */
.rl-give-init{margin-top:24px;text-align:center} /* Get Involved: after the forms, so the heading leads straight into them */
@media(hover:none){.rl-init-privacy a{display:inline-flex;align-items:center;min-height:44px}.rl-init-privacy{margin-top:0}} /* a standalone link: the 44px touch rule of .map-card-link */
@media(min-width:960px){.rl-init-cols{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:56px}}
@media(max-width:959px){.rl-init-facts,.rl-init-cols,.rl-init-why{max-width:640px;margin-left:auto;margin-right:auto}}
@media(max-width:768px){
  .rl-init-title{font-size:20px}
  .rl-init-facts{margin-top:28px}
  .rl-init-cols,.rl-init-why{margin-top:40px}
  .rl-init-act{margin-top:48px}
  .rl-why{column-gap:20px}
  .rl-why-n{font-size:28px}
}
@media(max-width:560px){
  .rl-init-facts{grid-template-columns:minmax(0,1fr)}
  .rl-init-fact{display:grid;grid-template-columns:72px minmax(0,1fr);column-gap:16px;align-items:baseline;padding:12px 4px;text-align:left}
  .rl-init-fact + .rl-init-fact{border-left:0;border-top:1px solid var(--border)}
}
@media screen and (prefers-reduced-motion:no-preference){
  .rl-init-cta{transition:background-color .2s var(--rl-ease)}
}

/* ── block C: Our Work (29 Oct 2026, UI upgrade surface C; markup _src/pages/_reach.html and _globe.html; the place
   list is written by reach_places() in _src/build.py from the Reach map's own data in assets/js/main.js). Pure mono
   tokens, borders not shadows, no new colours, no motion of its own: the places come in with block 7's scroll reveal
   (.rl-sr on each <li>), the globe chapter with the same reveal from motion.js's chapter list. The Reach map and the
   CH.05 globe are untouched (pack §10): only what sits around them, so every keyboard route stays as it was (map nodes
   are buttons with aria-expanded, alert rows buttons with aria-pressed).
   1. Places: one bordered panel cut into three cells under the map, in the Explore card's values (--card, 1px --border,
      radius 16 on the panel's outer corners, padding 24 22 22, gap 10; Cinzel 20/600 name; text 14/1.6). The text is
      --text-dim, not the Explore card's --text2: it is the content here, not a teaser, and --text2 on --card is only
      4.71:1 in light (--text-dim 9.93:1 light, 12.33:1 dark; /impeccable critique, 29 Oct 2026). The coordinates are
      the map card's (Mono 10.5, +1.2px) in --text2 (4.71:1 / 7.32:1), because --text3 on --card is under AA in light
      (4.44:1, pack 2.4). Each cell draws all four of its own edges (neighbours overlap by 1px), so a cell can come in on
      its own with the reveal and the panel never shows an edge early. The mark is the map node's own, drawn still (a
      6px ink dot inside a 20px ring at .55), so a cell reads as the key to its marker above. Three across from 769px;
      one column below (561–768: name and coordinates beside the text).
   2. Alert rows: keyboard focus gets the hover's ink border (hover and focus alike, as the Explore cards), on every
      screen, beside the global ring; the type code ("TC") steps down to --text2 so the title is the one ink line under
      the kicker (5.57:1 light, 8.42:1 dark; a chosen row still inverts it). Row geometry is untouched, so the 89px rows
      and the loading room (pack 5.1, 6.3) hold.
   3. Outlined links (.map-card-link: the Reach card's events link, the globe card's report link, "Show all"): keyboard
      focus gets the hover's ink border too.
   4. The map's dot canvas holds its box from the first paint (pack §10 rule 10): the ratio of the map's view,
      360° of longitude by 140° of latitude (_mapView() in main.js: −56 to 84; change both together). Until renderMap()
      ran, the canvas sat at its default 2:1 and the place list under it jumped 37px on a phone (Our Work's layout
      shift at 390: 0.051 with the list, 0.030 with this; 0.034 before the list). renderMap() still sets the same height
      in pixels, so the map itself is unchanged. What is left is the title re-wrapping when Cinzel arrives. ── */
.map-dots{aspect-ratio:360/140}
.rl-places{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:40px 0 0;padding:0;text-align:left}
.rl-place{display:flex;flex-direction:column;gap:10px;min-width:0;margin:0;padding:24px 22px 22px;background:var(--card);border:1px solid var(--border)}
.rl-place + .rl-place{margin-left:-1px}
.rl-place:first-child{border-radius:16px 0 0 16px}
.rl-place:last-child{border-radius:0 16px 16px 0}
.rl-place:only-child{border-radius:16px}
.rl-place-name{grid-area:name;display:flex;align-items:center;gap:12px;margin:0;font-family:var(--cinzel);font-size:20px;font-weight:600;letter-spacing:1px;line-height:1.3;color:var(--text)}
.rl-place-mark{position:relative;flex:none;width:20px;height:20px}
.rl-place-mark::before,.rl-place-mark::after{content:'';position:absolute;border-radius:50%}
.rl-place-mark::before{inset:7px;background:var(--text)}
.rl-place-mark::after{inset:0;border:1px solid var(--text);opacity:.55}
.rl-place-co{grid-area:co;margin:0;font-family:var(--mono);font-size:10.5px;line-height:1.6;letter-spacing:1.2px;color:var(--text2);font-variant-numeric:tabular-nums}
.rl-place-text{grid-area:text;margin:0;font-size:14px;line-height:1.6;color:var(--text-dim);text-wrap:pretty}
@media(max-width:768px){
  .rl-places{grid-template-columns:minmax(0,1fr);margin-top:28px}
  .rl-place + .rl-place{margin:-1px 0 0}
  .rl-place:first-child{border-radius:16px 16px 0 0}
  .rl-place:last-child{border-radius:0 0 16px 16px}
  .rl-place:only-child{border-radius:16px}
}
@media(min-width:561px) and (max-width:768px){
  .rl-place{display:grid;grid-template-columns:minmax(0,200px) minmax(0,1fr);grid-template-areas:'name text' 'co text';column-gap:24px;row-gap:6px;align-content:start}
}
@media(max-width:560px){.rl-place{padding:20px 18px}}
@media(forced-colors:active){.rl-place-mark::before{forced-color-adjust:none;background:CanvasText}}
.glb-item:focus-visible{border-color:var(--text)}
.glb-item-code{color:var(--text2)}
.map-card-link:focus-visible{border-color:var(--accent-2)}

/* ── block D: Get Involved forms and FAQ (29 Oct 2026, UI upgrade surface D; markup _src/pages/_give.html and
   _faq.html, script assets/js/forms.js). Pure mono tokens, borders not shadows, no new colours.
   1. Field outlines: 1.5px var(--text3) (the rule in block 2), was var(--border): 1.24:1 dark and 1.34:1 light against
      the card, under the 3:1 WCAG 1.4.11 asks of a control's edge. Now 4.44:1 light / 4.55:1 dark against the card
      (--card) and 5.26:1 / 5.23:1 against the field's own --bg. Focus: the border turns --text (block 2) and the global
      2px ink ring (block 5) sits 2px outside it, so the focused field reads as a double ink line on the card.
      Placeholders keep the browser's #757575: 4.61:1 light, 4.56:1 dark, on the field's --bg.
   2. Inline validation (forms.js): a field with a problem gets aria-invalid="true" and the --text border; its error line
      (.give-err, aria-live polite, named in the field's aria-describedby) says what to do in one plain sentence ("Enter
      your name."), with an .rl-vh "Error: " in front for screen readers. Ink, Inter 500 13/1.5, 6px under the field
      (the label-to-field gap); an empty line takes no room. The words carry the error, never colour. With motion, the
      line fades in over 0.2s (opacity only).
   3. Send while sending: disabled + aria-busy="true" (rlGiveSubmit in forms.js). It keeps full strength (the .55 dim of
      a disabled button would take "Sending…" under 4.5:1 in light), shows cursor progress, drops the hover lift, press
      and hover fill, and puts a quiet spinner before the word: a 12px ring of 1.5px currentColor with one quarter open,
      one turn a second, linear, on the compositor (transform only). The spinner exists only under
      prefers-reduced-motion:no-preference; with reduced motion "Sending…" says it alone. Restored when the send ends.
   4. Windows high contrast (forced-colors:active): Send is border:none, so it showed as plain text; it gets a 1px
      ButtonText border (GrayText while disabled). Checked in Chrome's forced-colours emulation, light and dark palettes
      (the FAQ plus/minus already shows there, so it needs nothing).
   5. FAQ: native <details>/<summary>, unchanged; the question keeps its inset ring (block 3) and gets the card's own
      corner radius, so the ring is not clipped at the rounded corners. ── */
.give-row{display:flex;flex-direction:column}
.give-err{margin:0;font-size:13px;font-weight:500;line-height:1.5;color:var(--text);text-wrap:pretty}
.give-err:not(:empty){margin-top:6px}
.give-field input[aria-invalid="true"],.give-field textarea[aria-invalid="true"]{border-color:var(--text)}
.give-btn:disabled{transform:none}
.give-btn[aria-busy="true"]{opacity:1;cursor:progress}
body .give-btn:disabled:hover{background:var(--accent-2)}
.faq-q{border-radius:13px}                          /* the card's 14px less its 1px border */
.faq-item[open] .faq-q{border-radius:13px 13px 0 0}
@keyframes rl-spin{to{transform:rotate(1turn)}}
@keyframes rl-err-in{from{opacity:0}}
@media screen and (prefers-reduced-motion:no-preference){
  .give-err:not(:empty){animation:rl-err-in .2s var(--rl-ease)}
  .give-btn[aria-busy="true"]::before{content:'';display:inline-block;width:12px;height:12px;margin-right:8px;vertical-align:-1px;
    border:1.5px solid currentColor;border-right-color:transparent;border-radius:50%;animation:rl-spin 1s linear infinite}
}
@media(forced-colors:active){
  .give-btn{border:1px solid ButtonText}
  .give-btn:disabled{border-color:GrayText}
}
/* 6. Touch screens: Send is at least 44px tall (WCAG 2.5.5 target size; the .rl-init-privacy a / .map-card-link
      touch rule). A <button> centres its label in the extra height (29 Oct 2026). */
@media(hover:none){.give-btn{min-height:44px}}
