  :root {
    color-scheme: light;
    --bg: #f5f2ea;
    --surface: #fdfbf6;
    --surface-2: #eae8df;
    --ink: #213b2e;
    --ink-2: #48554b;
    --muted: #687065;
    --line: #dedfd3;
    --line-strong: #b9c1b2;
    --water: #337f87;
    --water-ink: #246b73;
    --water-wash: rgba(51, 127, 135, 0.10);
    --toxic: #bd4b35;
    --toxic-ink: #aa3f2d;
    --toxic-wash: rgba(189, 75, 53, 0.08);
    --neutral-mark: #a5b0aa;
    --hazard: #e5ad58;
    --plate-ink: #111111;
    --soil: #b5a588;
    --rock: #d6dad3;
    --rock-2: #c4cbc3;
    --crack: #eceeea;
    --waste: #615d57;
    --waste-2: #7d776f;
    --ord-1: #5fb3bb;
    --ord-2: #3a9aa3;
    --ord-3: #13808a;
    --ord-4: #0a636c;
    --ord-5: #06474e;
    --shadow: 0 2px 4px rgba(33, 59, 46, 0.04), 0 12px 32px rgba(33, 59, 46, 0.05);
    --map-bg: #f2f1e8;
    --map-forest: #dce4d4;
    --map-resid: #e5ded3;
    --map-road: #959e99;
    --map-road-minor: #cbd0cb;
    --map-halo: #f2f1e8;
    --f-editorial: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
    --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      color-scheme: dark;
      --bg: #0c1412;
      --surface: #131d1a;
      --surface-2: #1b2723;
      --ink: #e4ebe7;
      --ink-2: #b3c0ba;
      --muted: #8a9792;
      --line: #22302b;
      --line-strong: #35453f;
      --water: #1f9da8;
      --water-ink: #5cc3cc;
      --water-wash: rgba(31, 157, 168, 0.16);
      --toxic: #e45b46;
      --toxic-ink: #f08372;
      --toxic-wash: rgba(228, 91, 70, 0.14);
      --neutral-mark: #45544e;
      --hazard: #f39a3c;
      --soil: #3d362c;
      --rock: #1c2824;
      --rock-2: #26342f;
      --crack: #0c1412;
      --waste: #5a554e;
      --waste-2: #70695f;
      --ord-1: #0d5c63;
      --ord-2: #13767e;
      --ord-3: #2a959d;
      --ord-4: #52b3ba;
      --ord-5: #8cd2d7;
      --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
      --map-bg: #101a17;
      --map-forest: #16251f;
      --map-resid: #27302b;
      --map-road: #6d7974;
      --map-road-minor: #2c3834;
      --map-halo: #101a17;
    }
  }
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0c1412;
    --surface: #131d1a;
    --surface-2: #1b2723;
    --ink: #e4ebe7;
    --ink-2: #b3c0ba;
    --muted: #8a9792;
    --line: #22302b;
    --line-strong: #35453f;
    --water: #1f9da8;
    --water-ink: #5cc3cc;
    --water-wash: rgba(31, 157, 168, 0.16);
    --toxic: #e45b46;
    --toxic-ink: #f08372;
    --toxic-wash: rgba(228, 91, 70, 0.14);
    --neutral-mark: #45544e;
    --hazard: #f39a3c;
    --soil: #3d362c;
    --rock: #1c2824;
    --rock-2: #26342f;
    --crack: #0c1412;
    --waste: #5a554e;
    --waste-2: #70695f;
    --ord-1: #0d5c63;
    --ord-2: #13767e;
    --ord-3: #2a959d;
    --ord-4: #52b3ba;
    --ord-5: #8cd2d7;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --map-bg: #101a17;
    --map-forest: #16251f;
    --map-resid: #27302b;
    --map-road: #6d7974;
    --map-road-minor: #2c3834;
    --map-halo: #101a17;
  }

  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.6 var(--f-body);
  }
  a { color: var(--water-ink); text-underline-offset: 3px; }
  button, input { font: inherit; color: inherit; }
  :is(a, button, input, [tabindex]):focus-visible { outline: 2px solid var(--water); outline-offset: 2px; border-radius: 3px; }
  .wrap { max-width: 1240px; margin-inline: auto; padding-inline: 36px; }
  .num { font-variant-numeric: tabular-nums; }
  main { counter-reset: chapter; }
  ::selection { background: var(--hazard); color: var(--plate-ink); }
  .brand svg { width: 32px; height: 32px; flex: none; }
  .brand-sub { display: block; margin-top: 5px; font: 400 9px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .nav a[aria-current="location"] { background: var(--surface-2); color: var(--ink); }
  .theme-btn { width: 34px; height: 34px; flex: none; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
  .theme-btn:hover { background: var(--surface-2); }
  .theme-btn svg { width: 17px; height: 17px; }
  .theme-btn .theme-sun { display: none; }
  .theme-btn[aria-pressed="true"] .theme-sun { display: block; }
  .theme-btn[aria-pressed="true"] .theme-moon { display: none; }
  .lang-btn { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: 600 11px/1 var(--f-mono); letter-spacing: 0.04em; color: var(--ink); text-decoration: none; }
  .lang-btn:hover { background: var(--surface-2); }
  .reading-progress { height: 2px; position: absolute; bottom: -1px; left: 0; right: 0; pointer-events: none; }
  .reading-progress span { display: block; height: 100%; background: var(--toxic); transform: scaleX(0); transform-origin: left; }
  .hero-kicker { display: flex; align-items: center; gap: 14px; font: 400 10px/1.3 var(--f-mono); color: var(--muted); }
  .report-label { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink); }
  .report-label::before { content: ""; width: 5px; height: 5px; background: var(--toxic); border-radius: 50%; }
  .hero .hero-location { margin-top: 23px; font-size: 10px; letter-spacing: .09em; }
  .hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 26px; font-size: 13px; }
  .hero-actions a { text-decoration: none; display: inline-flex; align-items: center; gap: 20px; }
  .story-link { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); padding: 13px 19px; border-radius: 5px; }
  .story-link:hover { background: var(--ink-2); }
  .map-link { color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-block: 8px; }
  .map-link:hover { border-color: var(--ink); }
  .hero-map-card { width: 100%; height: 468px; position: relative; overflow: hidden; border-radius: 9px; background: #213b2e; color: #f4f1e7; isolation: isolate; }
  .hero-map-card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(205, 225, 192, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(205, 225, 192, .045) 1px, transparent 1px); background-size: 42px 42px; z-index: -1; }
  #heroMap { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-map-heading { position: absolute; top: 24px; left: 24px; right: 24px; display: flex; justify-content: space-between; gap: 12px; z-index: 1; font: 400 9px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: #d4ddc8; }
  .hero-map-heading span:first-child { display: inline-flex; align-items: center; gap: 8px; }
  .hero-map-heading i { width: 5px; height: 5px; border-radius: 50%; background: #e5ad58; }
  .hero-map-north { position: absolute; top: 62px; right: 25px; display: grid; gap: 5px; text-align: center; font: 400 9px/1 var(--f-mono); color: #b7c7ab; }
  .hero-map-north span { font-size: 24px; }
  .hero-map-meta { position: absolute; left: 24px; bottom: 27px; color: #bac9ad; font: 400 9px/1 var(--f-mono); }
  .hero-map-attribution { position: absolute; right: 24px; bottom: 12px; color: #c4cdbb; font: 400 8px/1 var(--f-body); }
  .hero-map-card .adr { position: absolute; right: 24px; bottom: 31px; }
  .hm-forest { fill: #314c38; }
  .hm-resid { fill: #3e5140; }
  .hm-road { fill: none; stroke: #698266; stroke-width: 1; opacity: .55; }
  .hm-minor { fill: none; stroke: #486147; stroke-width: .65; }
  .hm-river { fill: none; stroke: #89bdb1; stroke-width: 2.4; opacity: .8; }
  .hm-landfill { fill: #e5ad58; stroke: #e5ad58; stroke-width: 3; }
  .hm-ring { fill: none; stroke: #e5ad58; stroke-width: 1; opacity: .5; }
  .hm-label { fill: #dce4d2; font: 400 12px var(--f-mono); letter-spacing: .1em; paint-order: stroke; stroke: #213b2e; stroke-width: 4px; stroke-linejoin: round; }
  .hm-label.hot { fill: #edc98e; font-size: 10px; letter-spacing: .02em; }
  .hm-label.river { fill: #a4ccc0; font: italic 14px var(--f-editorial); letter-spacing: .02em; }
  .stat b small { font: 500 17px/1 var(--f-body); letter-spacing: -.025em; }
  .stat .stat-label { font: 400 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .block-head > .eyebrow-row { grid-column: 1 / -1; }
  .block-head > .eyebrow, .block-head .eyebrow-row .eyebrow { font: 500 11px/1 var(--f-mono); color: var(--ink); letter-spacing: .1em; display: inline-flex; gap: 12px; align-items: center; }
  .block-head .eyebrow::before { content: counter(chapter, decimal-leading-zero); display: inline-grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 10px; letter-spacing: 0; color: var(--muted); }
  .block-head > .eyebrow { grid-column: 1 / -1; }
  .panel > h3 { letter-spacing: -.02em; }
  .facts > div { border-top: 1px solid var(--line-strong); padding-top: 18px; }
  .x-card { border-top: 3px solid var(--toxic); }
  .x-card .big { font-size: 48px; letter-spacing: -.03em; }
  .know { background: var(--surface); }
  .sources a { color: var(--ink); text-decoration-color: var(--line-strong); }
  .sources a:hover { color: var(--water-ink); text-decoration-color: currentColor; }
  .sources li::marker { font: 400 11px var(--f-mono); color: var(--muted); }

  /* ---------- share ---------- */
  .eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .share-btn {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2);
    padding: 6px 12px; border-radius: 999px; font: 500 13px/1 var(--f-body); cursor: pointer;
  }
  .share-btn:hover { background: var(--surface-2); color: var(--ink); }
  .share-btn svg { width: 14px; height: 14px; }
  .topbar .share-btn { border-color: var(--ink); color: var(--ink); }
  #toast {
    position: fixed; left: 50%; transform: translateX(-50%); z-index: 60;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    width: max-content; max-width: calc(100% - 32px);
    background: var(--ink); color: var(--bg); box-shadow: var(--shadow);
    padding: 12px 16px; border-radius: 6px; font-size: 14px;
    display: grid; gap: 8px;
  }
  #toast input { width: min(420px, 80vw); font: 500 13px var(--f-mono); padding: 6px 8px; border-radius: 4px; border: 0; background: var(--bg); color: var(--ink); }

  /* ---------- top bar ---------- */
  .topbar {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 30;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; }
  .brand {
    font: 700 19px/1 var(--f-body);
    font-stretch: 75%;
    letter-spacing: -0.04em;
    white-space: nowrap;
    display: flex; align-items: center; gap: 9px;
    text-decoration: none; color: var(--ink);
  }
  .brand i { width: 14px; height: 10px; background: var(--hazard); outline: 2px solid var(--plate-ink); outline-offset: -2px; display: inline-block; }
  .nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    font: 500 12px/1 var(--f-body);
    color: var(--ink-2);
    text-decoration: none;
    padding: 10px 8px;
    border-radius: 5px;
    white-space: nowrap;
  }
  .nav a:hover { background: var(--surface-2); color: var(--ink); }

  /* ---------- hero ---------- */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    padding-block: 66px 52px;
    scroll-margin-top: 116px;
  }
  .eyebrow {
    font: 500 12px/1.3 var(--f-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
  }
  h1 {
    font-family: var(--f-editorial);
    font-weight: 400;
    font-size: clamp(76px, 8.1vw, 116px);
    line-height: 0.91;
    letter-spacing: -0.035em;
    margin: 22px 0 26px;
  }
  h1 .mark { color: var(--toxic); }
  .lede { font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 60ch; margin: 0; }
  .lede strong { color: var(--ink); font-weight: 600; }

  .plate-fig { margin: 0; display: grid; gap: 14px; min-width: 0; }
  .adr {
    width: 210px;
    background: var(--hazard);
    border: 1px solid #191e16;
    border-radius: 2px;
    display: grid;
    grid-template-rows: auto auto;
    color: var(--plate-ink);
    font-family: var(--f-display);
    font-weight: 750;
    font-stretch: 82%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  }
  .adr span { display: grid; place-items: center; line-height: 1; }
  .adr-top { padding: 15px 12px 10px; font-size: 52px; letter-spacing: -0.025em; }
  .adr-bot { padding: 0 12px 14px; font: 500 10px/1 var(--f-mono); text-transform: uppercase; letter-spacing: 0.14em; }
  .plate-fig figcaption { padding-left: 14px; border-left: 2px solid var(--hazard); font-size: 12px; color: var(--muted); line-height: 1.55; }
  .plate-fig figcaption small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }

  .stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-block: 1px solid var(--line-strong);
    margin-bottom: 32px;
    background: var(--surface);
  }
  .stat { padding: 26px 24px; display: grid; gap: 12px; align-content: start; }
  .stat + .stat { border-left: 1px solid var(--line); }
  .stat b {
    font: 650 clamp(30px, 3.2vw, 42px)/1 var(--f-display);
    letter-spacing: -0.035em;
    font-stretch: 75%;
  }
  .stat b.t { color: var(--toxic-ink); }
  .stat span { font-size: 12px; color: var(--ink-2); line-height: 1.5; }

  /* ---------- sections ---------- */
  .block { padding-block: 72px; border-top: 1px solid var(--line); scroll-margin-top: 92px; counter-increment: chapter; }
  .block-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 20px 48px; align-items: start; margin-bottom: 36px; }
  h2 {
    font-family: var(--f-editorial);
    font-weight: 400;
    font-size: clamp(38px, 4.4vw, 58px);
    line-height: 1.03;
    letter-spacing: -0.025em;
    margin: 0;
    text-wrap: balance;
  }
  h3 { font: 600 17px/1.3 var(--f-body); margin: 0; text-wrap: balance; }
  .block-head p { margin: 0; color: var(--ink-2); font-size: 15px; max-width: 65ch; }
  .panel {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 2px 6px rgba(16, 32, 28, 0.025);
  }
  .note { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
  .cleanup-status { margin-bottom: 24px; scroll-margin-top: 116px; }
  .src { font-size: 12px; color: var(--muted); }
  .scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* segmented control */
  .seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 7px; }
  .seg button {
    border: 0; background: transparent; color: var(--ink-2);
    padding: 8px 14px; border-radius: 4px; cursor: pointer;
    font-size: 14px; font-weight: 500; line-height: 1.2;
  }
  .seg button:hover { color: var(--ink); }
  .seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: 0 1px 3px rgba(0,0,0,0.10); }
  .seg button[aria-pressed="true"] small { color: var(--bg); opacity: .8; }
  .seg button small { display: block; font: 400 11px/1.2 var(--f-mono); color: var(--muted); margin-top: 2px; }

  .btn {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
    padding: 10px 16px; border-radius: 5px; cursor: pointer; font-weight: 500; font-size: 14px;
  }
  .btn:hover { opacity: 0.9; }
  .btn[disabled] { opacity: 0.5; cursor: progress; }

  /* ---------- trucks ---------- */
  .truck-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
  .controls { display: grid; gap: 18px; }
  .ctl-label { font: 500 12px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
  .ctl-label output { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 13px; }
  input[type="range"] { width: 100%; accent-color: var(--water); }
  .readout { display: grid; gap: 22px; padding: 24px; background: var(--ink); color: var(--bg); border-radius: 8px; }
  .readout div { display: grid; gap: 2px; }
  .readout b { font: 800 44px/1 var(--f-display); font-stretch: 75%; }
  .readout span { font-size: 13px; color: var(--bg); opacity: .75; }
  .truck-grid { margin-top: 22px; min-height: 60px; }
  .truck-scale { margin-top: 22px; }
  @keyframes pop { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
  .key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; color: var(--ink-2); align-items: center; }
  .key span { display: inline-flex; align-items: center; gap: 6px; }
  .key svg { width: 24px; height: 12px; fill: var(--ink-2); }
  .key svg.it { fill: var(--toxic); }

  /* ---------- sites ---------- */
  .two { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .bars { display: grid; gap: 4px; }
  .bar-row {
    display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 16px; align-items: center;
    padding: 10px 10px; margin-inline: -10px; border-radius: 5px; cursor: pointer;
    border: 0; background: transparent; text-align: left; width: calc(100% + 20px);
  }
  .bar-row:hover { background: var(--surface-2); }
  .bar-row[aria-pressed="true"] { background: var(--surface-2); }
  .bar-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
  .bar-name small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
  .bar-track { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .bar-fill { height: 20px; background: var(--ink-2); border-radius: 0 4px 4px 0; flex: none; transition: background 0.2s; }
  .bar-row[aria-pressed="true"] .bar-fill { background: var(--toxic); }
  .bar-val { font: 500 13px/1 var(--f-mono); color: var(--ink); white-space: nowrap; }
  .site-detail { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--toxic); background: var(--toxic-wash); border-radius: 0 6px 6px 0; }
  .site-detail h3 { margin-bottom: 4px; }
  .site-detail p { margin: 0; font-size: 14px; color: var(--ink-2); }
  .total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line-strong); margin-top: 12px; padding-top: 12px; font-size: 14px; color: var(--ink-2); }
  .total b { font: 800 26px/1 var(--f-display); font-stretch: 75%; color: var(--ink); white-space: nowrap; flex: none; }

  .origin { display: grid; gap: 14px; }
  .origin-row { display: grid; gap: 6px; }
  .origin-row .top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
  .origin-row .top b { font-weight: 600; }
  .origin-row .top span { font: 500 13px/1.4 var(--f-mono); color: var(--ink); text-align: right; }
  .origin-bar { height: 10px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
  .origin-bar i { display: block; height: 100%; background: var(--ink-2); border-radius: 0 4px 4px 0; }
  .origin-row .sub { font-size: 12px; color: var(--muted); }
  .unknown { font-size: 13px; color: var(--muted); font-style: italic; }
  .callout { margin-top: 18px; font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; }

  /* ---------- organizers ---------- */
  .net-panel { display: grid; gap: 16px; }
  .net-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
  .stepbtns { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 7px; }
  .stepbtns button { border: 0; background: transparent; color: var(--ink-2); min-width: 36px; padding: 8px 10px; border-radius: 4px; cursor: pointer; font: 600 13px/1 var(--f-mono); }
  .stepbtns button:hover { color: var(--ink); }
  .stepbtns button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
  .btn-ghost { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 8px 14px; border-radius: 5px; cursor: pointer; font: 500 13px/1 var(--f-body); }
  .btn-ghost:hover { background: var(--surface-2); }
  .net-cap { min-height: 58px; display: grid; gap: 3px; align-content: center; padding: 10px 14px; border-left: 3px solid var(--toxic); background: var(--toxic-wash); border-radius: 0 6px 6px 0; }
  .net-cap b { font: 800 20px/1.1 var(--f-display); font-stretch: 75%; text-transform: uppercase; }
  .net-cap span { font-size: 14px; color: var(--ink-2); }
  #net { display: block; width: 100%; height: auto; overflow: visible; }
  .net [data-k] { transition: opacity 0.3s; }
  .net.focus [data-k]:not(.on) { opacity: 0.12; }
  .n-path { fill: none; stroke: none; }
  .n-rib { fill: var(--ink-2); fill-opacity: 0.2; }
  .n-rib.hot { fill: var(--toxic); fill-opacity: 0.28; }
  .n-bar { fill: var(--ink); }
  .n-bar.hot { fill: var(--toxic); }
  .n-bar.unk { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 3 2; }
  .n-unk { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
  .n-money { fill: none; stroke: var(--toxic); stroke-width: 2; stroke-dasharray: 7 6; animation: march 1.2s linear infinite; }
  @keyframes march { to { stroke-dashoffset: -13; } }
  .n-arrow { stroke: var(--ink-2); stroke-width: 1.5; }
  .n-arrowhead { fill: var(--ink-2); }
  .n-arrowhead.hot { fill: var(--toxic); }
  .n-thin { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-dasharray: 2 4; stroke-linecap: round; }
  .n-box { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
  .n-badge { fill: var(--toxic-wash); stroke: var(--toxic); stroke-width: 1.5; }
  .n-tag { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 2; }
  .n-doc { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
  .n-t { fill: var(--ink); font: 600 15px var(--f-body); }
  .n-s { fill: var(--muted); font: 400 12px var(--f-body); }
  .n-s.ink { fill: var(--ink-2); font-style: italic; }
  .n-m { fill: var(--ink); font: 600 13px var(--f-mono); }
  .n-h { fill: var(--ink); font-family: var(--f-display); font-weight: 820; font-stretch: 75%; font-size: 22px; letter-spacing: 0.04em; }
  .n-hot { fill: var(--toxic-ink); font: 700 13px var(--f-body); }
  .n-col { fill: var(--muted); font: 500 11px var(--f-mono); letter-spacing: 0.12em; }
  .n-av, .n-step { cursor: pointer; }
  .n-av circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; transition: fill 0.2s, stroke 0.2s; }
  .n-av text { fill: var(--ink); font: 700 11px var(--f-mono); pointer-events: none; }
  .n-av.sel circle { fill: var(--toxic); stroke: var(--toxic); }
  .n-av.sel text { fill: #ffffff; }
  .n-step circle { fill: var(--ink); stroke: var(--surface); stroke-width: 2.5; transition: fill 0.2s; }
  .n-step text { fill: var(--bg); font: 700 12px var(--f-mono); pointer-events: none; }
  .n-step.sel circle { fill: var(--toxic); }
  .n-av:focus-visible circle, .n-step:focus-visible circle { stroke: var(--water); stroke-width: 3; }
  .plate { fill: var(--hazard); stroke: var(--plate-ink); stroke-width: 1.2; }
  .net-m { display: none; }
  .nm-card { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; background: var(--surface); display: grid; gap: 8px; }
  .nm-lbl { font: 500 11px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  .nm-src { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 13px; color: var(--ink-2); }
  .nm-src b { display: block; font-size: 14px; color: var(--ink); }
  .nm-flow { position: relative; display: flex; gap: 10px; align-items: center; padding: 4px 0 4px 2px; font-size: 13px; color: var(--ink-2); }
  .nm-flow.money { color: var(--toxic-ink); font-weight: 600; }
  .nm-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 700 11px var(--f-mono); flex: none; transition: background 0.2s; }
  .nm-num.sel { background: var(--toxic); }
  .nm-hub .h { font: 820 26px/1 var(--f-display); font-stretch: 75%; text-transform: uppercase; }
  .nm-sub { font-size: 13px; color: var(--muted); }
  .nm-avs { display: flex; gap: 6px; }
  .nm-av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); font: 700 10px var(--f-mono); flex: none; background: var(--surface); }
  .nm-av.sel { background: var(--toxic); border-color: var(--toxic); color: #ffffff; }
  .nm-badge { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1.5px solid var(--toxic); color: var(--toxic-ink); background: var(--toxic-wash); font-weight: 700; font-size: 13px; }
  .nm-side { grid-template-columns: auto auto 1fr; display: grid; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
  .nm-side:has(> :nth-child(2):last-child) { grid-template-columns: auto 1fr; }
  .nm-side b { color: var(--ink); margin-right: 4px; }
  .nm-dest { display: grid; gap: 8px; }
  .nm-drow { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
  .nm-drow b { color: var(--ink); margin-right: 8px; }
  .nm-drow i { display: block; height: 12px; min-width: 4px; background: var(--ink-2); border-radius: 0 3px 3px 0; }
  .nm-drow i.hot { background: var(--toxic); }
  .who { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .who-lbl { font: 500 11px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
  .pchip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; font: 500 13px/1 var(--f-body); color: var(--ink); }
  .pchip:hover { border-color: var(--ink-2); }
  .pchip i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 700 10px var(--f-mono); font-style: normal; }
  .pchip[aria-pressed="true"] { border-color: var(--toxic); }
  .pchip[aria-pressed="true"] i { background: var(--toxic); border-color: var(--toxic); color: #ffffff; }
  .who-detail { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); min-height: 92px; align-content: start; }
  .who-detail .role { font: 500 11px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .who-detail h3 { font-size: 18px; }
  .who-detail p { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 75ch; }
  .who-detail .st { justify-self: start; margin-top: 4px; font: 500 11px/1 var(--f-mono); padding: 5px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
  .coins { display: block; }
  .plain { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
  .plain b { color: var(--ink); font-weight: 600; }
  @media (max-width: 760px) {
    .net-d { display: none; }
    .net-m { display: grid; gap: 8px; }
  }

  /* ---------- map ---------- */
  .map-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .map-panel { display: grid; gap: 14px; }
  .map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
  .map-frame { position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--map-bg); }
  #map { display: block; width: 100%; height: auto; aspect-ratio: 10 / 8; --u: 1; }
  .m-bg { fill: var(--map-bg); }
  .m-forest path { fill: var(--map-forest); }
  .m-resid path { fill: var(--map-resid); }
  .m-water path { fill: var(--water); fill-opacity: 0.45; }
  #map :is(.m-minor path, .m-stream path, .m-river, .m-suvaja, .m-rail, .m-major, .m-motorway, .m-ppk, .m-rak, .m-upov, .m-landfill, .m-buf200, .m-measure line, .m-flow path) {
    vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round;
  }
  .m-minor path { fill: none; stroke: var(--map-road-minor); stroke-width: 0.8; }
  .m-stream path { fill: none; stroke: var(--water); stroke-width: 1; stroke-opacity: 0.6; }
  .m-river { fill: none; stroke: var(--water); stroke-width: 2.2; }
  .m-lika { stroke-width: 3.6; }
  #map .m-suvaja { fill: none; stroke: var(--water); stroke-width: 2; stroke-dasharray: 5 4; stroke-linecap: butt; }
  #map .m-rail { fill: none; stroke: var(--ink-2); stroke-width: 1.1; stroke-dasharray: 7 4; stroke-linecap: butt; }
  .m-major { fill: none; stroke: var(--map-road); stroke-width: 1.4; }
  .m-motorway { fill: none; stroke: var(--ink-2); stroke-width: 2.8; }
  .m-ppk { fill: var(--surface-2); fill-opacity: 0.75; stroke: var(--ink-2); stroke-width: 1.2; }
  .m-rak { fill: var(--muted); fill-opacity: 0.28; stroke: var(--muted); stroke-width: 1.2; }
  .m-upov { fill: var(--water); fill-opacity: 0.25; stroke: var(--water-ink); stroke-width: 1; }
  .m-buf200 { fill: var(--toxic); fill-opacity: 0.08; stroke: var(--toxic); stroke-width: 1; stroke-dasharray: 3 3; }
  .m-buf50 { fill: var(--toxic); fill-opacity: 0.22; }
  .m-landfill { fill: var(--toxic); stroke: var(--toxic-ink); stroke-width: 1.5; }
  .m-measure line { stroke: var(--ink); stroke-width: 1.2; }
  .m-measure circle { fill: var(--ink); r: calc(var(--u) * 3px); }
  .m-flow path { fill: none; stroke: var(--water-ink); stroke-width: 1.6; }
  .ml {
    font-family: var(--f-body); font-size: calc(var(--u) * 12px); fill: var(--ink-2);
    paint-order: stroke; stroke: var(--map-halo); stroke-width: calc(var(--u) * 3px); stroke-linejoin: round;
    transition: opacity 0.3s;
  }
  .ml-town { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; font-size: calc(var(--u) * 18px); letter-spacing: 0.08em; fill: var(--ink); }
  .ml-riv { font-style: italic; fill: var(--water-ink); font-size: calc(var(--u) * 12.5px); }
  .ml-hot { font-weight: 700; fill: var(--toxic-ink); font-size: calc(var(--u) * 13px); }
  .ml-sub { font-size: calc(var(--u) * 11.5px); }
  .ml-small { fill: var(--muted); font-size: calc(var(--u) * 11px); }
  .ml-meas { font-family: var(--f-mono); font-weight: 600; fill: var(--ink); font-size: calc(var(--u) * 11.5px); }
  .ml-ring { font-family: var(--f-mono); font-weight: 600; fill: var(--toxic-ink); font-size: calc(var(--u) * 11px); }
  #map .z-o, #map .z-d { transition: opacity 0.3s; }
  #map.is-detail .z-o, #map:not(.is-detail) .z-d { opacity: 0; pointer-events: none; }
  #map.narrow .p2 { display: none; }
  #map [data-tip], .edge { cursor: help; }
  #map:not(.is-detail) .m-landfill, #map:not(.is-detail) .m-buf50, #map:not(.is-detail) .m-buf200 { cursor: zoom-in; }
  .edge {
    position: absolute; font-size: 12px; line-height: 1.3; color: var(--ink-2);
    background: color-mix(in srgb, var(--map-bg) 90%, transparent); border: 1px solid var(--line);
    padding: 5px 8px; border-radius: 4px; max-width: 44%; transition: opacity 0.3s;
  }
  .edge b { color: var(--water-ink); }
  .e-n { top: 8px; left: 50%; transform: translateX(-50%); text-align: center; }
  .e-w { left: 8px; top: 60%; }
  .e-se { right: 8px; bottom: 40px; text-align: right; }
  .map-frame.is-detail .z-o-html { opacity: 0; pointer-events: none; }
  .map-north { position: absolute; top: 10px; right: 12px; display: grid; justify-items: center; gap: 2px; font: 600 11px/1 var(--f-mono); color: var(--ink-2); }
  .map-north svg { width: 10px; height: 12px; fill: var(--ink-2); }
  .map-scale {
    position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px;
    font: 500 11px/1 var(--f-mono); color: var(--ink-2);
    background: color-mix(in srgb, var(--map-bg) 90%, transparent); padding: 4px 6px; border-radius: 3px;
  }
  .map-scale i { display: block; height: 6px; border: 1.5px solid var(--ink-2); border-top: 0; }
  .edge-list { display: none; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--ink-2); gap: 6px; }
  .edge-list b { color: var(--water-ink); margin-right: 4px; }
  .map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
  .map-legend span { display: inline-flex; align-items: center; gap: 6px; }
  .lg-fill { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
  .lg-rak { background: var(--muted); opacity: 0.45; }
  .lg-line { width: 18px; height: 0; border-top: 2.5px solid; display: inline-block; }
  .lg-dash { border-top-style: dashed; }
  .lg-thick { border-top-width: 4px; }
  .map-side { display: grid; gap: 16px; }
  .dist { display: grid; gap: 10px; margin-top: 14px; }
  .dist-row { display: grid; gap: 4px; }
  .dist-lbl { font-size: 14px; font-weight: 600; line-height: 1.3; }
  .dist-lbl small { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }
  .dist-track { display: flex; align-items: center; gap: 8px; }
  .dist-track i { display: block; height: 10px; min-width: 2px; background: var(--ink-2); border-radius: 0 3px 3px 0; }
  .dist-track i.hot { background: var(--toxic); }
  .dist-track span { font: 500 13px var(--f-mono); white-space: nowrap; }
  .wq { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
  .wq li { display: grid; gap: 2px; padding-left: 12px; border-left: 3px solid var(--line-strong); }
  .wq li.bad { border-left-color: var(--toxic); }
  .wq li.bad b { color: var(--toxic-ink); }
  .wq li.good { border-left-color: var(--water); }
  .wq b { font: 700 18px/1.2 var(--f-body); }
  .wq span { font-size: 13px; color: var(--ink-2); line-height: 1.4; }

  /* ---------- karst ---------- */
  .cs-wrap { position: relative; }
  .diagram-hint { display: none; }
  #cs { display: block; width: 100%; min-width: 660px; height: auto; }
  .cs-soil { fill: var(--soil); }
  .cs-rock { fill: var(--rock); }
  .cs-bed { fill: none; stroke: var(--rock-2); stroke-width: 1.5; }
  .cs-crack { fill: none; stroke: var(--crack); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
  .cs-crack.thin { stroke-width: 2.5; }
  .cs-water { fill: var(--water-wash); }
  .cs-water-top { fill: none; stroke: var(--water); stroke-width: 2; }
  .cs-waste { fill: var(--waste); }
  .cs-frag { fill: var(--waste-2); }
  .cs-well { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1.5; }
  .cs-screen { stroke: var(--ink-2); stroke-width: 1; }
  .cs-route { fill: none; stroke: var(--toxic); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; opacity: 0.55; transition: opacity 0.3s, stroke-width 0.3s; }
  .show-routes .cs-route { opacity: 1; stroke-width: 2.5; }
  .cs-lbl { fill: var(--ink-2); font: 500 13px var(--f-body); }
  .cs-lbl.mono { font: 500 12px var(--f-mono); fill: var(--muted); }
  .cs-lbl.inv { fill: #ffffff; font-weight: 600; }
  .cs-lbl.hot { fill: var(--toxic-ink); font-weight: 700; font-size: 15px; }
  .cs-lead { stroke: var(--muted); stroke-width: 1; fill: none; }
  .cs-flow { fill: var(--water-ink); }
  .drop { stroke: var(--water); stroke-width: 2; stroke-linecap: round; }
  .particle { fill: var(--toxic); stroke: var(--surface); stroke-width: 1.5; }
  .well-hit { animation: hit 0.9s ease-out; }
  @keyframes hit { 0% { r: 6; opacity: 1; } 100% { r: 26; opacity: 0; } }
  .cs-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }

  .x-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
  .x-card { display: grid; gap: 12px; align-content: start; }
  .x-card header { display: grid; gap: 2px; }
  .x-card .big { font: 800 40px/1 var(--f-display); font-stretch: 75%; color: var(--toxic-ink); }
  .x-card .what { font-size: 14px; color: var(--ink-2); }
  .cells { display: block; }
  .x-card .fine { font-size: 12px; color: var(--muted); line-height: 1.45; }

  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { font-size: 13px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); background: var(--surface); }
  .chip.mono { font-family: var(--f-mono); font-size: 12px; }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
  .facts > div { display: grid; gap: 10px; align-content: start; }
  .facts h3 { font-size: 15px; }
  .facts p { margin: 0; font-size: 14px; color: var(--ink-2); }
  .ok-note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
  .ok-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }

  /* ---------- blood ---------- */
  .blood-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .waffle-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 20px; }
  .waffle-head .pct { font: 800 64px/0.9 var(--f-display); font-stretch: 72%; color: var(--toxic-ink); }
  .waffle-head p { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 30ch; }
  .waffle { display: flex; flex-wrap: wrap; gap: 6px 4px; margin-top: 18px; min-height: 120px; align-content: flex-start; }
  .waffle svg { width: 16px; height: 22px; fill: var(--neutral-mark); transition: fill 0.3s; }
  .waffle svg.big { width: 34px; height: 47px; }
  .waffle svg.over { fill: var(--toxic); }
  .waffle.pop svg { animation: pop 0.3s ease-out both; }
  .legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); margin-top: 14px; }
  .legend span { display: inline-flex; align-items: center; gap: 6px; }
  .legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

  .share { display: grid; gap: 10px; }
  .share-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 14px; transition: opacity 0.25s; }
  .share-row.dim { opacity: 0.45; }
  .share-track { display: flex; align-items: center; gap: 8px; }
  .share-track i { height: 16px; background: var(--toxic); border-radius: 0 4px 4px 0; display: block; transition: width 0.4s; }
  .share-track span { font: 500 13px var(--f-mono); }
  .dots-svg { width: 100%; height: auto; display: block; }
  .panel[style*="display:grid"] { grid-template-columns: minmax(0, 1fr); }
  .ax { stroke: var(--line-strong); stroke-width: 1; }
  .grid-l { stroke: var(--line); stroke-width: 1; }
  .ax-t { fill: var(--muted); font: 400 11px var(--f-mono); }
  .row-t { fill: var(--ink-2); font: 500 13px var(--f-body); }
  .val-t { fill: var(--ink); font: 600 13px var(--f-mono); }
  .thr { stroke: var(--toxic); stroke-width: 2; }
  .thr-t { fill: var(--toxic-ink); font: 600 12px var(--f-mono); }
  .zone { fill: var(--toxic-wash); }
  .dot-n { fill: var(--neutral-mark); stroke: var(--surface); stroke-width: 2; }
  .dot-i { fill: var(--ink-2); stroke: var(--surface); stroke-width: 2; }
  .dot-t { fill: var(--toxic); stroke: var(--surface); stroke-width: 2; }
  .hit { fill: transparent; cursor: default; }

  .know { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 24px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
  .know > div { padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
  .know > div + div { border-left: 1px solid var(--line); }
  .know h3 { font: 600 12px/1.2 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  .know ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }

  /* ---------- timeline ---------- */
  .tl-filters { margin-bottom: 24px; }
  .tl { list-style: none; margin: 0; padding: 0; position: relative; display: grid; }
  .tl::before { content: ""; position: absolute; left: 132px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong); }
  .tl li { display: grid; grid-template-columns: 116px 32px minmax(0, 1fr); align-items: start; padding-block: 12px; }
  .tl time { font: 500 13px/1.45 var(--f-mono); color: var(--ink); text-align: right; padding-top: 1px; }
  .tl .dot { width: 11px; height: 11px; border-radius: 50%; margin: 5px 0 0 11px; background: var(--muted); box-shadow: 0 0 0 3px var(--bg); }
  .tl li[data-c="istraga"] .dot { background: var(--ink); }
  .tl li[data-c="okolis"] .dot { background: var(--toxic); }
  .tl li[data-c="sanacija"] .dot { background: var(--water); }
  .tl .body { display: grid; gap: 4px; }
  .tl .tag { font: 500 11px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .tl p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 70ch; }
  .tl p b { color: var(--ink); font-weight: 600; }
  .tl li.key-ev p { color: var(--ink); }

  /* ---------- d3: zajedničko ---------- */
  .d3c { display: block; width: 100%; height: auto; overflow: visible; }
  .c-axis .domain { display: none; }
  .c-axis .tick line { stroke: var(--line); }
  .c-axis .tick text { fill: var(--muted); font: 400 11px var(--f-mono); }
  .c-lbl { fill: var(--ink); font: 600 15px var(--f-body); }
  .c-lbl.sm { font-size: 14px; }
  .c-sub, .c-lbl .c-sub { fill: var(--muted); font: 400 12px var(--f-body); }
  .c-sub.it { font-style: italic; }
  .c-val { fill: var(--ink); font: 500 13px var(--f-mono); }
  .c-val.sm { font-size: 12.5px; }
  .c-val.inv { fill: var(--bg); }
  .c-bar { fill: var(--ink-2); transition: fill 0.2s; }
  .c-bar.hot { fill: var(--toxic); }
  .c-bar.water { fill: var(--water); }
  .c-bg { fill: transparent; transition: fill 0.2s; }
  .c-row, .d-row, .dp-row { cursor: pointer; outline: none; }
  .c-row:hover .c-bg, .c-row.sel .c-bg, .d-row:hover .c-bg, .d-row:focus-visible .c-bg { fill: var(--surface-2); }
  .c-row:focus-visible .c-bg { stroke: var(--water); stroke-width: 2; }
  .c-ref { stroke: var(--water); stroke-width: 2; }
  .c-ref-t { fill: var(--water-ink); font: 500 12px var(--f-mono); }
  .tg-bar { fill: var(--ink); }
  .tg-truck { fill: var(--ink-2); }
  .tg-truck.it { fill: var(--toxic); }
  .o-track { fill: var(--surface-2); }
  .o-track.unk { fill: none; stroke: var(--line-strong); stroke-dasharray: 4 3; }
  .cells-svg { display: block; max-width: 100%; height: auto; }
  .cell { fill: var(--toxic); transition: opacity 0.15s; }
  .cell.lim { fill: none; stroke: var(--ink); stroke-width: 2; }
  .cells-svg:hover .cell:not(.upto) { opacity: 0.25; }
  .coin circle { fill: var(--water-wash); stroke: var(--water); stroke-width: 1.5; }
  .coin text { fill: var(--water-ink); font: 700 12px var(--f-mono); pointer-events: none; }
  .coin.paid circle { fill: var(--ink); stroke: var(--ink); }
  .coin.paid text { fill: var(--bg); }
  .coin { transition: opacity 0.15s; }
  .coins svg:hover .coin:not(.upto) { opacity: 0.25; }
  .seg-ph { cursor: pointer; transition: opacity 0.2s; outline: none; }
  .stack-svg.has-sel .seg-ph:not(.sel) { opacity: 0.35; }
  .seg-ph:focus-visible { stroke: var(--ink); stroke-width: 2; }
  #mapG .m-hit { fill: none; stroke: transparent; stroke-width: 14; vector-effect: non-scaling-stroke; pointer-events: stroke; }
  #mapG path.hl:not(.m-hit) { stroke: var(--toxic); stroke-width: 4; }
  #map text.hl { fill: var(--toxic-ink); font-weight: 700; opacity: 1 !important; display: inline !important; }
  .dp-row:focus-visible .hit { stroke: var(--water); stroke-width: 2; }
  .no-d3 .tl-panel, .no-d3 .map-zoom { display: none; }

  /* ---------- d3 timeline ---------- */
  .tl-panel { display: grid; gap: 12px; margin-bottom: 20px; }
  .tl-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
  .tl-chart { width: 100%; min-height: 120px; }
  .tlsvg { display: block; width: 100%; height: auto; overflow: visible; }
  .lane { fill: transparent; }
  .lane.odd { fill: var(--surface-2); fill-opacity: 0.55; }
  .lane-t { fill: var(--ink-2); font: 600 12.5px var(--f-body); transition: opacity 0.25s; }
  .lane-t.dim { opacity: 0.3; }
  .tl-cap { fill: transparent; cursor: grab; }
  .tl-cap:active { cursor: grabbing; }
  .tl-axis .domain { display: none; }
  .tl-axis .tick line { stroke: var(--line); }
  .tl-axis .tick text { fill: var(--muted); font: 400 11px var(--f-mono); }
  .ctx-axis .tick line { stroke: var(--line-strong); }
  .ev { fill: var(--c); stroke: var(--surface); stroke-width: 2; cursor: pointer; transition: opacity 0.25s; }
  .ev-r { fill-opacity: 0.5; stroke: var(--c); stroke-width: 1.2; }
  .ev.sel { stroke: var(--toxic); stroke-width: 3; }
  .ev:focus-visible { outline: none; stroke: var(--water); stroke-width: 3; }
  .ev.off, .ev-l.off { opacity: 0.08; pointer-events: none; }
  .ev-l { fill: var(--ink); font: 600 11.5px var(--f-body); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; transition: opacity 0.2s; }
  .ann line { stroke: var(--ink-2); stroke-width: 1; }
  .ann text { fill: var(--ink-2); font: 600 11px var(--f-mono); }
  .ann.hot line { stroke: var(--toxic); stroke-width: 1.5; }
  .ann.hot text { fill: var(--toxic-ink); }
  .ctx-bg { fill: var(--surface-2); }
  .cx { fill: var(--c); }
  .brush .selection { fill: var(--water); fill-opacity: 0.16; stroke: var(--water); stroke-width: 1.5; }
  .brush .handle { fill: var(--water); fill-opacity: 0.6; }
  .tl-detail { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); min-height: 70px; align-content: start; }
  .tl-detail .tag { font: 500 11px/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .tl-detail time { font: 600 14px var(--f-mono); }
  .tl-detail p { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 80ch; }
  .tl-detail p b { color: var(--ink); }
  .tl-count { font-size: 13px; color: var(--muted); margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .tl-count button { border: 0; background: none; padding: 0; color: var(--water-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
  .tl li { cursor: pointer; border-radius: 4px; transition: background 0.2s; }
  .tl li.active { background: var(--toxic-wash); }
  /* ---------- d3 map zoom ---------- */
  #map { cursor: grab; }
  #map:active { cursor: grabbing; }
  .map-zoom { position: absolute; right: 10px; top: 42px; display: grid; gap: 4px; }
  .map-zoom button { width: 30px; height: 30px; border-radius: 5px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--map-bg) 92%, transparent); color: var(--ink); font: 600 17px/1 var(--f-mono); cursor: pointer; }
  .map-zoom button:hover { background: var(--surface); }
  .map-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(16, 32, 28, 0.85); color: #ffffff; padding: 10px 14px; border-radius: 6px; font-size: 14px; pointer-events: none; max-width: 80%; text-align: center; }
  /* ---------- d3 blood dots ---------- */
  .waffle.d3 { display: block; min-height: 0; }
  .waffle.d3 .bd-svg { display: block; width: 100%; height: auto; fill: none; animation: none; }
  .bd { fill: var(--neutral-mark); stroke: var(--surface); stroke-width: 1.5; }
  .bd.over { fill: var(--toxic); }
  .bd-t { fill: var(--ink); font: 600 13px var(--f-body); }
  .bd-t.hot { fill: var(--toxic-ink); }
  .bd-s { fill: var(--muted); font: 500 11.5px var(--f-mono); }
  /* ---------- d3 costs ---------- */
  .o-axis .tick line { stroke: var(--line); }
  .o-profit line { stroke: var(--toxic); stroke-width: 1.5; }
  .o-profit text { fill: var(--toxic-ink); font: 600 11px var(--f-mono); }

  /* ---------- costs ---------- */
  .cost-compare { display: grid; gap: 14px; }
  .cc-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: center; }
  .cc-row .lbl { font-size: 14px; line-height: 1.3; }
  .cc-row .lbl small { display: block; color: var(--muted); font-size: 12px; }
  .cc-track { display: flex; align-items: center; gap: 10px; }
  .cc-track i { display: block; height: 22px; border-radius: 0 4px 4px 0; background: var(--ink-2); }
  .cc-track i.plan { background: var(--water); }
  .cc-track span { font: 600 14px var(--f-mono); white-space: nowrap; }
  .ratio { font: 800 clamp(40px, 6vw, 64px)/1 var(--f-display); font-stretch: 72%; white-space: nowrap; }
  .ratio-wrap { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
  .ratio-wrap p { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 36ch; }

  .stack { margin-top: 18px; }
  .stack-axis { display: flex; justify-content: space-between; font: 400 11px var(--f-mono); color: var(--muted); margin-top: 6px; }
  .phases { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 2px; }
  .phases li button {
    display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start;
    width: 100%; text-align: left; background: transparent; border: 0; padding: 10px 8px; border-radius: 5px; cursor: pointer;
  }
  .phases li button:hover, .phases li button[aria-pressed="true"] { background: var(--surface-2); }
  .phases .sw { width: 14px; height: 14px; border-radius: 3px; margin-top: 3px; }
  .phases .ph-name { font-weight: 600; font-size: 15px; }
  .phases .ph-name small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
  .phases .ph-eur { font: 600 14px var(--f-mono); text-align: right; white-space: nowrap; }
  .phases .ph-how { grid-column: 2 / 4; font-size: 13px; color: var(--ink-2); }
  .phases .sum { display: flex; justify-content: space-between; padding: 12px 8px 0; border-top: 1px solid var(--line-strong); margin-top: 6px; font-weight: 600; }
  .phases .sum span:last-child { font-family: var(--f-mono); }
  #opts { width: 100%; min-width: 320px; height: auto; display: block; }
  .rng { stroke: var(--ink-2); stroke-width: 12; stroke-linecap: round; }
  .rng-plan { fill: var(--water); stroke: var(--surface); stroke-width: 2; }
  .opt-t { fill: var(--ink); font: 500 13px var(--f-body); }
  .opt-s { fill: var(--muted); font: 400 11.5px var(--f-body); }
  .opt-v { fill: var(--ink); font: 600 12px var(--f-mono); }

  /* ---------- sources ---------- */
  .sources { columns: 2; column-gap: 40px; padding-left: 20px; margin: 0; font-size: 14px; color: var(--ink-2); }
  .sources li { break-inside: avoid; margin-bottom: 10px; }
  .sources li span { color: var(--muted); font-size: 12px; display: block; }
  .disclaimer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); max-width: 80ch; display: grid; gap: 8px; }
  .disclaimer p { margin: 0; }
  footer.end { padding-block: 32px 56px; }

  /* ---------- tooltip ---------- */
  #tip {
    position: fixed; z-index: 50; pointer-events: none;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: 6px;
    box-shadow: var(--shadow);
    padding: 10px 12px; font-size: 13px; line-height: 1.45; max-width: 280px;
  }
  #tip b { display: block; font-size: 14px; }
  #tip .v { font-family: var(--f-mono); font-weight: 600; }
  #tip .m { color: var(--muted); }

  /* ---------- responsive ---------- */
  @media (max-width: 900px) {
    .topbar .wrap { flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 10px; }
    .topbar .brand { margin-right: auto; }
    .topbar .nav { order: 4; width: 100%; margin: 0; }
    .topbar .share-lbl { display: inline; }
    .hero { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 28px; padding-block: 40px; }
    h1 { font-size: clamp(64px, 9vw, 82px); }
    .hero-map-card { height: 430px; }
    .hero-map-card .adr { width: 170px; right: 18px; }
    .adr-top { font-size: 42px; }
    .hero-map-meta { bottom: 158px; }
    .block-head { gap: 18px 28px; }
    .truck-layout, .two, .blood-layout, .map-layout { grid-template-columns: minmax(0, 1fr); }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .x-grid { grid-template-columns: minmax(0, 1fr); }
    .sources { columns: 1; }
  }
  @media (max-width: 640px) {
    .wrap { padding-inline: 20px; }
    .topbar .wrap { min-height: 60px; gap: 10px; }
    .brand { font-size: 17px; }
    .brand svg { width: 28px; height: 28px; }
    .nav { gap: 6px; mask-image: linear-gradient(to right, #000 96%, transparent); }
    .nav a { padding: 8px 9px; font-size: 11px; }
    .topbar .share-btn { padding: 8px 10px; }
    .hero { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 32px; }
    h1 { font-size: clamp(65px, 17vw, 98px); margin-block: 18px 22px; }
    .hero .hero-location { font-size: 9px; margin-top: 20px; }
    .lede { font-size: 15px; line-height: 1.65; }
    .hero-actions { margin-top: 22px; gap: 22px; font-size: 12px; }
    .hero-actions a { gap: 14px; }
    .hero-map-card { height: 330px; }
    .hero-map-heading { top: 20px; left: 20px; right: 20px; }
    .hero-map-card .adr { width: 168px; bottom: 28px; right: 20px; }
    .hero-map-meta { left: 20px; bottom: 28px; font-size: 8px; }
    .hero-map-attribution { right: 20px; }
    .adr-top { font-size: 42px; }
    .plate-fig figcaption { font-size: 11px; }
    .block-head { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 26px; }
    .block-head p { font-size: 14px; }
    h2 { font-size: 41px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat { padding: 20px 16px; gap: 10px; }
    .stat b { font-size: 31px; }
    .stat b small { font-size: 13px; }
    .stat span { font-size: 11px; }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
    #vehSeg, #grpSeg, #unitSeg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
    #vehSeg button, #grpSeg button, #unitSeg button { padding: 10px 5px; font-size: 12px; }
    #vehSeg button small, #grpSeg button small, #unitSeg button small { font-size: 9px; }
    #tlRange { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .diagram-hint { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--muted); font: 400 11px/1.5 var(--f-body); }
    .block { padding-block: 52px; }
    .panel { padding: 18px; }
    .phases li button { grid-template-columns: 14px minmax(0, 1fr); }
    .phases .ph-eur { grid-column: 2; text-align: left; }
    .phases .ph-how { grid-column: 2; }
    .bar-row { grid-template-columns: minmax(0, 1fr); }
    .cc-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .know { grid-template-columns: minmax(0, 1fr); }
    .know > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .tl::before { left: 6px; }
    .tl li { grid-template-columns: 24px minmax(0, 1fr); }
    .tl li time { grid-column: 2; grid-row: 1; text-align: left; }
    .tl li .dot { grid-column: 1; grid-row: 1; margin-left: 1px; }
    .tl li .body { grid-column: 2; }
    .brand .long { display: none; }
    .readout b { font-size: 36px; }
    #map { aspect-ratio: 7 / 8; }
    .edge { display: none; }
    .edge-list { display: grid; }
  }
  @media (min-width: 641px) and (max-width: 760px) {
    .hero { grid-template-columns: minmax(0, 1fr); }
    h1 { font-size: 96px; }
    .hero-map-card { height: 390px; }
    .hero-map-meta { bottom: 28px; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }

  /* ---------- animacije pri listanju i nove karte ---------- */
  .hm-pulse { fill: none; stroke: #e5ad58; stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; animation: hm-pulse 3.9s cubic-bezier(.2, .6, .3, 1) infinite; }
  @keyframes hm-pulse { 0% { transform: scale(.6); opacity: .85; } 100% { transform: scale(3.4); opacity: 0; } }
  #net { clip-path: inset(0 0 0 0); transition: clip-path 1.6s cubic-bezier(.4, 0, .2, 1); }
  #net.pre-wipe { clip-path: inset(0 100% 0 0); }
  .net.net-m > * { transition: opacity .5s ease, transform .5s ease; }
  .net.net-m.pre-rise > * { opacity: 0; transform: translateY(14px); }

  .route-panel { margin-bottom: 24px; }
  .route-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: center; }
  .route { --k: 1; }
  .route-svg { display: block; width: 100%; height: auto; border-radius: 6px; }
  .rt-sea { fill: color-mix(in srgb, var(--water) 13%, var(--surface)); }
  .rt-land { fill: var(--map-bg); stroke: var(--line-strong); stroke-width: calc(var(--k) * .8px); stroke-linejoin: round; }
  .rt-land.hr { fill: color-mix(in srgb, var(--hazard) 20%, var(--surface)); stroke: var(--ink-2); stroke-width: calc(var(--k) * 1.1px); }
  .rt-country { fill: var(--muted); font: 500 calc(var(--k) * 11px)/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
  .rt-country.hr { fill: var(--ink-2); font-weight: 600; }
  .rt-country.sea { font: italic 400 calc(var(--k) * 17px)/1 var(--f-editorial); letter-spacing: 0; text-transform: none; fill: var(--water-ink); }
  .rt-flow { fill: none; stroke: var(--toxic); stroke-opacity: .6; stroke-linecap: round; }
  .rt-flow.unk { stroke: var(--ink-2); stroke-opacity: .75; }
  .rt-origin circle { fill: var(--ink); stroke: var(--surface); stroke-width: 1.5; }
  .rt-name { fill: var(--ink); font: 600 calc(var(--k) * 13px)/1 var(--f-body); }
  .rt-sub, .rt-val { fill: var(--ink-2); font: 500 calc(var(--k) * 11px)/1 var(--f-mono); }
  .rt-name, .rt-sub, .rt-val { paint-order: stroke; stroke: var(--surface); stroke-width: calc(var(--k) * 3px); stroke-linejoin: round; }
  .rt-site .rt-dot { fill: var(--ink-2); fill-opacity: .8; stroke: var(--surface); stroke-width: 1.5; }
  .rt-site.hot .rt-dot { fill: var(--toxic); fill-opacity: .9; }
  .rt-site.hot .rt-val { fill: var(--toxic-ink); }
  .route-side h3 { margin: 0 0 4px; }
  .route-key { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
  .route-key li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; }
  .route-key i { display: block; height: 0; border-top: 9px solid color-mix(in srgb, var(--toxic) 60%, transparent); border-radius: 5px; }
  .route-key i.k-unk { border-top: 2px dashed var(--ink-2); border-radius: 0; }
  .route-key i.k-site { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--toxic); justify-self: center; }

  .krs-inset { margin-top: 14px; --k: 1; }
  .krs-svg { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
  .krs-river { fill: none; stroke: var(--water); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
  .krs-flow { fill: none; stroke: var(--water-ink); stroke-width: 2.6; stroke-linecap: round; }
  .krs-flow.flowing { stroke-dasharray: 2 7; animation: krs-flow 1.1s linear infinite; }
  @keyframes krs-flow { to { stroke-dashoffset: -9; } }
  .krs-town { fill: var(--ink-2); }
  .krs-dump { fill: var(--toxic); stroke: var(--surface); stroke-width: 1.5; }
  .krs-ponor { fill: var(--surface); stroke: var(--water-ink); stroke-width: 2.5; }
  .krs-spring { fill: var(--water); stroke: var(--surface); stroke-width: 1.5; }
  .krs-lbl { fill: var(--ink); font: 500 calc(var(--k) * 12px)/1 var(--f-body); paint-order: stroke; stroke: var(--surface); stroke-width: calc(var(--k) * 3px); stroke-linejoin: round; }
  .krs-lbl.b { font-weight: 600; }
  .krs-lbl.muted { fill: var(--muted); font-size: calc(var(--k) * 11px); }
  .krs-lbl.hot { fill: var(--toxic-ink); font-weight: 600; }
  .krs-lbl.km { fill: var(--water-ink); font: 600 calc(var(--k) * 13px)/1 var(--f-mono); }
  .krs-lbl.riv { fill: var(--water-ink); font-style: italic; }

  .pfas-panel { margin-top: 16px; }
  .row-s { fill: var(--muted); font: 400 11.5px var(--f-body); }
  .dot-nd { fill: var(--surface); stroke: var(--water); stroke-width: 2.5; }
  .val-t.nd { fill: var(--water-ink); font-weight: 500; }

  .tl .tag.tag-new, .tl-detail .tag.tag-new { justify-self: start; padding: 2px 6px; border-radius: 3px; background: var(--hazard); color: var(--plate-ink); font-weight: 600; }
  .ev.is-new { stroke: var(--hazard); stroke-width: 3; }
  .ev.is-new.sel { stroke: var(--toxic); }
  #tlPlay[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

  @media (max-width: 900px) {
    .route-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  }
  @media print {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    #net.pre-wipe { clip-path: none !important; }
    .net.net-m.pre-rise > * { opacity: 1 !important; transform: none !important; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hm-pulse { display: none; }
  }
  .route.narrow .rt-extra { display: none; }
