@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap;
  src: url(../_shared/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap;
  src: url(../_shared/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap;
  src: url(../_shared/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap;
  src: url(../_shared/fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap;
  src: url(../_shared/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap;
  src: url(../_shared/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }

/* The launch article. The site's identity: black and graphite, hairlines, mono only for numbers, and colour only
   where data is. Dark only (the author, 28 Nov). @font-face rules are prepended by render/css_fonts.py. */

:root {
  color-scheme: dark;
  --bg: #000; --panel: #0a0b0c; --panel-2: #131416; --panel-3: #1a1c1f; --hair: #202327; --hair-2: #2e3237;
  --text: #e8e9ea; --text-2: #9b9fa5; --text-3: #666b72; --read: #c9ccd1; --track: rgba(255,255,255,.055);
  --on: rgba(255,255,255,.13); --mine: #eef0f2; --other: #4d5259; --loss: #e87a5d; --accent: #dca94a;
  --accent-bg: rgba(220,169,74,.09);
}
:root {
  --sans: 'IBM Plex Sans', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --col: 660px; --mid: 780px; --wide: 1040px; --ease: cubic-bezier(.2,.7,.2,1); --spring: cubic-bezier(.32,.72,0,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--read); font: 18px/1.72 var(--sans); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html[data-lang="en"] [data-l="pl"], html[data-lang="pl"] [data-l="en"] { display: none; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); } .small { font-size: 13px; line-height: 1.5; }
[hidden] { display: none !important; }
a { color: inherit; }
article p a { color: var(--text); text-decoration: underline; text-decoration-color: var(--text-3); text-underline-offset: 3px; }
article p a:hover { text-decoration-color: var(--text); }
button { font-family: var(--sans); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ── controls ─────────────────────────────────────────────────────────────── */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 22px; background: var(--track); }
.seg button { min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2);
  font-size: 13.5px; cursor: pointer; transition: background 200ms var(--ease), color 200ms; }
.seg button[aria-pressed="true"] { background: var(--on); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.seg.disabled { opacity: .35; } .seg button:disabled { cursor: default; }
@media (pointer: coarse), (max-width: 640px) { .seg button { min-height: 36px; } .hero .hero-note .link { min-height: 36px; } }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 999px;
  background: var(--track); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.icon-btn:disabled { opacity: .3; cursor: default; }
.ghost { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--track); color: var(--text);
  font-size: 13.5px; cursor: pointer; }
.cta { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border: 0;
  border-radius: 999px; background: var(--text); color: var(--bg); font: 500 15px var(--sans); text-decoration: none; cursor: pointer; }
.cta.small { height: 36px; padding: 0 16px; font-size: 13.5px; }
.link { padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; text-decoration: underline;
  text-decoration-color: var(--hair-2); text-underline-offset: 3px; cursor: pointer; }
a.link { display: inline-flex; align-items: center; min-height: 36px; }

/* ── bar ──────────────────────────────────────────────────────────────────── */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 30; height: 56px; display: flex; justify-content: space-between;
  align-items: center; padding: 0 20px; transition: background 250ms; }
.bar.solid { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--hair); }
/* the official logo: the icon's hairlines keep their screen width at any size, as on the site */
.mark { display: inline-flex; align-items: center; min-height: 36px; color: var(--text); text-decoration: none; }
.mark svg { display: block; height: 32px; width: auto; overflow: visible; }
.mark .hair { stroke-width: 0.8px; vector-effect: non-scaling-stroke; opacity: 0.85; }
.mark .axis { stroke-width: 1.15px; vector-effect: non-scaling-stroke; }
.mark .profile { stroke-width: 2.1px; vector-effect: non-scaling-stroke; }
.foot .mark svg { height: 24px; }
.bar-tools { display: flex; align-items: center; gap: 10px; }
.notes-btn[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent); }

/* ── hero ─────────────────────────────────────────────────────────────────── */
.hero { display: flex; flex-direction: column; align-items: center; padding: 60px 16px 40px; background: #000; color: var(--read); }
.hero-map { position: relative; width: min(100%, 680px, max(320px, calc((100svh - 392px) * 1.076))); aspect-ratio: 691 / 642; }
.hero-map canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.hero-map.done canvas { cursor: crosshair; }
.hero-still { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-map.ready .hero-still { visibility: hidden; }
.readout { position: absolute; z-index: 2; transform: translate(14px, -50%); padding: 7px 11px; border-radius: 10px;
  background: rgba(19,20,22,.93); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 10px 26px rgba(0,0,0,.6);
  color: var(--text-2); font-size: 12.5px; line-height: 1.45; white-space: nowrap; pointer-events: none; }
.readout b { display: block; color: var(--text); font-size: 15px; font-weight: 500; }
.readout.flip { transform: translate(calc(-100% - 14px), -50%); }
.hero-note { max-width: 780px; margin: 4px 0 14px; text-align: center; font-size: 13px; line-height: 1.55; color: var(--text-3); }
.hero-note .link { display: inline-flex; align-items: center; min-height: 32px; margin-left: 6px; color: var(--text-2); }
/* the hero's legend: a slim vertical bar beside the map where there is room, a strip under it on narrow screens */
.hero-legend > .legend { display: none; }
.vlegend { position: absolute; left: calc(100% + 18px); top: 18%; height: 58%; display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: var(--text-2); }
.vlegend-bar { position: relative; flex: 1; width: 6px; border-radius: 3px; }
.vlegend-bar span { position: absolute; left: 12px; transform: translateY(50%); white-space: nowrap; }
.vlegend-unit { color: var(--text-3); }
@media (max-width: 860px) { .vlegend { display: none; }
  .hero-legend > .legend { display: block; position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 2px); width: min(260px, 70vw); margin: 0; }
  .hero-legend .grad { height: 6px; } .hero-legend .legend-unit { display: none; } .hero-map { margin-bottom: 30px; } }
/* the date, title and subtitle share the text column's left edge, as on the older articles */
.hero-text { width: min(var(--col), 100%); text-align: left; }
.meta { display: flex; margin-bottom: 16px; font-size: 14px; line-height: 1.72; color: var(--text-2); }
h1 { margin: 0; color: var(--text); font-weight: 500; font-size: clamp(28px, 3.1vw, 41px); line-height: 1.13;
  letter-spacing: -0.022em; text-wrap: balance; }
.dek { margin: 16px 0 0; color: var(--text-2); font-size: clamp(15.5px, 1.25vw, 17px); line-height: 1.6; text-wrap: pretty; }

/* ── the article column ───────────────────────────────────────────────────── */
article section > * { width: min(var(--col), calc(100% - 32px)); margin-left: auto; margin-right: auto; }
article section > .wide, article section > .feat, article section > .ending { width: min(var(--wide), calc(100% - 32px)); }
article section > .mid { width: min(var(--mid), calc(100% - 32px)); }
article section > .stage-fig { width: 100%; }
article section { scroll-margin-top: 64px; }
article p { margin-top: 0; margin-bottom: 22px; text-wrap: pretty; }
.lead { margin-top: 60px; color: var(--text); font-size: 20px; line-height: 1.68; }
h2 { margin-top: 84px; margin-bottom: 22px; color: var(--text); font-weight: 500; font-size: 29px; line-height: 1.22; letter-spacing: -0.016em; text-wrap: balance; }
h2.chapter { margin-top: 150px; margin-bottom: 34px; font-size: clamp(29px, 3.7vw, 42px); line-height: 1.14; letter-spacing: -0.023em; }
h3 { margin-top: 52px; margin-bottom: 14px; color: var(--text); font-weight: 500; font-size: 21px; line-height: 1.35; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 36px; margin-bottom: 40px; }
.tile { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px;
  border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); }
.tile span { color: var(--text-2); font-size: 14px; line-height: 1.4; }
.tile b { color: var(--text); font-size: 14.5px; font-weight: 500; text-align: right; white-space: nowrap; }

.tag { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--accent-bg);
  color: var(--accent); font: 400 11.5px/20px var(--sans); white-space: nowrap; vertical-align: 1px; }
.draft { padding-left: 18px; box-shadow: inset 2px 0 0 color-mix(in srgb, var(--accent) 55%, transparent); margin-bottom: 26px; }
.draft p { margin-bottom: 4px; }
.draft .tag { margin-left: 0; }
.review { display: none; }
.show-notes .review { display: block; margin-top: -10px; margin-bottom: 24px; padding: 10px 14px; border-radius: 12px;
  background: var(--accent-bg); color: var(--accent); font-size: 13.5px; line-height: 1.55; }
.show-notes .review p { margin: 0; } .show-notes .review p + p { margin-top: 6px; }
.show-notes .noted { position: relative; }
.show-notes .noted::before { content: ''; position: absolute; top: 5px; bottom: 5px; left: -14px; width: 2px; background: var(--accent); }
/* ── figures ──────────────────────────────────────────────────────────────── */
.fig { margin-top: 38px; margin-bottom: 56px; }
figure { margin-left: auto; margin-right: auto; }
.panel { container-type: inline-size; padding: 18px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); }
.map-panel { background: #07080a; color: var(--read); }
.panel h4 { margin: 0 0 12px; color: var(--text); font-weight: 500; font-size: 16px; line-height: 1.4; }
.panel.loading { min-height: 420px; }
.fig-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
figcaption { margin-top: 12px; padding: 0 4px; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }

.legend { position: relative; max-width: 440px; margin: 12px auto 0; padding-bottom: 20px; }
.grad { height: 8px; border-radius: 4px; }
.grad-ticks { position: relative; height: 16px; font-size: 11px; color: var(--text-2); }
.grad-ticks span { position: absolute; top: 2px; transform: translateX(-50%); }
.legend-unit { position: absolute; left: 0; right: 0; bottom: -1px; text-align: center; font-size: 11.5px; color: var(--text-3); }

/* the map frame */
.map { position: relative; width: 100%; container-type: inline-size; overflow: hidden; }
.map-layers, .map-vec, .map-names { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-layer, .snow-canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 450ms var(--ease); }
.map-layer.off { opacity: 0; }
.map-vec { pointer-events: none; }
.map-vec path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.map-vec .borders { stroke: rgba(255,255,255,.22); stroke-width: 1; }
.map-vec .outline { stroke: rgba(255,255,255,.55); stroke-width: 1; }
.map-names { pointer-events: none; }
.place { position: absolute; width: 0; height: 0; }
.place i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #000; }
.place b { position: absolute; left: 7px; top: -10px; color: #fff; font: 500 12.5px/20px var(--sans); white-space: nowrap;
  text-shadow: 0 0 2px #000, 0 0 2px #000, 0 0 4px #000; }
.place.left b { left: auto; right: 7px; }
.place.minor b { font-weight: 400; }
.place.summit i { left: -4px; top: -5px; width: 0; height: 0; border-radius: 0; background: none; box-shadow: none;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid #fff; filter: drop-shadow(0 0 1px #000); }
.place.summit b { font-weight: 400; font-size: 12px; }
@container (max-width: 560px) { .place.minor { display: none; } .place b { font-size: 11px; } .place.summit b { font-size: 10.5px; } }
@container (max-width: 420px) { .place.summit { display: none; } }
.scalebar { position: absolute; left: 12px; bottom: 10px; height: 6px; border: solid #fff; border-width: 0 1px 1px; pointer-events: none; }
.scalebar span { position: absolute; left: 2px; bottom: 5px; color: #fff; font-size: 11px; white-space: nowrap; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.locator { position: absolute; right: 10px; bottom: 10px; width: clamp(64px, 15%, 130px); pointer-events: none; }
.locator svg { display: block; width: 100%; }
.locator path { fill: rgba(0,0,0,.62); stroke: rgba(255,255,255,.8); stroke-width: 6; }
.locator rect { fill: rgba(255,255,255,.28); stroke: #fff; stroke-width: 9; }

/* compare */
.cmp-stage { position: relative; width: 100%; max-width: calc(max(380px, 100vh - 250px) * var(--ar, 1.076)); margin: 0 auto; user-select: none; }
.snow-map { max-width: calc(max(380px, 100vh - 230px) * 1.076); margin: 0 auto; }
.cmp-stage .map { position: absolute; inset: 0; height: 100%; transition: opacity 450ms var(--ease), visibility 450ms; }
.cmp-stage .map.hidden { opacity: 0; visibility: hidden; }
.cmp-stage .map-layer { transition: none; }
.cmp-range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.cmp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.cmp-range:focus-visible + * , .cmp-stage:focus-within .cmp-line i { outline: 2px solid #fff; outline-offset: 3px; }
.cmp-line { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.45); pointer-events: none; }
.cmp-line i { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.55); }
.cmp-line i::before { content: '‹ ›'; position: absolute; inset: 0; display: grid; place-items: center; color: #000; font: 500 18px/1 var(--sans); font-style: normal; }
.cmp-wrap { width: 100%; max-width: calc(max(380px, 100vh - 280px) * var(--ar, 1.076)); margin: 0 auto; }
.cmp-wrap .cmp-stage { max-width: none; }
.cmp-heads { position: relative; height: 34px; }
.cmp-heads i { position: absolute; bottom: 0; width: 2px; height: 7px; margin-left: -1px; background: #fff; }
.cmp-name { position: absolute; top: 0; padding: 0 12px; height: 27px; border-radius: 8px; background: #eef0f2; color: #0b0c0f;
  font-size: 13px; font-weight: 500; line-height: 27px; white-space: nowrap; pointer-events: none; }

/* anatomy */
.anatomy { outline-offset: 4px; }
.anatomy-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; background: #07080a; --text: #e8e9ea; --text-2: #9b9fa5; --text-3: #666b72; --track: rgba(255,255,255,.055); --on: rgba(255,255,255,.13); --read: #c9ccd1; --hair: #202327; --hair-2: #2e3237; }
.anatomy-side { display: flex; flex-direction: column; align-items: flex-start; }
.steps { width: 100%; margin: 0 0 14px; padding: 3px; list-style: none; border-radius: 16px; background: var(--track); }
.steps button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 13px; background: transparent; color: var(--text-3); text-align: left; cursor: pointer; transition: background 200ms, color 200ms; }
.steps button span { font-size: 12px; } .steps button b { font-size: 14.5px; font-weight: 400; }
.steps li.past button { color: var(--text-2); }
.steps li.on button { background: var(--on); color: var(--text); }
.stepper { display: none; }
.step-text { min-height: 7.4em; margin: 0 0 12px; color: var(--read); font-size: 15px; line-height: 1.6; }
.anatomy-view { min-width: 0; }
@media (max-width: 900px) {
  .anatomy-grid { grid-template-columns: 1fr; gap: 12px; }
  .anatomy-side h4 { margin-bottom: 8px; }
  .steps { margin-bottom: 8px; } .steps li:not(.on) { display: none; }
  .stepper { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 10px; }
  .step-text { min-height: 9.6em; }
}

/* charts: monochrome, values labelled directly */
.bars { display: grid; gap: 2px; }
.bar-row { display: grid; grid-template-columns: 230px minmax(0, 1fr) 62px; align-items: center; gap: 14px; min-height: 36px; font-size: 14px; color: var(--text-2); cursor: default; border-radius: 8px; }
.bar-row:hover { background: var(--track); }
.bar-name { padding-left: 4px; line-height: 1.35; }
.bar-track { height: 12px; }
.bar-track i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--other); transition: width 500ms var(--ease); }
.bar-val { text-align: right; font-size: 13.5px; padding-right: 4px; }
.bar-row.mine { color: var(--text); } .bar-row.mine .bar-name { font-weight: 500; } .bar-row.mine .bar-track i { background: var(--mine); }
.bar-note { min-height: 3.2em; margin: 8px 0 0 !important; font-size: 13px; line-height: 1.55; color: var(--read); }
.bar-note.hint { color: var(--text-3); }
.anatomy-when { margin: -4px 0 10px !important; }
@container (max-width: 520px) {
  .bar-row { grid-template-columns: minmax(0, 1fr) 58px; grid-template-areas: 'name name' 'track val'; gap: 2px 10px; padding: 5px 0; }
  .bar-name { grid-area: name; } .bar-track { grid-area: track; } .bar-val { grid-area: val; }
}
.key { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 4px 0 10px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.key i { display: inline-block; margin-right: 8px; border-radius: 50%; }
.runs-key { align-items: center; }
.runs-key i { width: 14px; height: 9px; border-radius: 2px; }
.runs-key .k-none { box-shadow: inset 0 0 0 1px var(--hair-2); }
.runs-key .lead-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.runs-key .lead-steps em { font-style: normal; color: var(--text-2); }
.runs-key .lead-steps > span { display: inline-flex; align-items: center; gap: 6px; }
.key .k-seen, .key .k-noecho { width: 26px; height: 11px; border-radius: 3px; vertical-align: -1px; }
.key .k-noecho { background-image: repeating-linear-gradient(45deg, transparent 0 3px, rgba(255,255,255,.42) 3px 4px); }
.runs-svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.runs-svg .axis { fill: var(--text-3); font: 11px var(--mono); }
.runs-svg .cursor { fill: none; stroke: #fff; stroke-width: 1.5; }
@media (max-width: 600px) { .runs-svg .axis { font-size: 18px; } }
.view-body { min-height: 300px; }
.forest-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 70px; align-items: center; gap: 12px; min-height: 30px; font-size: 13.5px; color: var(--text-2); }
.f-name { line-height: 1.3; }
.f-plot { position: relative; align-self: stretch; min-height: 30px; }
.f-zero { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--hair-2); }
.f-line { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--text-3); }
.f-dot { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; }
.f-dot.sure { background: var(--mine); box-shadow: 0 0 0 2px var(--panel); }
.f-dot.open { background: var(--panel); box-shadow: inset 0 0 0 2px var(--text-2); }
.f-val { text-align: right; font-size: 12.5px; color: var(--text); }
.axis-row em { position: absolute; bottom: 4px; font-style: normal; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
@container (max-width: 560px) {
  .forest-row { grid-template-columns: minmax(0, 1fr) 62px; grid-template-areas: 'name val' 'plot plot'; gap: 0 8px; padding: 4px 0; }
  .f-name { grid-area: name; } .f-val { grid-area: val; } .forest-row > .f-plot { grid-area: plot; min-height: 18px; }
  .axis-row .f-plot { min-height: 22px; } .axis-row > span:not(.f-plot) { display: none; }
}
.cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; height: 220px; }
.col { display: flex; flex-direction: column; align-items: center; min-height: 0; gap: 6px; }
.col-val { font-size: 13px; color: var(--text); }
.col-track { flex: 1; display: flex; align-items: flex-end; width: 100%; max-width: 62px; min-height: 0; }
.col-track i { width: 100%; border-radius: 4px 4px 0 0; background: var(--mine); }
.col-x { font-size: 12px; color: var(--text-2); }
.col-axis { margin: 6px 0 0 !important; text-align: center; }

/* the snow case */
.clock-box { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.clock { color: var(--text); font-size: 19px; font-weight: 500; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; color: var(--text-2); font-size: 13px; cursor: pointer; line-height: 1.35; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { flex: none; position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--hair-2); transition: background 200ms; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 200ms var(--spring); }
.switch input:checked + i { background: #6f757d; } .switch input:checked + i::after { transform: translateX(14px); }
.switch input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }
.time-row { display: flex; align-items: center; gap: 14px; margin: 10px 0 8px; }
.play { min-width: 82px; }
.time-range { flex: 1; min-width: 0; height: 36px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.time-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--hair-2); }
.time-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff; }
.time-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--hair-2); }
.time-range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }
.chart-wrap { margin-top: 12px; } .chart-wrap > p { margin: 0 0 4px; }
.chart-box { position: relative; }
.snow-chart { display: block; width: 100%; height: 128px; cursor: ew-resize; touch-action: pan-y; }
.snow-chart .grid-line { stroke: rgba(255,255,255,.08); vector-effect: non-scaling-stroke; }
.snow-chart .base-line { stroke: rgba(255,255,255,.22); vector-effect: non-scaling-stroke; }
.snow-chart .now-line { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.snow-chart .a-seen { fill: #8db6f6; } .snow-chart .hatch-bg { fill: #34507f; } .snow-chart .hatch-line { stroke: rgba(255,255,255,.38); stroke-width: 1.6; }
.chart-y span { position: absolute; left: 4px; transform: translateY(-105%); color: var(--text-3); font-size: 10.5px; pointer-events: none; }
.chart-x { position: relative; height: 16px; }
.chart-x span { position: absolute; transform: translateX(-50%); color: var(--text-3); font-size: 10.5px; }

/* the 100 m relief */
.relief-stage { position: relative; width: 100%; aspect-ratio: 1.5; }
.relief-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.relief-stage canvas:active { cursor: grabbing; }
.relief-stage { container-type: inline-size; }
.compass { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.66); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); pointer-events: none; }
.compass i { position: absolute; inset: 0; }
.compass i::before { content: ''; position: absolute; left: 50%; top: 5px; margin-left: -4px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 10px solid #fff; }
.compass span { position: absolute; left: 0; right: 0; bottom: 5px; text-align: center; color: #fff; font: 500 12px var(--sans); }
.relief-stage.flat { aspect-ratio: auto; } .relief-stage.flat img { display: block; width: 100%; }
@media (max-width: 600px) { .relief-stage { aspect-ratio: 1.05; } .hint { display: none; } }

/* the cold night in 3D (js/night3d.js) */
.night { scroll-margin-top: 64px; }
.night-tools { justify-content: flex-start; }
.night-tools .ghost { margin-left: auto; }
.seg button:disabled { opacity: .35; }
.panel.busy { cursor: progress; }
.night-hud { position: absolute; left: 4px; top: 2px; display: grid; gap: 1px; pointer-events: none; text-shadow: 0 0 6px #000, 0 0 3px #000; }
.night-date { font-size: 13px; color: var(--text-2); }
.night-clock { font-size: 34px; font-weight: 500; letter-spacing: -.5px; line-height: 1.1; color: #fff; }
.night-low-label { margin-top: 6px; font-size: 11.5px; color: var(--text-3); }
.night-low { font-size: 20px; font-weight: 500; color: #fff; }
.night-aeth { font-size: 11.5px; color: var(--text-2); }
.night-names { pointer-events: none; }
.night-names button.place { pointer-events: auto; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; }
.night-names button.place { width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; }
.night-names button.place > i, .night-names button.place > b { translate: 18px 18px; }
.night-names button.place:hover b, .night-names button.place:focus-visible b { text-decoration: underline; text-underline-offset: 3px; }
.night-pin { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2.5px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(0,0,0,.7), inset 0 0 0 1.5px rgba(0,0,0,.7); pointer-events: none; }
.night-time { display: flex; align-items: flex-start; gap: 12px; margin-top: 8px; }
.night-play { flex: none; width: 40px; height: 40px; }
.night-slider { position: relative; flex: 1; min-width: 0; padding-bottom: 18px; }
.night-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 40px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.night-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #e9ebee var(--at, 0%), var(--hair-2) var(--at, 0%)); }
.night-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(0,0,0,.55); }
.night-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--hair-2); }
.night-range::-moz-range-progress { height: 4px; border-radius: 2px; background: #e9ebee; }
.night-range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }
.night-hours { position: absolute; left: 9px; right: 9px; bottom: 0; height: 16px; font-size: 11px; color: var(--text-3); }
.night-hours span { position: absolute; bottom: 0; transform: translateX(-50%); }
.night-sun { position: absolute; top: -12px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px rgba(220,169,74,.28); }
.night-scale .case-legend { margin-top: 2px; }
.night-foot { margin-top: 4px; }
.night-hint { text-align: center; margin: 6px 0 0; }
.night-card { padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid var(--hair); }
.night-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 8px; }
.night-card-title { display: inline-block; margin: 0 10px 0 0; font-size: 16px; font-weight: 500; }
.night-badge { display: inline-block; font-size: 12px; color: var(--text-2); }
.night-badge.read, .night-badge.held { padding: 2px 10px; border-radius: 999px; background: var(--track); }
.night-badge.held { background: rgba(220,169,74,.16); color: var(--accent); }
.night-close { flex: none; font-size: 18px; }
.night-values { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: center; }
.night-value { display: grid; grid-template-columns: 12px auto auto; align-items: center; gap: 8px; font-size: 13.5px; color: var(--read); white-space: nowrap; }
.night-value i { width: 12px; height: 3px; border-radius: 2px; }
.night-value b { font-weight: 500; color: var(--text); }
.night-value.mine { color: var(--text); }
.night-value.mine b { font-size: 16px; }
.night-value.observed i { width: 8px; height: 8px; margin-left: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #000, 0 0 0 2.5px #fff; }
.night-moist { margin: 8px 0 0; }
.night-chart svg { display: block; width: 100%; height: auto; cursor: ew-resize; touch-action: pan-y; }
.night-chart text { fill: var(--text-3); font: 10.5px var(--mono); }
.night-grid { stroke: var(--hair); }
.night-now { stroke: #fff; stroke-width: 1; opacity: .55; }
.night-obs { fill: #fff; stroke: #000; stroke-width: 1.3; }
.night-obs.aside { fill: #000; stroke: #fff; }
.night-chart-note { margin: 4px 0 0; }
@media (max-width: 760px) { .night-values { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; } .night-value { grid-template-columns: 12px 1fr auto; } }
@media (max-width: 600px) {
  /* the clock gets its own band above the map, so it never covers the terrain */
  .night-stage { aspect-ratio: auto; height: calc((100vw - 64px) / 1.22 + 58px); }
  .night-stage canvas, .night-stage .night-names { top: 58px; height: calc(100% - 58px); }
  .night-hud { right: 4px; grid-template-columns: auto 1fr; grid-template-areas: "date lowl" "clock low" "aeth aeth"; column-gap: 12px; align-items: end; text-shadow: none; }
  .night-date { grid-area: date; font-size: 12px; } .night-clock { grid-area: clock; font-size: 26px; }
  .night-low-label { grid-area: lowl; justify-self: end; margin: 0; font-size: 10.5px; text-align: right; }
  .night-low { grid-area: low; justify-self: end; font-size: 18px; } .night-aeth { grid-area: aeth; justify-self: end; }
  .night-stage .compass { top: auto; bottom: 6px; }
  .night-tools > .seg:nth-of-type(2) { order: 2; } .night-tools > .night-res { order: 3; } .night-tools .ghost { order: 4; margin-left: auto; }
  /* the four models share one row */
  .night-tools > .seg:nth-of-type(2) { display: flex; width: 100%; }
  .night-tools > .seg:nth-of-type(2) button { flex: 1 1 auto; min-width: 0; padding-left: 4px; padding-right: 4px; font-size: 13px; }
  .night-hint { display: block; font-size: 12px; }
}

/* the cold morning's colour choice (js/scales.js) */
.case-legend { position: relative; max-width: 460px; margin: 10px auto 0; }
.cs-legend { display: block; width: 100%; padding: 6px 8px 4px; border: 0; border-radius: 12px; background: transparent; color: var(--text-2); cursor: pointer; }
.cs-legend:hover, .cs-legend[aria-expanded="true"] { background: var(--track); }
.cs-bar { display: block; height: 8px; border-radius: 4px; }
.cs-ticks { position: relative; display: block; height: 17px; margin-top: 3px; font-size: 11px; }
.cs-ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.cs-ticks span:first-child { transform: none; }
.cs-ticks span:last-child { transform: translateX(-100%); }
.cs-foot { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); }
.cs-more { color: var(--text-2); }
.cs-more::after { content: ' ▾'; }
.cs-list { position: absolute; z-index: 30; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); display: grid; gap: 2px; width: min(300px, 90vw); padding: 6px; border: 1px solid var(--hair-2); border-radius: 14px; background: var(--panel-2); box-shadow: 0 14px 40px rgba(0,0,0,.55); }
.cs-list[hidden] { display: none; }
.cs-list button { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.cs-list button[aria-checked="true"] { background: var(--on); }
.cs-swatch { display: block; height: 10px; border-radius: 5px; }
.cmp-when { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; }
.cmp-watch { white-space: nowrap; }


/* the column figure: a Skew-T (temperature and dew point only) beside the cross-section it is cut from */
.snd-panel.loading { min-height: 560px; }
.snd-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 20px; margin-bottom: 10px; }
.snd-head h4.snd-where { margin: 0 0 2px; font-size: 19px; }
.snd-meta { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0 !important; }
.snd-keys { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-2); }
.snd-chip { display: inline-flex; align-items: center; gap: 7px; }
.snd-chip i { width: 16px; height: 3px; border-radius: 2px; }
.snd-chip.t i { background: #e25a49; } .snd-chip.td i { background: #3caa73; }
.snd-play { font-size: 12px; }
.snd-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 14px; }
.snd-skew, .snd-sec { position: relative; height: clamp(380px, 44cqw, 500px); user-select: none; }
.snd-skew { touch-action: pan-y; cursor: crosshair; }
.snd-sec { touch-action: pan-y; cursor: ew-resize; border-radius: 10px; }
.snd-sec canvas { position: absolute; display: block; }
.snd-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.snd-over { pointer-events: none; }
.snd-svg text { fill: var(--text-3); font: 11px var(--mono); }
.snd-svg text.unit { fill: var(--text-3); font-size: 10px; }
.snd-svg text.zero { fill: var(--text); }
.snd-iso { stroke: rgba(255,255,255,.075); stroke-width: 1; }
.snd-iso.zero { stroke: rgba(255,255,255,.42); stroke-dasharray: 4 3; }
.snd-ground { fill: #131519; } .snd-ground-line { stroke: #565c65; stroke-width: 1.2; }
.snd-trace { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.snd-hair { stroke: rgba(255,255,255,.42); stroke-width: 1; }
.snd-mark { fill: #07080a; stroke-width: 2; }
.snd-terrain { fill: none; stroke: #aeb4bd; stroke-width: 1.4; stroke-linejoin: round; }
.snd-cut { stroke: #fff; stroke-width: 1.6; filter: drop-shadow(0 0 2px rgba(0,0,0,.9)); }
.snd-knob { fill: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.8)); }
.snd-tick { stroke: rgba(255,255,255,.4); stroke-width: 1; }
.snd-places { position: absolute; inset: 0; pointer-events: none; font-size: 11.5px; color: var(--text-2); }
.snd-places > span { position: absolute; transform: translateX(-50%); white-space: nowrap; line-height: 18px; }
.snd-places > span.summit { transform: none; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000, 0 0 6px #000; }
.snd-read { min-height: 1.6em; margin: 10px 0 0 !important; font-size: 12.5px; line-height: 1.6; color: var(--read); text-align: center; }
.snd-legend .legend { margin-top: 6px; }
.snd-hint { margin: 6px 0 0 !important; text-align: center; color: var(--text-3); }
@container (max-width: 700px) {
  .snd-grid { grid-template-columns: 1fr; gap: 6px; }
  .snd-skew { height: 360px; } .snd-sec { height: 250px; }
  .snd-places > span.minor { display: none; }
  .snd-read { min-height: 3.2em; }
}

/* the cold-pool figure: the descent through the Dolina Kamionki group */
.cp-panel.loading { min-height: 600px; }
.cp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 16px; }
.cp-stage { position: relative; width: 100%; min-height: 520px; border-radius: 12px; overflow: hidden; background: #050607; container-type: inline-size;
  cursor: grab; touch-action: pan-y; user-select: none; }
.cp-stage:active { cursor: grabbing; }
.cp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cp-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.cp-lines path { fill: none; stroke-linejoin: round; }
.cp-lines .cp-core { stroke: #fff; stroke-width: 1.1; fill: transparent; fill-rule: evenodd; pointer-events: visiblePainted;
  filter: drop-shadow(0 0 1px rgba(0,0,0,.9)); }
.cp-lines .cp-core.top { stroke-width: 2; }
.cp-lines .cp-core.hot { stroke-width: 2.6; fill: rgba(255,255,255,.14); }
.cp-lines .cp-halo { stroke: rgba(0,0,0,.62); stroke-width: 5.5; }
.cp-lines .cp-now { stroke: #fff; stroke-width: 2.2; }
.cp-lines .cp-trail { stroke: rgba(255,255,255,.34); stroke-width: 1; stroke-dasharray: 2 3; }
.cp-names { pointer-events: none; }
.cp-names .place.key-place b { font-size: 14px; font-weight: 600; }
.cp-pin, .cp-tip { position: absolute; transform: translate(-50%, -130%); padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  font: 500 12.5px/20px var(--mono); box-shadow: 0 6px 18px rgba(0,0,0,.55); }
.cp-pin { background: #eef0f2; color: #0b0c0f; }
.cp-tip { background: rgba(19,20,22,.94); color: #e8e9ea; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 6px 18px rgba(0,0,0,.55); font-family: var(--sans); }
.cp-contours { position: absolute; right: 12px; bottom: 9px; font-size: 12px; color: var(--text-2); text-shadow: 0 0 3px #000, 0 0 3px #000; pointer-events: none; }
.cp-hint { position: absolute; left: 12px; bottom: 9px; font-size: 12px; text-shadow: 0 0 3px #000, 0 0 3px #000; pointer-events: none; }
.cp-stage.flat img { display: block; width: 100%; }
.cp-side { display: flex; flex-direction: column; min-width: 0; }
.cp-side h4.cp-name { margin: 0; font-size: 19px; }
.cp-sub { min-height: 3em; margin: 0 0 8px !important; }
.cp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cp-stat { padding: 7px 10px 8px; border-radius: 11px; background: var(--panel-2); }
.cp-stat span { display: block; font-size: 11.5px; line-height: 1.35; color: var(--text-2); }
.cp-stat b { display: block; margin-top: 1px; font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap; }
.cp-list-head { margin: 12px 0 4px !important; }
.cp-list { display: grid; gap: 1px; }
.cp-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 46px; align-items: center; gap: 8px; height: 19px; padding: 0 4px; border: 0;
  border-radius: 6px; background: transparent; color: var(--text-2); font-size: 12px; text-align: left; cursor: pointer; transition: opacity 360ms var(--ease), background 160ms; }
.cp-row-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cp-row-bar { height: 7px; }
.cp-row-bar i { display: block; width: calc(var(--v) * 100%); height: 100%; border-radius: 0 4px 4px 0; background: #5b9fd4; }
.cp-row b { font-size: 11.5px; font-weight: 400; text-align: right; }
.cp-row.top { color: var(--text); } .cp-row.top .cp-row-name { font-weight: 600; } .cp-row.top .cp-row-bar i { background: #eef0f2; }
.cp-row.out { opacity: .2; }
.cp-row.hot { background: var(--on); opacity: 1; }
.cp-rail { display: flex; align-items: flex-end; gap: 14px; margin-top: 14px; }
.cp-play { flex: none; font-size: 12px; margin-bottom: 16px; }
.cp-track { position: relative; flex: 1; min-width: 0; }
/* each step sits exactly over the thumb's position for its outline */
.cp-steps { position: relative; height: 30px; }
.cp-steps button { position: absolute; bottom: 0; left: calc(9px + var(--at) * (100% - 18px)); transform: translateX(-50%); display: flex;
  justify-content: center; align-items: flex-end; width: min(28px, calc((100% - 18px) / 9)); height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
.cp-steps i { display: block; width: 60%; max-width: 26px; border-radius: 4px 4px 1px 1px; background: #5b9fd4; opacity: .3; transition: opacity 200ms; }
.cp-steps .past i { opacity: .62; } .cp-steps .on i { opacity: 1; box-shadow: 0 0 0 1.5px #fff; }
.cp-range { display: block; width: 100%; height: 36px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.cp-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--hair-2); }
.cp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff; }
.cp-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--hair-2); }
.cp-range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; }
.cp-ends { display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; line-height: 1.4; }
.cp-ends > span { display: inline-flex; gap: 7px; white-space: nowrap; }
.cp-ends b { font-weight: 400; color: var(--text); }
.cp-legend .legend { margin-top: 10px; max-width: 520px; padding-bottom: 0; }
.cp-legend .legend-unit { position: static; display: block; margin-top: 4px; line-height: 1.45; }
@container (max-width: 760px) {
  .cp-grid { grid-template-columns: 1fr; gap: 10px; }
  .cp-stage { min-height: 0; aspect-ratio: 1.02; }
  .cp-list { grid-template-columns: repeat(16, 1fr); gap: 3px; height: 74px; touch-action: pan-y; }
  .cp-row { display: flex; flex-direction: column; justify-content: flex-end; height: 74px; padding: 0; min-width: 0; }
  .cp-row-name, .cp-row b { display: none; }
  .cp-row-bar { display: flex; align-items: flex-end; width: 100%; height: 100%; }
  .cp-row-bar i { width: 100%; height: calc(var(--v) * 100%); border-radius: 3px 3px 0 0; }
  .cp-sub { min-height: 0; }
  .cp-end-name { display: none; }
}
@media (max-width: 640px) { .cp-hint { display: none; } .cp-play { margin-bottom: 16px; } }

/* the website chapter */
.stage-fig { margin: 24px 0 70px; }
.stage { position: relative; width: 100%; background: #000; }
.stage .pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage .pin canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .pin::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0, transparent 11%, transparent 89%, var(--bg) 100%); }
.stage .run { height: 220vh; height: 220svh; }
.stage-fig figcaption { width: min(var(--col), calc(100% - 32px)); margin-left: auto; margin-right: auto; }
.feat { display: grid; grid-template-columns: minmax(0, 370px) minmax(0, 1fr); gap: 44px; align-items: start; margin-top: 56px; margin-bottom: 56px; }
.feat h3 { margin-top: 0; } .feat p { font-size: 16.5px; line-height: 1.68; margin-bottom: 14px; }
.clip { position: relative; aspect-ratio: 1.6; overflow: hidden; border-radius: 16px; background: #07080a; box-shadow: inset 0 0 0 1px var(--hair); }
.clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 0 0; }
.clip.phone { aspect-ratio: 390 / 760; width: min(290px, 100%); justify-self: center; border-radius: 34px;
  box-shadow: 0 0 0 7px #17191d, 0 0 0 8px rgba(255,255,255,.14), 0 24px 60px rgba(0,0,0,.55); margin: 8px 0; }
.clip-toggle { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 13px; cursor: pointer; }
.clip.playing .clip-toggle { opacity: 0; } .clip:hover .clip-toggle, .clip-toggle:focus-visible { opacity: 1; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; gap: 6px; width: min(var(--col), calc(100% - 32px)) !important; } }
/* the ending */
article section > .ending { margin-top: 150px; }
.end-cta { display: flex; justify-content: center; }
.credits { max-width: var(--col); margin: 90px auto 0; }
.credits { font-size: 13px; line-height: 1.6; color: var(--text-2); }
.credits h4 { margin: 18px 0 4px; color: var(--text); font-size: 13px; font-weight: 500; }
.credits ul { margin: 0; padding: 0; list-style: none; } .credits li { margin-bottom: 6px; }
.credits li a { margin-left: 8px; color: var(--text-2); text-underline-offset: 2px; }
.credits .warn { color: var(--text); }
/* the logo sits in the middle of the footer: as much room under it as over it */
.foot { display: flex; justify-content: center; align-items: center; margin-top: 100px; padding: 56px 16px calc(56px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hair); font-size: 13px; }

.panel .band { margin: -4px 0 10px; }

/* ── contents ─────────────────────────────────────────────────────────────── */
.toc { display: none; }
@media (min-width: 1400px) {
  .toc { display: flex; flex-direction: column; position: fixed; left: 22px; top: 50%; z-index: 20; width: 146px; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity 300ms; }
  .toc.show { opacity: 1; pointer-events: auto; }
  .dock { display: none; }
}
.toc a { padding: 7px 0 7px 12px; border-left: 1px solid var(--hair-2); color: var(--text-3); font-size: 12.5px; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--text-2); }
.toc a.on { border-left-color: var(--text); color: var(--text); }
.dock { position: fixed; left: 50%; bottom: 16px; z-index: 25; transform: translate(-50%, 160%); visibility: hidden; transition: transform 380ms var(--spring), visibility 380ms; }
.dock.show { transform: translate(-50%, 0); visibility: visible; }
.dock-now { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px 0 14px; border: 0; border-radius: 999px; background: rgba(19,20,22,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 10px 30px rgba(0,0,0,.55); color: #e8e9ea; font-size: 13.5px; white-space: nowrap; cursor: pointer; }
.dock-now small { color: #8b9096; font-size: 12px; }
.dock-list { position: absolute; bottom: 50px; left: 50%; width: 260px; padding: 6px; border-radius: 16px; background: rgba(19,20,22,.96); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 18px 40px rgba(0,0,0,.65); transform: translateX(-50%) translateY(8px); opacity: 0; pointer-events: none; transition: opacity 200ms, transform 300ms var(--spring); }
.dock.open .dock-list { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
.dock-list a { display: flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px; color: #9b9fa5; font-size: 14px; text-decoration: none; }
.dock-list a.on { background: rgba(255,255,255,.13); color: #e8e9ea; }

/* ── phone ────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  body { font-size: 17px; line-height: 1.7; }
  .bar { padding: 0 14px; } .bar-tools { gap: 8px; } .notes-btn { display: none; }
  .lang-seg button { padding: 0 11px; }
  .hero { padding: 54px 16px 40px; }
  .hero-map { width: min(100%, max(270px, calc((100svh - 512px) * 1.076))); }
  .dek { margin-top: 12px; font-size: 15px; line-height: 1.55; }
  .hero-note { text-align: left; }
  .hero-note { margin: 2px 0 12px; font-size: 12px; line-height: 1.45; }
  h1 { font-size: 26px; }
  .lead { margin-top: 48px; font-size: 18px; }
  h2.chapter { margin-top: 100px; }
  .panel { padding: 12px; border-radius: 16px; }
  .tiles { grid-template-columns: 1fr; gap: 8px; }
  .tile { min-height: 52px; }
  .fig-tools { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ── the half-year gallery ────────────────────────────────────────────────── */
.gallery-panel.loading { min-height: 560px; }
.gal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.gal-when { display: block; color: var(--text); font-size: 18px; font-weight: 500; line-height: 1.35; }
.gal-words { margin: 2px 0 0; color: var(--read); font-size: 14.5px; line-height: 1.45; min-height: 2.9em; }
.gal-range { display: block; font-size: 12.5px; }
.gal-play { flex: none; font-size: 13px; }
.gal-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 20px; align-items: start; }
.gal-stage { min-width: 0; touch-action: pan-y; }
.gal-map { width: 100%; max-width: 640px; margin: 0 auto; }
.gal-legend { max-width: 560px; margin: 10px auto 0; }
.gal-bar { height: 6px; border-radius: 3px; }
.gal-ticks { position: relative; height: 18px; font-size: 11px; color: var(--text-2); }
.gal-ticks span { position: absolute; top: 3px; transform: translateX(-50%); white-space: nowrap; }
.gal-ticks .gal-unit { left: auto; right: 0; transform: none; color: var(--text-3); }
.gal-dates { display: flex; flex-direction: column; gap: 3px; }
.gal-date { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 48px;
  padding: 6px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--text-2); text-align: left;
  font: 13px/1.4 var(--sans); cursor: pointer; transition: background 200ms var(--ease), color 200ms; }
.gal-date:hover { background: var(--track); }
.gal-date[aria-pressed="true"] { background: var(--on); color: var(--text); }
.gal-day { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.gal-date[aria-pressed="true"] .gal-day { color: var(--text); }
@media (min-width: 861px) { .gal-words { display: none; } }     /* beside the map the selected date already says it */
@media (max-width: 860px) {
  .gal-body { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .gal-dates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .gal-date { grid-template-columns: 1fr; justify-items: center; min-height: 38px; padding: 4px 2px; background: var(--track); }
  .gal-line { display: none; }
}
@media (prefers-reduced-motion: reduce) { .gallery .map-layer { transition: none; } }
