/* =====================================================================
   Overasselt Intelligence Dossier — main stylesheet
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

.skip-link {
  position: absolute; left: -9999px; top: var(--space-2);
  background: var(--ink); color: var(--bg);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-mono); font-size: var(--text-xs);
  z-index: 100;
}
.skip-link:focus { left: var(--space-4); }

img { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-thickness: 1.5px; }
a.a { color: var(--accent-strong); }

button {
  font: inherit; color: inherit;
  background: none; border: 0; cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-inline);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
/* Opaque by default; keep it simple and readable */
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
}
.brand { display: flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; }
.brand__mark { color: var(--accent-strong); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--ink); }
.brand__sub { font-family: var(--font-serif); font-style: italic; font-size: var(--text-sm); color: var(--ink-3); margin-top: 3px; }

.header-meta { display: flex; align-items: center; gap: var(--space-2); }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 4px 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  background: var(--surface);
  border-radius: var(--r-inline);
  text-transform: uppercase;
}
.chip--version { color: var(--accent-strong); border-color: color-mix(in oklab, var(--accent) 45%, var(--rule)); }
.chip--stamp { color: var(--ink-3); }

@media (max-width: 640px) {
  .chip--stamp { display: none; }
}

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--rule); border-radius: var(--r-inline);
  color: var(--ink-2); background: var(--surface);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.theme-toggle:hover { color: var(--accent-strong); border-color: var(--accent); }
.theme-toggle .ico-moon { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .theme-toggle .ico-moon { display: block; }

/* ---------- Page grid ---------- */
.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-10);
}

@media (min-width: 1024px) {
  .page {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: var(--space-10);
    padding: 0 var(--space-8);
  }
}

/* ---------- TOC ---------- */
.toc {
  position: sticky;
  top: 78px;
  align-self: start;
  padding: var(--space-6) 0;
  max-height: calc(100vh - 96px);
  overflow: auto;
  display: none;
}
@media (min-width: 1024px) { .toc { display: block; } }
.toc__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: var(--space-3);
}
.toc__list {
  list-style: none; padding: 0; margin: 0;
  border-left: 1px solid var(--rule);
}
.toc__list li { }
.toc__list a {
  display: block;
  padding: 6px var(--space-3);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.toc__list a:hover { color: var(--ink); }
.toc__list a.is-active {
  color: var(--accent-strong);
  border-left-color: var(--accent);
  background: var(--accent-tint);
}

.content { min-width: 0; padding-bottom: var(--space-24); }

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(var(--space-10), 6vw, var(--space-20));
  scroll-margin-top: 96px;
  border-top: 1px solid var(--rule);
}
.section:first-of-type { border-top: 0; padding-top: var(--space-10); }
.section--band {
  background: var(--bg-band);
  margin-inline: calc(-1 * var(--space-6));
  padding-inline: var(--space-6);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 1024px) {
  .section--band { margin-inline: calc(-1 * var(--space-6)); padding-inline: var(--space-6); }
}

.section__head { max-width: var(--content); margin-bottom: var(--space-8); }
.section__eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 0 var(--space-3);
}
.section__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-xl); line-height: 1.15; margin: 0;
  letter-spacing: -0.01em; color: var(--ink);
  font-variation-settings: "opsz" 40;
}
.section__lede {
  margin: var(--space-4) 0 0;
  color: var(--ink-2);
  max-width: 62ch;
  font-size: var(--text-base);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-16);
  border-top: 0;
  isolation: isolate;
  scroll-margin-top: 96px;
}
.hero__figure {
  position: absolute; inset: 0;
  overflow: hidden;
  z-index: -1;
  background: var(--bg-alt);
}
.hero__figure img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .62;
  filter: saturate(85%) contrast(102%);
}
[data-theme="dark"] .hero__figure img { opacity: .38; filter: saturate(80%); }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in oklab, var(--bg) 35%, transparent) 0%, color-mix(in oklab, var(--bg) 90%, transparent) 55%, var(--bg) 100%);
}
.hero__body {
  position: relative;
  padding-top: clamp(var(--space-16), 20vw, var(--space-24));
  max-width: 940px;
}
.metaline { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-6); }
.metaline--top span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-strong);
  border: 1px solid color-mix(in oklab, var(--accent) 45%, var(--rule));
  background: var(--accent-tint);
  padding: 5px 10px;
  border-radius: var(--r-inline);
}
.hero__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-hero);
  line-height: 0.98; letter-spacing: -0.025em;
  margin: 0 0 var(--space-4);
  font-variation-settings: "opsz" 96;
  color: var(--ink);
}
.hero__sub {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: var(--text-lg);
  color: var(--ink-2);
  margin: 0 0 var(--space-6);
  max-width: 42ch;
  font-variation-settings: "opsz" 24;
}
.hero__byline {
  border-top: 1px solid var(--rule);
  padding-top: var(--space-3);
  margin-top: var(--space-8);
}
.mono {
  font-family: var(--font-mono); font-size: var(--text-xs);
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* Counters */
.counters {
  margin: var(--space-8) 0 0;
  padding: var(--space-4) 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0;
}
.counter {
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-right: 1px solid var(--rule-soft);
}
.counter:last-child { border-right: 0; }
.counter dt {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 0 var(--space-2);
}
.counter dd {
  margin: 0;
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-xl);
  color: var(--ink);
  line-height: 1;
  font-variation-settings: "opsz" 40;
}
.counter--confirmed dd { color: var(--c-confirmed); }
.counter--partial dd { color: var(--c-partial); }
.counter--unconfirmed dd { color: var(--c-unconfirmed); }
.counter--removed dd { color: var(--c-removed); }

/* ---------- Executive summary ---------- */
.exec-list {
  list-style: none; padding: 0; margin: 0;
  max-width: 68ch;
}
.exec-list li {
  border-top: 1px solid var(--rule-soft);
  padding: var(--space-4) 0 var(--space-4) var(--space-6);
  position: relative;
  font-size: var(--text-md);
  color: var(--ink);
}
.exec-list li::before {
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  position: absolute; left: 0; top: var(--space-4);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--accent-strong);
}
.exec-list { counter-reset: item; }
.exec-list li:first-child { border-top: 1px solid var(--rule); }
.exec-list li:last-child { border-bottom: 1px solid var(--rule); }

/* ---------- Incident quick-facts ---------- */
.incident-grid {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
  max-width: 900px;
}
.incident-grid dt {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute);
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: 1px solid var(--rule-soft);
  align-self: start;
}
.incident-grid dd {
  margin: 0;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink);
  font-size: var(--text-base);
}
.incident-grid dd:last-of-type,
.incident-grid dt:last-of-type + dd { border-bottom: 1px solid var(--rule); }
@media (max-width: 640px) {
  .incident-grid { grid-template-columns: 1fr; }
  .incident-grid dt { padding-bottom: 0; border-bottom: 0; }
  .incident-grid dd { padding-top: var(--space-1); }
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none; padding: 0; margin: 0;
  position: relative;
  border-left: 1px solid var(--rule);
  padding-left: var(--space-6);
}
.tl-node {
  position: relative;
  padding: var(--space-4) 0 var(--space-6);
  border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.tl-node:hover { background: var(--surface); }
.tl-node::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-6) - 5px);
  top: var(--space-6);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c-derived);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--rule);
}
.tl-node[data-conf="confirmed"]::before { background: var(--c-confirmed); }
.tl-node[data-conf="partial"]::before { background: var(--c-partial); }
.tl-node[data-conf="unconfirmed"]::before { background: var(--c-unconfirmed); }
.tl-node[data-conf="removed"]::before { background: var(--c-removed); }

.tl-date {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-mute); text-transform: uppercase; margin: 0 0 var(--space-1);
}
.tl-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-md); margin: 0 0 var(--space-1); color: var(--ink);
  font-variation-settings: "opsz" 24;
}
.tl-text { margin: 0 0 var(--space-2); color: var(--ink-2); font-size: var(--text-sm); }
.tl-ref { font-family: var(--font-mono); font-size: 11px; color: var(--accent-strong); text-decoration: none; }
.tl-ref:hover { text-decoration: underline; }

/* ---------- Actors ---------- */
.actor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.actor {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 0;
  position: relative;
  display: flex; flex-direction: column;
}
.actor--denied { border-color: color-mix(in oklab, var(--c-denied) 55%, var(--rule)); }
.actor__banner {
  background: var(--c-denied);
  color: hsl(43 30% 95%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px var(--space-4);
}
.actor__body { padding: var(--space-5); }
.actor__portrait {
  width: 100%; height: 140px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.actor__portrait svg { width: 64px; height: 64px; color: var(--ink-mute); opacity: .7; }
.actor__meta {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 0 var(--space-2);
}
.actor__name {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-md); margin: 0 0 var(--space-1); color: var(--ink);
  font-variation-settings: "opsz" 24;
}
.actor__role { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin: 0 0 var(--space-3); }
.actor__text { margin: 0 0 var(--space-4); color: var(--ink-2); font-size: var(--text-sm); }

.actor__sources {
  margin-top: auto;
  border-top: 1px solid var(--rule-soft);
  padding-top: var(--space-3);
}
.actor__sources summary {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-3);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: var(--space-2);
}
.actor__sources summary::-webkit-details-marker { display: none; }
.actor__sources summary::before {
  content: "+"; color: var(--accent-strong); font-family: var(--font-mono);
}
.actor__sources[open] summary::before { content: "−"; }
.actor__sources ul { list-style: none; padding: 0; margin: var(--space-2) 0 0; }
.actor__sources li { font-family: var(--font-mono); font-size: 11px; padding: 3px 0; color: var(--ink-2); }
.actor__sources li a { word-break: break-all; }

/* Confidence badge (small pill) */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  border: 1px solid currentColor;
}
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.badge--confirmed { color: var(--c-confirmed); background: var(--c-confirmed-tint); }
.badge--partial { color: var(--c-partial); background: var(--c-partial-tint); }
.badge--unconfirmed { color: var(--c-unconfirmed); background: var(--c-unconfirmed-tint); }
.badge--removed { color: var(--c-removed); background: var(--c-removed-tint); }
.badge--derived { color: var(--c-derived); background: var(--c-derived-tint); }

/* ---------- Claim register ---------- */
.section-break {
  margin: 0 0 var(--space-8);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg-alt);
}
.section-break img {
  width: 100%; height: clamp(180px, 24vw, 320px); object-fit: cover;
  filter: saturate(80%);
}
.section-break--small img { height: clamp(120px, 14vw, 200px); }
[data-theme="dark"] .section-break img { filter: saturate(70%) brightness(.85); }

.filter-bar {
  display: flex; flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  align-items: flex-end;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: var(--space-6);
}
.filter { border: 0; padding: 0; margin: 0; min-width: 0; }
.filter__legend {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute); padding: 0; margin-bottom: var(--space-2);
}
.filter__row { display: flex; flex-wrap: wrap; gap: 6px; }
.filter__actions { margin-left: auto; display: flex; gap: var(--space-2); }

.chip--filter {
  padding: 5px 10px;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.chip--filter:hover { color: var(--ink); border-color: var(--ink-3); }
.chip--filter.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn-ghost {
  padding: 5px 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-inline);
  background: var(--surface);
  transition: color var(--dur), border-color var(--dur);
}
.btn-ghost:hover { color: var(--accent-strong); border-color: var(--accent); }

.claim-list { display: flex; flex-direction: column; gap: var(--space-3); }
.claim {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--c-derived);
  padding: 0;
  scroll-margin-top: 96px;
  transition: box-shadow var(--dur) var(--ease);
}
.claim[data-flash] { box-shadow: 0 0 0 3px var(--accent-tint); }
.claim[data-status="confirmed"]   { border-left-color: var(--c-confirmed); }
.claim[data-status="partial"]     { border-left-color: var(--c-partial); }
.claim[data-status="unconfirmed"] { border-left-color: var(--c-unconfirmed); }
.claim[data-status="removed"]     { border-left-color: var(--c-removed); }

.claim__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
}
.claim.is-open .claim__head { border-bottom-color: var(--rule-soft); }
.claim__title {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--ink);
  margin: 0;
}
.claim__title .sep { color: var(--ink-mute); margin: 0 6px; }
.claim__title .cat { color: var(--ink-3); }
.claim__title .conf { color: var(--accent-strong); }
.claim[data-status="confirmed"]   .claim__title .conf { color: var(--c-confirmed); }
.claim[data-status="partial"]     .claim__title .conf { color: var(--c-partial); }
.claim[data-status="unconfirmed"] .claim__title .conf { color: var(--c-unconfirmed); }
.claim[data-status="removed"]     .claim__title .conf { color: var(--c-removed); }

.claim__toggle {
  font-family: var(--font-mono); font-size: 14px;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  border: 1px solid var(--rule);
}
.claim.is-open .claim__toggle { color: var(--accent-strong); border-color: var(--accent); }

.claim__body {
  display: none;
  padding: var(--space-5);
  padding-top: var(--space-5);
}
.claim.is-open .claim__body { display: block; }

.claim__block { margin-bottom: var(--space-4); }
.claim__block:last-child { margin-bottom: 0; }
.claim__label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 0 var(--space-2);
}
.claim__reported {
  font-family: var(--font-serif); font-style: italic;
  color: var(--ink-2);
  padding-left: var(--space-4);
  border-left: 2px solid var(--rule);
  margin: 0;
  font-variation-settings: "opsz" 14;
}
.claim__evidence { margin: 0; color: var(--ink); }
.claim__close    { margin: 0; color: var(--ink-2); }
.claim__sources {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.claim__sources li {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-2);
  word-break: break-word;
}
.claim__sources li .pub { color: var(--ink); }
.claim__sources li a { color: var(--accent-strong); }
.claim__nosources {
  font-family: var(--font-mono); font-size: 12px; color: var(--c-unconfirmed);
}

.claim-empty {
  text-align: center; font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-mute); padding: var(--space-8) 0;
  border: 1px dashed var(--rule);
}

/* ---------- Cocaine viz ---------- */
.coke-viz {
  display: flex; flex-direction: column; gap: var(--space-3);
  max-width: 820px;
  border-top: 1px solid var(--rule);
  padding-top: var(--space-6);
}
.coke-row { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
.coke-row__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3);
}
.coke-row__kg {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-lg); color: var(--ink);
  font-variation-settings: "opsz" 24;
}
.coke-row__unit { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.12em; }
.coke-row__label { flex: 1; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; }
.coke-row__bar {
  height: 10px;
  background: var(--rule-soft);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.coke-row__fill {
  position: absolute; inset: 0 auto 0 0;
  background: currentColor;
}
.coke-row[data-conf="confirmed"]   { color: var(--c-confirmed); }
.coke-row[data-conf="unconfirmed"] { color: var(--c-unconfirmed); }
.coke-row[data-conf="derived"]     { color: var(--c-derived); }
.coke-row[data-conf="partial"]     { color: var(--c-partial); }
.coke-row__detail {
  font-family: var(--font-sans); font-size: var(--text-sm); color: var(--ink-3);
  margin-top: 2px;
}

.coke-note {
  margin: var(--space-6) 0 0;
  max-width: 68ch;
  color: var(--ink-2);
  border-top: 1px solid var(--rule-soft);
  padding-top: var(--space-4);
}

/* ---------- Legal ---------- */
.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 780px) {
  .legal-grid { grid-template-columns: 1fr 1fr; }
}
.legal-card {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.legal-card__law {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0;
}
.legal-card__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-md); margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 24;
}
.legal-card dl { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 4px 12px; }
.legal-card dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); align-self: start; padding-top: 3px; }
.legal-card dd { margin: 0; color: var(--ink-2); font-size: var(--text-sm); }
.legal-card__history { color: var(--ink-2); font-size: var(--text-sm); margin: 0; }
.legal-card__sources { list-style: none; padding: 0; margin: 0; font-family: var(--font-mono); font-size: 11px; }
.legal-card__sources a { word-break: break-word; }

/* ---------- Retractions ---------- */
.retractions { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.retraction {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: var(--space-4) var(--space-5);
}
.retraction__id {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-strong); margin: 0 0 var(--space-2);
}
.retraction__was {
  color: var(--c-removed);
  text-decoration: line-through;
  text-decoration-color: var(--c-removed);
  margin: 0 0 var(--space-2);
  font-family: var(--font-serif); font-style: italic;
  font-variation-settings: "opsz" 14;
}
.retraction__arrow { font-family: var(--font-mono); color: var(--ink-mute); font-size: 12px; margin: 0 0 var(--space-1); }
.retraction__now { margin: 0 0 var(--space-2); color: var(--ink); }
.retraction__src { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); word-break: break-all; }

/* ---------- Open questions ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); }
.questions {
  width: 100%; border-collapse: collapse; font-size: var(--text-sm);
}
.questions th, .questions td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.questions thead th {
  background: var(--bg-alt);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
  border-bottom: 1px solid var(--rule);
}
.questions tbody tr:last-child td { border-bottom: 0; }
.questions .col-id { width: 90px; }
.questions .col-date { width: 190px; }
.questions .q-id { font-family: var(--font-mono); font-size: 11px; color: var(--accent-strong); letter-spacing: 0.06em; }
.questions .q-date { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); }
.questions .q-text { color: var(--ink); }
.questions .q-check {
  display: inline-block; width: 12px; height: 12px;
  border: 1px solid var(--ink-3);
  vertical-align: -1px; margin-right: 8px;
}

/* ---------- Methodology ---------- */
.method { list-style: none; padding: 0; margin: 0; counter-reset: m; max-width: 68ch; }
.method li {
  counter-increment: m;
  padding: var(--space-4) 0 var(--space-4) var(--space-8);
  border-top: 1px solid var(--rule-soft);
  position: relative;
}
.method li:first-child { border-top: 1px solid var(--rule); }
.method li:last-child { border-bottom: 1px solid var(--rule); }
.method li::before {
  content: counter(m, decimal-leading-zero);
  position: absolute; left: 0; top: var(--space-4);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--accent-strong);
}
.method__t {
  font-family: var(--font-serif); font-weight: 500;
  font-size: var(--text-md); margin: 0 0 var(--space-1); color: var(--ink);
  font-variation-settings: "opsz" 24;
}
.method__x { margin: 0; color: var(--ink-2); }

.removed-notes {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: 1px dashed var(--rule);
  background: var(--surface);
}
.removed-notes h3 {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--c-removed);
  margin: 0 0 var(--space-3);
}
.removed-notes ul { list-style: none; padding: 0; margin: 0; }
.removed-notes li {
  padding: var(--space-2) 0;
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-2);
  font-size: var(--text-sm);
}
.removed-notes li:first-child { border-top: 0; }

/* ---------- Sources index ---------- */
.sources-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 780px) { .sources-grid { grid-template-columns: 1fr 1fr; } }
.src-group { border-top: 1px solid var(--rule); padding-top: var(--space-3); }
.src-group__h {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-strong);
  margin: 0 0 var(--space-3);
  display: flex; justify-content: space-between; align-items: baseline;
}
.src-group__h .count { color: var(--ink-mute); font-size: 10px; }
.src-list { list-style: none; padding: 0; margin: 0; }
.src-list li {
  padding: 4px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-mono); font-size: 11px;
  word-break: break-all;
  line-height: 1.5;
}
.src-list li:last-child { border-bottom: 0; }
.src-list a { color: var(--ink-2); text-decoration: none; }
.src-list a:hover { color: var(--accent-strong); text-decoration: underline; }
.src-list .host { color: var(--accent-strong); }

/* ---------- Colophon ---------- */
.colophon {
  margin-top: var(--space-16);
  padding: var(--space-8) 0 var(--space-4);
  border-top: 1px solid var(--rule);
}
.colophon__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.colophon__block--wide { grid-column: span 2; }
.colophon__label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 0 var(--space-2);
}
.colophon__value { margin: 0; color: var(--ink); font-size: var(--text-sm); }
.colophon__disclaimer {
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule-soft);
  color: var(--ink-3);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  line-height: 1.6;
}

/* ---------- Glossary tooltip ---------- */
.gloss {
  border-bottom: 1px dotted var(--ink-3);
  cursor: help;
}
.tooltip {
  position: fixed;
  z-index: 60;
  max-width: 260px;
  padding: var(--space-3);
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-family: var(--font-mono);
  line-height: 1.5;
  pointer-events: none;
  border: 1px solid var(--ink);
  box-shadow: 0 4px 20px rgb(0 0 0 / .18);
}

/* ---------- Skeleton loading ---------- */
.is-loading .hero__title,
.is-loading .hero__sub {
  color: transparent;
  background: linear-gradient(90deg, var(--surface-2), var(--rule), var(--surface-2));
  background-size: 200% 100%;
  animation: sk 1.5s var(--ease) infinite;
  border-radius: var(--r-inline);
  min-height: 1em;
  display: inline-block;
  width: 60%;
}
@keyframes sk {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* =====================================================================
   v2 additions — search, drawer, ticker, chips, cards, maps, timeline axis
   ===================================================================== */

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Header search + controls ---------- */
.header-search {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
  max-width: 380px;
  display: flex; align-items: center; gap: 6px;
}
.header-search input[type="search"] {
  width: 100%;
  padding: 6px 34px 6px 10px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  border-radius: var(--r-inline);
  min-width: 0;
}
.header-search input:focus { border-color: var(--accent); outline: none; }
.header-search .kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 10px;
  border: 1px solid var(--rule); border-radius: 3px;
  padding: 2px 5px; color: var(--ink-mute); background: var(--bg);
  pointer-events: none;
}
.search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  max-height: 55vh; overflow: auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  z-index: 50;
}
.search-group__h {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
  padding: 8px 10px 4px; background: var(--bg-band);
  border-bottom: 1px solid var(--rule-soft);
}
.search-hit {
  display: block; width: 100%; text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule-soft);
  background: transparent; color: var(--ink);
  font-family: var(--font-sans); font-size: var(--text-sm);
  cursor: pointer;
}
.search-hit:hover, .search-hit.is-active { background: var(--accent-tint); color: var(--accent-strong); }
.search-hit__id { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--ink-mute); text-transform: uppercase; margin-right: 8px; }

.chip--retract {
  color: var(--c-unconfirmed);
  border-color: color-mix(in oklab, var(--c-unconfirmed) 45%, var(--rule));
  text-decoration: none;
}
.chip--retract[data-count="0"] { color: var(--ink-3); border-color: var(--rule); }
.chip--retract.is-hot { background: var(--c-unconfirmed-tint); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--rule); border-radius: var(--r-inline);
  color: var(--ink-2); background: var(--surface);
  transition: color var(--dur), border-color var(--dur);
}
.icon-btn:hover { color: var(--accent-strong); border-color: var(--accent); }
#theme-toggle .ico-moon { display: none; }
[data-theme="dark"] #theme-toggle .ico-sun { display: none; }
[data-theme="dark"] #theme-toggle .ico-moon { display: block; }

.lang-toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r-inline); overflow: hidden; }
.lang-btn {
  padding: 6px 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-3); background: var(--surface);
  border-right: 1px solid var(--rule-soft);
}
.lang-btn:last-child { border-right: 0; }
.lang-btn.is-active { background: var(--ink); color: var(--bg); }

@media (max-width: 900px) {
  .header-search { display: none; }
  .lang-toggle { display: none; }
  .chip--stamp { display: none; }
}
@media (max-width: 640px) {
  #print-btn { display: none; }
}

/* ---------- Latest findings ticker ---------- */
.ticker {
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
}
.ticker__label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 var(--space-3);
}
.ticker__label .ticker__ver { color: var(--accent-strong); margin-left: 6px; }
.ticker__list { list-style: none; padding: 0; margin: 0 0 var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.ticker__list li { font-size: var(--text-sm); color: var(--ink); line-height: 1.5; display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.type-badge {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase;
  padding: 3px 7px; border-radius: var(--r-inline); border: 1px solid currentColor;
  white-space: nowrap;
}
.type-badge--add { color: var(--c-confirmed); background: var(--c-confirmed-tint); }
.type-badge--upgrade { color: hsl(210 60% 40%); background: hsl(210 60% 40% / .1); }
.type-badge--downgrade { color: var(--c-partial); background: var(--c-partial-tint); }
.type-badge--contradict { color: var(--c-unconfirmed); background: var(--c-unconfirmed-tint); }
.type-badge--close_question { color: hsl(180 50% 34%); background: hsl(180 50% 34% / .1); }
.type-badge--retract { color: var(--c-removed); background: var(--c-removed-tint); }
[data-theme="dark"] .type-badge--upgrade { color: hsl(210 60% 66%); }
[data-theme="dark"] .type-badge--close_question { color: hsl(180 50% 62%); }
.ticker__summary { flex: 1 1 320px; min-width: 0; }
.ticker__meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.06em; }
.ticker__meta a { color: var(--accent-strong); }

/* ---------- Version drawer ---------- */
.drawer {
  position: fixed; inset: 0;
  z-index: 80;
  pointer-events: none;
  visibility: hidden;
}
.drawer.is-open { pointer-events: auto; visibility: visible; }
.drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.32);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(420px, 92vw);
  background: var(--bg);
  border-left: 1px solid var(--rule);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
  box-shadow: -12px 0 40px rgba(0,0,0,.12);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .drawer__panel { transition: none; }
  .drawer__scrim { transition: none; }
}
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--rule);
}
.drawer__head h2 { font-family: var(--font-serif); font-size: var(--text-md); margin: 0; font-variation-settings: "opsz" 24; font-weight: 500; }
.drawer__body { flex: 1; overflow: auto; padding: var(--space-4) var(--space-5); }
.ver-entry { padding: var(--space-4) 0; border-bottom: 1px solid var(--rule-soft); }
.ver-entry:first-child { padding-top: 0; }
.ver-entry:last-child { border-bottom: 0; }
.ver-entry__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-2); gap: var(--space-2); flex-wrap: wrap; }
.ver-entry__v { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent-strong); }
.ver-entry__ts { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.06em; }
.ver-entry__note { font-size: var(--text-sm); color: var(--ink-2); margin: 0 0 var(--space-3); font-style: italic; }
.ver-entry__findings { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ver-entry__findings li { font-size: var(--text-sm); color: var(--ink); display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.ver-entry__findings a.ref-link { font-family: var(--font-mono); font-size: 11px; color: var(--accent-strong); text-decoration: none; }
.ver-entry__findings a.ref-link:hover { text-decoration: underline; }

/* ---------- Overviews ---------- */
.overviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 900px) {
  .overviews-grid { grid-template-columns: repeat(3, 1fr); }
}
.ov-panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: var(--space-4) var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  min-width: 0;
}
.ov-panel__title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-strong); margin: 0;
}
.ov-panel__body { min-height: 220px; display: flex; align-items: stretch; justify-content: stretch; }
.ov-panel__body > canvas, .ov-panel__body > svg { max-width: 100%; }
.ov-panel__note { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--ink-mute); margin: 0; }
#actor-graph { width: 100%; height: 260px; }
#actor-graph svg { width: 100%; height: 100%; }
#cocaine-chart { width: 100%; display: flex; flex-direction: column; gap: 8px; }

.coke-bar-row { display: grid; grid-template-columns: 90px 1fr; gap: 8px; align-items: center; font-size: 12px; }
.coke-bar-row__label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); }
.coke-bar-row__bars { display: flex; flex-direction: column; gap: 3px; }
.coke-bar { height: 8px; background: var(--rule-soft); border: 1px solid var(--rule); position: relative; overflow: hidden; }
.coke-bar__fill { position: absolute; inset: 0 auto 0 0; }
.coke-bar__fill--kg { background: currentColor; opacity: .8; }
.coke-bar__fill--eur { background: currentColor; opacity: .4; }
.coke-bar-row[data-conf="confirmed"] { color: var(--c-confirmed); }
.coke-bar-row[data-conf="unconfirmed"] { color: var(--c-unconfirmed); }
.coke-bar-row[data-conf="derived"] { color: var(--c-derived); }
.coke-bar-row__meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.06em; margin-top: 2px; }
.contested-flag { color: var(--c-unconfirmed); font-weight: 600; }

/* ---------- Timeline v2 (axis) ---------- */
.timeline-controls { display: inline-flex; margin-top: var(--space-4); border: 1px solid var(--rule); border-radius: var(--r-inline); overflow: hidden; }
.seg-btn {
  padding: 6px 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-2); background: var(--surface);
  border-right: 1px solid var(--rule-soft);
}
.seg-btn:last-child { border-right: 0; }
.seg-btn.is-active { background: var(--ink); color: var(--bg); }

.tl-axis-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: var(--space-6) 20px var(--space-4);
  scrollbar-width: thin;
}
.tl-axis {
  position: relative;
  min-height: 220px;
  min-width: 900px;
}
.tl-axis__line {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--rule);
}
.tl-tick {
  position: absolute; top: 50%;
  transform: translate(-50%, 0);
  width: 1px; height: 8px; background: var(--rule);
}
.tl-tick__label {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); white-space: nowrap;
}
.tl-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 200px;
  cursor: pointer;
  user-select: none;
}
.tl-marker__dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c-derived); border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--rule);
  margin: 0 auto;
}
.tl-marker[data-conf="confirmed"] .tl-marker__dot { background: var(--c-confirmed); }
.tl-marker[data-conf="partial"] .tl-marker__dot { background: var(--c-partial); }
.tl-marker[data-conf="unconfirmed"] .tl-marker__dot { background: var(--c-unconfirmed); }
.tl-marker[data-ghost="true"] .tl-marker__dot {
  background: transparent;
  border: 2px dashed var(--c-partial);
  box-shadow: none;
  opacity: .8;
}
.tl-marker__card {
  position: absolute;
  width: 200px;
  padding: 6px 8px;
  background: var(--bg);
  border: 1px solid var(--rule);
  font-size: 11px; line-height: 1.35;
}
.tl-marker--above .tl-marker__card { bottom: 20px; left: 50%; transform: translateX(-50%); }
.tl-marker--below .tl-marker__card { top: 20px; left: 50%; transform: translateX(-50%); }
.tl-marker__stem {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 1px; height: 20px; background: var(--rule);
}
.tl-marker--above .tl-marker__stem { bottom: 0; }
.tl-marker--below .tl-marker__stem { top: 0; }
.tl-marker__date { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.06em; text-transform: uppercase; }
.tl-marker__title { font-family: var(--font-serif); font-weight: 500; color: var(--ink); font-size: 12px; margin-top: 2px; line-height: 1.25; font-variation-settings: "opsz" 14; }
.tl-marker[data-ghost="true"] .tl-marker__card { opacity: .8; border-style: dashed; }
.tl-marker__ghost-pill {
  display: inline-block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--c-partial-tint); color: var(--c-partial);
  padding: 1px 5px; margin-top: 3px; border-radius: 3px;
}

.tl-density {
  position: relative;
  height: 40px;
  margin-top: var(--space-4);
  border-top: 1px solid var(--rule-soft);
  min-width: 900px;
}
.tl-density__bar {
  position: absolute; bottom: 0;
  width: 3px; background: var(--accent);
  transform: translateX(-50%);
  border-radius: 2px 2px 0 0;
  opacity: .8;
}

.tl-legend { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-3); font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.tl-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--rule); }
.dot--confirmed { background: var(--c-confirmed); }
.dot--partial { background: var(--c-partial); }
.dot--unconfirmed { background: var(--c-unconfirmed); }
.dot--ghost { background: transparent; border: 2px dashed var(--c-partial); box-shadow: none; }

/* ---------- Actor cards v2 ---------- */
.actor__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--space-3); }
.chip--claim {
  padding: 3px 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  border: 1px solid var(--rule); background: var(--bg-alt); color: var(--ink-2);
  text-decoration: none; border-radius: 3px;
}
.chip--claim:hover { color: var(--accent-strong); border-color: var(--accent); }

/* ---------- Maps ---------- */
.maps-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-5);
}
@media (min-width: 780px) { .maps-grid { grid-template-columns: 1fr 1fr; } }
.map-panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.map-panel__title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-strong); margin: 0;
}
.map-panel__body {
  width: 100%; height: 360px;
  border: 1px solid var(--rule);
  background: var(--bg-alt);
}
.map-panel__legend {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--ink-mute);
  margin: 0;
}
.lg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.lg-dot--target { background: var(--accent); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--accent-strong); }
.lg-dot--arrest { background: var(--c-unconfirmed); border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--rule); }
.lg-line { display: inline-block; width: 22px; height: 2px; vertical-align: 3px; margin-right: 4px; }
.lg-line--seized { border-top: 2px dashed var(--c-confirmed); }
.lg-line--alleged { border-top: 2px dotted var(--c-unconfirmed); }

/* Leaflet tile theming for dark mode */
[data-theme="dark"] .leaflet-tile { filter: invert(0.92) hue-rotate(180deg) saturate(0.7) brightness(0.9); }

/* ---------- Claim card v2 additions ---------- */
.claim__evidence-strength {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding-bottom: var(--space-3); margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-2);
}
.pub-class-icons { display: inline-flex; gap: 4px; }
.pub-class {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border: 1px solid var(--rule); border-radius: 3px;
  color: var(--ink-3);
  background: var(--bg);
}
.pub-class svg { width: 12px; height: 12px; }
.pub-class[title]:hover { color: var(--accent-strong); border-color: var(--accent); }
.claim__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: var(--space-3); }
.contested-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--c-unconfirmed); background: var(--c-unconfirmed-tint);
  border: 1px solid var(--c-unconfirmed); border-radius: var(--r-inline);
  text-decoration: none;
}
.contested-badge:hover { text-decoration: underline; }
.claim__permalink {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--ink-mute); background: transparent; border: 1px solid var(--rule);
  padding: 3px 7px; border-radius: var(--r-inline);
  margin-left: 8px;
}
.claim__permalink:hover { color: var(--accent-strong); border-color: var(--accent); }
.claim__permalink.is-copied { color: var(--c-confirmed); border-color: var(--c-confirmed); }

.claim__head-right { display: flex; align-items: center; gap: 6px; }

/* Active filter chips row */
.active-filters {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: var(--space-4);
}
.af-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  background: var(--accent-tint); color: var(--accent-strong);
  border: 1px solid var(--accent);
  border-radius: var(--r-inline);
  text-transform: uppercase;
}
.af-chip button {
  background: transparent; border: 0; color: currentColor; cursor: pointer;
  font-family: inherit; font-size: 12px; padding: 0 0 0 4px;
}

/* Sources index: "cited in N" badge */
.src-list li .cited-count {
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); margin-left: 8px; letter-spacing: 0.06em;
}

/* Video dossier */
.video-dossier {
  display: grid; grid-template-columns: 1fr; gap: var(--space-4);
  padding: var(--space-5);
  border: 1px dashed var(--rule);
  background: var(--surface);
}
.vd-row { display: grid; grid-template-columns: 160px 1fr; gap: var(--space-4); }
.vd-row dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin: 0; }
.vd-row dd { margin: 0; color: var(--ink); font-size: var(--text-sm); }
.vd-empty { font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); font-style: italic; }

.i18n-note {
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid var(--accent);
  background: var(--accent-tint);
  color: var(--ink-2);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; line-height: 1.6;
}

@media (max-width: 640px) {
  .vd-row { grid-template-columns: 1fr; }
  .filter-bar { gap: var(--space-3); }
}

/* ---------- Print stylesheet ---------- */
@media print {
  .site-header, .toc, .drawer, .header-search, .filter-bar,
  .active-filters, .timeline-controls, .tl-density, .tl-legend,
  .maps-grid, .ticker, #retractions-badge, #version-chip, .icon-btn,
  .lang-toggle, .btn-ghost, .search-results {
    display: none !important;
  }
  body { background: white; color: black; }
  .page { display: block; padding: 0; }
  .section, .hero { padding: 16pt 0; page-break-inside: avoid; }
  .hero__title { font-size: 24pt; }
  .section__title { font-size: 16pt; }
  .claim, .actor, .legal-card, .retraction, .ov-panel, .map-panel {
    page-break-inside: avoid;
    border: 1px solid #666 !important;
    background: white !important;
  }
  .claim__body { display: block !important; }
  a { color: black; text-decoration: underline; }
  .claim__sources li a { color: #333; word-break: break-all; }
}

/* ---- Version drawer content ---- */
.vd-version { padding: 1rem 0; border-bottom: 1px solid var(--ink-5); }
.vd-version:last-child { border-bottom: 0; }
.vd-version__head { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .35rem; }
.vd-version__ver { font-family: var(--font-mono); font-size: .85rem; font-weight: 600; color: var(--accent); letter-spacing: .04em; }
.vd-version__date { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); }
.vd-version__summary { font-size: .82rem; color: var(--ink-2); margin: 0 0 .5rem; line-height: 1.45; }
.vd-findings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.vd-findings li { border-left: 2px solid var(--ink-5); padding: .35rem .6rem; background: var(--surface-2); }
.vd-finding__head { display: flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .7rem; margin-bottom: .15rem; }
.vd-finding__summary { font-size: .8rem; color: var(--ink-1); line-height: 1.4; }
.vd-finding__src { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-3); margin-top: .2rem; }
.vd-finding__src a { color: var(--ink-3); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.vd-ref { color: var(--accent); font-weight: 600; text-decoration: none; }
.vd-ref:hover { text-decoration: underline; }

/* ---- Search dropdown ---- */
.sr-empty { padding: .8rem 1rem; color: var(--ink-3); font-size: .82rem; font-style: italic; }
.sr-group { padding: .5rem 1rem .25rem; font-family: var(--font-mono); font-size: .68rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); position: sticky; top: 0; }
.sr-item { padding: .55rem 1rem; cursor: pointer; border-top: 1px solid var(--ink-5); }
.sr-item:hover, .sr-item:focus { background: var(--surface-2); outline: none; }
.sr-item__label { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-1); font-weight: 600; }
.sr-item__snippet { font-size: .74rem; color: var(--ink-3); line-height: 1.4; margin-top: .2rem; }

/* Small niceties */
.type-badge { display: inline-block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .06em; padding: .1rem .35rem; border-radius: 2px; color: #fff; text-transform: uppercase; }
.type-badge--upgrade { background: #2b527a; }
.type-badge--downgrade { background: #c07a10; }
.type-badge--contradict { background: #b22c1e; }
.type-badge--close_question { background: #0d7377; }
.type-badge--retract { background: #666; }

.claim[data-flash="1"] { animation: flash 1.2s ease-out; }
@keyframes flash {
  0% { background: color-mix(in srgb, var(--accent) 20%, transparent); }
  100% { background: transparent; }
}
