/* Hallmark · shape: Workbench (manual pick) · genre: editorial · theme: Almanac (deal 1/3, seed academic-webgis-research-relationship-8a4d·33e6b72b·2026-11-21·r0) · job: try · draw: manual, the draw script could not read the CRLF theme file
 * hero: Stage · nav: edge-aligned, wordmark and five section links over a firm rule · footer: colophon block with the data sources · imagery: the product, QGIS rasters and the live map · signature: the lag table on the printed sheet, lag 5 set in magenta
 * axes: mid/grotesk-sans/chromatic-magenta · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V4 · weakest: H, the map panel carries many controls; grouped by hairlines, month and lag controls stay hidden until their layer is picked */
/* Hallmark · dismissed 58 · page words come from the map panel control labels, the method, discussion, two data tables and four references a student needs to write the IMRaD article from this page */
/* Hallmark · answered F4 · the second hero action is the hairline outline on transparent paper, only the magenta one is filled */
/* Hallmark · dismissed F20 · the area select, the lag buttons and the r readout share one row at 1440, bottom-aligned, so their tops differ */
/* Hallmark · answered F25 · the month table pins its first column, the twelve months scroll beside it on a phone */
@import url("./tokens.css");
@import url("./base.css");

/* Data colours: the QGIS symbology of FINAL.qgs, kept exact so the web matches the printed maps */
:root {
  --ramp-hujan-1: #f7fbff; --ramp-hujan-2: #deebf7; --ramp-hujan-3: #c6dbef; --ramp-hujan-4: #9ecae1; --ramp-hujan-5: #6baed6;
  --ramp-hujan-6: #4292c6; --ramp-hujan-7: #2171b5; --ramp-hujan-8: #08519c; --ramp-hujan-9: #08306b;
  --ramp-ndvi-1: #d7191c; --ramp-ndvi-2: #fdae61; --ramp-ndvi-3: #ffffc0; --ramp-ndvi-4: #a6d96a; --ramp-ndvi-5: #1a9641;
  --rc-1: #ca0020; --rc-2: #e66e61; --rc-3: #f5c1a9; --rc-4: #f7f7f7; --rc-5: #b4d6e7; --rc-6: #63a9cf; --rc-7: #0571b0;
  --map-line: var(--color-ink);
  --series-hujan: var(--color-muted);
  --series-ndvi: var(--color-accent);
  --nav-h: 64px;
  --halo: oklch(97% 0.006 245);
}

/* ---------- page chrome ---------- */
body { color: var(--color-ink-2); }
h1, h2, h3 { color: var(--color-ink); }
a { color: var(--color-ink); text-decoration-color: var(--color-accent); text-underline-offset: 0.15em; transition: text-decoration-thickness var(--dur-micro) var(--ease-out); }
a:hover { text-decoration-thickness: 2px; }
.num { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

.site-nav { border-bottom: var(--rule-bar) solid var(--color-ink); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--nav-h); }
.wordmark { font: 600 var(--text-lg)/1 var(--font-display); letter-spacing: -0.01em; color: var(--color-ink); text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; font: 500 var(--text-sm)/1 var(--font-display); color: var(--color-ink-2); text-decoration: none; white-space: nowrap; }
.nav-links a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-display); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-paper-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }

/* ---------- hero ---------- */
.hero { min-height: calc(100dvh - var(--nav-h)); display: grid; align-items: center; padding-block: var(--space-xl) var(--space-2xl); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.hero-text { align-self: end; }
.hero h1 { font-size: clamp(2.5rem, 3.6vw + 1rem, 4.25rem); letter-spacing: -0.035em; line-height: 0.98; max-width: 14ch; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }

.sheet { margin: 0; background: var(--color-sheet); border-top: var(--rule-bar) solid var(--color-ink); padding: var(--space-lg) var(--space-xl) var(--space-lg); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding-bottom: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.sheet-title { font: 600 var(--text-xl)/1.1 var(--font-display); color: var(--color-ink); letter-spacing: -0.01em; }
.sheet-date { font-size: var(--text-sm); color: var(--color-muted); }
.sheet figcaption { margin-top: var(--space-md); font-size: var(--text-sm); font-style: italic; color: var(--color-muted); max-width: 60ch; }

table { width: 100%; border-collapse: collapse; }
th { font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); text-align: left; white-space: nowrap; }
thead th { padding: var(--space-sm) var(--space-sm) var(--space-xs); border-bottom: var(--rule-bar) solid var(--color-rule-2); vertical-align: bottom; }
td, tbody th { padding: var(--space-xs) var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
th.num, td.num { text-align: right; }
th.num { font-family: var(--font-body); }
td.num { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-ink-2); white-space: nowrap; }
tbody th { font: 400 var(--text-md)/1.3 var(--font-body); color: var(--color-ink); }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }

.lag-table tbody th { font-family: var(--font-outlier); font-size: var(--text-sm); }
.lag-table tr.sig td.num, .lag-table tr.sig th { font-weight: 500; color: var(--color-ink); }
.lag-table tr.peak td.num, .lag-table tr.peak th { color: var(--color-accent); }
.lag-table td, .lag-table tbody th { padding-block: var(--space-md); }
.bar-col { width: 42%; }
.bar-scale { display: flex; justify-content: space-between; font-family: var(--font-outlier); font-size: var(--text-xs); }
.rbar { position: relative; display: block; height: var(--space-xs); }
.rbar::before { content: ""; position: absolute; left: 50%; top: calc(-1 * var(--space-2xs)); bottom: calc(-1 * var(--space-2xs)); width: var(--rule-hair); background: var(--color-rule-2); }
.rbar i { position: absolute; top: 0; bottom: 0; width: calc(var(--w) * 50%); background: var(--color-muted); }
.rbar.pos i { left: 50%; }
.rbar.neg i { right: 50%; }
.sig .rbar i { background: var(--color-ink-2); }
.peak .rbar i { background: var(--color-accent); }

/* ---------- sections ---------- */
.sec { padding-block: var(--section-gap-s); }
.sec-method { padding-block: var(--section-gap); background: var(--color-paper-2); }
.sec-chart { padding-block: var(--section-gap) var(--section-gap-s); }
.sec-discuss { padding-block: var(--section-gap-l) var(--section-gap); }
.head { margin-bottom: var(--space-2xl); }
.head .lead { margin-top: var(--space-md); color: var(--color-ink-2); }
.head--split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; }
.head--split h2 { grid-column: 1 / 8; }
.head--split .lead { grid-column: 8 / 13; margin-top: 0; }

/* ---------- map ---------- */
.map-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap-columns); align-items: stretch; }
.map-wrap { position: relative; border-top: var(--rule-bar) solid var(--color-ink); }
.map { height: 760px; background: var(--color-paper-2); }
.map-fallback { width: 100%; max-width: 720px; }
.note { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.map-panel { display: flex; flex-direction: column; gap: var(--space-md); height: 762px; overflow-y: auto; padding: var(--space-lg); background: var(--color-sheet); border-top: var(--rule-bar) solid var(--color-ink); }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend, .ctl label, .ctl-row label { padding: 0; margin-bottom: var(--space-xs); font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); }
.layers .opt { display: flex; gap: var(--space-sm); align-items: flex-start; padding: var(--space-xs) 0; border-top: var(--rule-hair) solid var(--color-rule); cursor: pointer; min-height: 44px; }
.layers .opt:first-of-type { border-top: 0; }
.layers .opt span { display: grid; font: 500 var(--text-md)/1.25 var(--font-display); color: var(--color-ink); }
.layers .opt small { font: 400 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); }
.layers input, .check input { accent-color: var(--color-accent); width: 18px; height: 18px; margin: var(--space-3xs) 0 0; flex-shrink: 0; }
.layers .opt:hover span { color: var(--color-accent-2); }
input[type="radio"]:focus-visible, input[type="checkbox"]:focus-visible, input[type="range"]:focus-visible, select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.ctl-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); }
.ctl-row output { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-ink); }
input[type="range"] { width: 100%; min-height: 32px; accent-color: var(--color-accent); cursor: pointer; }
input[type="range"]:disabled { opacity: 0.55; cursor: not-allowed; }
.month-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-xs); align-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.icon-btn:hover { background: var(--color-paper-2); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.icon-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.seg { display: flex; flex-wrap: wrap; align-items: center; }
.seg legend { width: 100%; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--space-sm); margin-left: calc(-1 * var(--rule-hair)); border: var(--rule-hair) solid var(--color-muted); font: 500 var(--text-sm)/1 var(--font-outlier); color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.seg label:first-of-type { margin-left: 0; }
.seg label:hover { background: var(--color-paper-2); }
.seg input:checked + label { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.seg input:focus-visible + label { outline: 2px solid var(--color-focus); outline-offset: 2px; position: relative; z-index: var(--z-raised); }
.seg input:disabled + label { opacity: 0.55; cursor: not-allowed; }
.seg--small label { font-family: var(--font-display); }

.ctl-inline { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-md); }
.check { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; font-size: var(--text-sm); color: var(--color-ink); cursor: pointer; }
.check input { margin: 0; }

.legend { padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
.legend-title { font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); margin-bottom: var(--space-xs); }
.legend-ramp { height: var(--space-sm); outline: var(--rule-hair) solid var(--color-rule); }
.legend-scale { display: flex; justify-content: space-between; margin-top: var(--space-2xs); font: 400 var(--text-xs)/1.3 var(--font-outlier); color: var(--color-ink-2); }
.legend-classes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.legend-classes span { height: var(--space-sm); outline: var(--rule-hair) solid var(--color-rule); }

.detail { padding-top: var(--space-md); border-top: var(--rule-bar) solid var(--color-rule-2); }
.detail-empty { font-size: var(--text-sm); color: var(--color-muted); font-style: italic; }
.detail h3 { font-size: var(--text-xl); }
.detail dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: var(--space-sm) 0 0; font-size: var(--text-sm); }
.detail dt, .detail dd { margin: 0; padding: var(--space-2xs) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.detail dt { color: var(--color-muted); }
.detail dd { font-family: var(--font-outlier); text-align: right; color: var(--color-ink); }
.spark { margin-top: var(--space-sm); }
.spark svg { width: 100%; height: 56px; }
.spark path { fill: none; stroke: var(--series-ndvi); stroke-width: 1.5; }
.spark p { font-size: var(--text-xs); color: var(--color-muted); }
.detail .btn { margin-top: var(--space-md); min-height: 44px; width: 100%; }

/* Leaflet, dressed in the theme */
.leaflet-container { background: var(--color-paper-2); font-family: var(--font-body); }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--color-sheet); color: var(--color-ink); border-bottom-color: var(--color-rule); }
.leaflet-bar a:hover { background: var(--color-paper-2); }
.leaflet-bar a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; }
.leaflet-bar { border-radius: var(--radius-pill); border-color: var(--color-muted); }
.leaflet-touch .leaflet-bar a, .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: var(--text-xl); }
.leaflet-control-attribution { font-size: var(--text-xs); background: color-mix(in oklab, var(--color-sheet) 85%, transparent); color: var(--color-ink-2); }
.leaflet-control-attribution a { color: var(--color-ink); }
.leaflet-tooltip.kec-label { background: transparent; border: 0; box-shadow: none; padding: 0; color: var(--color-ink); font: 600 var(--text-xs)/1.1 var(--font-display); text-shadow: 0 0 2px var(--halo), 0 0 4px var(--halo), 0 0 6px var(--halo); white-space: nowrap; }
.leaflet-tooltip.kec-label::before { display: none; }
.leaflet-tooltip.kec-tip { background: var(--color-sheet); color: var(--color-ink); border: var(--rule-hair) solid var(--color-rule-2); border-radius: 0; box-shadow: none; padding: var(--space-xs) var(--space-sm); font: 400 var(--text-sm)/1.35 var(--font-body); }
.leaflet-tooltip.kec-tip b { font: 600 var(--text-sm)/1.3 var(--font-display); display: block; }
.leaflet-tooltip.kec-tip .num { font-size: var(--text-sm); }
.raster-pixel { image-rendering: pixelated; }
.leaflet-interactive:focus-visible { outline: 2px solid var(--color-focus); }

/* ---------- method steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: var(--space-sm); padding-top: var(--space-md); border-top: var(--rule-bar) solid var(--color-rule-2); }
.steps li::before { content: counter(step); font: 500 var(--text-lg)/1 var(--font-outlier); color: var(--color-muted); }
.step-visual { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: var(--space-xs); background: var(--color-sheet); padding: var(--space-md); }
.step-visual img { width: 100%; height: 100%; object-fit: contain; }
.step-visual--line { color: var(--color-ink); }
.step-visual--pixel img { image-rendering: pixelated; }
.step-visual--figure p { display: grid; gap: var(--space-xs); justify-items: center; text-align: center; }
.big-fig { font: 500 var(--text-display-s)/1 var(--font-outlier); letter-spacing: -0.04em; color: var(--color-accent); }
.fig-label { font-size: var(--text-sm); color: var(--color-muted); }
.steps p { font-size: var(--text-md); }

/* ---------- time-series chart ---------- */
.chart-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-lg) var(--space-xl); margin-bottom: var(--space-lg); }
.ctl--area { display: grid; }
select { min-height: 44px; min-width: 16rem; padding: 0 var(--space-xl) 0 var(--space-sm); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-sheet); color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-display); cursor: pointer; }
select:hover { border-color: var(--color-ink); }
select:disabled { opacity: 0.55; cursor: not-allowed; }
.readout { display: flex; gap: var(--space-xl); margin: 0 0 0 auto; }
.readout div { display: grid; gap: var(--space-2xs); }
.readout dt { font-size: var(--text-sm); color: var(--color-muted); }
.readout dd { margin: 0; font: 500 var(--text-2xl)/1 var(--font-outlier); color: var(--color-ink); }

.chart-fig { position: relative; margin: 0; background: var(--color-sheet); border-top: var(--rule-bar) solid var(--color-ink); padding: var(--space-lg) var(--space-lg) var(--space-md); }
.chart { height: 440px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: var(--color-rule); stroke-width: 1; }
.chart .grid line.zero { stroke: var(--color-rule-2); }
.chart .axis text { font: 400 12px var(--font-outlier); fill: var(--color-muted); }
.chart .year-line { stroke: var(--color-rule); }
.chart .s-hujan { fill: none; stroke: var(--series-hujan); stroke-width: 1.5; }
.chart .s-ndvi { fill: none; stroke: var(--series-ndvi); stroke-width: 2.25; }
.chart .dot-hujan { fill: var(--series-hujan); }
.chart .dot-ndvi { fill: var(--series-ndvi); }
.chart .note-text { font: 500 12px var(--font-outlier); fill: var(--color-ink-2); }
.chart .note-line { stroke: var(--color-ink-2); stroke-width: 1; }
.chart .hover-line { stroke: var(--color-ink); stroke-width: 1; }
.chart-tip { position: absolute; z-index: var(--z-tooltip); pointer-events: none; min-width: 13rem; padding: var(--space-xs) var(--space-sm); background: var(--color-ink); color: var(--color-paper); font-size: var(--text-sm); line-height: 1.4; }
.chart-tip b { display: block; font: 600 var(--text-sm)/1.3 var(--font-display); }
.chart-tip .num { color: var(--color-sheet); }
.chart-key { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); margin-top: var(--space-md); padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-ink-2); }
.key { display: inline-block; }
.key::before { content: ""; display: inline-block; vertical-align: middle; width: var(--space-lg); height: 0; margin-right: var(--space-xs); border-top: 2px solid var(--series-hujan); }
.key--ndvi::before { border-top-width: 3px; border-top-color: var(--series-ndvi); }
.key-note { color: var(--color-muted); margin-left: auto; }

.table-scroll { overflow-x: auto; margin-top: var(--space-2xl); }
.table-scroll:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
caption { caption-side: top; text-align: left; padding-bottom: var(--space-xs); font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); }
.clim { min-width: 52rem; }
.clim td.max { font-weight: 500; color: var(--color-ink); box-shadow: inset 0 var(--rule-bar) 0 var(--color-accent); }

/* ---------- per-kecamatan table ---------- */
.sec-table .table-scroll { margin-top: 0; }
.table-scroll tbody th, .table-scroll thead th:first-child { position: sticky; left: 0; z-index: var(--z-raised); background: var(--color-paper); }
.kec { min-width: 48rem; }
.kec td, .kec tbody th { padding-block: var(--space-sm); }
.kec td.rc { background: color-mix(in oklab, var(--c, var(--rc-4)) 55%, var(--color-paper)); border-left: var(--rule-hair) solid var(--color-paper); padding-right: var(--space-sm); }
.kec td.rc:last-child { padding-right: var(--space-sm); }
.kec td.rc-1 { --c: var(--rc-1); } .kec td.rc-2 { --c: var(--rc-2); } .kec td.rc-3 { --c: var(--rc-3); } .kec td.rc-4 { --c: var(--rc-4); }
.kec td.rc-5 { --c: var(--rc-5); } .kec td.rc-6 { --c: var(--rc-6); } .kec td.rc-7 { --c: var(--rc-7); }
.kec td.sig { font-weight: 500; color: var(--color-ink); }
.kec tbody tr:hover th, .kec tbody tr:hover td:not(.rc) { background: var(--color-paper-2); }
.table-note { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- discussion ---------- */
.discuss-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.discuss-grid .head { grid-column: 1 / 5; }
.rows { grid-column: 5 / 13; margin: 0; }
.row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: var(--gap-columns); padding: var(--space-lg) 0; border-top: var(--rule-hair) solid var(--color-rule); }
.row:first-child { border-top: var(--rule-bar) solid var(--color-rule-2); }
.row dt { font: 600 var(--text-title)/1.2 var(--font-display); letter-spacing: -0.01em; color: var(--color-ink); }
.row dd { margin: 0; max-width: 52ch; }

/* ---------- data band ---------- */
.band-ink { padding-block: var(--section-gap-s); background: var(--color-ink); color: var(--color-paper); }
.band-ink h2 { color: var(--color-sheet); }
.data-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: end; }
.csv { margin: var(--space-xl) 0 0; padding: var(--space-lg) 0; border-top: var(--rule-hair) solid var(--color-muted); border-bottom: var(--rule-hair) solid var(--color-muted); overflow-x: auto; font: 400 var(--text-sm)/1.75 var(--font-outlier); color: var(--color-sheet); }
.csv-head { background: var(--color-accent); color: var(--color-accent-ink); padding: var(--space-3xs) var(--space-2xs); }
.band-ink .caption { margin-top: var(--space-sm); font-size: var(--text-sm); font-style: italic; color: var(--color-paper-3); }
.downloads { margin: 0; padding: 0; list-style: none; border-top: var(--rule-bar) solid var(--color-sheet); }
.downloads li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-md); padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-muted); }
.downloads a { font: 500 var(--text-md)/1.3 var(--font-outlier); color: var(--color-sheet); overflow-wrap: anywhere; }
.downloads a:focus-visible { outline-color: var(--color-sheet); }
.downloads span { font-size: var(--text-sm); color: var(--color-paper-3); }
.downloads span.num { grid-column: 2; grid-row: 1; align-self: baseline; color: var(--color-paper-2); }

/* ---------- footer ---------- */
.site-foot { padding-block: var(--space-3xl) var(--space-2xl); border-top: var(--rule-bar) solid var(--color-ink); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); }
.foot-name { font: 600 var(--text-xl)/1.3 var(--font-display); color: var(--color-ink); letter-spacing: -0.01em; margin-bottom: var(--space-md); max-width: 30ch; }
.foot-title p:not(.foot-name) { font-size: var(--text-sm); }
.foot-label { font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-muted); margin-bottom: var(--space-xs); }
.refs { margin: 0; padding-left: var(--space-lg); font-size: var(--text-sm); display: grid; gap: var(--space-xs); }
.refs li { max-width: 75ch; overflow-wrap: break-word; }
.fill { padding: 0 0.25em; border: 1px dashed color-mix(in oklch, var(--color-muted) 70%, transparent); border-radius: 3px; color: var(--color-muted); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- responsive ---------- */
@media (max-width: 75rem) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-2xl); }
}
@media (max-width: 60rem) {
  .nav-inner { flex-direction: column; align-items: flex-start; gap: 0; padding-top: var(--space-sm); }
  .site-nav nav { width: 100%; overflow-x: auto; }
  .hero { min-height: 0; padding-block: var(--space-2xl); }
  .hero-grid, .map-grid, .data-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .head--split h2, .head--split .lead { grid-column: 1 / -1; }
  .head--split .lead { margin-top: var(--space-md); }
  .map { height: 520px; }
  .map-panel { height: auto; overflow: visible; }
  .discuss-grid .head, .rows { grid-column: 1 / -1; }
  .readout { margin-left: 0; }
  .key-note { margin-left: 0; }
}
@media (max-width: 40rem) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .sheet { padding-inline: var(--space-md); }
  .bar-col { width: 30%; }
  .row { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xs); }
  .chart { height: 340px; }
  .chart-fig { padding-inline: var(--space-sm); }
  select { min-width: 0; width: 100%; }
  .ctl--area { width: 100%; }
  .map { height: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .icon-btn, .seg label, a { transition: none; }
}
