/* ==========================================================
   Stop the Tenas Project: styles
   Mobile-first. No framework. Colour tokens on :root.
   ========================================================== */

:root {
  --forest-950: #0a1f17;
  --forest-900: #0f2a20;
  --forest-800: #163628;
  --forest-700: #1e4535;
  --forest-500: #2f6b4f;
  --moss: #8fae7a;
  --river-800: #123f52;
  --river-700: #17506a;
  --river-600: #1f5f7a;
  --river-400: #4c93b0;
  --river-100: #dbe9ee;
  --paper: #f6f1e7;
  --paper-2: #ede5d4;
  --paper-3: #e2d7c1;
  --white: #fffdf8;
  --ink: #1a1d1a;
  --ink-2: #3e443e;
  --ink-3: #5d635b;
  --amber: #f2b544;
  --amber-600: #d9982a;
  --clay: #9a5b3c;
  --alert: #c22a1e;
  --red: #c22a1e;        /* buttons, text on light: white on this = 5.8:1 */
  --red-bright: #ee3d2f; /* large display text on dark backgrounds */
  --red-700: #a3221a;    /* deadline bar */
  --red-tint: #fdecea;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 42, 32, .06), 0 8px 24px -8px rgba(15, 42, 32, .18);
  --shadow-lg: 0 2px 4px rgba(15, 42, 32, .06), 0 24px 48px -16px rgba(15, 42, 32, .30);
  --header-h: 60px;
  --bar-h: 40px;
  --gutter: 16px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--river-600); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 650; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: rgba(0,0,0,.08); padding: .1em .35em; border-radius: 4px; }
sup { line-height: 0; }
q { quotes: "\201C" "\201D"; font-style: italic; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 8px;
  font-family: var(--font-ui); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.small { font-family: var(--font-ui); font-size: .875rem; color: var(--ink-3); line-height: 1.5; }
.small--light { color: rgba(246,241,231,.75); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--forest-900); --fg: var(--paper); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.25em;
  font-family: var(--font-ui); font-weight: 700; font-size: 1rem; line-height: 1.1;
  font-stretch: 95%;
  color: var(--fg); background: var(--bg); border: 2px solid var(--bd);
  border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn .ico { width: 1.1em; height: 1.1em; }
.btn--primary { --bg: var(--forest-900); --fg: var(--paper); }
.btn--primary:hover { --bg: var(--forest-700); }
.btn--amber { --bg: var(--amber); --fg: var(--ink); box-shadow: 0 6px 20px -8px rgba(242,181,68,.7); }
.btn--amber:hover { --bg: #f6c463; }
.btn--red { --bg: var(--red); --fg: #fff; box-shadow: 0 6px 20px -8px rgba(194,42,30,.75); }
.btn--red:hover { --bg: #d63326; }
.btn--ghost-light { --bg: transparent; --fg: var(--paper); --bd: rgba(246,241,231,.55); }
.btn--ghost-light:hover { --bg: rgba(246,241,231,.12); --bd: var(--paper); }
.btn--quiet { --bg: transparent; --fg: var(--forest-900); --bd: var(--paper-3); }
.btn--quiet:hover { --bd: var(--forest-700); --bg: var(--white); }
.btn--sm { min-height: 40px; padding: .5em 1em; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: .85em 1.6em; font-size: 1.075rem; }
.btn--block { width: 100%; }
.btn.is-copied { --bg: var(--forest-500); --fg: var(--white); --bd: transparent; }
.btn--quiet.is-copied { --bg: var(--forest-500); }

.link-btn {
  background: none; border: 0; padding: 0; font: inherit; color: var(--river-600);
  text-decoration: underline; text-underline-offset: .18em; cursor: pointer;
}
.text-link { font-family: var(--font-ui); font-weight: 700; color: var(--forest-700); text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 2px; }
.text-link:hover { color: var(--forest-900); }

.eyebrow {
  font-family: var(--font-ui); font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--forest-500); margin: 0 0 .9rem;
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--amber); }
.eyebrow--red { color: var(--red); }

.cite {
  font-family: var(--font-ui); font-size: .68em; font-weight: 700; text-decoration: none;
  color: inherit; opacity: .7; padding: 0 .15em; margin-left: .1em;
  border-radius: 3px;
}
.cite:hover { opacity: 1; background: rgba(242,181,68,.3); }

/* ---------- Deadline bar ---------- */
.deadline-bar { background: var(--red-700); color: #fff; font-family: var(--font-ui); font-size: .875rem; }
.deadline-bar__inner { display: flex; align-items: center; gap: .65rem; min-height: var(--bar-h); padding-top: 6px; padding-bottom: 6px; }
.deadline-bar p { margin: 0; flex: 1; line-height: 1.35; }
.deadline-bar strong { color: #fff; font-weight: 800; }
.hide-sm { display: none; }
@media (min-width: 720px) { .hide-sm { display: inline; } }
.deadline-bar__link { color: #fff; text-decoration: underline !important; text-underline-offset: .2em; font-weight: 700; white-space: nowrap; text-decoration: none; }
.deadline-bar__link:hover { text-decoration: underline; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,241,231,.92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(15,42,32,.08);
}
.site-header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest-900); margin-right: auto; }
.brand__text { font-family: var(--font-display); font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: 1.3rem; letter-spacing: .01em; line-height: 1; }
.brand__text span:first-child { color: var(--red); }
.brand__text span:last-child { color: var(--forest-900); }

.site-nav { order: 3; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; border-radius: 8px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: var(--forest-900); border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav__list {
  list-style: none; margin: 0; padding: 8px var(--gutter) 16px;
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--paper); border-bottom: 1px solid var(--paper-3); box-shadow: var(--shadow);
  display: none;
}
.site-nav__list.is-open { display: block; }
.site-nav__list a { display: block; padding: 12px 4px; font-family: var(--font-ui); font-weight: 600; color: var(--forest-900); text-decoration: none; border-bottom: 1px solid var(--paper-2); }
.site-nav__list li:last-child a { border-bottom: 0; }
html:not(.js) .site-nav__list { display: block; position: static; box-shadow: none; border: 0; padding: 0; }
html:not(.js) .nav-toggle { display: none; }

@media (min-width: 900px) {
  .site-nav { order: 0; }
  .nav-toggle { display: none; }
  .site-nav__list { display: flex !important; position: static; padding: 0; background: none; border: 0; box-shadow: none; gap: 4px; }
  .site-nav__list a { border: 0; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
  .site-nav__list a:hover { background: var(--paper-2); }
  .site-header__cta { margin-left: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--paper);
  min-height: min(92svh, 860px); display: flex; align-items: flex-end;
  padding: 64px 0 56px; overflow: hidden; background: var(--forest-900);
}
.hero__art, .hero__art svg, .hero__photo, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__art { z-index: -1; }
/* Photo: Bulkley River near Witset, Christof46, CC BY-SA 4.0 (credit shown in .hero__credit) */
.hero__photo { object-fit: cover; object-position: 55% 55%; }
.hero__shade {
  background:
    linear-gradient(180deg, rgba(10,31,23,.55) 0%, rgba(10,31,23,.25) 30%, rgba(10,31,23,.72) 62%, rgba(10,31,23,.95) 100%),
    linear-gradient(90deg, rgba(10,31,23,.55) 0%, rgba(10,31,23,0) 75%);
}
.hero__credit {
  position: absolute; right: var(--gutter); bottom: 10px; margin: 0; max-width: calc(100% - 2 * var(--gutter));
  font-family: var(--font-ui); font-size: .72rem; line-height: 1.3; text-align: right; color: rgba(246,241,231,.7);
}
.hero__credit a { color: inherit; }
.hero__credit a:hover { color: var(--paper); }
.photo-credit { margin-top: 24px; }
.hero__content { position: relative; }
.hero__title { margin: 0 0 1.25rem; }
.hero__title-main {
  display: block; font-family: var(--font-display); font-weight: 900; font-stretch: 68%;
  text-transform: uppercase; font-size: clamp(3.1rem, 15vw, 8.75rem); line-height: .86; letter-spacing: -.012em; word-spacing: .08em;
  text-wrap: balance;
}
.hero__title-sub {
  display: block; margin-top: .6rem;
  font-family: var(--font-body); font-style: italic; font-weight: 500;
  font-size: clamp(1.6rem, 5.4vw, 3rem); line-height: 1.1; color: var(--amber);
}
.hero__lede { max-width: 38rem; font-size: clamp(1.075rem, 2.4vw, 1.3rem); line-height: 1.5; color: rgba(246,241,231,.92); margin-bottom: 1.75rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.25rem; }
.hero__ctas .btn { flex: 1 1 220px; }
@media (min-width: 640px) { .hero__ctas .btn { flex: 0 0 auto; } }
.hero__time { display: flex; align-items: center; gap: .5em; font-family: var(--font-ui); font-size: .9rem; color: rgba(246,241,231,.8); margin: 0; }
.hero__time svg { width: 18px; height: 18px; flex: none; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section--paper { background: var(--paper); }
.section--forest { background: var(--forest-900); color: var(--paper); }
.section--river { background: var(--river-800); color: var(--paper); }
.section--action { background: var(--paper-2); }
.section--sources { background: var(--paper); border-top: 1px solid var(--paper-3); }

.section-title {
  font-weight: 850; font-stretch: 80%; font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1; letter-spacing: -.015em; text-wrap: balance; max-width: 18ch;
}
.section-head { margin-bottom: 40px; max-width: 48rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .section-title { margin-left: auto; margin-right: auto; max-width: 24ch; }
.section--action { padding-top: 56px; }
@media (min-width: 900px) { .section--action { padding-top: 80px; } }
.section--action .section-head { margin-bottom: 28px; }
.section-sub { font-size: 1.125rem; color: var(--ink-2); max-width: 40rem; }
.section-head--center .section-sub { margin-left: auto; margin-right: auto; }
.section--forest .section-sub, .section--river .lead { color: rgba(246,241,231,.85); }
.lead { font-size: clamp(1.125rem, 2.2vw, 1.3rem); line-height: 1.5; }

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .why-grid { grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; } .why-intro { position: sticky; top: calc(var(--header-h) + 32px); } }

.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
  background: var(--white); border-radius: var(--radius); padding: 20px 18px 18px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px;
  border-top: 4px solid var(--forest-500);
}
.stat__num {
  font-family: var(--font-display); font-weight: 900; font-stretch: 70%;
  font-size: clamp(2.6rem, 9vw, 4rem); line-height: .9; color: var(--forest-900); letter-spacing: -.02em;
}
.stat__num small { font-size: .42em; font-weight: 800; margin-left: .12em; letter-spacing: 0; color: var(--forest-500); }
.stat__num--word { font-size: clamp(1.9rem, 6.6vw, 2.8rem); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.stat__label { font-family: var(--font-ui); font-size: .92rem; line-height: 1.4; color: var(--ink-2); }
.stat--alert { border-top-color: var(--red); background: var(--red-tint); }
.stat--alert .stat__num { color: var(--alert); }
.stat--date { border-top-color: var(--red-bright); background: var(--forest-900); }
.stat--date .stat__num { color: var(--amber); }
.stat--date .stat__label { color: rgba(246,241,231,.85); }
@media (max-width: 380px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Risks ---------- */
.legend { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-family: var(--font-ui); font-size: .875rem; color: rgba(246,241,231,.8); }
.legend li { display: flex; align-items: center; gap: 8px; }
.tag {
  display: inline-block; font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: .3em .65em; border-radius: 999px; line-height: 1.2; white-space: nowrap;
}
.tag--fact { background: var(--moss); color: var(--forest-950); }
.tag--company { background: var(--river-100); color: var(--river-800); }
.tag--risk { background: var(--red); color: #fff; }

.risk-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .risk-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .risk-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.risk {
  background: var(--forest-800); border: 1px solid rgba(246,241,231,.08);
  border-radius: var(--radius); padding: 26px 24px 22px; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.risk:hover { transform: translateY(-3px); border-color: rgba(242,181,68,.35); background: #1a3d2e; }
.risk__icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(76,147,176,.18); color: #8cc3d8; display: grid; place-items: center; margin-bottom: 18px; }
.risk__icon svg { width: 30px; height: 30px; }
.risk h3 { font-size: 1.45rem; font-weight: 800; font-stretch: 85%; color: var(--white); }
.risk p { color: rgba(246,241,231,.86); font-size: 1rem; line-height: 1.55; }
.risk strong { color: var(--white); }
.risk__tags { margin: auto 0 0 !important; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }

.after-closure {
  margin-top: 40px; display: grid; gap: 28px; padding: 28px 24px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(242,181,68,.14), rgba(76,147,176,.12)); border: 1px solid rgba(242,181,68,.3);
}
@media (min-width: 860px) { .after-closure { grid-template-columns: 1fr 1fr; padding: 40px; gap: 48px; } }
.after-closure h3 { font-size: 1.5rem; font-weight: 800; font-stretch: 85%; color: var(--amber); }
.after-closure p { margin: 0; color: rgba(246,241,231,.9); }
.after-closure strong { color: var(--white); }

/* ---------- Action ---------- */
.section--action { background:
  radial-gradient(1200px 400px at 50% 0%, rgba(242,181,68,.18), transparent 70%),
  var(--paper-2); }
.steps { list-style: none; padding: 0; margin: 0 auto 32px; max-width: 980px; display: grid; gap: 10px; font-family: var(--font-ui); font-size: .95rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.steps li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.4; color: var(--ink-2); }
.steps__n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--forest-900); color: var(--amber); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }

.choose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 980px; margin: 0 auto 20px; }
@media (min-width: 640px) { .choose { gap: 16px; margin-bottom: 28px; } }
.choose__card {
  appearance: none; text-align: left; cursor: pointer; font: inherit; color: var(--forest-900);
  background: var(--white); border: 2px solid transparent; border-radius: var(--radius);
  padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent; position: relative;
}
@media (min-width: 640px) { .choose__card { padding: 22px 20px; align-items: flex-start; text-align: left; gap: 8px; } }
.choose__card:hover { transform: translateY(-2px); border-color: var(--paper-3); }
.choose__card[aria-selected="true"] { background: var(--forest-900); color: var(--paper); border-color: var(--forest-900); box-shadow: var(--shadow-lg); }
.choose__card[aria-selected="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%) rotate(45deg);
  width: 18px; height: 18px; background: var(--forest-900); border-radius: 3px;
}
@media (min-width: 640px) { .choose__card[aria-selected="true"]::after { left: 40px; } }
.choose__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; color: var(--forest-700); }
.choose__card[aria-selected="true"] .choose__icon { background: var(--amber); color: var(--ink); }
.choose__icon svg { width: 24px; height: 24px; }
.choose__label { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: clamp(.95rem, 3.6vw, 1.35rem); line-height: 1.1; }
.choose__meta { font-family: var(--font-ui); font-size: .8rem; color: var(--ink-3); display: none; }
.choose__card[aria-selected="true"] .choose__meta { color: rgba(246,241,231,.75); }
@media (min-width: 640px) { .choose__meta { display: block; } }

.action-layout { display: grid; gap: 20px; max-width: 1180px; margin: 0 auto; align-items: start; }
@media (min-width: 980px) { .action-layout { grid-template-columns: 360px 1fr; gap: 28px; } .details { position: sticky; top: calc(var(--header-h) + 20px); } }

.details, .panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 18px; }
@media (min-width: 640px) { .details, .panel { padding: 28px; } }
.details__title, .panel__title { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; font-stretch: 85%; margin: 0; }
.details__n { width: 28px; height: 28px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-family: var(--font-ui); font-size: .85rem; font-weight: 800; flex: none; }
.details__hint { font-family: var(--font-ui); font-size: .85rem; color: var(--ink-3); margin: 10px 0 18px; line-height: 1.45; }

.field { margin-bottom: 14px; }
.field label, .seg legend, .mailto label, .subjects legend {
  display: block; font-family: var(--font-ui); font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: var(--forest-900);
}
.opt { font-weight: 500; color: var(--ink-3); font-size: .8rem; margin-left: 4px; }
input[type="text"], input[type="email"], textarea {
  width: 100%; font-family: var(--font-ui); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 2px solid var(--paper-3); border-radius: var(--radius-sm);
  padding: 11px 12px; min-height: 48px; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.45; }
input:hover, textarea:hover { border-color: #cfc2a6; }
input:focus, textarea:focus { outline: none; border-color: var(--forest-500); background: var(--white); box-shadow: 0 0 0 4px rgba(47,107,79,.18); }
input::placeholder, textarea::placeholder { color: #8b8f86; }
.field-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.field__help { font-family: var(--font-ui); font-size: .8rem; color: var(--ink-3); margin: 6px 0 0; line-height: 1.4; }

.seg { border: 0; padding: 0; margin: 0 0 16px; }
.seg__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--paper); padding: 4px; border-radius: 12px; border: 2px solid var(--paper-3); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label span { display: block; text-align: center; padding: 9px 6px; border-radius: 8px; font-family: var(--font-ui); font-weight: 700; font-size: .92rem; line-height: 1.15; color: var(--ink-2); transition: background-color .15s, color .15s; }
.seg label small { display: block; font-weight: 500; font-size: .72rem; opacity: .8; }
.seg input:checked + span { background: var(--forest-900); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 4px; }
.panel__head, .panel__subhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel__subhead { margin: 20px 0 12px; }
.panel__label { font-family: var(--font-ui); font-weight: 700; font-size: .9rem; color: var(--forest-900); }
.panel__tools { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 520px) {
  .panel__tools { width: 100%; }
  .panel__tools .btn--primary { flex: 1; }
}

.paper {
  background: #fffefa; border: 1px solid var(--paper-3); border-radius: var(--radius-sm);
  padding: 24px 20px; font-family: var(--font-body); font-size: 1.02rem; line-height: 1.65; color: var(--ink);
  white-space: pre-wrap; overflow-wrap: break-word;
  box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0,0,0,.02);
  max-height: 620px; overflow: auto;
}
@media (min-width: 640px) { .paper { padding: 36px 40px; } }
.paper--edit { width: 100%; min-height: 520px; max-height: none; display: block; font-family: var(--font-body); font-size: 1.02rem; resize: vertical; }
.paper--edit[hidden] { display: none; }
.paper[hidden] { display: none; }
.fill { background: rgba(242,181,68,.28); border-radius: 3px; padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; color: inherit; }
.ph { background: transparent; color: var(--clay); border-bottom: 2px dashed rgba(154,91,60,.6); font-style: italic; padding: 0 .1em; }
.ph-optional { display: block; color: var(--ink-3); font-style: italic; font-size: .92em; border: 2px dashed var(--paper-3); border-radius: 6px; padding: .5em .75em; white-space: normal; }
.edit-note { font-family: var(--font-ui); font-size: .85rem; background: #fff4dc; border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; color: var(--ink-2); }

.subjects { border: 0; padding: 0; margin: 0; }
.subjects [data-subjects] { display: grid; gap: 8px; margin-bottom: 10px; }
.subject-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--paper-3); background: var(--paper); cursor: pointer; font-family: var(--font-ui); font-size: .95rem; line-height: 1.35; transition: border-color .15s, background-color .15s; }
.subject-opt:hover { border-color: #cfc2a6; }
.subject-opt input { margin: 3px 0 0; accent-color: var(--forest-700); width: 18px; height: 18px; flex: none; }
.subject-opt:has(input:checked) { border-color: var(--forest-500); background: var(--white); }

.mailto { margin-top: 20px; padding: 18px; background: var(--paper); border-radius: var(--radius-sm); }
.mailto__row { display: grid; gap: 10px; }
@media (min-width: 640px) { .mailto__row { grid-template-columns: 1fr auto; } }

.reassure { font-family: var(--font-ui); font-size: .95rem; line-height: 1.5; background: var(--river-100); color: var(--river-800); padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.reassure strong { display: block; margin-bottom: 2px; }

.script { display: grid; gap: 12px; }
.script__block { border-left: 4px solid var(--forest-500); background: #fffefa; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; border-top: 1px solid var(--paper-3); border-right: 1px solid var(--paper-3); border-bottom: 1px solid var(--paper-3); }
.script__block--ask { border-left-color: var(--amber); background: #fff8e8; }
.script__block--alt { border-left-color: var(--river-400); }
.script__kicker { font-family: var(--font-ui); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--forest-500); margin: 0 0 6px; }
.script__block--ask .script__kicker { color: var(--clay); }
.script__block--alt .script__kicker { color: var(--river-600); }
.script__block p { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.script__block ul { margin: 0; padding-left: 1.2em; }
.script__block li { margin-bottom: 6px; }
.script__block li:last-child { margin-bottom: 0; }
.script__say { font-style: normal; }

.howto { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--paper-2); }
.howto h4 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.howto ol { margin: 0; padding-left: 1.3em; font-family: var(--font-ui); font-size: .93rem; line-height: 1.5; color: var(--ink-2); }
.howto li { margin-bottom: 6px; }

.toast {
  position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 20px); z-index: 80;
  margin: 0; max-width: calc(100% - 32px); width: max-content;
  background: var(--forest-950); color: var(--paper); font-family: var(--font-ui); font-weight: 600; font-size: .95rem;
  padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--alert); }
.toast:empty { padding: 0; }
@media (min-width: 900px) { .toast { bottom: 32px; } }

.also { display: grid; gap: 16px; max-width: 1180px; margin: 32px auto 0; }
@media (min-width: 900px) { .also { grid-template-columns: 1.15fr 1fr; gap: 20px; } }
.also__card { background: var(--white); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .also__card { padding: 32px; } }
.also__card h3 { font-size: 1.5rem; font-weight: 800; font-stretch: 85%; }
.also__card--bc { border: 3px solid var(--red); position: relative; }
.also__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.events { list-style: none; margin: 0 0 14px; padding: 0; }
.events li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--paper-2); font-family: var(--font-ui); font-size: .95rem; line-height: 1.4; }
.events time { font-weight: 800; color: var(--forest-700); }
.events li.is-past { opacity: .5; }
.events li.is-past time::after { content: " · past"; font-weight: 500; font-size: .8em; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.section--river .section-title { color: var(--white); }
.section--river .lead { margin-bottom: 1.5rem; }
.section--river .btn + .small { margin-top: 10px; }
.lookup { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px 20px; }
@media (min-width: 640px) { .lookup { padding: 32px; } }
.lookup a { color: #9fd3e6; }
.lookup__steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.lookup__steps li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 22px; }
.lookup__steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: var(--ink); font-family: var(--font-ui); font-weight: 800; display: grid; place-items: center; }
.lookup h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .3em; color: var(--white); }
.lookup p { margin: 0; color: rgba(246,241,231,.85); font-size: 1rem; }
.lookup code { background: rgba(255,255,255,.12); color: var(--white); }
.lookup__alt { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; margin-top: 4px; }

/* ---------- Share ---------- */
.share-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .share-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.share-link { display: flex; gap: 8px; margin: 8px 0 16px; }
.share-link input { flex: 1; min-width: 0; font-size: .95rem; background: var(--white); }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; min-height: 44px; padding: .5em 1.05em; border-radius: 999px; border: 2px solid var(--paper-3); background: var(--white); font-family: var(--font-ui); font-weight: 700; font-size: .92rem; color: var(--forest-900); text-decoration: none; transition: border-color .15s, transform .15s; }
.share-btn:hover { border-color: var(--forest-700); transform: translateY(-1px); }
.posts { display: grid; gap: 16px; }
.post { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-left: 5px solid var(--river-400); }
.post__label { font-family: var(--font-ui); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--river-600); margin-bottom: 8px; }
.post__text { font-size: 1.02rem; line-height: 1.55; overflow-wrap: anywhere; }

/* ---------- Sources ---------- */
.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 860px) { .sources { grid-template-columns: 1fr 1fr; gap: 16px; } }
.source { display: grid; grid-template-columns: 40px 1fr; gap: 14px; background: var(--white); border: 1px solid var(--paper-3); border-radius: var(--radius); padding: 20px; transition: border-color .15s; }
.source:target { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(242,181,68,.3); }
.source__n { width: 36px; height: 36px; border-radius: 50%; background: var(--forest-900); color: var(--amber); font-family: var(--font-ui); font-weight: 800; display: grid; place-items: center; }
.source h3 { font-family: var(--font-ui); font-size: 1.05rem; font-weight: 700; line-height: 1.35; font-stretch: 100%; }
.source h3 a { color: var(--forest-900); }
.source p { font-size: .95rem; color: var(--ink-2); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-950); color: var(--paper); padding: 56px 0 120px; }
@media (min-width: 900px) { .site-footer { padding-bottom: 56px; } }
.site-footer__inner { display: grid; gap: 28px; }
@media (min-width: 860px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr; } .site-footer__fine { grid-column: 1 / -1; } }
.site-footer__brand { font-family: var(--font-display); font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: 2.1rem; line-height: .95; margin-bottom: 12px; }
.site-footer__brand span { color: var(--amber); }
.stop-word, .site-footer__brand .stop-word { color: var(--red-bright); }
.site-footer .small { color: rgba(246,241,231,.7); }
.site-footer a { color: var(--paper); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--font-ui); font-weight: 600; align-content: start; }
.site-footer__fine { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; margin: 0; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(246,241,231,0), rgba(246,241,231,.95) 35%);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { box-shadow: 0 10px 30px -8px rgba(15,42,32,.45); min-height: 54px; font-size: 1.05rem; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Reveal animation (progressive) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  .btn, .risk, .choose__card, .share-btn { transition: none; }
  .btn:hover, .risk:hover, .choose__card:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .deadline-bar, .site-header, .sticky-cta, .toast, .hero__art { display: none !important; }
  body { background: #fff; }
}
