/* ===== Theme: "night over the Kinneret" ===== */
:root {
  color-scheme: dark;
  --bg-0: #050d18;
  --bg-1: #0a1b2e;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-solid: #0f2135;
  --surface-hi: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-hi: rgba(255, 255, 255, 0.18);
  --ink: #eef4fb;
  --ink-2: #a9bcd2;
  --muted: #7d91a8;
  --grid: rgba(255, 255, 255, 0.06);
  --accent: #5fd4e8;
  --accent-2: #3987e5;
  --water: #3987e5;
  /* validated: dark band, CVD-separated, ≥3:1 on #0f2135 */
  --series-1: #3987e5;
  --series-2: #e2622e;
  --series-3: #1aa874;
  --series-4: #c98500;
  --red: #ff5c5c;
  --up: #3ddc84;
  --down: #ff7676;
  --radius: 22px;
  --font: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(57, 135, 229, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(95, 212, 232, 0.07), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 60%);
  background-color: var(--bg-0);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.num { direction: ltr; unicode-bidi: isolate; display: inline-block; font-variant-numeric: lining-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
::selection { background: rgba(95, 212, 232, 0.35); }

/* ===== Header ===== */
header.site { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); background: rgba(5, 13, 24, 0.55); border-bottom: 1px solid var(--border); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; }
.brand { font-weight: 800; font-size: 1.12rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(74, 163, 255, 0.5)); }
nav.main { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
nav.main a { color: var(--ink-2); text-decoration: none; padding: 7px 13px; border-radius: 999px; font-size: .95rem; white-space: nowrap; transition: background .2s, color .2s; }
nav.main a:hover { color: var(--ink); background: var(--surface-hi); }
nav.main a[aria-current="page"] { color: var(--ink); background: rgba(74, 163, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(74, 163, 255, 0.35); }
@media (max-width: 640px) {
  header.site .wrap { flex-wrap: wrap; padding-top: 8px; padding-bottom: 6px; min-height: 0; }
  nav.main { width: 100%; margin-inline: -4px; }
}

main { padding: 28px 0 64px; }
h1, h2, h3 { letter-spacing: -0.015em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.15; margin: 0 0 8px; font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); margin: 0 0 6px; font-weight: 750; line-height: 1.25; }
h3 { font-size: 1.05rem; margin: 18px 0 4px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: .85rem; letter-spacing: .02em; margin: 0 0 6px; }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.sub { color: var(--ink-2); margin: 0 0 20px; font-size: 1.02rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 30px);
  margin-bottom: 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 20px 50px -30px rgba(0,0,0,.6);
}
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

/* ===== 3D Hero ===== */
.hero3d { position: relative; min-height: min(90vh, 860px); margin-top: -28px; overflow: hidden; isolation: isolate; }
.lake-stage { position: absolute; inset: 0; z-index: -1; }
.lake-stage::before { /* fallback / pre-load backdrop */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(42% 38% at 45% 58%, rgba(57,135,229,.45), transparent 70%),
    radial-gradient(60% 50% at 50% 60%, rgba(95,212,232,.12), transparent 75%);
  transition: opacity 1.2s;
}
.lake-stage.ready::before { opacity: 0; }
.lake-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.lake-stage.ready canvas { opacity: 1; }
.hero3d::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--bg-0)); z-index: -1; pointer-events: none; }
.lake-labels { position: absolute; inset: 0; pointer-events: none; }
.lake-labels .place { position: absolute; left: 0; top: 0; font-size: .78rem; font-weight: 600; color: rgba(238,244,251,.85); text-shadow: 0 1px 8px rgba(0,0,0,.8); white-space: nowrap; transition: opacity .3s; padding-bottom: 6px; }
.lake-labels .place::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }

.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 430px) 1fr; gap: 24px; padding-top: clamp(24px, 6vh, 64px); pointer-events: none; }
.hero-inner > * { pointer-events: auto; }
.glass {
  background: linear-gradient(160deg, rgba(14, 32, 54, 0.72), rgba(8, 20, 36, 0.55));
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08);
}
.hero-panel { padding: 26px 28px 24px; display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; align-items: start; }
.hero-panel h1 { font-size: 1.05rem; font-weight: 600; color: var(--ink-2); margin: 0; letter-spacing: 0; grid-column: 1; }
.big { font-size: clamp(3.6rem, 10vw, 5.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; margin: 6px 0 4px; display: flex; align-items: baseline; gap: 8px; grid-column: 1; }
.big .u { font-size: 1.3rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.big .num { background: linear-gradient(180deg, #ffffff 30%, #a9d6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.when { color: var(--ink-2); margin: 0 0 14px; font-size: .95rem; grid-column: 1; }
.hero-panel .chips-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.gauge { grid-column: 2; grid-row: 1 / span 3; width: 74px; height: 190px; }
.gauge .g-water { transition: y .5s cubic-bezier(.2,.8,.2,1); }
.gauge text { font-size: 9.5px; fill: var(--muted); font-family: var(--font); }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; background: var(--surface-hi); border: 1px solid var(--border); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.pill.up { color: var(--up); } .pill.down { color: var(--down); } .pill.flat { color: var(--ink-2); }
.status-low, .status-critical { color: #ffb3b3; background: rgba(255, 92, 92, .14); border-color: rgba(255, 92, 92, .35); }
.status-low::before, .status-critical::before { background: var(--red); animation: blink 2.2s 3; }
.status-ok { color: #b9f5d4; background: rgba(61, 220, 132, .12); border-color: rgba(61, 220, 132, .3); }
.status-full { color: #b9e4ff; background: rgba(74, 163, 255, .15); border-color: rgba(74, 163, 255, .35); }
@keyframes blink { 50% { opacity: .35; } }

.timebar { position: absolute; inset: auto 16px 26px 16px; max-width: 1088px; margin: 0 auto; padding: 14px 18px 12px; }
.tm-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tm-title { font-weight: 700; font-size: .95rem; display: flex; gap: 8px; align-items: center; }
.tm-title svg { width: 18px; height: 18px; }
.tm-date { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; direction: ltr; }
.tm-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tm-chip, .chip {
  font: inherit; font-size: .86rem; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.tm-chip:hover, .chip:hover { color: var(--ink); border-color: var(--border-hi); }
.tm-chip:active, .chip:active { transform: scale(.97); }
.tm-chip[aria-pressed="true"] { color: #04121f; background: var(--accent); border-color: transparent; }
.tm-chip.playing { animation: glow 1.2s infinite alternate; }
@keyframes glow { to { box-shadow: 0 0 18px rgba(95,212,232,.7); } }
.range-wrap { position: relative; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; direction: ltr; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, rgba(95,212,232,.25), rgba(74,163,255,.6)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, rgba(95,212,232,.25), rgba(74,163,255,.6)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(95,212,232,.3), 0 4px 14px rgba(0,0,0,.5); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(95,212,232,.3), 0 4px 14px rgba(0,0,0,.5); }
input[type=range]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.tm-years { display: flex; justify-content: space-between; direction: ltr; font-size: .72rem; color: var(--muted); padding: 0 4px; }
.time-travel .hero-panel { box-shadow: 0 0 0 1px rgba(95,212,232,.5), 0 30px 80px -30px rgba(0,0,0,.7); }

@media (max-width: 1000px) {
  .hero3d { min-height: 0; display: flex; flex-direction: column; }
  .lake-stage { position: relative; inset: auto; height: 52vh; min-height: 320px; max-height: 560px; order: 0; z-index: 0; }
  .hero3d::after { display: none; }
  .hero-inner { order: 1; grid-template-columns: minmax(0, 560px); justify-content: center; margin-top: -60px; padding-top: 0; }
  .hero-panel { padding: 20px; }
  .gauge { width: 60px; height: 160px; }
  .timebar { position: relative; inset: auto; order: 2; margin: 14px 16px 0; }
}

/* ===== Stat tiles ===== */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 34px 0 22px; }
.tile {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--border); border-radius: 20px; padding: 18px 20px;
  transition: transform .25s, border-color .25s;
}
.tile:hover { transform: translateY(-3px); border-color: var(--border-hi); }
.tile::after { content: ""; position: absolute; inset: -40% -20% auto auto; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(var(--glow, rgba(74,163,255,.22)), transparent 70%); pointer-events: none; }
.tile .icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(74,163,255,.14); margin-bottom: 10px; }
.tile .icon svg { width: 18px; height: 18px; }
.tile .label { color: var(--ink-2); font-size: .9rem; margin: 0; line-height: 1.35; }
.tile .value { font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 800; margin: 4px 0 2px; white-space: nowrap; letter-spacing: -0.02em; }
.tile .value small { font-size: .95rem; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.tile .note { color: var(--muted); font-size: .84rem; margin: 0; }
.tile.ring { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.ring-svg { width: 78px; height: 78px; transform: rotate(-90deg); }
.ring-svg circle { fill: none; stroke-width: 9; }
.ring-svg .bg { stroke: rgba(255,255,255,.08); }
.ring-svg .fg { stroke: url(#ringGrad); stroke-linecap: round; stroke-dasharray: 0 1; transition: stroke-dasharray 1.6s cubic-bezier(.2,.8,.2,1); }
.in .ring-svg .fg { stroke-dasharray: var(--pct) 1; }
.ring-wrap { position: relative; }
.ring-wrap b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.25rem; font-weight: 800; }

/* ===== Charts ===== */
figure.chart { margin: 0; position: relative; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.y-unit { font-size: .8rem; color: var(--muted); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0; font-size: .88rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 7px; }
.key { display: inline-block; width: 16px; height: 4px; border-radius: 4px; flex: none; }
.plot { position: relative; touch-action: pan-y; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font); }
.chart-svg .grid { stroke: var(--grid); stroke-width: 1; }
.chart-svg .tick { fill: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.chart-svg .line { fill: none; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.chart-svg .line.hero { filter: drop-shadow(0 0 6px var(--glow)); }
.chart-svg .area { opacity: 1; }
.chart-svg .end, .chart-svg .hover-dot { stroke: var(--surface-solid); stroke-width: 2.5; }
.chart-svg .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.2s ease-out 4; opacity: .6; }
@keyframes pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }
.chart-svg .ref line { stroke-width: 1.2; }
.chart-svg .ref-red line { stroke: var(--red); opacity: .75; }
.chart-svg .ref-black line { stroke: #cfd8e3; opacity: .45; }
.chart-svg .ref rect { fill: var(--surface-solid); stroke-width: 1; }
.chart-svg .ref-red rect { stroke: rgba(255,92,92,.55); }
.chart-svg .ref-black rect { stroke: rgba(207,216,227,.4); }
.chart-svg .ref text { font-size: 10.5px; font-weight: 600; fill: var(--ink-2); }
.chart-svg .crosshair { stroke: rgba(255,255,255,.35); stroke-width: 1; }
/* draw-in animation */
.js-anim .chart-svg:not(.drawn) .line { stroke-dashoffset: 1; }
.js-anim .chart-svg:not(.drawn) .area, .js-anim .chart-svg:not(.drawn) .end, .js-anim .chart-svg:not(.drawn) .pulse { opacity: 0; }
.chart-svg.drawn .line { animation: draw 1.6s cubic-bezier(.4,.1,.2,1) both; }
.chart-svg.drawn .area { animation: fade 1.2s .5s both; }
.chart-svg.drawn .end { animation: fade .4s 1.4s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }

.tip { position: absolute; top: 6px; pointer-events: none; min-width: 170px; z-index: 3; padding: 10px 12px; font-size: .85rem;
  background: rgba(10, 24, 41, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-hi); border-radius: 14px; box-shadow: 0 16px 40px -10px rgba(0,0,0,.6); }
.tip-row { display: grid; grid-template-columns: auto 1fr auto; gap: 0 8px; align-items: center; }
.tip-row + .tip-row { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--border); }
.tip-row small { grid-column: 2 / 4; color: var(--muted); }
.tip-row b { font-variant-numeric: tabular-nums; font-size: .95rem; }

.controls { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 6px 0 18px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--border); }
.seg label { padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: .88rem; color: var(--ink-2); transition: background .2s, color .2s; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--ink); color: #06121f; font-weight: 700; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--muted); background: var(--chip, transparent); transition: background .2s, border-color .2s; }
.chip[aria-pressed="true"] { color: var(--ink); border-color: var(--border-hi); background: rgba(255,255,255,.09); }
.chip[aria-pressed="true"]::before { border-color: var(--chip); }
select { font: inherit; font-size: .86rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.05); color: var(--ink-2); }
select option { background: var(--surface-solid); color: var(--ink); }

/* ===== Ranking bars ===== */
.bars { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: 110px 1fr 74px; gap: 12px; align-items: center; font-size: .92rem; }
.bars a { color: var(--ink); text-decoration: none; font-weight: 600; }
.bars a:hover { color: var(--accent); }
.bar-track { height: 14px; border-radius: 0 7px 7px 0; position: relative; }
.bar-fill { position: absolute; inset: 0 0 0 auto; width: 0; border-radius: 7px; background: linear-gradient(270deg, rgba(74,163,255,.5), var(--series-1)); transition: width 1.3s cubic-bezier(.2,.8,.2,1); }
.bars li.cur .bar-fill { background: linear-gradient(270deg, rgba(95,212,232,.4), var(--accent)); box-shadow: 0 0 14px rgba(95,212,232,.5); }
.in .bar-fill { width: var(--w); }
.bars .v { font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: left; white-space: nowrap; }
@media (max-width: 520px) { .bars li { grid-template-columns: 88px 1fr 60px; gap: 8px; font-size: .85rem; } }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--grid); text-align: right; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: .82rem; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255,255,255,.03); }
td.n { font-variant-numeric: tabular-nums; }
details.data-table summary { cursor: pointer; color: var(--muted); font-size: .86rem; margin-top: 14px; }

/* ===== Share ===== */
.share-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; overflow: hidden; }
.share-card img { width: 100%; border-radius: 14px; border: 1px solid var(--border-hi); box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); transform: rotate(-2.5deg); max-width: 420px; justify-self: center; }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid var(--border-hi); background: rgba(255,255,255,.06); color: var(--ink); transition: transform .15s, background .2s; }
.btn:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }
.btn.wa { background: #25d366; color: #052e16; border-color: transparent; }
.btn svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .share-card { grid-template-columns: 1fr; } .share-card img { transform: none; } }

/* ===== FAQ / prose ===== */
.prose p { margin: 0 0 14px; color: var(--ink-2); }
.prose h2 { margin-top: 26px; font-size: 1.25rem; }
.prose h2:first-child { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; color: var(--ink-2); }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ===== Reveal ===== */
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.js-anim .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  .chart-svg .line, .chart-svg.drawn .line { animation: none; stroke-dashoffset: 0; }
  .js-anim .chart-svg:not(.drawn) .area, .js-anim .chart-svg:not(.drawn) .end { opacity: 1; }
  .chart-svg .pulse { display: none; }
  html { scroll-behavior: auto; }
}

footer.site { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: .86rem; }
footer.site a { color: var(--ink-2); }

@media (max-width: 560px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .tile { padding: 14px; border-radius: 18px; }
  .tile.ring, .tile:last-child:nth-child(even) { grid-column: 1 / -1; }
  .tile .icon { width: 28px; height: 28px; margin-bottom: 6px; }
  .tile .value { font-size: 1.45rem; }
  .tile .note { font-size: .78rem; }
}

/* ===== Map interaction ===== */
.lake-labels.no-places .place { display: none; }
.pin { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: inherit; transition: opacity .3s; }
.pin-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(8, 22, 38, .85); border: 1.5px solid var(--accent); color: var(--accent); box-shadow: 0 0 0 0 rgba(95,212,232,.6); animation: ping 2.6s 4; }
.pin-dot svg { width: 18px; height: 18px; }
.pin-label { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(8, 22, 38, .8); white-space: nowrap; }
.pin:hover .pin-dot, .pin:focus-visible .pin-dot { background: var(--accent); color: #04121f; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(95,212,232,0); } 100% { box-shadow: 0 0 0 0 rgba(95,212,232,0); } }
.map-card { position: absolute; left: 0; top: 0; pointer-events: auto; width: min(290px, 78vw); padding: 14px 16px 12px; font-size: .88rem; line-height: 1.5;
  background: rgba(8, 22, 38, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border-hi); border-radius: 16px; box-shadow: 0 18px 40px -10px rgba(0,0,0,.7); }
.map-card::after { content: ""; position: absolute; bottom: -7px; left: 50%; width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg); background: inherit; border-right: 1px solid var(--border-hi); border-bottom: 1px solid var(--border-hi); }
.map-card p { margin: 0 0 6px; color: var(--ink-2); }
.map-card .card-t { color: var(--ink); font-weight: 800; font-size: 1rem; margin-left: 24px; }
.map-card .card-f { font-size: .76rem; color: var(--muted); margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--border); }
.card-x { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: var(--ink); cursor: pointer; font-size: .8rem; }

.map-ui { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 380px; }
.no-3d .map-ui { display: none; }
.map-tools { border-radius: 16px; padding: 0; font-size: .82rem; }
.map-tools summary { cursor: pointer; padding: 9px 14px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
.map-tools summary::-webkit-details-marker { display: none; }
.map-tools summary::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 5-9 5-9-5z'/%3E%3Cpath d='m3 13 9 5 9-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 5-9 5-9-5z'/%3E%3Cpath d='m3 13 9 5 9-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.mt-group { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 12px 10px; }
.mt-group button { font: inherit; font-size: .8rem; color: var(--ink-2); background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mt-group button:hover { color: var(--ink); border-color: var(--border-hi); }
.mt-group button[aria-pressed="true"] { color: var(--ink); background: rgba(95,212,232,.14); border-color: rgba(95,212,232,.5); }
.mt-group button[aria-pressed="false"] .sw { opacity: .45; }
.sw { width: 14px; height: 4px; border-radius: 3px; display: inline-block; }
.sw-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.sw-dash { background: repeating-linear-gradient(90deg, var(--c) 0 4px, transparent 4px 7px); }
.mt-note { margin: 0; padding: 0 14px 10px; font-size: .72rem; color: var(--muted); }
.explore-btn, .explore-close { font: inherit; font-size: .84rem; font-weight: 700; color: var(--ink); padding: 8px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.explore-btn svg { width: 16px; height: 16px; }
.map-hint { margin: 0; padding: 6px 12px; border-radius: 999px; font-size: .78rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.map-hint svg { width: 15px; height: 15px; color: var(--accent); }
.explore-close { position: absolute; top: 14px; right: 14px; z-index: 6; }

/* Full-screen explore mode */
.no-scroll, .no-scroll body { overflow: hidden; }
.hero3d.exploring { position: fixed; inset: 0; z-index: 100; min-height: 0; margin: 0; background: radial-gradient(1200px 700px at 50% 30%, #0e2742, var(--bg-0)); }
.hero3d.exploring::after, .exploring .hero-inner, .exploring .explore-btn { display: none; }
.exploring .lake-stage { position: absolute; inset: 0; height: auto; max-height: none; }
.exploring .map-ui { top: 64px; }
.exploring .timebar { position: absolute; inset: auto 12px 12px 12px; margin: 0 auto; }

@media (max-width: 1000px) {
  .map-ui { top: 10px; left: 10px; max-width: calc(100% - 20px); }
  .map-hint { display: none; }
  .exploring .map-hint { display: inline-flex; }
}

/* ===== Accessibility helpers ===== */
.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; }
.skip-link { position: absolute; top: -100px; right: 12px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #04121f; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (forced-colors: active) { .glass, .card, .tile { border: 1px solid CanvasText; } }

[hidden] { display: none !important; }

.card-layer { position: absolute; left: 0; top: 0; z-index: 4; pointer-events: none; }

.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
#motion[aria-pressed="true"] { background: rgba(95,212,232,.18); }
.prose ul { color: var(--ink-2); padding-inline-start: 20px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }

@media (max-width: 1000px) {
  .map-ui { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
  .explore-btn { padding: 7px 10px; font-size: .78rem; }
  #motion span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .map-tools[open] { order: 3; width: 100%; max-height: calc(min(52vh, 560px) - 70px); overflow-y: auto; }
  .map-tools summary { padding: 7px 12px; }
}

/* Stacked layout (tablet / phone): map controls get their own row under the map, never covering it */
@media (max-width: 1000px) {
  .hero3d:not(.exploring) .map-ui { position: relative; top: auto; left: auto; order: 1; max-width: none; margin: 10px 16px 0; z-index: 3; }
  .hero3d:not(.exploring) .map-tools[open] { max-height: none; overflow: visible; }
  .hero3d:not(.exploring) .hero-inner { order: 2; margin-top: 14px; }
  .hero3d:not(.exploring) .timebar { order: 3; }
}

/* Gauge tooltips */
.hero-panel { position: relative; }
.g-hit { fill: transparent; cursor: help; outline: none; }
.g-hit:hover, .g-hit:focus-visible { fill: rgba(255,255,255,.1); }
.g-tip { position: absolute; z-index: 6; width: 250px; transform: translateY(-50%); pointer-events: none; padding: 10px 12px; font-size: .84rem; line-height: 1.45;
  background: rgba(8, 22, 38, .96); border: 1px solid var(--border-hi); border-radius: 12px; box-shadow: 0 14px 36px -8px rgba(0,0,0,.7); }
.g-tip p { margin: 0 0 4px; color: var(--ink-2); }
.g-tip .gt-t { color: var(--ink); font-weight: 800; display: flex; align-items: center; gap: 7px; }
.g-tip .gt-t i { width: 12px; height: 4px; border-radius: 2px; display: inline-block; }
.g-tip .gt-m { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--border); color: var(--accent); font-weight: 600; }

/* ===== Accessibility menu ===== */
.hdr-end { display: flex; align-items: center; gap: 8px; position: relative; }
.a11y-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .88rem; font-weight: 700; color: #04121f; background: var(--accent); border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.a11y-btn svg { width: 18px; height: 18px; }
.a11y-panel { position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; width: 270px; padding: 14px; border-radius: 16px; background: #0b1d31; border: 1px solid var(--border-hi); box-shadow: 0 20px 50px -10px rgba(0,0,0,.8); display: grid; gap: 8px; }
.a11y-h { margin: 0 0 2px; font-weight: 800; }
.a11y-row { display: flex; align-items: center; gap: 8px; }
.a11y-row > span:first-child { flex: 1; color: var(--ink-2); }
.a11y-panel button { font: inherit; font-size: .9rem; color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; cursor: pointer; text-align: right; }
.a11y-row button { padding: 6px 10px; font-weight: 800; }
.a11y-tog { display: flex; justify-content: space-between; align-items: center; }
.a11y-tog::after { content: ""; width: 34px; height: 20px; border-radius: 10px; background: rgba(255,255,255,.15) radial-gradient(circle 7px at 10px 50%, #fff 98%, transparent) no-repeat; transition: background .2s; }
.a11y-tog[aria-pressed="true"] { border-color: var(--accent); }
.a11y-tog[aria-pressed="true"]::after { background: var(--accent) radial-gradient(circle 7px at 24px 50%, #04121f 98%, transparent) no-repeat; }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: .86rem; }
.a11y-foot button { padding: 6px 10px; font-size: .84rem; }
@media (max-width: 640px) { .a11y-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .a11y-btn { padding: 7px; } }

/* settings */
.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; background: rgba(255, 230, 0, .15); outline: 1px solid rgba(255, 230, 0, .6); }
.a11y-readable body { font-family: Arial, "Arial Hebrew", sans-serif; letter-spacing: .03em; word-spacing: .12em; line-height: 1.85; }
.a11y-still *, .a11y-still *::before, .a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.a11y-still .js-anim .reveal, .a11y-still.js-anim .reveal { opacity: 1; transform: none; }
.a11y-still.js-anim .chart-svg .line { stroke-dashoffset: 0; }
.a11y-still.js-anim .chart-svg:not(.drawn) .area, .a11y-still.js-anim .chart-svg:not(.drawn) .end { opacity: 1; }
.a11y-contrast { --ink: #ffffff; --ink-2: #ffffff; --muted: #e6e6e6; --border: #ffffff; --border-hi: #ffffff; --grid: rgba(255,255,255,.35); --accent: #ffe600; --surface-solid: #000; }
.a11y-contrast body { background: #000; }
.a11y-contrast .card, .a11y-contrast .tile, .a11y-contrast .glass, .a11y-contrast .tip, .a11y-contrast .map-card, .a11y-contrast .g-tip, .a11y-contrast header.site { background: #000 !important; border: 1px solid #fff !important; backdrop-filter: none !important; }
.a11y-contrast .big .num { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.a11y-contrast a { color: #ffe600; }

/* Share preview: keep the 1200×630 proportions, smaller */
.share-card { grid-template-columns: 1fr minmax(0, 380px); }
.share-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; max-width: 380px; transform: rotate(-1.5deg); justify-self: end; }
@media (max-width: 760px) { .share-card { grid-template-columns: 1fr; } .share-card img { justify-self: center; transform: none; } }

/* ===== Simple winter comparison: water tanks ===== */
.view-tabs button { font: inherit; font-size: .88rem; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; }
.view-tabs button[aria-selected="true"] { background: var(--ink); color: #06121f; font-weight: 700; }
.cmp-headline { font-size: 1.08rem; color: var(--ink); margin: 4px 0 18px; min-height: 1.6em; }
.cmp-headline b { color: var(--accent); }
.tanks { display: flex; gap: clamp(10px, 3vw, 28px); align-items: flex-end; justify-content: center; padding: 8px 0 4px; position: relative; }
.tank { flex: 0 1 150px; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.tank-head { font-weight: 800; font-size: .95rem; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.tank-head i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.tank-body { position: relative; width: 100%; max-width: 120px; height: clamp(200px, 32vw, 280px); border-radius: 18px 18px 22px 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.07)); border: 2px solid rgba(255,255,255,.16); box-shadow: inset 0 10px 30px rgba(0,0,0,.35); }
.tank.cur .tank-body { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent), inset 0 10px 30px rgba(0,0,0,.35); }
.tank-water { position: absolute; inset: auto 0 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 85%, #fff 15%), color-mix(in srgb, var(--c) 70%, #000 30%)); transition: height .6s cubic-bezier(.2,.8,.2,1); }
.racing .tank-water { transition: height .09s linear; }
.tank-water::before { content: ""; position: absolute; left: -50%; top: -7px; width: 200%; height: 14px; background: radial-gradient(10px 7px at 10px 7px, color-mix(in srgb, var(--c) 85%, #fff 15%) 98%, transparent) repeat-x 0 0 / 20px 14px; animation: wave 3s linear infinite; }
@keyframes wave { to { transform: translateX(20px); } }
.tank-line { position: absolute; left: 0; right: 0; height: 0; border-top: 2px dashed; z-index: 2; pointer-events: none; }
.tank-line.red { border-color: rgba(255, 92, 92, .85); }
.tank-line.black { border-color: rgba(220, 228, 238, .5); }
.tank-peak { position: absolute; left: 6px; right: 6px; height: 0; border-top: 2px dotted var(--c); z-index: 2; }
.tank-peak span { position: absolute; bottom: 3px; right: 0; left: 0; text-align: center; font-size: .68rem; color: var(--ink); line-height: 1.2; text-shadow: 0 1px 4px #000; }
.tank-val { text-align: center; line-height: 1.3; }
.tank-val b { font-size: 1.35rem; font-weight: 800; display: block; }
.tank-val > span { font-size: .82rem; color: var(--ink-2); }
.tank-note { font-size: .74rem; color: var(--muted); }
.tank-scale { position: relative; width: 74px; height: clamp(200px, 32vw, 280px); align-self: flex-end; margin-bottom: 66px; flex: none; }
.tank-scale span { position: absolute; left: 0; transform: translateY(50%); font-size: .72rem; color: var(--ink-2); white-space: nowrap; }
.tank-scale .red { color: #ff9a9a; }
.race { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.race-play { background: var(--accent); color: #04121f; border-color: transparent; }
.race-play svg { width: 16px; height: 16px; }
.race-track { flex: 1; min-width: 200px; }
.race-months { display: flex; justify-content: space-between; direction: ltr; font-size: .72rem; color: var(--muted); padding: 0 4px; }
.race-date { font-weight: 800; color: var(--accent); min-width: 110px; }
@media (max-width: 560px) {
  .tanks { gap: 8px; }
  .tank-head { font-size: .78rem; }
  .tank-val b { font-size: 1rem; }
  .tank-val > span { font-size: .7rem; }
  .tank-scale { display: none; }
  .tank-peak span { display: none; }
}
@media (max-width: 560px) {
  .tank { flex: 1 1 0; }
  .tank-head { white-space: normal; text-align: center; font-size: .72rem; line-height: 1.2; min-height: 2.4em; align-items: flex-start; }
  .tank-head i { margin-top: 3px; flex: none; }
  .tank-val { font-size: .9em; }
}
.hdr-end { min-width: 0; }
nav.main { min-width: 0; }
@media (max-width: 640px) {
  .hdr-end { width: 100%; }
  .hdr-end nav.main { flex: 1; width: auto; margin: 0; }
}
@media (max-width: 640px) {
  /* logo already links home; the comparison is on the home page – keep the menu to what fits */
  nav.main a[href="/"], nav.main a[href="/#compare"] { display: none; }
  nav.main { justify-content: flex-start; }
  nav.main a { padding: 6px 11px; }
}

/* Race: no layout shift */
.racing .tank-water { transition: none; }
.tank-note { min-height: 1.2em; }
.race-date { display: inline-block; min-width: 7.5em; }
@media (max-width: 560px) { .cmp-headline { min-height: 7.2em; } }

.tank-val { width: 100%; }
.tank-val .tv-sub { display: block; white-space: nowrap; }
@media (max-width: 560px) { .tank-val .since { display: none; } }

.hint-touch { display: none; }
@media (pointer: coarse) {
  .hint-desk { display: none; }
  .hint-touch { display: inline; }
  .map-hint { display: inline-flex !important; order: 5; }
}

/* Map card: arrow follows the point; flips below when there is no room above */
.map-card::after { left: var(--arrow-x, 50%); }
.map-card.below::after { bottom: auto; top: -7px; transform: rotate(225deg); }
.reset-view svg { width: 15px; height: 15px; }
