/* Wolf Monitor 2026–27 — Susiseuranta
   V3 Unified Architectural Editorial / Brutalist-Nordic Stylesheet
   Zero external dependencies, zero CDNs.
   Unified color-blocked palette: Gallery Grey (#eeeeee), Concrete (#e9e9e9),
   Obsidian (#0e0e0e), Deep Oxblood (#120b0c), Blood Crimson (#9e1217 / #d91b22),
   Deep Boreal Pine (#0b3326), and Signal Yellow (#FFE45C). */

@import url("fonts/ibm-plex-mono.css");

:root,
[data-theme="light"],
[data-theme="dark"] {
  --bg: #eeeeee;
  --surface: #ffffff;
  --surface-2: #e2e3df;
  --surface-3: #d6d7d2;
  --ink: #111111;
  --ink-2: #444444;
  --muted: #6e6e6e;
  --rule: rgba(17, 17, 17, 0.14);
  --rule-strong: #111111;
  --signal: #9e1217;
  --signal-ink: #ffffff;
  --signal-soft: rgba(158, 18, 23, 0.08);
  --blood: #9e1217;
  --blood-bright: #d91b22;
  --blood-deep: #6e0b0f;
  --obsidian: #0e0e0e;
  --oxblood: #120b0c;
  --oxblood-row: #240a0c;
  --pine: #0b3326;
  --pine-panel: #103d2e;
  --yellow: #FFE45C;
  --ok: #0b3326;
  --ok-soft: rgba(11, 51, 38, 0.1);
  --warn: var(--yellow);
  --warn-soft: rgba(255, 228, 92, 0.28);
  --blue: #16324f;
  --female: #9e1217;
  --male: #16324f;
  --chart-grid: rgba(17, 17, 17, 0.1);

  /* Architectural Poster Type Scale & Spacing */
  --t-caption: 0.8125rem;
  --t-body: 1rem;
  --t-lead: clamp(1.15rem, 1.55vw, 1.45rem);
  --t-sub: clamp(1.4rem, 2.3vw, 2.15rem);
  --t-chapter: clamp(2.4rem, 4.8vw, 4.5rem);
  --t-masthead: clamp(2.8rem, 7.6vw, 7.2rem);
  --t-mega: clamp(5.2rem, 13.5vw, 12.2rem);

  --space-section: clamp(96px, 12vw, 168px);
  --space-sub: clamp(52px, 6vw, 84px);
  --pad-x: clamp(20px, 5.5vw, 88px);
  --wrap: 1360px;

  /* Unified Architectural Grid: 12 desktop / 6 tablet / 3 mobile */
  --grid-cols: 12;
  --grid-gap: 32px;

  --font-sans: "Helvetica Neue", "Neue Haas Grotesk Display Pro", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--rule);
  transition: color 120ms ease, text-decoration-color 120ms ease;
}
a:hover, a:focus-visible {
  color: var(--signal);
  text-decoration-color: var(--signal);
}
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.sr-only {
  position: absolute; 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: 20px; top: -56px; z-index: 60;
  background: var(--signal); color: var(--signal-ink); font-weight: 600;
  font-size: 13px; padding: 10px 18px; text-decoration: none;
  transition: top 120ms ease;
}
.skip-link:focus { top: 0; }

/* ================================================================
   URGENT CONSULTATION BAND
   ================================================================ */

.banner-stack {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.banner-stack:empty { display: none; }

.banner {
  background: var(--signal);
  color: var(--signal-ink);
}
.banner-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.banner-disclosure {
  width: 100%;
}
.banner-head {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 10px 0;
  cursor: pointer;
  user-select: none;
}
.banner-head::-webkit-details-marker { display: none; }
.banner-head:hover .banner-title { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.55); }
.banner-head:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.banner-head-main {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
  flex: 1;
}
.banner-tag {
  display: inline-flex;
  align-items: center;
  flex: none;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 4px 7px;
  white-space: nowrap;
}
.banner-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  min-width: 0;
}
.banner-title .banner-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  margin-left: 8px;
  opacity: 0.78;
  white-space: nowrap;
}
.banner-head-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.banner-deadline-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--yellow);
  white-space: nowrap;
}
.banner-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
  opacity: 0.85;
}
.banner-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.75px solid var(--signal-ink);
  border-bottom: 1.75px solid var(--signal-ink);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 150ms ease;
}
.banner-disclosure[open] .banner-toggle::before {
  transform: translateY(2px) rotate(-135deg);
}
.banner-body {
  padding: 10px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.banner-summary {
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0.92;
  max-width: 84ch;
}
.banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  font-size: 12.5px;
  opacity: 0.92;
}
.banner-meta .deadline { font-weight: 600; color: var(--yellow); }
.banner-meta a { color: var(--signal-ink); text-decoration-color: rgba(255, 255, 255, 0.65); font-weight: 600; overflow-wrap: anywhere; }
.banner-meta a:hover { opacity: 0.78; color: var(--signal-ink); }
.banner-meta .dot { opacity: 0.5; }

/* ================================================================
   WHISPER-QUIET TOPBAR (MINIMAL CHROME)
   ================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg);
}

.topbar {
  border-bottom: 1px solid var(--rule);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.topbar-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.mark-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  display: inline-block;
}
.mark-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
  transition: color 120ms ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.topbar-controls {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  flex: none;
}

.lang-toggle,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ctrl-sep {
  color: var(--rule);
  font-size: 12px;
  user-select: none;
}
.lang-toggle button,
.theme-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 2px;
  cursor: pointer;
  transition: color 120ms ease;
}
.lang-toggle button[aria-pressed="true"],
.theme-toggle button[aria-pressed="true"] {
  color: var(--ink);
  font-weight: 700;
}
.lang-toggle button:hover:not([aria-pressed="true"]),
.theme-toggle button:hover:not([aria-pressed="true"]) {
  color: var(--ink);
}

/* ================================================================
   SECTIONS & ARCHITECTURAL POSTER RHYTHM
   ================================================================ */

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  background: var(--bg);
  scroll-margin-top: 76px;
}

[id] {
  scroll-margin-top: 76px;
}

.section-stone {
  background: var(--surface-2);
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-hero {
  padding-top: clamp(48px, 7vw, 112px);
  padding-bottom: clamp(72px, 9vw, 132px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px 64px;
  align-items: end;
  margin-bottom: clamp(44px, 5.5vw, 76px);
}

h2 {
  font-size: var(--t-chapter);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--ink);
}

h3 {
  font-size: var(--t-sub);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
}

.sub {
  color: var(--ink-2);
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.48;
  max-width: 52ch;
}
.sub.small, .small { font-size: 14px; line-height: 1.55; }
.muted { color: var(--muted); }

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  min-width: 0;
  max-width: 100%;
}

/* ============================================================
   ONE BOX — every small label on the site (badge, tag, pill,
   chip, flag) shares this single layout: same sans font, same
   size, one 1px outline in the label's own color. Only the
   color changes between variants (ink default, ok / warn /
   signal / blue / muted). The only filled box is the alert.
   ============================================================ */
.badge, .tag, .derog-method-pill, .bill-status, .tl-track-tag, .tl-stat,
.live-tag, .tl-live-tag, .sci-kpi-badge, .osint-license-pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
  color: var(--ink);
}
/* The single filled box: over-quota / anomaly alerts */
.badge-over, .anomaly-flag {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--signal-ink);
}

/* ============================================================
   SWISS OPEN-CANVAS MODULES — zero clunky white boxes; crisp
   colored top/left accent rules directly on Paper/Stone bands
   with generous spacing. Only the map canvas keeps --surface.
   ============================================================ */
.gap-card, .civic-cell, .osint-inspector-card, .lic-card {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--card-accent, var(--rule-strong));
  padding: 20px 0 0;
  min-width: 0;
  max-width: 100%;
}
.gap-card {
  border-top: 0;
  border-left: 3px solid var(--warn);
  padding: 4px 0 4px 20px;
}
.osint-media-card {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--card-accent, var(--signal));
  padding-top: 14px;
  min-width: 0;
  max-width: 100%;
}
.gap-card { --card-accent: var(--warn); }
.civic-cell { --card-accent: var(--blue); }
.osint-media-card { --card-accent: var(--signal); }
.osint-inspector-card { --card-accent: var(--blue); }
.lic-card { --card-accent: var(--signal); }
.lic-card:nth-child(2) { --card-accent: var(--warn); }
.lic-card:nth-child(3) { --card-accent: var(--blue); }

/* Errors */

.section-error,
.hero-error {
  margin-top: 20px;
  font-size: 14px;
  color: var(--signal);
  background: var(--signal-soft);
  border-left: 3px solid var(--signal);
  padding: 14px 18px;
}
.hero-error { margin: 24px 0; }
.hero-error[hidden] { display: none; }
.hero-error .err-title { font-weight: 600; display: block; margin-bottom: 4px; }
.hero-error code { word-break: break-word; }

.retry-btn {
  margin-top: 12px;
  appearance: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--signal-ink);
  background: var(--signal);
  border: 0;
  padding: 8px 16px;
}
.retry-btn:hover { opacity: 0.88; }

/* ================================================================
   HERO POSTER SPREAD (01 OVERVIEW)
   ================================================================ */

.hero-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: clamp(20px, 3vw, 36px);
}
.hero-kicker-source {
  color: var(--signal);
  text-decoration: none;
  font-weight: 600;
}
.hero-kicker-source:hover { text-decoration: underline; }

.masthead-title {
  font-size: var(--t-masthead);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.92;
  color: var(--ink);
  overflow-wrap: break-word;
  max-width: 100%;
}
.masthead-year {
  font-weight: 300;
  color: var(--muted);
  margin-left: 0.14em;
  white-space: nowrap;
}

.hero-focal {
  margin-top: clamp(56px, 8vw, 112px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 36px 64px;
  align-items: end;
}

.hero-statement-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tagline {
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.46;
  letter-spacing: -0.015em;
  color: var(--ink-2);
  max-width: 38ch;
}

.hero-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14px;
  font-weight: 500;
}
.hero-jump-links a {
  color: var(--ink);
  text-decoration-color: var(--rule);
}

.hero-counter-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero-counter-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: clamp(10px, 1.8vw, 22px);
  flex-wrap: wrap;
}

.n {
  font-size: var(--t-mega);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.n.signal { color: var(--signal); }
.n.ok { color: var(--ok); }
.n.warn { color: var(--warn); }

.hero-denom {
  font-size: clamp(2rem, 4.4vw, 4.1rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hero-counter-caption {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.hero-derog-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-decoration: none;
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  transition: border-color 140ms ease, background-color 140ms ease;
}
.hero-derog-pill:hover,
.hero-derog-pill:focus-visible {
  border-color: var(--warn);
  background: color-mix(in srgb, var(--warn) 18%, transparent);
}

/* Sculptural Full-Width Progress Hairline */

.hero-progress-block {
  margin-top: clamp(44px, 6vw, 72px);
}

.barwrap {
  height: 4px;
  background: var(--rule);
  overflow: hidden;
}
.barfill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--signal);
  transition: width 320ms ease;
}
.barfill.over { background: var(--signal); }

.hero-progress-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 32px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.hero-metrics-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}
.hero-metric-item strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}
.hero-metric-item strong.warn { color: var(--warn); }
.hero-metric-sep { color: var(--rule); }

.sex-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.sex-bar {
  display: flex;
  width: 112px;
  height: 4px;
  background: var(--rule);
  overflow: hidden;
}
.sex-bar span { display: block; height: 100%; width: 0; }
.sex-female { background: var(--female); }
.sex-male { background: var(--male); }

.sex-counts {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.sex-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sex-swatch {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.sex-counts b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Quiet 3-Column Context Strip (Unboxed on Open Paper) */

.context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 56px;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--rule);
}
.context:empty { display: none; }

.ctx-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ctx-value {
  font-size: clamp(2.1rem, 3.6vw, 3.35rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.ctx-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin-top: 4px;
}
.ctx-src {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* Quiet Collapsible Audit Drawer */

.audit-drawer {
  margin-top: clamp(44px, 5vw, 68px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.audit-drawer summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--muted);
}
.audit-drawer summary::-webkit-details-marker { display: none; }
.audit-drawer summary strong {
  color: var(--ink);
  font-weight: 600;
}
.audit-toggle-hint {
  margin-left: auto;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink-2);
}

.meta-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 28px;
}
.meta-list > div { min-width: 0; }
.meta-list dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.meta-list dd {
  font-size: 13.5px;
  margin-top: 4px;
  line-height: 1.45;
  word-break: break-word;
  color: var(--ink);
}
.meta-list .iso {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 2px;
  word-break: break-all;
}
.meta-hash {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

/* ================================================================
   CUMULATIVE CHART
   ================================================================ */

.chart-panel {
  padding: 0;
  background: transparent;
  border: 0;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  color: var(--ink-2);
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.swatch {
  width: 18px;
  height: 3px;
  display: inline-block;
}
.swatch-current { background: var(--signal); }
.swatch-baseline { background: var(--blue); }
.swatch-quota {
  background: transparent;
  border-top: 2px dashed var(--ink);
  height: 0;
}

.chart-scroll {
  overflow-x: auto;
  padding: 24px 0 8px;
}
.chart { min-width: 320px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .grid-line { stroke: var(--chart-grid); stroke-width: 1; }
.chart .axis-line { stroke: var(--rule-strong); stroke-width: 1.2; }
.chart .tick-label {
  fill: var(--muted);
  font-size: 11px;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}
.chart .axis-title {
  fill: var(--muted);
  font-size: 11px;
  font-family: var(--font-sans);
}
.chart .line-current {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2.8;
  stroke-linejoin: miter;
  stroke-linecap: butt;
}
.chart .line-baseline {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-dasharray: 5 5;
  stroke-linejoin: miter;
}
.chart .point-current { fill: var(--signal); }
.chart .point-baseline { fill: var(--blue); }
.chart .quota-line {
  stroke: var(--ink);
  stroke-opacity: 0.78;
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}
.chart .quota-label-bg {
  fill: var(--ink);
}
.chart .quota-label {
  fill: var(--yellow);
  font-size: 11px;
  font-weight: 700;
}
.chart .today-line {
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.chart .today-label {
  fill: var(--muted);
  font-size: 11px;
}
.chart-empty {
  padding: 44px 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ================================================================
   OPEN HAIRLINE TABLES (QUOTA AREAS, SOURCES, LEGAL)
   ================================================================ */

.table-wrap {
  overflow-x: auto;
  min-width: 0;
  max-width: 100%;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 20px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.panel.table-wrap th:first-child,
.panel.table-wrap td:first-child { padding-left: 20px; }
.panel.table-wrap th:last-child,
.panel.table-wrap td:last-child { padding-right: 20px; }

th {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
}
th button {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}
th button:hover { color: var(--ink); }
th .sort-arrow { font-size: 10px; opacity: 0.45; }
th[aria-sort="ascending"] .sort-arrow,
th[aria-sort="descending"] .sort-arrow {
  opacity: 1;
  color: var(--signal);
}

.col-idx,
td.cell-idx {
  width: 44px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

td.num, th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
td.num {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

tbody tr:hover td {
  background: rgba(20, 20, 20, 0.025);
}
[data-theme="dark"] tbody tr:hover td {
  background: rgba(242, 239, 233, 0.03);
}

tr.total td {
  font-weight: 700;
  border-top: 2px solid var(--rule-strong);
  border-bottom: none;
  padding-top: 24px;
}

.cell-area {
  min-width: 190px;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.cell-fill { min-width: 165px; }

.fill-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.qbar {
  display: inline-block;
  width: 104px;
  height: 3px;
  background: var(--rule);
  overflow: hidden;
  flex: none;
}
.qbar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
}
.qbar.almost i { background: var(--warn); }
.qbar.over i { background: var(--signal); }

.fill-value {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.fill-value.over {
  color: var(--signal);
  font-weight: 700;
}

.badge-open { color: var(--ok); }
.badge-full { color: var(--warn); }

td.date {
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ================================================================
   EVENT LEDGER (OPEN ARCHITECTURAL LIST)
   ================================================================ */

.event-list {
  display: grid;
  border-top: 1px solid var(--rule-strong);
}
.event-list:empty + .section-error { margin-top: 0; }

.event-card {
  border-bottom: 1px solid var(--rule);
  border-left: 3px solid transparent;
  padding: 24px 0 24px 18px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 10px 36px;
  align-items: start;
}

.event-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.event-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.event-type {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.event-time {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.event-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.event-title {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}
.event-detail {
  font-size: 14px;
  color: var(--muted);
}
.event-detail b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.event-note {
  font-size: 14px;
  color: var(--ink-2);
  padding-top: 6px;
  max-width: 66ch;
}

.event-card.anomaly {
  background: var(--signal-soft);
  padding-right: 18px;
  border-left-color: var(--signal);
}
.event-card[data-type="cluster_kill"],
.event-card[data-type="over_quota"] { border-left-color: var(--signal); }
.event-card[data-type="count_decreased"],
.event-card[data-type="quota_reached"] { border-left-color: var(--warn); }
.event-card[data-type="kill_logged"] { border-left-color: var(--ok); }
.event-card[data-type="area_status_changed"] { border-left-color: var(--blue); }

.empty-state {
  padding: 40px 20px;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* ================================================================
   TWO-TRACK POLICY TIMELINE
   ================================================================ */

.framing {
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.028em;
  line-height: 1.34;
  color: var(--ink);
  margin-bottom: clamp(28px, 4vw, 44px);
  max-width: 50ch;
}

/* Controls bar */
.tl-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 0 22px;
  margin-bottom: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.tl-seg {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
  background: transparent;
}

.tl-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.tl-btn + .tl-btn {
  border-left: 1px solid var(--rule-strong);
}
.tl-btn:hover {
  color: var(--ink);
}
.tl-btn.is-active {
  background: var(--ink);
  color: var(--bg);
}

.tl-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tl-chip {
  appearance: none;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background-color 0.14s ease;
}
.tl-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.tl-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.tl-chip[data-track="finland_legal"].is-active {
  border-color: var(--warn);
  background: var(--warn);
  color: #ffffff;
}
.tl-chip[data-track="eu_catalyst"].is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}
.tl-chip[data-track="convergence"].is-active {
  border-color: var(--signal);
  background: var(--signal);
  color: #ffffff;
}
.tl-chip-milestone.is-active {
  border-color: var(--signal);
  background: var(--signal);
  color: #ffffff;
}

/* Parallel tracks */
.timeline-tracks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 64px;
  align-items: start;
}

.track {
  min-width: 0;
}

.track-head {
  padding-bottom: 18px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--rule-strong);
}
.track[data-track="finland_legal"] .track-head { border-bottom-color: var(--warn); }
.track[data-track="eu_catalyst"] .track-head { border-bottom-color: var(--blue); }
.track[data-track="convergence"] .track-head { border-bottom-color: var(--signal); }

.track-head-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.track-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  font-weight: 700;
  font-size: 12px;
  color: #ffffff;
  background: var(--ink);
}
.track[data-track="finland_legal"] .track-code { background: var(--warn); }
.track[data-track="eu_catalyst"] .track-code { background: var(--blue); }
.track[data-track="convergence"] .track-code { background: var(--signal); }

.track-span {
  font-weight: 600;
  color: var(--ink);
}

.track-count {
  color: var(--muted);
  margin-left: auto;
}

.track-label {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--ink);
}
.track[data-track="finland_legal"] .track-label { color: var(--warn); }
.track[data-track="eu_catalyst"] .track-label { color: var(--blue); }
.track[data-track="convergence"] .track-label { color: var(--signal); }

.track-summary {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.54;
  color: var(--ink-2);
  max-width: 62ch;
}

/* Visual convergence bridge */
.tl-bridge {
  margin: 24px 0 8px;
}

.tl-bridge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tl-bridge-svg {
  width: 100%;
  height: 68px;
  display: block;
  overflow: visible;
}

.tl-bridge-line {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.tl-bridge-a { stroke: var(--warn); }
.tl-bridge-b { stroke: var(--blue); }

.tl-bridge-node {
  fill: var(--signal);
  stroke: var(--surface-2);
  stroke-width: 3;
}

.tl-bridge-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--signal);
  padding: 4px 12px;
  border: 1px solid var(--signal);
  background: var(--surface);
}

/* Timeline lists & items */
.tl-list {
  list-style: none;
  display: grid;
  gap: 26px;
}

.tl-list-convergence {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
  align-items: start;
}

.tl-list-chrono {
  max-width: 82ch;
  gap: 24px;
}

.tl-item {
  position: relative;
  padding: 2px 0 6px 24px;
  border-left: 1px solid var(--rule);
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--bg);
}

.tl-item[data-track="finland_legal"]::before,
.track[data-track="finland_legal"] .tl-item::before { background: var(--warn); }
.tl-item[data-track="eu_catalyst"]::before,
.track[data-track="eu_catalyst"] .tl-item::before { background: var(--blue); }
.tl-item[data-track="convergence"]::before,
.track[data-track="convergence"] .tl-item::before { background: var(--signal); }

.tl-item.is-milestone {
  border-left-width: 2px;
}
.tl-item.is-milestone[data-track="finland_legal"] { border-left-color: var(--warn); }
.tl-item.is-milestone[data-track="eu_catalyst"] { border-left-color: var(--blue); }
.tl-item.is-milestone[data-track="convergence"] { border-left-color: var(--signal); }

.tl-item.is-milestone::before {
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
}

.tl-item.is-active {
  background: transparent;
  padding: 14px 0 12px 24px;
  border-top: 2px solid var(--ink);
  border-left: 3px solid var(--signal);
  border-right: 0;
  border-bottom: 0;
}
.tl-item.is-active::before {
  left: -6.5px;
  top: 18px;
  box-shadow: 0 0 0 3px var(--bg);
}

.tl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.tl-date {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.tl-item.is-milestone .tl-date {
  color: var(--ink);
}

.tl-track-tag { color: var(--ink-2); }
.tl-track-tag[data-track="finland_legal"] { color: var(--warn); }
.tl-track-tag[data-track="eu_catalyst"] { color: var(--blue); }
.tl-track-tag[data-track="convergence"] { color: var(--signal); }

.tl-stat {
  font-variant-numeric: tabular-nums;
}
.tl-item.is-active .tl-stat {
  color: var(--signal);
}

.tl-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--signal);
}

.tl-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  animation: tl-pulse 2s ease-in-out infinite;
}

@keyframes tl-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.82); }
}

@media (prefers-reduced-motion: reduce) {
  .tl-live-dot { animation: none; }
}

.tl-title {
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.32;
  margin: 0 0 8px;
  color: var(--ink);
}
.tl-item.is-milestone .tl-title {
  font-size: 18.5px;
}

.tl-summary {
  font-size: 14.8px;
  color: var(--ink-2);
  line-height: 1.58;
}

.tl-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.tl-legal code {
  color: var(--ink);
  font-weight: 600;
  font-size: 12.5px;
}

.tl-sources {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  overflow-wrap: anywhere;
}
.tl-sources a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 2px;
}
.tl-sources a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}
.tl-ext {
  font-size: 11px;
  opacity: 0.7;
}

.tl-item-empty {
  border-left-color: transparent;
  padding-left: 0;
}
.tl-item-empty::before {
  display: none;
}

/* ================================================================
   PARLIAMENT
   ================================================================ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 64px;
}

.bill-card {
  padding-top: 24px;
  border-top: 1px solid var(--rule-strong);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.bill-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.bill-id {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.bill-status { color: var(--muted); }
.bill-status[data-status="enacted"] { color: var(--ok); }
.bill-status[data-status="active_parliament"] { color: var(--signal); }

.bill-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.38;
  margin: 0;
}
.bill-note {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.58;
}

.vote-block {
  display: grid;
  gap: 12px;
  padding: 16px 0 8px;
}
.vote-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.vote-bar {
  display: flex;
  height: 10px;
  background: var(--rule);
  overflow: hidden;
}
.vote-bar span { display: block; height: 100%; }
.vote-yes { background: var(--ok); }
.vote-no { background: var(--signal); }
.vote-abstain { background: var(--warn); }
.vote-absent { background: var(--muted); opacity: 0.45; }

.vote-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  font-size: 14px;
}
.vote-legend > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
}
.vote-legend b {
  font-size: 16px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.vote-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}
.vote-legend .lbl { display: inline-flex; align-items: center; }

.vote-meta {
  font-size: 13px;
  color: var(--muted);
}
.bill-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13.5px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

/* ================================================================
   OPEN DATA HUB
   ================================================================ */

.subhead-row {
  align-items: end;
  row-gap: 10px;
  margin-top: var(--space-sub);
  margin-bottom: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.section .subhead-row:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.subhead-row h3 {
  font-size: var(--t-sub);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
}

.archive-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 28px;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 36px;
  border-top: 1px solid var(--rule-strong);
}
.btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  transition: color 120ms ease, border-color 120ms ease;
}
.btn-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.btn-file {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--signal);
}
.btn-arrow {
  font-size: 16px;
  color: var(--muted);
  transition: transform 140ms ease, color 120ms ease;
}
.btn-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.btn:hover,
.btn:focus-visible {
  border-bottom-color: var(--signal);
  text-decoration: none;
}
.btn:hover .btn-arrow,
.btn:focus-visible .btn-arrow {
  color: var(--signal);
  transform: translateY(2px);
}

.prose-grid {
  margin-top: var(--space-sub);
}
.prose-panel {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  min-width: 0;
  overflow: hidden;
}
.prose-panel p {
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-2);
}
.prose-panel h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.prose-panel p + p { margin-top: 10px; }

.methodology-section {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 20px;
  align-items: start;
  margin-top: var(--space-sub);
  padding-top: 28px;
  border-top: 1px solid var(--rule-strong);
}
.methodology-section:empty { display: none; }
.methodology-heading {
  grid-column: span 4;
  font-size: var(--t-sub);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}
.methodology-list {
  grid-column: span 8;
  max-width: 72ch;
}
@media (max-width: 1023px) {
  .methodology-heading,
  .methodology-list {
    grid-column: span 6;
  }
}
@media (max-width: 639px) {
  .methodology-heading,
  .methodology-list {
    grid-column: span 3;
  }
}

.method {
  list-style: none;
  display: grid;
  gap: 16px;
}
.method li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}
.method li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

.embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 10px;
}
.embed-head h3 { margin: 0; }

.copy-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 14px;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.copy-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.snippet {
  background: var(--surface-2);
  padding: 14px 16px;
  overflow-x: auto;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.55;
  margin: 10px 0 12px;
}
.snippet code {
  color: var(--ink);
  white-space: pre;
}
.embed-link-row {
  font-size: 14px;
}

.compliance {
  margin-top: var(--space-sub);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.compliance p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 72ch;
}

/* ================================================================
   MONUMENTAL POSTER FOOTER
   ================================================================ */

.site-footer {
  --bg: #0e0e0e;
  --ink: #eeeeee;
  --ink-2: #c2c2c2;
  --muted: #8e8e8e;
  --rule: rgba(238, 238, 238, 0.16);
  --rule-strong: rgba(238, 238, 238, 0.3);
  --signal: #d91b22;
  border-top: 2px solid var(--signal);
  padding: clamp(64px, 8vw, 112px) 0 clamp(48px, 6vw, 80px);
  background: var(--bg);
  color: var(--ink);
}

.footer-wordmark-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 36px;
}
.footer-wordmark {
  font-size: clamp(2.2rem, 6.2vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.94;
  color: var(--ink);
  overflow-wrap: break-word;
  max-width: 100%;
}
.footer-badge {
  font-size: clamp(1.3rem, 2.6vw, 2.2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--signal);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 48px;
}
.footer-grid p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.62;
}

/* ================================================================
   RESPONSIVE BREAKPOINTS (non-grid typography, nav & table rules;
   all column-grid layouts are unified in the 12/6/3 grid block below)
   ================================================================ */

@media (max-width: 1023px) {
  .hero-counter-col { align-items: flex-start; text-align: left; }
  .hero-counter-row { justify-content: flex-start; }
  .tl-bridge { margin: 28px 0 20px; }
  .tl-bridge-svg { display: none; }
  .tl-bridge-inner { align-items: flex-start; }
  .topbar-inner {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 10px 16px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    border-top: 1px solid var(--rule);
    padding-top: 8px;
    gap: 10px 24px;
  }
}

@media (max-width: 639px) {
  body { font-size: 15px; }
  .event-head { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .chart { min-width: 540px; }
  .banner-head { padding: 8px 0; align-items: flex-start; gap: 8px 10px; }
  .banner-head-main { flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
  .banner-tag { font-size: 10px; padding: 3px 6px; }
  .banner-title { font-size: 13px; line-height: 1.3; }
  .banner-title .banner-code { display: none; }
  .banner-deadline-pill { display: none; }
  .banner-toggle { margin-top: 1px; }
  .tl-controls { flex-direction: column; align-items: stretch; }
  .tl-seg { width: 100%; }
  .tl-btn { flex: 1; text-align: center; padding: 8px 10px; }
  .tl-item.is-active { padding: 12px 0 10px 18px; }
  .tl-foot { flex-direction: column; gap: 4px; }
  table { font-size: 14px; }
  th, td { padding: 14px 8px; }
  .col-idx, td.cell-idx { width: 32px; }
  .cell-area { min-width: 130px; font-size: 16px; }
  .cell-fill { min-width: 120px; }
  .qbar { width: 48px; }
  .audit-toggle-hint { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ================================================================
   OSINT GEOSPATIAL MAP, WIRE & VERIFIED VISUAL ARCHIVE
   ================================================================ */

.osint-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 14px;
}

.osint-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.osint-toggle {
  appearance: none;
  border: none;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 7px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease;
}
.osint-toggle:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.osint-toggle.is-active {
  background: var(--ink);
  color: var(--bg);
}
.osint-dl-btn {
  color: var(--signal);
}
.osint-dl-btn:hover {
  background: var(--signal);
  color: var(--signal-ink, #fff);
}

.osint-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex: none;
}
.osint-dot.dot-signal { background: var(--signal); }
.osint-dot.dot-blue { background: var(--blue); }
.osint-dot.dot-cluster {
  border: 1.5px dashed var(--signal);
  background: transparent;
}
.osint-dot.dot-derog {
  border: 1.5px dashed var(--warn);
  background: var(--warn-soft, rgba(180, 115, 24, 0.16));
}

.osint-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--rule-strong);
}

.osint-map-panel {
  border: none;
  padding: 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.osint-map-svg {
  width: 100%;
  height: auto;
  max-height: 640px;
  display: block;
  background: var(--bg);
  border: 1px solid var(--rule);
}

.map-graticule line {
  stroke: var(--rule);
  stroke-width: 0.6;
  stroke-dasharray: 2 3;
}
.map-grat-label {
  fill: var(--muted);
  font-family: var(--font-sans);
  font-size: 9px;
}

.map-region {
  fill: var(--surface);
  stroke: var(--rule);
  stroke-width: 0.9;
  transition: fill 120ms ease;
}
.map-region:hover {
  fill: var(--surface-2);
}

.map-cluster-ring {
  fill: none;
  pointer-events: none;
}
.map-cluster-ring.is-current {
  stroke: var(--signal);
  stroke-width: 1.6;
  stroke-dasharray: 3 2;
  fill: var(--signal-soft);
}
.map-cluster-ring.is-baseline {
  stroke: var(--blue);
  stroke-width: 1;
  stroke-dasharray: 2 2;
  opacity: 0.6;
}
.map-derog-circle {
  fill: var(--warn-soft, rgba(180, 115, 24, 0.12));
  stroke: var(--warn);
  stroke-width: 1;
  stroke-dasharray: 3 2;
  opacity: 0.72;
  cursor: pointer;
}
.map-derog-circle:hover {
  opacity: 1;
  stroke-width: 1.6;
}
.map-derog-circle.is-selected {
  stroke: var(--warn);
  stroke-width: 2.2;
  stroke-dasharray: none;
  opacity: 1;
}

.map-pin {
  cursor: pointer;
  stroke: var(--surface);
  stroke-width: 1.2;
  transition: opacity 120ms ease;
}
.map-pin.pin-current {
  fill: var(--signal);
}
.map-pin.pin-baseline {
  fill: var(--blue);
  opacity: 0.72;
}
.map-pin.is-selected {
  stroke: var(--ink);
  stroke-width: 2.2;
}

.osint-map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
  padding-top: 4px;
}
.osint-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.osint-shape-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  display: inline-block;
}
.osint-shape-square {
  width: 8px;
  height: 8px;
  background: var(--signal);
  display: inline-block;
}
.osint-shape-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px dashed var(--signal);
  display: inline-block;
}
.osint-shape-derog {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px dashed var(--warn);
  background: var(--warn-soft, rgba(180, 115, 24, 0.16));
  display: inline-block;
}
.osint-region-badge {
  margin-left: auto;
  color: var(--ink);
  font-weight: 600;
}

.osint-inspector-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  min-width: 0;
}

.osint-inspector-card {
  flex: 1 1 auto;
}

.osint-panel-head {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.osint-kv-list {
  margin: 0;
  display: grid;
  gap: 8px;
}
.osint-kv-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.osint-kv-list > div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.osint-kv-list dt {
  color: var(--muted);
  font-size: 12px;
}
.osint-kv-list dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.osint-cluster-list {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.osint-cluster-row {
  appearance: none;
  border: none;
  border-left: 3px solid transparent;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.osint-cluster-row.is-current {
  border-left-color: var(--signal);
  background: var(--signal-soft);
}
.osint-cluster-row:hover {
  background: var(--surface-2);
}
.osint-cluster-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.osint-cluster-area {
  font-weight: 700;
  font-size: 13px;
}
.osint-cluster-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--muted);
}

/* OSINT Public Intelligence Wire */
.osint-wire-list {
  display: grid;
  border-top: 2px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  margin-bottom: 40px;
}

.osint-wire-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 8px 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.osint-wire-item:last-child { border-bottom: none; }
.osint-wire-item:hover { background: var(--surface-2); }

.osint-wire-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.osint-wire-link {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 4px;
}
.osint-wire-link:hover {
  color: var(--signal);
  text-decoration: underline;
}

/* .tag shares the ONE BOX base above; variants below are color-only */
.tag-signal, .tag-cat-official { color: var(--signal); }
.tag-blue, .tag-cat-media { color: var(--blue); }
.tag-cat-ngo { color: var(--ok); }

/* Verified Visual & Press Archive */
.osint-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: clamp(32px, 4vw, 48px);
  background: transparent;
  border: 0;
}

.osint-media-card {
  margin: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.osint-media-thumb-link {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--rule);
}

.osint-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 180ms ease;
}
.osint-media-card:hover .osint-media-img {
  transform: scale(1.03);
}

.osint-media-cap {
  padding: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}
.osint-media-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.osint-media-title {
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.3;
}
.osint-media-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
}
.osint-license-pill {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.osint-source-a {
  color: var(--signal);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.osint-source-a:hover { text-decoration: underline; }

.osint-empty {
  padding: 18px;
  margin: 0;
}

/* OSINT responsive grid spans are unified in the 12/6/3 grid block below */

/* OSINT Live Source Health Strip */
.osint-source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.osint-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
}
.osint-status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: var(--muted);
}
.osint-source-pill.is-ok .osint-status-dot { background: var(--ok); }
.osint-source-pill.is-err .osint-status-dot { background: var(--signal); }
.osint-source-cnt {
  color: var(--muted);
  font-weight: 700;
}

/* ================================================================
   09 TOTAL MORTALITY & LEGAL ACCOUNTABILITY
   Additive block. Reuses the shared section / panel / table / badge
   primitives; only the classes below are new. Theme-aware via tokens.
   ================================================================ */

/* Mortality status badges (verified / estimate / pending) */

.badge-verified { color: var(--ok); }
.badge-estimate { color: var(--warn); }
.badge-pending { color: var(--muted); }

/* Season blocks */

.season-block {
  min-width: 0;
  max-width: 100%;
}
.season-block + .season-block { margin-top: 28px; }
.season-head { margin-top: 0; }
.season-head .sub { margin: 0; }
.season-note {
  margin-top: 10px;
  max-width: 92ch;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Mortality & legal table cells — top-aligned for multi-line editorial rows */

#mortalitySeasons td,
#legalTable td {
  vertical-align: top;
}
.mortality-cat { min-width: 240px; }
.mortality-cat > span { display: block; }
.cat-label { font-weight: 600; letter-spacing: -0.01em; }
.cat-desc { margin-top: 3px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.cat-note { margin-top: 4px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.cat-subset { margin-top: 4px; font-size: 11.5px; color: var(--warn); }

.count-value { display: block; font-variant-numeric: tabular-nums; }
.count-value.muted { color: var(--muted); font-weight: 400; }
.live-tag {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--signal);
}
.live-tag::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 4px;
  background: var(--signal);
  vertical-align: middle;
}
.live-ref {
  display: block;
  margin-top: 3px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
  white-space: normal;
}

.src-cell { min-width: 160px; font-size: 12.5px; }
.src-cell a { font-size: 12px; }

/* Recorded discrepancy note */

.discrepancy {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  border-left-width: 3px;
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.discrepancy + .discrepancy { margin-top: 12px; }
.discrepancy-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.discrepancy-figs {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.discrepancy-body { font-size: 13px; line-height: 1.58; color: var(--ink-2); }
.discrepancy .small { font-size: 11.5px; }

/* Legal case log */

.case-type { min-width: 132px; }
.case-status { display: block; margin-top: 6px; }
.case-cell { min-width: 340px; }
.case-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.case-summary { margin-top: 5px; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.case-meta { margin-top: 6px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.case-meta b { color: var(--ink-2); font-weight: 600; }
.case-number { font-family: var(--font-mono); color: var(--ink-2); }
.case-outcome {
  margin-top: 7px;
  padding-left: 9px;
  border-left: 2px solid var(--rule);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink);
}
tbody tr.case-anomaly td:first-child { border-left: 3px solid var(--signal); }

/* Gaps in the legal log */

.gap-list {
  display: grid;
  gap: 28px;
  background: transparent;
  border: 0;
  min-width: 0;
  max-width: 100%;
}
.gap-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px 14px;
  margin-bottom: 8px;
}
.gap-head h4 { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.gap-reason { font-size: 13px; line-height: 1.58; color: var(--ink-2); }
.gap-card p + p { margin-top: 6px; }
.gap-card .small { font-size: 12px; }

/* Civic channels band, kept apart from the data tables */

.civic-band {
  margin-top: clamp(48px, 6vw, 76px);
  padding: clamp(32px, 4.5vw, 52px) 0 0;
  background: transparent;
  border-top: 2px solid var(--rule-strong);
  border-bottom: 0;
  display: grid;
  gap: 28px;
  min-width: 0;
  max-width: 100%;
}
.civic-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
}
.civic-head h3 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin: 0;
  color: var(--muted);
}
.civic-note {
  max-width: 68ch;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.civic-note:empty { display: none; }
.civic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.civic-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.civic-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px 10px;
}
.civic-provider {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  text-align: right;
}
.civic-cell h4 { font-size: 13.5px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.civic-desc { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.civic-cell .small { font-size: 11.5px; }
.civic-link { margin-top: auto; padding-top: 6px; font-family: var(--font-sans); font-size: 12.5px; }

@media (max-width: 639px) {
  .mortality-cat { min-width: 190px; }
  .case-cell { min-width: 250px; }
  .discrepancy-head,
  .civic-head { flex-direction: column; align-items: flex-start; }
  .gap-head { grid-template-columns: minmax(0, 1fr); }
}

/* Narrow screens: the ledger and the case log wrap instead of scrolling,
   so the informative column is never pushed off the viewport. Labels come
   from data-label attributes set by app.js. */

@media (max-width: 639px) {
  #mortalitySeasons table,
  #mortalitySeasons tbody,
  #mortalitySeasons tbody tr,
  #mortalitySeasons tbody td,
  #legalTable,
  #legalTable tbody,
  #legalTable tbody tr,
  #legalTable tbody td {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  #mortalitySeasons thead,
  #legalTable thead { display: none; }
  #mortalitySeasons tbody tr,
  #legalTable tbody tr {
    padding: 14px 14px 16px;
    border-bottom: 1px solid var(--rule);
  }
  #mortalitySeasons tbody tr:last-child,
  #legalTable tbody tr:last-child { border-bottom: 0; }
  #mortalitySeasons tbody td,
  #legalTable tbody td {
    min-width: 0;
    max-width: 100%;
    padding: 0 0 7px;
    border: 0;
    text-align: left;
    overflow-wrap: break-word;
  }
  #mortalitySeasons tbody td:last-child,
  #legalTable tbody td:last-child { padding-bottom: 0; }
  #mortalitySeasons tbody td[data-label]::before,
  #legalTable tbody td[data-label]::before {
    content: attr(data-label) ": ";
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
  }
  #mortalitySeasons tbody td.num { text-align: left; }
  #mortalitySeasons tbody td.num .count-value { display: inline-block; }
  #mortalitySeasons tbody td.num .live-ref { display: block; margin-top: 2px; }
  #legalTable tbody tr.case-anomaly { border-left: 3px solid var(--signal); }
  tbody tr.case-anomaly td:first-child { border-left: 0; }
  #mortalitySeasons tbody td.cell-idx,
  #legalTable tbody td.cell-idx { width: auto; padding-bottom: 8px; font-size: 12px; }
}

/* ================================================================
   EVIDENCE LEDGER WIRE STRIP (phase 4b)
   ================================================================ */
.osint-source-pill.is-warn .osint-status-dot { background: var(--warn); }
.osint-source-pill.is-muted .osint-status-dot { background: var(--muted); }
.osint-source-pill.is-attention .osint-status-dot { background: var(--signal); }
a.evidence-strip-link { text-decoration: none; color: var(--ink-2); }
a.evidence-strip-link:hover { text-decoration: underline; text-underline-offset: 3px; }


/* ================================================================
   CONSERVATION SCIENCE, GENETICS & ANIMAL WELFARE SECTION
   ================================================================ */
.osint-guard-card {
  border-left: 3px solid var(--ok);
  background: var(--ok-soft);
}
.tag-ok { color: var(--ok); }

.sci-policy-banner {
  padding: 16px 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--ok);
  background: var(--ok-soft);
}
.sci-policy-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.sci-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.sci-kpi-card {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--rule-strong);
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sci-kpi-card:has(.signal) { border-top-color: var(--signal); }
.sci-kpi-card:has(.warn) { border-top-color: var(--warn); }
.sci-kpi-card:has(.ok) { border-top-color: var(--ok); }
.sci-kpi-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
@supports (grid-template-rows: subgrid) {
  @media (min-width: 640px) {
    .sci-kpi-grid > .sci-kpi-card {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
      row-gap: 8px;
      align-content: start;
    }
  }
}
.sci-kpi-badge {
  color: var(--ink-2);
}
.sci-kpi-val {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.sci-kpi-val.signal { color: var(--signal); }
.sci-kpi-val.warn { color: var(--warn); }
.sci-kpi-val.ok { color: var(--ok); }

.sci-traj-panel {
  padding: 18px 20px;
  margin-bottom: 28px;
}
.sci-traj-wrap {
  width: 100%;
  overflow-x: auto;
}
.sci-traj-svg {
  width: 100%;
  min-width: 560px;
  height: auto;
  display: block;
}
.sci-grid-line {
  stroke: var(--chart-grid);
  stroke-width: 1;
}
.sci-axis-label {
  fill: var(--muted);
  font-family: var(--font-sans);
  font-size: 11px;
}
.sci-axis-label.is-active {
  fill: var(--ink);
  font-weight: 700;
}
.sci-ref-line {
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}
.sci-ref-line.sci-ref-ok { stroke: var(--ok); }
.sci-ref-line.sci-ref-warn { stroke: var(--warn); }
.sci-ref-line.sci-ref-signal { stroke: var(--signal); }
.sci-ref-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
}
.sci-ref-text.sci-ref-ok { fill: var(--ok); }
.sci-ref-text.sci-ref-warn { fill: var(--warn); }
.sci-ref-text.sci-ref-signal { fill: var(--signal); }
.sci-ci-band {
  fill: var(--blue);
  fill-opacity: 0.14;
}
.sci-est-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.sci-dot {
  cursor: pointer;
  stroke: var(--surface);
  stroke-width: 2;
  transition: r 120ms ease;
}
.sci-dot.is-recovery { fill: var(--blue); }
.sci-dot.is-hunt { fill: var(--signal); }
.sci-dot.is-selected {
  stroke: var(--ink);
  stroke-width: 2.5;
}
.sci-traj-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-2);
}
.sci-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sci-swatch {
  width: 14px;
  height: 3px;
  display: inline-block;
}
.sci-swatch.swatch-est { background: var(--ink); }
.sci-swatch.swatch-ci { height: 10px; background: var(--blue); opacity: 0.25; }
.sci-swatch.swatch-ok { background: var(--ok); }
.sci-swatch.swatch-warn {
  height: 0;
  background: transparent;
  border-top: 2px dashed var(--ink);
}
.sci-swatch.swatch-sig { background: var(--signal); }
.sci-traj-readout {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-left: 3px solid var(--ink);
}
.sci-readout-year {
  margin-bottom: 4px;
  font-size: 14px;
}

.sci-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.sci-evidence-card {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--blue);
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sci-evidence-card:has(.badge-over),
.sci-evidence-card:has(.tag-signal) {
  border-top-color: var(--signal);
}
.sci-ev-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sci-ev-claim {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}
.sci-ev-body {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}
.sci-ev-cites {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.sci-cites-lbl {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 6px;
}
.sci-cite-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
}

.sci-nl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.sci-nl-card {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--ok);
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sci-nl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.sci-nl-pct {
  font-family: var(--font-sans);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ok);
  white-space: nowrap;
}
.sci-nl-bar {
  height: 8px;
  background: var(--surface-2);
  overflow: hidden;
}
.sci-nl-bar-fill {
  height: 100%;
  background: var(--ok);
}
.sci-nl-src {
  margin-top: auto;
  font-size: 12px;
}

/* Science responsive grid spans are unified in the 12/6/3 grid block below */

/* ================================================================
   NATURA 2000 & EASTERN BORDER FORENSIC MAP OVERLAYS
   ================================================================ */
.osint-dot.dot-natura { background: var(--ok); }
.osint-dot.dot-border { background: var(--warn); }

.map-natura-poly {
  fill: var(--ok);
  fill-opacity: 0.22;
  stroke: var(--ok);
  stroke-width: 0.5;
  stroke-opacity: 0.65;
  transition: fill-opacity 120ms ease;
}
.map-natura-poly.is-near {
  fill-opacity: 0.45;
  stroke-width: 1.1;
  stroke-opacity: 0.95;
}
.map-natura-poly:hover {
  fill-opacity: 0.65;
}
.map-border-line {
  fill: none;
  stroke: var(--warn);
  stroke-width: 1.8;
  stroke-dasharray: 5 3;
  stroke-opacity: 0.85;
}
.osint-shape-natura {
  display: inline-block;
  width: 11px;
  height: 11px;
  background: var(--ok);
  opacity: 0.45;
  border: 1px solid var(--ok);
  margin-right: 5px;
  vertical-align: -1px;
}
.osint-shape-border {
  display: inline-block;
  width: 14px;
  height: 0;
  border-top: 2px dashed var(--warn);
  margin-right: 5px;
  vertical-align: 3px;
}

.osint-audit-card {
  border-left: 3px solid var(--ok);
}
.osint-audit-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.osint-audit-metric {
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.osint-audit-metric strong {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.osint-audit-metric strong.warn { color: var(--warn); }
.osint-audit-metric strong.signal { color: var(--signal); }
.osint-audit-metric span {
  font-size: 11px;
  line-height: 1.25;
  color: var(--muted);
}
.osint-gap-note {
  padding: 10px 12px;
  background: var(--warn-soft);
  border-left: 3px solid var(--warn);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.osint-natura-dd {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.osint-natura-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.tag-warn { color: var(--warn); }

.derog-more-wrap {
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: center;
}
.derog-doc-links {
  white-space: nowrap;
  font-size: 13px;
}

.derog-wolves-txt {
  margin-top: 4px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.derog-methods-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.derog-method-pill {
  color: var(--signal);
}
.derog-kills-callout {
  margin: 0 0 12px 0;
  padding: 10px 14px;
  border-left: 2px solid var(--rule-strong);
  line-height: 1.45;
}
.derog-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.derog-status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid currentColor;
  line-height: 1.35;
}
.derog-status-pill.is-active {
  color: var(--signal);
}
.derog-status-pill.is-expired {
  color: var(--muted, #6b7280);
  border-color: var(--rule-strong);
}
.derog-status-pill.is-upcoming {
  color: var(--blue);
}
.derog-kills-cell {
  white-space: nowrap;
}
.derog-kills-unpub {
  font-style: italic;
}
.derog-kills-note {
  margin-top: 2px;
  white-space: normal;
}

/* ================================================================
   V2 ARCHITECTURAL POSTER HARMONIZATION (SCIENCE, OSINT, MORTALITY)
   Elevates secondary modules into the open-canvas, high-contrast
   Nordic/Estonian poster aesthetic without breaking any JS bindings.
   ================================================================ */

/* Science KPIs & Policy Banner */
.sci-policy-banner {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--signal);
  padding: 4px 0 4px 24px;
  margin-bottom: 44px;
}

.sci-kpi-grid {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule-strong);
  padding-top: 28px;
  margin-bottom: 48px;
  row-gap: var(--grid-gap);
}
.sci-kpi {
  background: transparent;
  border: 0;
  padding: 0;
}
.sci-kpi-val {
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.sci-kpi-lbl {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.sci-traj-panel {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
}

.sci-evidence-grid,
.sci-nl-grid {
  gap: 32px 44px;
  background: transparent;
  border: 0;
}
.sci-ev-card,
.sci-nl-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
  padding: 24px 0 0;
}

/* OSINT Toolbars, Wire & Media */
.osint-toolbar {
  gap: 10px 18px;
  margin-bottom: 24px;
}
.osint-btn,
.osint-chip {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--rule);
}
.osint-btn.is-active,
.osint-chip.is-active,
.osint-btn[aria-pressed="true"],
.osint-chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.osint-wire-list {
  border-top: 1px solid var(--rule-strong);
  background: transparent;
}
.osint-wire-item {
  background: transparent;
  border-left: 0;
  border-right: 0;
  padding: 22px 0;
}
.osint-wire-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Civic Channels Band */
.civic-band {
  margin-top: var(--space-sub);
  padding-top: 36px;
  border-top: 2px solid var(--rule-strong);
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}
.civic-grid {
  background: transparent;
  border: 0;
  gap: 28px 40px;
}
.civic-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
  padding: 20px 0 0;
}


/* ================================================================
   TOTAL LICENCES TO KILL (116 QUOTA + DEROGATION PERMITS)
   ================================================================ */
.section-licences,
.section-licences.section-concrete {
  background: var(--surface);
  border-top: 2px solid var(--signal);
  border-bottom: 1px solid var(--rule);
}

.lic-equation {
  align-items: start;
  row-gap: 20px;
  padding: clamp(32px, 4.5vw, 56px) 0;
  background: transparent;
  border: 0;
  border-top: 2px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(32px, 4vw, 48px);
}

.lic-term {
  min-width: 0;
}

.lic-term-total {
  padding-left: clamp(20px, 2.5vw, 32px);
  border-left: 3px solid var(--signal);
}

.lic-num {
  font-family: var(--font-sans);
  font-size: clamp(44px, 6.2vw, 84px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-bottom: 10px;
}
.lic-num.warn { color: var(--warn); }
.lic-num.signal { color: var(--signal); }

.lic-op {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  padding-top: clamp(8px, 1.2vw, 18px);
  justify-self: center;
  user-select: none;
}

.lic-term-lbl {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.lic-bar-block {
  padding: 0 0 28px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(36px, 4.5vw, 56px);
}

.lic-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}

.lic-bar-track {
  display: flex;
  width: 100%;
  height: 18px;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  overflow: hidden;
}

.lic-seg {
  display: block;
  height: 100%;
  transition: width 320ms ease;
}
.lic-seg-quota { background: var(--signal); }
.lic-seg-reindeer { background: var(--warn); }
.lic-seg-other { background: var(--ink); }
.lic-seg-rest { background: var(--surface-2); border: 1px solid var(--rule-strong); }

.lic-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
}

.lic-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lic-dot {
  width: 11px;
  height: 11px;
  display: inline-block;
  flex: none;
}

.lic-breakdown-grid {
  row-gap: clamp(32px, 4vw, 48px);
  margin-bottom: clamp(32px, 4vw, 44px);
}

.lic-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  border: 0;
  border-top: 2px solid var(--card-accent, var(--signal));
  padding: 22px 0 0;
}

.lic-card .sci-kpi-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

@supports (grid-template-rows: subgrid) {
  @media (min-width: 1024px) {
    .lic-breakdown-grid > .lic-card {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 2;
      row-gap: 12px;
      align-content: start;
    }
  }
}

.lic-card-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0;
}

.lic-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

.lic-cta-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--signal);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid var(--signal);
  transition: background 120ms ease, color 120ms ease;
}
.lic-cta-link:hover,
.lic-cta-link:focus-visible {
  background: var(--signal);
  color: var(--signal-ink);
}

/* ==========================================================================
   Performance & CSP utility classes
   ========================================================================== */
.osint-mb-10 { margin-bottom: 10px; }
.osint-mb-8 { margin: 0 0 8px 0; }

/* Note: do not set content-visibility: auto on .section — collapsing offscreen
   sections to 640px placeholders breaks in-page anchor link scroll offsets. */

/* ==========================================================================
   UNIFIED ARCHITECTURAL COLUMN GRID
   Desktop (>= 1024px): 12 columns, 24px gutter
   Tablet  (640–1023px): 6 columns, 20px gutter
   Mobile  (< 640px):    3 columns, 16px gutter
   Every multi-column layout across all pages snaps to this single grid.
   ========================================================================== */

.grid,
.section-head,
.subhead-row,
.hero-focal,
.context,
.meta-list,
.event-card,
.timeline-tracks,
.tl-list-convergence,
.grid-2,
.downloads,
.footer-grid,
.osint-map-layout,
.osint-wire-item,
.osint-media-grid,
.civic-grid,
.sci-kpi-grid,
.sci-evidence-grid,
.sci-nl-grid,
.osint-audit-strip,
.lic-equation,
.lic-breakdown-grid,
.vote-legend,
.page-casefiles .filters,
.page-evidence .filters,
.page-sub .dl,
.page-sub .vote-grid,
.page-sub .sources li,
.page-sub .freshness,
.page-sub .state-list li,
.page-sub .audit-grid,
.page-embed .stats {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--grid-gap);
}

/* Bulletproof track containment: no grid child can ever blow out a column */
.grid > *,
.section-head > *,
.subhead-row > *,
.hero-focal > *,
.context > *,
.meta-list > *,
.event-card > *,
.timeline-tracks > *,
.tl-list-convergence > *,
.grid-2 > *,
.downloads > *,
.footer-grid > *,
.osint-map-layout > *,
.osint-wire-item > *,
.osint-media-grid > *,
.civic-grid > *,
.sci-kpi-grid > *,
.sci-evidence-grid > *,
.sci-nl-grid > *,
.osint-audit-strip > *,
.lic-equation > *,
.lic-breakdown-grid > *,
.vote-legend > *,
.page-casefiles .filters > *,
.page-evidence .filters > *,
.page-sub .dl > *,
.page-sub .vote-grid > *,
.page-sub .sources li > *,
.page-sub .freshness > *,
.page-sub .state-list li > *,
.page-sub .audit-grid > *,
.page-embed .stats > * {
  min-width: 0;
  max-width: 100%;
}

/* Hairline-framed grids keep their 1px inner border seam while using 12/6/3 tracks */
.osint-map-layout,
.page-embed .stats {
  column-gap: 1px;
  row-gap: 1px;
}

/* Generous Swiss vertical rhythm for open-canvas card grids */
.sci-kpi-grid,
.sci-evidence-grid,
.sci-nl-grid,
.lic-breakdown-grid,
.civic-grid,
.osint-media-grid,
.grid-2 {
  row-gap: clamp(36px, 4.5vw, 56px);
}

/* Reusable column-span helpers (desktop 12-col baseline; capped per breakpoint below) */
.col-full { grid-column: 1 / -1; }
.col-12 { grid-column: span 12; }
.col-11 { grid-column: span 11; }
.col-10 { grid-column: span 10; }
.col-9  { grid-column: span 9; }
.col-8  { grid-column: span 8; }
.col-7  { grid-column: span 7; }
.col-6  { grid-column: span 6; }
.col-5  { grid-column: span 5; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }
.col-2  { grid-column: span 2; }
.col-1  { grid-column: span 1; }

/* Section & subsection headers: 7 / 5 split */
.section-head > :first-child,
.subhead-row > :first-child { grid-column: span 7; }
.section-head > :nth-child(2),
.subhead-row > :nth-child(2) { grid-column: span 5; }
.subhead-row > :only-child { grid-column: 1 / -1; }

/* Hero focal spread: 5 / 7 architectural asymmetry */
.hero-statement-col { grid-column: span 5; }
.hero-counter-col { grid-column: span 7; }

/* Total licences equation: 3 + 1 + 3 + 1 + 4 = 12 (aligns with 4 + 4 + 4 cards below) */
.lic-equation > .lic-term { grid-column: span 3; }
.lic-equation > .lic-op { grid-column: span 1; }
.lic-equation > .lic-term-total { grid-column: span 4; }

/* 3-up modules (3 × 4 = 12) */
.context > *,
.footer-grid > *,
.osint-media-grid > *,
.osint-audit-strip > *,
.lic-breakdown-grid > *,
.page-casefiles .filters > .field,
.page-embed .stats > * {
  grid-column: span 4;
}

/* When .context has exactly 2 items, span 6+6 for balanced 12-col symmetry */
.context:has(> :nth-child(2):last-child) > * {
  grid-column: span 6;
}

/* 4-up modules (4 × 3 = 12 -> auto 2-up on 6-col tablet -> auto 1-up on 3-col mobile) */
.downloads > *,
.meta-list > div,
.civic-grid > *,
.sci-kpi-grid > *,
.page-sub .vote-grid > * {
  grid-column: span 3;
}
.meta-list > .meta-hash,
.page-casefiles .filters > .count,
.page-evidence .filters > .count {
  grid-column: 1 / -1;
}

/* 2-up modules (2 × 6 = 12) */
.timeline-tracks > *,
.tl-list-convergence > *,
.grid-2 > *,
.sci-evidence-grid > *,
.sci-nl-grid > *,
.vote-legend > *,
.page-evidence .filters > .field {
  grid-column: span 6;
}

/* Ledger & key-value rows: 3 / 9 split */
.event-card > :first-child,
.osint-wire-item > :first-child,
.page-sub .dl > dt,
.page-sub .freshness > dt,
.page-sub .state-list li > :first-child,
.page-sub .audit-grid > dt {
  grid-column: span 3;
}
.event-card > :nth-child(2),
.osint-wire-item > :nth-child(2),
.page-sub .dl > dd,
.page-sub .freshness > dd,
.page-sub .state-list li > :nth-child(2),
.page-sub .audit-grid > dd {
  grid-column: span 9;
}

/* Subpage source rows: 9 / 3 split */
.page-sub .sources li > :first-child { grid-column: span 9; }
.page-sub .sources li > :nth-child(2) { grid-column: span 3; }

/* Map + inspector: 7 / 5 split */
.osint-map-layout > :first-child { grid-column: span 7; }
.osint-map-layout > :nth-child(2) { grid-column: span 5; }

/* Tablet: 6 columns (640px – 1023px) */
@media (max-width: 1023px) {
  :root {
    --grid-cols: 6;
    --grid-gap: 24px;
  }

  /* Cap .col-* utilities to 6 columns so implicit overflow tracks can never form */
  .col-12, .col-11, .col-10, .col-9, .col-8, .col-7, .col-6 { grid-column: span 6; }
  .col-5, .col-4, .col-3 { grid-column: span 3; }
  .col-2 { grid-column: span 2; }
  .col-1 { grid-column: span 1; }
  .col-md-6 { grid-column: span 6; }
  .col-md-4 { grid-column: span 4; }
  .col-md-3 { grid-column: span 3; }
  .col-md-2 { grid-column: span 2; }
  .col-md-1 { grid-column: span 1; }

  /* Full-width on 6-col tablet */
  .section-head > :first-child,
  .section-head > :nth-child(2),
  .subhead-row > :first-child,
  .subhead-row > :nth-child(2),
  .hero-statement-col,
  .hero-counter-col,
  .osint-map-layout > :first-child,
  .osint-map-layout > :nth-child(2),
  .timeline-tracks > *,
  .tl-list-convergence > *,
  .grid-2 > *,
  .sci-evidence-grid > *,
  .sci-nl-grid > *,
  .lic-equation > *,
  .lic-breakdown-grid > *,
  .footer-grid > * {
    grid-column: span 6;
  }

  .lic-equation {
    padding: 24px 0;
    row-gap: 16px;
  }
  .lic-op {
    justify-self: start;
    padding-top: 0;
    font-size: 28px;
  }
  .lic-term-total {
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 3px solid var(--signal);
  }

  /* 3-up on 6-col tablet (3 × 2 = 6) */
  .context > *,
  .osint-audit-strip > *,
  .page-casefiles .filters > .field,
  .page-embed .stats > * {
    grid-column: span 2;
  }

  .context:has(> :nth-child(2):last-child) > * {
    grid-column: span 3;
  }

  /* 2-up on 6-col tablet (2 × 3 = 6) */
  .downloads > *,
  .osint-media-grid > *,
  .vote-legend > *,
  .page-evidence .filters > .field {
    grid-column: span 3;
  }

  /* Ledger & key-value rows stay structured on tablet: 2 / 4 split */
  .event-card > :first-child,
  .osint-wire-item > :first-child,
  .page-sub .dl > dt,
  .page-sub .freshness > dt,
  .page-sub .state-list li > :first-child,
  .page-sub .audit-grid > dt {
    grid-column: span 2;
  }
  .event-card > :nth-child(2),
  .osint-wire-item > :nth-child(2),
  .page-sub .dl > dd,
  .page-sub .freshness > dd,
  .page-sub .state-list li > :nth-child(2),
  .page-sub .audit-grid > dd {
    grid-column: span 4;
  }
  .page-sub .sources li > :first-child { grid-column: span 4; }
  .page-sub .sources li > :nth-child(2) { grid-column: span 2; }
}

/* Mobile: 3 columns (< 640px) */
@media (max-width: 639px) {
  :root {
    --grid-cols: 3;
    --grid-gap: 16px;
  }

  /* Cap .col-* utilities to 3 columns so implicit overflow tracks can never form */
  .col-12, .col-11, .col-10, .col-9, .col-8, .col-7,
  .col-6, .col-5, .col-4, .col-3, .col-2,
  .col-md-6, .col-md-4, .col-md-3, .col-md-2 {
    grid-column: span 3;
  }
  .col-1, .col-md-1 { grid-column: span 1; }
  .col-sm-3 { grid-column: span 3; }
  .col-sm-2 { grid-column: span 2; }
  .col-sm-1 { grid-column: span 1; }

  .section-head > :first-child,
  .section-head > :nth-child(2),
  .subhead-row > :first-child,
  .subhead-row > :nth-child(2),
  .hero-statement-col,
  .hero-counter-col,
  .context > *,
  .context:has(> :nth-child(2):last-child) > *,
  .meta-list > div,
  .event-card > :first-child,
  .event-card > :nth-child(2),
  .osint-wire-item > :first-child,
  .osint-wire-item > :nth-child(2),
  .timeline-tracks > *,
  .tl-list-convergence > *,
  .grid-2 > *,
  .downloads > *,
  .footer-grid > *,
  .osint-map-layout > :first-child,
  .osint-map-layout > :nth-child(2),
  .osint-media-grid > *,
  .civic-grid > *,
  .sci-kpi-grid > *,
  .sci-evidence-grid > *,
  .sci-nl-grid > *,
  .lic-equation > *,
  .lic-breakdown-grid > *,
  .vote-legend > *,
  .page-casefiles .filters > .field,
  .page-evidence .filters > .field,
  .page-sub .dl > dt,
  .page-sub .dl > dd,
  .page-sub .freshness > dt,
  .page-sub .freshness > dd,
  .page-sub .state-list li > :first-child,
  .page-sub .state-list li > :nth-child(2),
  .page-sub .audit-grid > dt,
  .page-sub .audit-grid > dd,
  .page-sub .sources li > :first-child,
  .page-sub .sources li > :nth-child(2),
  .page-embed .stats > * {
    grid-column: span 3;
  }

  /* Compact 3-metric audit strip snaps cleanly 1-per-column on 3-col mobile */
  .osint-audit-strip > * {
    grid-column: span 1;
  }

  /* Prevent nav links from clipping mid-word on narrow mobile viewports */
  .site-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 4px 16px;
  }
}

/* ==========================================================================
   SUBPAGES (casefiles.html, evidence.html, methodology.html, tip/index.html)
   Scoped under body.page-sub so they inherit styles.css tokens & 12/6/3 grid
   with zero inline <style> duplication.
   ========================================================================== */

body.page-sub {
  padding: 0;
  overflow-wrap: break-word;
}
body.page-sub main {
  padding: clamp(44px, 6vw, 84px) 0 clamp(64px, 8vw, 112px);
}
body.page-sub main > .wrap {
  max-width: 1080px;
}
body.page-sub.page-tip main > .wrap {
  max-width: 820px;
}
body.page-sub .site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--signal);
}
body.page-sub .sub-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}
body.page-sub h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  line-height: 1.06;
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}
body.page-sub .lede {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 2.5rem;
  max-width: 64ch;
}
body.page-sub section {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--rule-strong);
  padding: clamp(28px, 4vw, 44px) 0 0;
  margin-bottom: clamp(44px, 6vw, 72px);
}
body.page-sub section:last-child {
  margin-bottom: 0;
}
body.page-sub section[hidden] { display: none; }
body.page-sub h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
}
body.page-sub h2 .head-count {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}
body.page-sub h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 1.5rem 0 0.65rem;
  font-weight: 700;
}
body.page-sub .section-note {
  font-size: 0.92rem;
  color: var(--ink-2);
  margin: 0 0 1.25rem;
  max-width: 70ch;
}
body.page-sub p { margin: 0 0 0.85rem; }
body.page-sub p:last-child { margin-bottom: 0; }
body.page-sub .mono { font-family: var(--font-mono); font-size: 0.78rem; }
body.page-sub .note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 0.85rem;
  margin-top: 1.15rem;
  overflow-wrap: anywhere;
}
body.page-sub .disclosure {
  font-size: 0.9rem;
  border-left: 3px solid var(--ink);
  background: transparent;
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 0 0 1.15rem;
}

/* Subpage metadata labels — V4 quiet square-dot grammar (solid fills only for alert/warn) */
body.page-sub .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
  color: var(--ink);
}
body.page-sub .chip::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  flex: none;
  display: inline-block;
}
body.page-sub.page-casefiles .chip { white-space: normal; }
body.page-sub .chip-confirmed_official,
body.page-sub .chip-final,
body.page-sub .chip-in_force { color: var(--ok); }
body.page-sub .chip-corroborated,
body.page-sub .chip-in_parliament {
  background: var(--warn);
  color: #111111;
  padding: 2px 8px;
}
body.page-sub .chip-corroborated::before,
body.page-sub .chip-in_parliament::before { display: none; }
body.page-sub .chip-unconfirmed_signal,
body.page-sub .chip-unknown,
body.page-sub .chip-rejected { color: var(--muted); }
body.page-sub .chip-unknown,
body.page-sub .chip-rejected { font-style: italic; }
body.page-sub .chip-type,
body.page-sub .chip-track { color: var(--ink-2); }
body.page-sub .chip-over {
  background: var(--signal);
  color: var(--signal-ink);
  padding: 2px 8px;
}
body.page-sub .chip-over::before { display: none; }
body.page-sub .chip-unverified,
body.page-sub .chip-investigation_open { color: var(--signal); }
body.page-sub .chip-decided,
body.page-sub .chip-tier { color: var(--blue); }

body.page-sub .kind {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
body.page-sub .kind-official { color: var(--blue); }

/* Subpage filters on 12/6/3 grid */
body.page-sub .filters {
  row-gap: 0.9rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
body.page-sub .field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
body.page-sub select,
body.page-sub input[type="date"],
body.page-sub input[type="text"],
body.page-sub textarea {
  width: 100%;
  max-width: 100%;
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0;
}
body.page-sub .count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0;
}
body.page-sub .notice {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink);
  border-left: 3px solid var(--signal);
  background: transparent;
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 0 0 1.15rem;
}
body.page-sub .notice[hidden],
body.page-sub .dataset-missing[hidden],
body.page-sub .audit-missing[hidden] { display: none; }
body.page-sub .dataset-missing,
body.page-sub .audit-missing {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  border-left: 3px solid var(--ink);
  background: transparent;
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 0 0 1.15rem;
}

/* Casefiles cards & votes */
body.page-sub .cases { display: grid; gap: 1.15rem; }
body.page-sub .case {
  border-left: 3px solid var(--rule);
  padding: 0.05rem 0 0.05rem 0.85rem;
  min-width: 0;
}
body.page-sub .case.is-flagged { border-left-color: var(--signal); }
body.page-sub .case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.55rem;
  margin-bottom: 0.25rem;
}
body.page-sub .case-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
body.page-sub .case-title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 0 0 0.3rem; }
body.page-sub .case-title .case-sub { font-weight: 400; color: var(--muted); }
body.page-sub .case-body { font-size: 0.95rem; margin: 0.3rem 0 0.5rem; }
body.page-sub .case-body:last-child { margin-bottom: 0; }
body.page-sub .dl {
  row-gap: 0.2rem;
  font-size: 0.85rem;
  margin: 0.35rem 0 0.6rem;
}
body.page-sub .dl dt {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding-top: 0.1rem;
}
body.page-sub .dl dd { margin: 0; }
body.page-sub .case-flag,
body.page-sub .ev-flag {
  border-left: 3px solid var(--signal);
  background: transparent;
  padding: 0.2rem 0 0.2rem 0.9rem;
  margin: 0.25rem 0 0.7rem;
  font-size: 0.86rem;
}
body.page-sub .case-flag .flag-name,
body.page-sub .ev-flag .flag-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--signal);
  display: block;
}
body.page-sub .case-flag p,
body.page-sub .ev-flag p { margin: 0.2rem 0 0; }
body.page-sub .raw {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
body.page-sub .raw .raw-label { text-transform: uppercase; letter-spacing: 0.05em; margin-right: 0.4rem; }

body.page-sub .vote {
  border: 1px solid var(--rule);
  padding: 0.65rem 0.8rem;
  margin: 0.5rem 0;
}
body.page-sub .vote-grid {
  row-gap: 0.5rem;
  margin: 0 0 0.5rem;
}
body.page-sub .vote .vote-num {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: block;
}
body.page-sub .vote .vote-key {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  display: block;
}
body.page-sub .vote .vote-parties { font-size: 0.84rem; margin: 0; color: var(--ink-2); }

/* Subpage sources list on 12/6/3 grid */
body.page-sub .sources {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
body.page-sub .sources li {
  row-gap: 0.15rem;
  align-items: baseline;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.84rem;
}
body.page-sub .src-label { display: block; min-width: 0; }
body.page-sub .src-ref { color: var(--muted); font-size: 0.76rem; display: block; overflow-wrap: anywhere; }
body.page-sub .src-note { color: var(--muted); font-size: 0.76rem; display: block; margin-top: 0.15rem; }
body.page-sub .src-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
  white-space: normal;
}
body.page-sub .src-meta .src-date { margin-left: 0.5rem; }
body.page-sub .dataset-src .src-label { font-family: var(--font-mono); font-size: 0.78rem; }

body.page-sub .empty {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.6rem 0;
}
body.page-sub .freshness {
  row-gap: 0.25rem;
  font-size: 0.84rem;
  margin: 0 0 1rem;
}
body.page-sub .freshness dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}
body.page-sub .freshness dd { margin: 0; }
body.page-sub .freshness .missing { color: var(--warn); }
body.page-sub .method-list { margin: 0 0 0.9rem; padding-left: 1.1rem; font-size: 0.88rem; color: var(--ink-2); }
body.page-sub .method-list li { margin-bottom: 0.35rem; }
body.page-sub .hygiene {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 0.8rem;
  margin-top: 1rem;
}

/* Evidence ledger & Methodology shared blocks */
body.page-sub .flow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}
body.page-sub .state-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
body.page-sub .state-list li {
  row-gap: 0.3rem;
  align-items: start;
}
body.page-sub .state-list li > :first-child {
  justify-self: start;
}
body.page-sub .state-list p { margin: 0; font-size: 0.9rem; }
body.page-sub .flag-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border-left: 3px solid var(--signal);
  background: transparent;
  padding: 0.25rem 0 0.25rem 1rem;
  font-size: 0.9rem;
}
body.page-sub .flag-note .flag-bar {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--signal);
  white-space: nowrap;
}
body.page-sub .flag-note p { margin: 0; }
body.page-sub .day-group { margin-bottom: 1.6rem; }
body.page-sub .day-group:last-child { margin-bottom: 0; }
body.page-sub .day-head {
  font-size: 0.85rem;
  font-weight: 700;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 0.3rem;
  margin: 0 0 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
body.page-sub .day-head .day-count { color: var(--muted); letter-spacing: 0.04em; }
body.page-sub .ev {
  border-left: 3px solid var(--rule);
  padding: 0.1rem 0 0.1rem 0.85rem;
  margin-bottom: 1.1rem;
}
body.page-sub .ev:last-child { margin-bottom: 0; }
body.page-sub .ev-flagged { border-left-color: var(--signal); }
body.page-sub .ev-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
body.page-sub .ev-place { font-weight: 700; font-size: 1rem; line-height: 1.3; margin: 0 0 0.2rem; }
body.page-sub .ev-place .ev-region { font-weight: 400; color: var(--muted); }
body.page-sub .ev-type { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
body.page-sub .ev-summary { margin: 0 0 0.5rem; font-size: 0.95rem; }
body.page-sub .audit-grid {
  row-gap: 0.35rem;
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
}
body.page-sub .audit-grid dt { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
body.page-sub .audit-grid dd { margin: 0; word-break: break-word; }
body.page-sub .audit-note { font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 0.8rem; }

/* Methodology tables, pipeline, hard rules, lexicon, errata */
body.page-sub .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.page-sub table.reg { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
body.page-sub table.reg th {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  padding: 0 0.6rem 0.45rem 0;
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
}
body.page-sub table.reg td {
  padding: 0.65rem 0.6rem 0.65rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  overflow-wrap: anywhere;
}
body.page-sub table.reg tr:last-child td { border-bottom: none; }
body.page-sub .cell-label { display: none; }
body.page-sub .cell-value { display: block; min-width: 0; }
body.page-sub .src-provider { font-weight: 700; display: block; }
body.page-sub .src-name { color: var(--muted); font-size: 0.8rem; display: block; }
body.page-sub .src-format { color: var(--muted); font-size: 0.75rem; display: block; margin-top: 0.15rem; }
body.page-sub .src-url { font-size: 0.78rem; overflow-wrap: anywhere; }

body.page-sub figure.pipe { margin: 0 0 1.1rem; }
body.page-sub .pipe-host svg { display: block; width: 100%; height: auto; }
body.page-sub .p-box { fill: var(--bg); stroke: var(--rule-strong); stroke-width: 1; }
body.page-sub .p-num { fill: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; }
body.page-sub .p-label { fill: var(--ink); font-family: var(--font-sans); font-size: 14px; font-weight: 700; }
body.page-sub .p-det { fill: var(--muted); font-family: var(--font-mono); font-size: 10.5px; }
body.page-sub .p-line { stroke: var(--rule-strong); stroke-width: 1.1; fill: none; }
body.page-sub .p-head { fill: var(--rule-strong); }
body.page-sub .pipe-cap { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); margin-bottom: 0; }

body.page-sub .hard-rules {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--signal);
  background: transparent;
}
body.page-sub .hard-rules li {
  display: grid;
  grid-template-columns: 0.9rem minmax(0, 1fr);
  gap: 0.6rem;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}
body.page-sub .hard-rules li:last-child { margin-bottom: 0; }
body.page-sub .hard-rules .mark { font-family: var(--font-mono); font-size: 0.8rem; color: var(--signal); line-height: 1.6; }

body.page-sub .lex {
  border: 0;
  border-top: 2px solid var(--rule-strong);
  background: transparent;
  padding: 0.85rem 0 0.35rem;
  margin: 0 0 1.25rem;
}
body.page-sub .lex-head {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 0.6rem;
  overflow-wrap: anywhere;
}
body.page-sub .lex-head .lex-count { color: var(--muted); font-weight: 400; }
body.page-sub .lex ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 0.55rem; margin: 0; padding: 0; }
body.page-sub .lex li {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  background: transparent;
  padding: 0.1rem 0.15rem;
  overflow-wrap: anywhere;
}
body.page-sub .errata-list { list-style: none; margin: 0; padding: 0; }
body.page-sub .errata-list li {
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0;
  font-size: 0.9rem;
}
body.page-sub .errata-list li:last-child { border-bottom: none; }
body.page-sub .errata-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); margin-right: 0.5rem; }

/* Tip form */
body.page-sub.page-tip label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.9rem 0 0.3rem;
}
body.page-sub.page-tip label:first-of-type { margin-top: 0; }
body.page-sub.page-tip .grid { row-gap: 0.5rem; margin-bottom: 0.5rem; }
body.page-sub.page-tip textarea { min-height: 8.5rem; resize: vertical; }
body.page-sub.page-tip .rules {
  border-left: 3px solid var(--signal);
  background: transparent;
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 0 0 2rem;
  font-size: 0.94rem;
}
body.page-sub.page-tip .rules strong { display: block; margin-bottom: 0.25rem; }
body.page-sub.page-tip ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
body.page-sub.page-tip li { margin-bottom: 0.25rem; }
body.page-sub.page-tip .consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 1.2rem 0 1rem;
  font-size: 0.92rem;
}
body.page-sub.page-tip .consent input { width: auto; margin-top: 0.25rem; }
body.page-sub.page-tip button[type="submit"] {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 0.7rem 1.3rem;
  cursor: pointer;
}
body.page-sub.page-tip button:disabled { opacity: 0.4; cursor: not-allowed; }
body.page-sub.page-tip button:hover:enabled { text-decoration: underline; text-underline-offset: 4px; }
body.page-sub.page-tip .msg { font-family: var(--font-mono); font-size: 0.82rem; margin-top: 0.9rem; white-space: pre-wrap; }
body.page-sub.page-tip .msg.ok { color: var(--ok); }
body.page-sub.page-tip .msg.err { color: var(--signal); }
body.page-sub.page-tip .states { font-size: 0.9rem; }
body.page-sub.page-tip .states code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 0.1rem 0.35rem;
}

body.page-sub .errata {
  border: 1px solid var(--rule);
  padding: 1rem;
  margin: 0.9rem 0 0;
}
body.page-sub .errata th { white-space: normal; }
body.page-sub .site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
body.page-sub .site-footer .footer-links a {
  color: var(--ink);
  text-decoration-color: var(--rule-strong);
}
body.page-sub .site-footer .footer-links a:hover,
body.page-sub .site-footer .footer-links a:focus-visible {
  color: var(--signal);
  text-decoration-color: var(--signal);
}
body.page-sub .noscript { font-family: var(--font-mono); font-size: 0.8rem; }

@media (max-width: 639px) {
  body.page-sub main { padding: 28px 0 48px; }
  body.page-sub section { padding: 22px 0 0; }
  body.page-sub .dl dd,
  body.page-sub .freshness dd,
  body.page-sub .audit-grid dd { margin-bottom: 0.45rem; }
  body.page-sub .src-meta { justify-self: start; text-align: left; }
  body.page-sub table.reg thead { display: none; }
  body.page-sub table.reg,
  body.page-sub table.reg tbody,
  body.page-sub table.reg tr,
  body.page-sub table.reg td { display: block; width: 100%; }
  body.page-sub table.reg tr { padding: 0.7rem 0; border-bottom: 1px solid var(--rule-strong); }
  body.page-sub table.reg tr:last-child { border-bottom: none; }
  body.page-sub table.reg td {
    border-bottom: none;
    padding: 0.28rem 0;
    display: grid;
    grid-template-columns: minmax(5.2rem, 6.6rem) minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
  }
  body.page-sub table.reg td[colspan] { display: block; }
  body.page-sub .cell-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.7;
  }
}

/* ==========================================================================
   EMBED WIDGET (embed.html)
   Scoped under body.page-embed, inheriting styles.css tokens & 12/6/3 grid.
   ========================================================================== */

body.page-embed {
  font-size: 14px;
  line-height: 1.4;
  padding: 0;
  background: var(--bg);
}
body.page-embed .card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--signal);
  padding: 14px 16px 12px;
  max-width: 680px;
  margin: 0 auto;
}
body.page-embed .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
body.page-embed .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body.page-embed .brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
body.page-embed .card-head-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
body.page-embed .season {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
body.page-embed .stats {
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 12px 0 10px;
}
body.page-embed .stat { background: var(--surface); padding: 10px 12px; }
body.page-embed .stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.page-embed .stat-value {
  display: block;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
  margin-top: 3px;
}
body.page-embed .stat-primary .stat-value { color: var(--signal); }
body.page-embed .stat-value .unit { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
body.page-embed .stat-secondary .stat-value { font-size: 20px; font-weight: 700; }
body.page-embed .bar { height: 5px; background: var(--surface-2); overflow: hidden; }
body.page-embed .bar-fill { height: 100%; width: 0; background: var(--signal); }
body.page-embed .bar-fill.is-full { background: var(--ink); }
body.page-embed .bar-fill.is-over { background: var(--signal); }
body.page-embed .areas { display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 10px 0 0; align-items: center; }
body.page-embed .areas-label { font-size: 11px; font-weight: 600; color: var(--muted); width: 100%; margin-bottom: 1px; }
body.page-embed .area-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.page-embed .area-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--signal);
  flex: none;
  display: inline-block;
}
body.page-embed .area-badge.is-full { background: var(--warn); color: #111111; padding: 1px 7px; }
body.page-embed .area-badge.is-full::before { display: none; }
body.page-embed .area-badge.is-over { color: var(--signal-ink); background: var(--signal); padding: 1px 7px; font-weight: 700; }
body.page-embed .area-badge.is-over::before { display: none; }
body.page-embed .event {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  align-items: baseline;
}
body.page-embed .event-label { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
body.page-embed .event-body { display: inline; min-width: 0; font-size: 12px; line-height: 1.45; }
body.page-embed .event-type { color: var(--ink); font-weight: 700; font-size: 12px; }
body.page-embed .sep { color: var(--muted); }
body.page-embed .card-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  font-size: 11.5px;
  color: var(--muted);
}
body.page-embed .stamp { font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); margin-right: auto; }
body.page-embed .links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
body.page-embed .fallback { padding: 12px 0 6px; font-size: 13px; color: var(--ink-2); }
body.page-embed .fallback strong { color: var(--ink); font-weight: 700; display: block; margin-bottom: 3px; }
body.page-embed [hidden] { display: none !important; }
@media (max-width: 639px) {
  body.page-embed .card { padding: 10px 12px 9px; }
  body.page-embed .card-head { padding-bottom: 7px; }
  body.page-embed .stats { margin: 8px 0 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.page-embed .stats > .stat-primary { grid-column: span 2; }
  body.page-embed .stats > .stat-secondary { grid-column: span 1; }
  body.page-embed .stat { padding: 7px 10px; }
  body.page-embed .stat-value { font-size: 20px; }
  body.page-embed .stat-secondary .stat-value { font-size: 16px; }
  body.page-embed .areas { padding-top: 8px; gap: 4px 10px; }
  body.page-embed .event { margin-top: 8px; padding-top: 8px; }
  body.page-embed .card-foot { margin-top: 8px; padding-top: 7px; }
}

/* ==========================================================================
   V3 UNIFIED COLOR-BLOCKED EDITORIAL BANDS
   Scoped purely via CSS custom properties + surface/accent overrides so the
   unified 12 / 6 / 3 architectural grid stays 100% intact across all viewports.
   ========================================================================== */

.section-concrete {
  background: var(--surface-2);
}

/* --- OBSIDIAN BLACK BAND (#areas, #mortality) --- */
.section-obsidian {
  --bg: #0e0e0e;
  --surface: #161616;
  --surface-2: #1c1c1c;
  --surface-3: #242424;
  --ink: #eeeeee;
  --ink-2: #c2c2c2;
  --muted: #8e8e8e;
  --rule: rgba(238, 238, 238, 0.15);
  --rule-strong: #eeeeee;
  --signal: #d91b22;
  --signal-ink: #ffffff;
  --signal-soft: rgba(217, 27, 34, 0.18);
  --ok: #0b3326;
  --ok-soft: rgba(11, 51, 38, 0.45);
  --warn: var(--yellow);
  --warn-soft: rgba(255, 228, 92, 0.14);
  --blue: #7bb8f0;
  --female: #e63946;
  --male: #7bb8f0;
  --chart-grid: rgba(238, 238, 238, 0.12);
  background: var(--bg);
  color: var(--ink);
  border-top-color: rgba(238, 238, 238, 0.08);
}

.section-obsidian .barfill,
.section-obsidian .fillbar-fill,
.section-obsidian .mbar-fill,
.section-obsidian .qbar i {
  background: var(--signal);
}
.section-obsidian .qbar.almost i {
  background: var(--warn);
}

.section-obsidian tr.is-over,
.section-obsidian tr.over-quota,
.section-obsidian tr[data-status="over"] {
  background: var(--oxblood-row);
}

.section-obsidian tr.is-over td:first-child,
.section-obsidian tr.over-quota td:first-child,
.section-obsidian tr[data-status="over"] td:first-child {
  border-left: 3px solid var(--signal);
  padding-left: 12px;
}

.section-obsidian a { color: var(--ink); }
.section-obsidian a:hover { color: var(--yellow); text-decoration-color: var(--yellow); }

.section-obsidian .civic-band {
  border-top-color: rgba(238, 238, 238, 0.35);
}
.section-obsidian .civic-head h3 {
  color: var(--ink);
}

/* --- DEEP OXBLOOD BAND (#events forensic kill ledger) --- */
.section-oxblood {
  --bg: #120b0c;
  --surface: #1b1012;
  --surface-2: #241316;
  --surface-3: #2e171b;
  --ink: #eeeeee;
  --ink-2: #c9bcbc;
  --muted: #9a8889;
  --rule: rgba(238, 238, 238, 0.14);
  --rule-strong: #eeeeee;
  --signal: #d91b22;
  --signal-ink: #ffffff;
  --signal-soft: rgba(217, 27, 34, 0.2);
  --ok: #0b3326;
  --warn: var(--yellow);
  --blue: #7bb8f0;
  background: var(--bg);
  color: var(--ink);
  border-top-color: rgba(217, 27, 34, 0.3);
}

.section-oxblood .event-card,
.section-oxblood .event-item {
  border-left: 3px solid var(--signal);
  padding-left: 18px;
}

.section-oxblood a { color: var(--ink); }
.section-oxblood a:hover { color: var(--yellow); text-decoration-color: var(--yellow); }

/* --- DEEP BOREAL PINE BAND (#osintMapSection — Natura 2000 & Map) --- */
.section-pine {
  --bg: #0b3326;
  --surface: #103d2e;
  --surface-2: #154a38;
  --surface-3: #1b5843;
  --ink: #eeeeee;
  --ink-2: #d4e6de;
  --muted: #a7c9bb;
  --rule: rgba(238, 238, 238, 0.16);
  --rule-strong: #eeeeee;
  --signal: #e62e35;
  --signal-ink: #ffffff;
  --signal-soft: rgba(230, 46, 53, 0.2);
  --ok: #0b3326;
  --ok-soft: rgba(11, 51, 38, 0.45);
  --warn: var(--yellow);
  --warn-soft: rgba(255, 228, 92, 0.14);
  --blue: #7bb8f0;
  background: var(--bg);
  color: var(--ink);
  border-top-color: rgba(238, 238, 238, 0.12);
}

.section-pine a { color: var(--ink); }
.section-pine a:hover { color: var(--yellow); text-decoration-color: var(--yellow); }

/* Cleaner hairline map filter bar inside Deep Boreal Pine */
.section-pine .osint-btn-group {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  gap: 6px 14px;
  padding-bottom: 6px;
}

.section-pine .osint-toggle {
  background: transparent;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  padding: 6px 4px;
}

.section-pine .osint-toggle:hover {
  background: transparent;
  color: #ffffff;
}

.section-pine .osint-toggle.is-active {
  background: transparent;
  color: #ffffff;
  border-bottom-color: var(--yellow);
}

.section-pine .osint-dl-btn {
  color: var(--yellow);
}
.section-pine .osint-dl-btn:hover {
  background: var(--yellow);
  color: #111111;
}

/* Keep the map canvas crisp & light so blood-red kill markers & Natura polygons pop */
.section-pine .osint-map-layout {
  background: transparent;
  border: none;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}

.section-pine .osint-map-panel {
  align-self: start;
  background: #f4f6f3;
  color: #111111;
  --ink: #111111;
  --ink-2: #444444;
  --muted: #5a635e;
  --rule: rgba(17, 17, 17, 0.14);
  --surface: #ffffff;
  --surface-2: #e7ece8;
  --bg: #eef2ee;
  --signal: #9e1217;
  --ok: #0b3326;
  --warn: #111111;
  --blue: #16324f;
}

@media (min-width: 1024px) {
  .section-pine .osint-map-panel {
    position: sticky;
    top: 84px;
  }
}

/* Rebuilt high-contrast Dark Pine inspector sidebar (fixes muddy grey wash) */
.section-pine .osint-inspector-col {
  background: transparent;
  gap: 16px;
}

.section-pine .osint-inspector-card {
  background: var(--pine-panel);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--yellow);
  padding: 20px;
}

.section-pine .osint-audit-card {
  border-left: 1px solid var(--rule);
  border-top: 2px solid var(--yellow);
}

.section-pine .osint-panel-head {
  color: var(--yellow);
  border-bottom-color: var(--rule);
}

.section-pine .osint-audit-metric {
  background: rgba(11, 51, 38, 0.65);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--yellow);
}

.section-pine .osint-audit-metric span {
  color: var(--ink-2);
}

.section-pine .osint-gap-note {
  background: rgba(255, 228, 92, 0.1);
  border-left: 2px solid var(--yellow);
  color: var(--ink);
}

.section-pine .osint-gap-note .muted {
  color: var(--ink-2);
}

.section-pine .osint-cluster-list {
  background: transparent;
  border: none;
  gap: 8px;
}

.section-pine .osint-cluster-row {
  background: rgba(11, 51, 38, 0.72);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--yellow);
  color: var(--ink);
}

.section-pine .osint-cluster-row:hover {
  background: var(--surface-2);
}

.section-pine .osint-cluster-row .badge,
.section-pine .osint-cluster-row .tag {
  background: var(--yellow);
  color: #111111;
  border-color: var(--yellow);
  font-weight: 700;
}

.section-pine .osint-cluster-meta {
  color: var(--ink-2);
}

/* --- SIGNAL YELLOW BAND (#timeline — Miten tähän päädyttiin) --- */
.section-yellow {
  --bg: #FFE45C;
  --surface: #fff0a3;
  --surface-2: #f5d842;
  --surface-3: #ebd03b;
  --ink: #111111;
  --ink-2: #262418;
  --muted: #4a4526;
  --rule: rgba(17, 17, 17, 0.24);
  --rule-strong: #111111;
  --signal: #9e1217;
  --signal-ink: #ffffff;
  --signal-soft: rgba(158, 18, 23, 0.12);
  --warn: #111111;
  --blue: #16324f;
  background: var(--bg);
  color: var(--ink);
  border-top-color: rgba(17, 17, 17, 0.18);
}

.section-yellow .tl-chip {
  background: transparent;
  border-color: rgba(17, 17, 17, 0.35);
  color: #111111;
}

.section-yellow .tl-chip.is-active {
  background: #111111;
  border-color: #111111;
  color: #FFE45C;
}

.section-yellow .track {
  border-left: 1px solid var(--rule);
  padding-left: 24px;
}

.section-yellow .tl-live-tag {
  background: #111111;
  color: #FFE45C;
  padding: 2px 8px;
  font-weight: 700;
}

.section-yellow .tl-live-dot {
  background: #FFE45C;
}

@media (max-width: 1023px) {
  .section-yellow .track {
    border-left: none;
    padding-left: 0;
  }
}

/* --- CLEANER HAIRLINE WIRE SOURCE PILLS & CROSS-CHECK (#osintWireSection) --- */
#osintWireSection .osint-source-pill {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 5px 2px;
  gap: 6px;
}

#osintWireSection a.evidence-strip-link {
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink);
  font-weight: 600;
}

/* Blood-crimson hero progress bar emphasis */
.section-hero .barwrap {
  height: 5px;
}
.section-hero .barfill {
  background: var(--blood);
}

/* ==========================================================================
   HERO QUOTA GROUNDS STRIP (MMM 27.11.2026) & AREA REASON FILTERS
   ========================================================================== */

.hero-reasons {
  margin-top: clamp(44px, 5.5vw, 72px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--rule);
}
.hero-reasons:empty {
  display: none;
}

.hero-reasons-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 18px;
}

.hero-reasons-title-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.hero-reasons-title {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-reasons-sub {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.hero-reasons-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
}

.hero-reasons-source {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 1px;
  white-space: nowrap;
}
.hero-reasons-source:hover {
  color: var(--blood);
  border-bottom-color: var(--blood);
}

.hero-reasons-bar {
  display: flex;
  width: 100%;
  height: 5px;
  gap: 2px;
  margin-bottom: clamp(20px, 2.6vw, 30px);
  background: transparent;
}

.reason-seg {
  display: block;
  height: 100%;
  min-width: 3px;
}
.reason-seg--damage_safety { background: var(--blood, #9e1217); }
.reason-seg--inbreeding { background: var(--blue, #16324f); }
.reason-seg--forest_reindeer { background: var(--ok, #0b3326); }
.reason-seg--combined_genetics_damage { background: var(--ink, #111111); }

.hero-reasons-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 24px;
}

.reason-card {
  grid-column: span 3;
  min-width: 0;
  appearance: none;
  border: none;
  border-top: 2px solid var(--rule);
  background: transparent;
  padding: 14px 0 4px;
  margin: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 140ms ease, transform 140ms ease;
}

.reason-card--damage_safety { border-top-color: var(--blood, #9e1217); }
.reason-card--inbreeding { border-top-color: var(--blue, #16324f); }
.reason-card--forest_reindeer { border-top-color: var(--ok, #0b3326); }
.reason-card--combined_genetics_damage { border-top-color: var(--ink, #111111); }

.reason-card:hover,
.reason-card:focus-visible {
  transform: translateY(-2px);
}
.reason-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.reason-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reason-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.reason-card-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.reason-card-metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 2px;
}

.reason-card-num {
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.reason-card-pct {
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.reason-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: 13px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.reason-card-killed {
  color: var(--muted);
}
.reason-card-killed.has-kills {
  color: var(--blood, #9e1217);
  font-weight: 600;
}

.hero-reasons-explain {
  appearance: none;
  background: transparent;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  padding: 0 0 1px 0;
  font-family: inherit;
  cursor: pointer;
}

.reason-card-note {
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink-2);
  margin-top: 4px;
}

.reason-card-breakdown {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 2px;
}

.reason-card-cue {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: auto;
  padding-top: 4px;
}
.reason-card:hover .reason-card-cue {
  color: var(--ink);
}

@media (max-width: 1023px) {
  .reason-card {
    grid-column: span 3;
  }
}

/* Area table reason filter toolbar (inside .section-obsidian) */
.area-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.area-filters[hidden] {
  display: none;
}

.area-filter-btn {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(238, 238, 238, 0.22);
  color: rgba(238, 238, 238, 0.78);
  padding: 7px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.area-filter-btn:hover {
  border-color: rgba(238, 238, 238, 0.6);
  color: #ffffff;
}

.area-filter-btn.is-active {
  background: #eeeeee;
  border-color: #eeeeee;
  color: #0e0e0e;
  font-weight: 600;
}

.area-filter-btn.area-filter--damage_safety.is-active {
  background: #d91b22;
  border-color: #d91b22;
  color: #ffffff;
}
.area-filter-btn.area-filter--inbreeding.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}
.area-filter-btn.area-filter--forest_reindeer.is-active {
  background: var(--pine);
  border-color: var(--pine);
  color: #ffffff;
}
.area-filter-btn.area-filter--combined_genetics_damage.is-active {
  background: #FFE45C;
  border-color: #FFE45C;
  color: #0e0e0e;
}

/* Reason cell & semantic tag in #areaTable */
#areas {
  scroll-margin-top: 72px;
}

.cell-reason {
  min-width: 140px;
  max-width: 220px;
}

#areaTable .cell-area {
  min-width: 155px;
}

#areaTable .cell-fill {
  min-width: 145px;
}

.reason-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  padding: 3px 8px;
  border-left: 2px solid rgba(238, 238, 238, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(238, 238, 238, 0.9);
}

.reason-tag--damage_safety {
  border-left-color: #d91b22;
}
.reason-tag--inbreeding {
  border-left-color: var(--blue);
}
.reason-tag--forest_reindeer {
  border-left-color: var(--pine);
}
.reason-tag--combined_genetics_damage {
  border-left-color: #FFE45C;
}

@media (max-width: 639px) {
  .cell-reason {
    min-width: 140px;
  }
}

/* Official criteria definitions drawer inside #areas (.section-obsidian) */
.area-criteria-box {
  margin-bottom: 28px;
}
.area-criteria-box[hidden] {
  display: none;
}

.criteria-drawer {
  border-top: 1px solid rgba(238, 238, 238, 0.18);
  border-bottom: 1px solid rgba(238, 238, 238, 0.18);
  padding: 14px 0;
}

.criteria-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  font-size: 14px;
  color: #eeeeee;
}
.criteria-summary::-webkit-details-marker {
  display: none;
}
.criteria-summary strong {
  font-weight: 600;
  color: #ffffff;
}
.criteria-summary strong::before {
  content: '+ ';
  color: #FFE45C;
  font-weight: 700;
}
.criteria-drawer[open] .criteria-summary strong::before {
  content: '− ';
}
.criteria-hint {
  font-size: 12.5px;
  color: rgba(238, 238, 238, 0.62);
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 20px;
  margin-top: 20px;
}

.criteria-card {
  grid-column: span 6;
  min-width: 0;
  border-top: 2px solid rgba(238, 238, 238, 0.25);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.criteria-card--safety { border-top-color: #d91b22; }
.criteria-card--damages { border-top-color: #FFE45C; }
.criteria-card--genetics { border-top-color: var(--blue); background: rgba(22, 50, 79, 0.32); padding: 12px; }
.criteria-card--forest_reindeer { border-top-color: var(--pine); background: rgba(11, 51, 38, 0.28); padding: 12px; }

.criteria-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
}
.criteria-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}
.criteria-pages {
  font-size: 12px;
  font-family: var(--mono);
  color: rgba(238, 238, 238, 0.58);
}
.criteria-card-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(238, 238, 238, 0.84);
}
.criteria-card-gap {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #FFE45C;
  border-left: 2px solid rgba(255, 228, 92, 0.55);
  padding-left: 10px;
}

.criteria-refs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(238, 238, 238, 0.14);
  font-size: 12.5px;
}
.criteria-refs-label {
  color: rgba(238, 238, 238, 0.62);
  font-weight: 600;
}
.criteria-ref-link {
  color: #eeeeee;
  text-decoration: none;
  border-bottom: 1px solid rgba(238, 238, 238, 0.35);
  padding-bottom: 1px;
}
.criteria-ref-link:hover {
  color: #FFE45C;
  border-bottom-color: #FFE45C;
}

@media (max-width: 1023px) {
  .criteria-card {
    grid-column: span 6;
  }
}
@media (max-width: 639px) {
  .criteria-card {
    grid-column: span 3;
  }
}

/* Expandable area rows & official memorandum details */
.area-name-btn {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.area-name-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reason-tag-btn {
  appearance: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-align: left;
  transition: background-color 120ms ease;
}
.reason-tag-btn:hover,
.reason-tag-btn.is-open {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}
.reason-tag-caret {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(238, 238, 238, 0.65);
  flex: none;
}

tr.is-expanded td {
  border-bottom-color: transparent;
  background: rgba(255, 255, 255, 0.03);
}

.area-detail-row td.area-detail-cell {
  padding: 0 12px 20px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(238, 238, 238, 0.22);
}

.area-detail-inner {
  max-width: min(720px, calc(100vw - 64px));
  border-left: 2px solid #FFE45C;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.area-detail-kicker {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(238, 238, 238, 0.6);
  margin-bottom: 3px;
}

.area-detail-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(238, 238, 238, 0.9);
  white-space: normal;
}

.area-detail-gap .area-detail-kicker {
  color: rgba(255, 228, 92, 0.8);
}
.area-detail-gap .area-detail-text {
  color: #FFE45C;
  font-size: 12.5px;
}

.area-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 6px;
  border-top: 1px solid rgba(238, 238, 238, 0.12);
  font-size: 12.5px;
}
.area-detail-links a {
  color: #eeeeee;
  text-decoration: none;
  border-bottom: 1px solid rgba(238, 238, 238, 0.35);
}
.area-detail-links a:hover {
  color: #FFE45C;
  border-bottom-color: #FFE45C;
}

/* ==========================================================================
   V4 UNIFIED BOX, TOOLBAR & METADATA GRAMMAR
   Collapses disparate box/pill/toolbar variants into one cohesive Nordic
   architectural system anchored by Suojelualuekartta (.section-pine) and
   Miten tähän päädyttiin (.section-yellow):
     1. Hairline underline filter toolbars (zero floating white/bordered boxes)
     2. Quiet square-dot typographic metadata labels (only critical alerts fill)
     3. Consistent 2px open-top architectural cards across all multi-column grids
     4. Consistent 3px left-rule editorial callouts (zero tinted 4-sided boxes)
   ========================================================================== */

/* 1. UNIFIED HAIRLINE FILTER TOOLBARS (matches Suojelualuekartta everywhere) */
.osint-btn-group,
.area-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0 0 6px 0;
}

.osint-toggle,
.osint-btn,
.osint-chip,
.area-filter-btn {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -7px;
  padding: 6px 2px 10px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 120ms ease, border-color 120ms ease;
}

.osint-toggle:hover,
.osint-btn:hover,
.osint-chip:hover,
.area-filter-btn:hover {
  background: transparent;
  color: var(--ink);
}

.osint-toggle.is-active,
.osint-btn.is-active,
.osint-chip.is-active,
.osint-btn[aria-pressed="true"],
.osint-chip[aria-pressed="true"],
.area-filter-btn.is-active {
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

/* Preserve Suojelualuekartta (.section-pine) exact yellow underline & hover */
.section-pine .osint-toggle {
  color: var(--ink-2);
}
.section-pine .osint-toggle:hover {
  color: #ffffff;
}
.section-pine .osint-toggle.is-active {
  color: #ffffff;
  border-bottom-color: var(--yellow);
}
.section-pine .osint-dl-btn {
  color: var(--yellow);
  border-bottom-color: transparent;
  margin-bottom: 0;
  padding: 6px 6px;
}
.section-pine .osint-dl-btn:hover {
  background: var(--yellow);
  color: #111111;
}

/* Area filter semantic active underlines on Obsidian (no solid boxes) */
.area-filter-btn.area-filter--damage_safety.is-active {
  background: transparent;
  color: #ffffff;
  border-bottom-color: #d91b22;
}
.area-filter-btn.area-filter--inbreeding.is-active {
  background: transparent;
  color: #ffffff;
  border-bottom-color: var(--blue);
}
.area-filter-btn.area-filter--forest_reindeer.is-active {
  background: transparent;
  color: #ffffff;
  border-bottom-color: #3aa675;
}
.area-filter-btn.area-filter--combined_genetics_damage.is-active {
  background: transparent;
  color: #ffffff;
  border-bottom-color: #FFE45C;
}

/* Unify source health pills globally to hairline underline (no white boxes) */
.osint-source-pill {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 5px 2px;
  gap: 6px;
}

/* 2. QUIET SQUARE-DOT METADATA LABELS (replaces hollow 1px boxed pills) */
.badge,
.tag,
.derog-method-pill,
.bill-status,
.tl-track-tag,
.tl-stat,
.live-tag,
.tl-live-tag,
.sci-kpi-badge,
.osint-license-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.badge::before,
.tag::before,
.bill-status::before,
.sci-kpi-badge::before,
.derog-method-pill::before,
.tl-track-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  flex: none;
}

/* Avoid double dot on .live-tag (already defines ::before) */
.live-tag::before {
  width: 6px;
  height: 6px;
  margin-right: 0;
}

/* Only high-severity alerts keep a solid crimson block */
.badge-over,
.anomaly-flag {
  background: var(--signal);
  color: var(--signal-ink);
  padding: 2px 8px;
}
.badge-over::before,
.anomaly-flag::before {
  display: none;
}

/* Preserve Suojelualuekartta (.section-pine) solid yellow distance tags */
.section-pine .osint-cluster-row .badge,
.section-pine .osint-cluster-row .tag {
  background: var(--yellow);
  color: #111111;
  padding: 2px 8px;
  font-weight: 700;
}
.section-pine .osint-cluster-row .badge::before,
.section-pine .osint-cluster-row .tag::before {
  display: none;
}

/* Clean spacing for evidence card metadata row */
.sci-ev-top {
  gap: 6px 18px;
}

/* Unify #areaTable reason tags to the same square-dot label (no grey box) */
.reason-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: rgba(238, 238, 238, 0.92);
}
.reason-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: rgba(238, 238, 238, 0.55);
}
.reason-tag--damage_safety::before { background: #d91b22; }
.reason-tag--inbreeding::before { background: var(--blue); outline: 1px solid rgba(238, 238, 238, 0.38); }
.reason-tag--forest_reindeer::before { background: var(--pine); outline: 1px solid rgba(238, 238, 238, 0.38); }
.reason-tag--combined_genetics_damage::before { background: #FFE45C; }

.reason-tag-btn:hover,
.reason-tag-btn.is-open {
  background: transparent;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.reason-tag-btn:hover .reason-tag-caret,
.reason-tag-btn.is-open .reason-tag-caret {
  color: #FFE45C;
}

/* 3. UNIFIED 2px OPEN-TOP ARCHITECTURAL CARDS (multi-column grids) */
.sci-evidence-card,
.sci-nl-card,
.sci-kpi-card,
.lic-card,
.bill-card,
.osint-media-card,
.civic-cell,
.criteria-card {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--card-accent, var(--rule-strong));
  padding: 20px 0 0;
}
.sci-nl-card { --card-accent: var(--ok); }
.bill-card { --card-accent: var(--rule-strong); }
.sci-evidence-card { --card-accent: var(--blue); }
.sci-evidence-card:has(.tag-warn) { --card-accent: var(--warn); }
.sci-evidence-card:has(.badge-over),
.sci-evidence-card:has(.tag-signal) { --card-accent: var(--signal); }

/* 4. UNIFIED 3px LEFT-RULE EDITORIAL CALLOUTS (single-column notes/banners) */
.sci-policy-banner,
.sci-traj-readout,
.discrepancy,
.gap-card,
.osint-guard-card {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--callout-accent, var(--rule-strong));
  padding: 6px 0 6px 20px;
}
.sci-policy-banner { --callout-accent: var(--signal); }
.sci-traj-readout { --callout-accent: var(--ink); }
.discrepancy,
.gap-card { --callout-accent: var(--warn); }
.osint-guard-card { --callout-accent: var(--ok); }

/* Quiet architectural code block in Open Data */
.snippet {
  background: transparent;
  border: 1px solid var(--rule);
}





/* ================================================================
   FAVOURABLE REFERENCE VALUE SCALE & STAKEHOLDER ADVOCACY PANEL
   (V4 Architectural Editorial grammar: open-canvas hairlines,
   12/6/3 grid parity, square markers, zero white boxes)
   ================================================================ */

.sci-thr-panel {
  margin-bottom: clamp(40px, 5vw, 64px);
}

.sci-thr-axis {
  position: relative;
  height: 64px;
  margin: 8px 0 28px;
}
.sci-thr-base {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 2px;
  background: var(--rule-strong);
}
.sci-thr-bound {
  position: absolute;
  bottom: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.sci-thr-bound.is-min { left: 0; }
.sci-thr-bound.is-max { right: 0; }

.sci-thr-mark {
  position: absolute;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.sci-thr-dot {
  width: 10px;
  height: 10px;
  border-radius: 0;
  background: var(--ink);
}
.sci-thr-val {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sci-thr-mark.is-advocacy .sci-thr-dot { background: var(--ink); }
.sci-thr-mark.is-advocacy .sci-thr-val { background: var(--warn); color: #111111; padding: 1px 6px; }
.sci-thr-mark.is-political .sci-thr-dot { background: var(--signal); }
.sci-thr-mark.is-political .sci-thr-val { color: var(--signal); }
.sci-thr-mark.is-current .sci-thr-dot { background: var(--ink); }
.sci-thr-mark.is-science .sci-thr-dot { background: var(--ok); }
.sci-thr-mark.is-science .sci-thr-val { color: var(--ok); }

/* 4-up on 12-col desktop -> 2-up on 6-col tablet -> 1-up on 3-col mobile */
.sci-thr-cards {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 32px;
}
.sci-thr-card {
  grid-column: span 3;
  border-top: 2px solid var(--rule-strong);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.sci-thr-card.is-advocacy { border-top-color: var(--ink); }
.sci-thr-card.is-political { border-top-color: var(--signal); }
.sci-thr-card.is-science { border-top-color: var(--ok); }
.sci-thr-card-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.sci-thr-num {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.sci-thr-card strong {
  font-size: 14.5px;
  line-height: 1.35;
}
.sci-thr-src {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12.5px;
}

/* Open-canvas Advocacy panel (no 4-sided white .panel boxes) */
.sci-adv-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4.5vw, 52px);
  margin-bottom: 16px;
}
.sci-adv-block {
  border-top: 2px solid var(--rule-strong);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.sci-adv-block h4 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}
.sci-adv-callout {
  border-left: 3px solid var(--warn);
  padding: 4px 0 4px 18px;
  max-width: 78ch;
}
.sci-adv-callout p {
  margin: 0;
  color: var(--ink-2);
}

/* Responsive open hairline ledgers (zero horizontal clipping at 375px) */
.sci-adv-ledger {
  border-top: 1px solid var(--rule-strong);
}
.sci-adv-row {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.sci-adv-row > * { min-width: 0; }

.sci-adv-claim-row .sci-adv-meta {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sci-adv-claim-row .sci-adv-body {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sci-adv-claim-row .sci-adv-tagcol {
  grid-column: span 3;
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.sci-adv-stmt-row .sci-adv-meta {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sci-adv-stmt-row .sci-adv-body {
  grid-column: span 9;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sci-adv-figure {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.sci-adv-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 13px;
}
.sci-adv-lead a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 3px;
}
.sci-adv-lead a:hover { color: var(--signal); text-decoration-color: var(--signal); }
.sci-adv-check {
  margin: 0;
  line-height: 1.45;
}
.sci-adv-ask {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.sci-adv-src a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
.sci-adv-src a:hover { color: var(--ink); }

.sci-adv-more-wrap {
  padding-top: 4px;
}
.sci-adv-more {
  padding: 6px 0;
}
.sci-adv-foot {
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

/* Continuous 18-month dog-attack publishing cadence chart */
.sci-cad-scroll {
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 4px;
}
.sci-cad-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding-top: 8px;
  min-width: 540px;
}
.sci-cad-col {
  flex: 1 1 0;
  min-width: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.sci-cad-n {
  font-family: var(--font-sans);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-height: 15px;
}
.sci-cad-bar-wrap {
  width: 100%;
  height: 112px;
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--rule-strong);
}
.sci-cad-bar {
  width: 100%;
  background: var(--ink-2);
  opacity: 0.35;
}
.sci-cad-bar.is-zero {
  background: var(--rule);
  opacity: 0.7;
}
.sci-cad-col.is-window .sci-cad-bar {
  background: var(--warn);
  opacity: 1;
}
.sci-cad-col.is-window .sci-cad-n {
  color: var(--ink);
  font-weight: 700;
}
.sci-cad-m {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
.sci-cad-col.is-window .sci-cad-m {
  color: var(--ink);
  font-weight: 600;
}
.sci-cad-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 12.5px;
  color: var(--muted);
}
.sci-cad-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.sci-cad-key {
  width: 8px;
  height: 8px;
  background: var(--ink-2);
  opacity: 0.35;
  display: inline-block;
  flex: none;
}
.sci-cad-key.is-window {
  background: var(--warn);
  opacity: 1;
}

@media (max-width: 1023px) {
  .sci-adv-claim-row .sci-adv-meta { grid-column: span 2; }
  .sci-adv-claim-row .sci-adv-body { grid-column: span 4; }
  .sci-adv-claim-row .sci-adv-tagcol { grid-column: span 6; justify-content: flex-start; }
  .sci-adv-stmt-row .sci-adv-meta { grid-column: span 2; }
  .sci-adv-stmt-row .sci-adv-body { grid-column: span 4; }
}

@media (max-width: 639px) {
  .sci-thr-card { grid-column: span 3; }
  .sci-adv-claim-row .sci-adv-meta,
  .sci-adv-claim-row .sci-adv-body,
  .sci-adv-claim-row .sci-adv-tagcol,
  .sci-adv-stmt-row .sci-adv-meta,
  .sci-adv-stmt-row .sci-adv-body {
    grid-column: span 3;
  }
  .sci-adv-claim-row .sci-adv-meta {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
  .sci-adv-stmt-row .sci-adv-meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
  }
  .sci-adv-claim-row .sci-adv-tagcol {
    justify-content: flex-start;
  }
  .sci-cad-bar-wrap { height: 88px; }
}

/* ==========================================================================
   OPTION 2 PALETTE CONTRAST PAIRING
   - Light surfaces: Crimson (#9e1217), Boreal Pine (#0b3326), Deep Prussian (#16324f),
     crisp Ink (#111111) for thin rules/numbers, and solid Signal Yellow (#FFE45C)
     highlight pills with #111111 text.
   - Dark bands & yellow-heavy cadence block: Obsidian (#141414) where #FFE45C shines.
   ========================================================================== */

/* Light surfaces: avoid low-contrast yellow text or thin yellow borders/underlines */
.n.warn,
.hero-metric-item strong.warn,
.lic-num.warn,
.sci-kpi-val.warn {
  color: var(--ink);
  text-decoration: none;
}

.sci-kpi-card:has(.warn),
.sci-evidence-card:has(.tag-warn),
.lic-card:nth-child(2) {
  border-top-color: var(--ink);
  --card-accent: var(--ink);
}

.gap-card {
  --card-accent: var(--ink);
  --callout-accent: var(--ink);
}

.sci-ref-line.sci-ref-warn {
  stroke: var(--ink);
}

.tag-warn,
body.page-sub .chip-in_parliament,
body.page-sub .freshness .missing,
body.page-embed .area-badge.is-full {
  background: var(--warn);
  color: #111111;
  padding: 2px 8px;
}
.tag-warn::before,
body.page-embed .area-badge.is-full::before {
  display: none;
}

.sci-ref-text.sci-ref-warn {
  fill: var(--ink);
}

body.page-sub .gap-banner,
body.page-sub .warn-note {
  color: var(--ink);
}

/* Dark Obsidian canvas for the yellow-heavy dog-attack publishing cadence block */
.sci-adv-block:has(.sci-cad-chart) {
  --bg: #141414;
  --ink: #eeeeee;
  --ink-2: #c8c8c8;
  --muted: #9a9a9a;
  --rule: rgba(238, 238, 238, 0.16);
  --rule-strong: rgba(238, 238, 238, 0.45);
  background: var(--bg);
  color: var(--ink);
  border-top: 2px solid var(--warn);
  padding: clamp(22px, 3vw, 34px);
}

.sci-adv-block:has(.sci-cad-chart) h4 {
  color: #ffffff;
}

.sci-adv-block:has(.sci-cad-chart) .sci-adv-callout {
  border-left: 3px solid var(--warn);
}

.sci-adv-block:has(.sci-cad-chart) .sci-adv-callout p {
  color: var(--ink);
}

.sci-adv-block:has(.sci-cad-chart) .sci-cad-bar {
  background: #3a3a3a;
  opacity: 1;
}

.sci-adv-block:has(.sci-cad-chart) .sci-cad-bar.is-zero {
  background: rgba(238, 238, 238, 0.14);
  opacity: 1;
}

.sci-adv-block:has(.sci-cad-chart) .sci-cad-col.is-window .sci-cad-bar {
  background: var(--warn);
}

.sci-adv-block:has(.sci-cad-chart) .sci-cad-col.is-window .sci-cad-n {
  color: var(--warn);
}

.sci-adv-block:has(.sci-cad-chart) .sci-cad-col.is-window .sci-cad-m {
  color: #ffffff;
}

.sci-adv-block:has(.sci-cad-chart) .sci-cad-key {
  background: #3a3a3a;
  opacity: 1;
}

.sci-adv-block:has(.sci-cad-chart) .sci-cad-key.is-window {
  background: var(--warn);
}

.sci-adv-block:has(.sci-cad-chart) .sci-adv-foot {
  border-top-color: var(--rule);
  color: var(--muted);
}

/* On dark bands (Obsidian / Oxblood), Deep Boreal Pine (#0b3326) stays the sole
   green via high-contrast pine fills with light ink and subtle outlines on dots. */
.section-obsidian .badge-open,
.section-obsidian .badge-verified,
.section-oxblood .badge-open,
.section-oxblood .badge-verified {
  background: var(--ok);
  color: #eeeeee;
  padding: 2px 8px;
}
.section-obsidian .badge-open::before,
.section-obsidian .badge-verified::before,
.section-oxblood .badge-open::before,
.section-oxblood .badge-verified::before {
  display: none;
}

.section-obsidian .osint-source-pill.is-ok .osint-status-dot,
.section-oxblood .osint-source-pill.is-ok .osint-status-dot {
  background: var(--ok);
  box-shadow: 0 0 0 1px rgba(238, 238, 238, 0.45);
}

/* Keep Signal Yellow text on dark bands where contrast is high */
.section-obsidian .n.warn,
.section-obsidian .sci-kpi-val.warn,
.section-oxblood .n.warn,
.section-pine .n.warn {
  color: var(--warn);
  text-decoration: none;
}
