:root {
  --ink: #152b30;
  --muted: #5d6d70;
  --teal-950: #0d3036;
  --teal-900: #163f46;
  --teal-700: #2f6970;
  --teal-100: #dcebec;
  --cream: #f4f1e9;
  --paper: #fbfaf6;
  --white: #fff;
  --line: #d6dcd9;
  --amber: #a66613;
  --amber-bg: #fff2d9;
  --danger: #9f352d;
  --danger-bg: #fae6e2;
  --green: #2f6b4f;
  --green-bg: #e3f0e8;
  --shadow: 0 10px 28px rgba(17, 50, 55, .08);
  --radius: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--teal-950); }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f2bd5d; outline-offset: 3px; border-radius: 4px; }
.skip-link { position: fixed; z-index: 10000; top: 12px; left: 12px; padding: .75rem 1rem; background: var(--white); color: var(--teal-950); transform: translateY(-160%); box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { color: var(--white); background: var(--teal-950); border-top: 5px solid #d59b3d; }
.site-header::after { content: ""; display: block; height: 12px; opacity: .28; background: repeating-linear-gradient(120deg, transparent 0 10px, #79a5a6 10px 11px); }
.header-inner { position: relative; width: min(var(--max), calc(100% - 40px)); margin: auto; padding: 64px 0 44px; }
.cecopi-report { position: absolute; top: 26px; right: 0; display: grid; width: min(290px, 34vw); padding: 12px 15px; color: #fff8e9; text-decoration: none; background: rgba(255,255,255,.1); border: 1px solid rgba(244,211,154,.4); border-left: 4px solid #e1a94c; border-radius: 9px; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.cecopi-report[hidden] { display: none; }
.cecopi-report:hover { color: #fff; background: rgba(255,255,255,.16); }
.cecopi-report span { font-size: .68rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.cecopi-report strong { margin-top: 2px; font-size: .9rem; }
.cecopi-report small { color: #c9dddd; font-size: .72rem; }
.eyebrow, .section-kicker { margin: 0 0 .55rem; font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { color: #c0d8d8; }
.signal-dot { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; background: #dc794e; box-shadow: 0 0 0 4px rgba(220,121,78,.15); }
h1 { max-width: 780px; margin: 0; font-family: Georgia, Cambria, serif; font-size: clamp(2.3rem, 5.5vw, 4.8rem); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
.lede { max-width: 710px; margin: 1.4rem 0 0; color: #d8e7e7; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.official-warning { display: flex; gap: 16px; align-items: baseline; max-width: 940px; margin-top: 30px; padding: 17px 20px; color: #f8e7c8; background: rgba(1, 16, 20, .34); border: 1px solid rgba(244, 211, 154, .28); border-left: 4px solid #e1a94c; border-radius: 8px; }
.official-warning strong { flex: 0 0 auto; color: #fff3dc; }
.update-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 34px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.14); }
.update-strip > div { display: grid; gap: 2px; padding: 16px 20px; background: rgba(255,255,255,.055); }
.update-label { color: #b7d0d1; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.update-strip time { font-weight: 750; }
.update-strip small { color: #9fb9bb; }

.section-nav { position: sticky; z-index: 900; top: 0; overflow: auto; scrollbar-width: none; background: rgba(251,250,246,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.section-nav::-webkit-scrollbar { display: none; }
.nav-inner { display: flex; width: min(var(--max), calc(100% - 32px)); min-width: max-content; margin: auto; }
.section-nav a { padding: 15px 16px; color: #395458; font-size: .82rem; font-weight: 750; text-decoration: none; border-bottom: 3px solid transparent; }
.section-nav a:hover { color: var(--teal-950); border-color: #c79038; }

main { overflow: hidden; }
.section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 74px 0; scroll-margin-top: 58px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.section-kicker { color: var(--teal-700); }
h2, h3 { margin: 0; color: var(--teal-950); line-height: 1.13; }
h2 { font-family: Georgia, Cambria, serif; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -.02em; }
h3 { font-size: 1.18rem; }
.section-intro { max-width: 430px; margin: 0; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; justify-content: end; gap: 7px; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; font-size: .66rem; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.badge.official { color: var(--green); background: var(--green-bg); }
.badge.provisional { color: #80520e; background: var(--amber-bg); }
.badge.stale { color: #60696a; background: #e9ecea; }
.badge.manual { color: #365d63; background: var(--teal-100); }

.status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card { display: flex; min-width: 0; min-height: 250px; padding: 22px; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--teal-700); border-radius: var(--radius); box-shadow: var(--shadow); }
.metric-card.danger { border-top-color: var(--danger); }
.metric-card.weather-card { grid-column: 1 / -1; min-height: 210px; }
.metric-label { display: block; min-height: 38px; color: var(--muted); font-size: .77rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.metric-value { display: block; margin: 18px 0 14px; color: var(--teal-950); font-family: Georgia, Cambria, serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.02; }
.metric-value.active { color: var(--danger); text-transform: uppercase; }
.metric-value.unavailable { max-width: 230px; color: #687476; font-family: inherit; font-size: 1.05rem; font-weight: 750; line-height: 1.25; }
.perimeter-history { display: grid; gap: 3px; margin: 3px 0 14px; color: var(--muted); font-size: .76rem; }
.perimeter-history > span { font-size: .65rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.metric-source { width: 100%; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.metric-source a { display: inline-block; max-width: 100%; font-weight: 750; line-height: 1.35; }
.metric-source time { display: block; }
.weather-brief { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin: 16px 0 22px; }
.weather-brief span { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.weather-brief strong { display: block; margin-top: 2px; color: var(--teal-950); font-size: 1.15rem; }
.evacuation-brief { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 14px 0 22px; }
.evacuation-brief > div { min-width: 0; padding: 10px 0; }
.evacuation-brief > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.evacuation-brief strong { margin-top: 5px; font-family: Georgia, Cambria, serif; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1; }
.data-rule { display: flex; gap: 11px; align-items: center; margin: 20px 0 0; color: var(--muted); font-size: .88rem; }
.data-rule > span { display: grid; flex: 0 0 auto; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: var(--teal-900); background: var(--teal-100); font-weight: 800; }

.map-section { width: 100%; max-width: none; padding-right: max(20px, calc((100% - var(--max))/2)); padding-left: max(20px, calc((100% - var(--max))/2)); background: #e9efec; }
.map-shell { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); overflow: hidden; border: 1px solid #bdcbc8; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
#map { width: 100%; min-width: 0; height: clamp(520px, 68vh, 680px); background: #dfe8e4; }
.map-actions { display: grid; justify-items: end; gap: 6px; }
.map-actions .section-intro { font-size: .82rem; }
.map-summary { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; color: var(--ink); background: var(--line); border-bottom: 1px solid var(--line); }
.map-summary > div { min-width: 0; padding: 11px 13px; background: rgba(255,255,255,.98); }
.map-summary span { display: block; color: var(--muted); font-size: .59rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.map-summary strong { display: block; overflow: hidden; margin-top: 1px; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.map-status { padding: 9px 13px; color: #29474c; background: #f8faf9; border-top: 1px solid var(--line); font-size: .78rem; }
.map-layer-key { display: flex; flex-wrap: wrap; gap: 9px 20px; align-items: center; margin-top: 13px; color: #425d61; font-size: .77rem; font-weight: 700; }
.map-layer-key span { display: inline-flex; gap: 7px; align-items: center; }
.map-key-line { display: inline-block; width: 31px; height: 0; border-top: 3px solid var(--danger); }
.map-key-line.approximate { border-top-color: #d97706; border-top-style: dashed; }
.map-key-line.road-closure { border-top-width: 6px; border-top-color: #7a1f5d; border-radius: 999px; }
.map-key-dot { display: inline-block; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: #e34a33; box-shadow: 0 0 0 1px #9f352d; }
.map-key-marker { display: inline-grid; width: 20px; height: 20px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--teal-700); box-shadow: 0 1px 5px rgba(0,0,0,.25); font-size: 10px; font-style: normal; font-weight: 900; line-height: 1; }
.map-key-marker.evacuated { background: var(--danger); }
.map-key-marker.road { border-radius: 4px; background: #463f3a; }
.map-key-marker.station { background: #376d8c; font-size: 15px; }
.map-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 14px; color: var(--muted); font-size: .83rem; }
.map-notes p { margin: 0; }
.perimeter-history-link { font-weight: 750; }
.leaflet-control-layers { font: 13px/1.4 inherit; border: 0 !important; border-radius: 8px !important; box-shadow: 0 4px 16px rgba(0,0,0,.18) !important; }
.leaflet-control-layers-toggle { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23163f46' d='M16 3 2 10l14 7 14-7-14-7Zm-10 8.8L16 17l10-5.2v3.4L16 21 6 15.2v-3.4Zm0 7L16 24l10-5.2v3.4L16 28 6 22.2v-3.4Z'/%3E%3C/svg%3E") !important; background-size: 25px 25px !important; }
.map-marker { display: grid; width: 30px; height: 30px; place-items: center; border: 3px solid white; border-radius: 50%; color: white; background: var(--teal-700); box-shadow: 0 3px 9px rgba(0,0,0,.3); font-size: 13px; font-weight: 900; }
.map-marker.evacuated { background: var(--danger); }
.map-marker.road { border-radius: 6px; background: #463f3a; }
.leaflet-interactive:focus { outline: 3px solid rgba(122,31,93,.35); outline-offset: 2px; }
.map-marker.station { background: #376d8c; }
.leaflet-popup-content small { color: #536b6f; }
.leaflet-popup-content a { color: #0e6670; font-weight: 700; }

.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 17px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: #506164; background: #f0f3f0; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.empty-cell, .empty-state { padding: 34px 20px; color: var(--muted); text-align: center; }
.status-pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #5f6667; background: #ecefed; font-size: .76rem; font-weight: 800; }
.status-pill.evacuada, .status-pill.cortada { color: var(--danger); background: var(--danger-bg); }
.status-pill.confinada, .status-pill.restringida { color: #80520e; background: var(--amber-bg); }
.status-pill.retorno-autorizado, .status-pill.abierta { color: var(--green); background: var(--green-bg); }
.text-link { flex: 0 0 auto; font-weight: 750; text-decoration: none; }
.road-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.road-card { padding: 22px; background: var(--white); border: 1px solid var(--line); border-left: 5px solid #5b6766; border-radius: 12px; box-shadow: var(--shadow); }
.road-card.cortada { border-left-color: var(--danger); }
.road-name { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.road-name strong { font-family: Georgia, Cambria, serif; font-size: 1.6rem; }
.road-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; }
.road-card dt { color: var(--muted); font-size: .78rem; }
.road-card dd { margin: 0; font-weight: 650; }

.weather-section { border-bottom: 0; }
.weather-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel, .rain-panel { padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-heading { display: flex; gap: 14px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.panel-heading .section-kicker { margin: 0 0 2px; }
.panel-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--teal-900); background: var(--teal-100); font-weight: 900; }
.weather-data { display: grid; grid-template-columns: repeat(2, 1fr); }
.weather-item { padding: 17px 8px; border-bottom: 1px solid var(--line); }
.weather-item:nth-child(odd) { padding-left: 0; }
.weather-item span { display: block; color: var(--muted); font-size: .73rem; }
.weather-item strong { display: block; margin-top: 3px; color: var(--teal-950); font-size: 1.15rem; }
.weather-item small { display: block; min-height: 1.2em; margin-top: 2px; color: var(--muted); font-size: .68rem; }
.weather-data-detailed .weather-item:last-child { grid-column: 1 / -1; }
.hourly-strip { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.hourly-title { margin: 0 0 10px; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hourly-list { display: grid; grid-template-columns: repeat(6, minmax(82px, 1fr)); overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; }
.hourly-item { min-width: 82px; padding: 10px; background: #f6f7f4; }
.hourly-item + .hourly-item { border-left: 1px solid var(--line); }
.hourly-item time, .hourly-item strong, .hourly-item span, .hourly-item small { display: block; }
.hourly-item time { color: var(--teal-700); font-size: .69rem; font-weight: 800; }
.hourly-item strong { margin: 2px 0; color: var(--teal-950); }
.hourly-item span, .hourly-item small { color: var(--muted); font-size: .63rem; white-space: nowrap; }
.observation-context { display: grid; gap: 2px; margin-top: 18px; padding: 13px 15px; color: var(--muted); background: #f1f5f3; border-radius: 9px; font-size: .76rem; }
.observation-context strong { color: var(--teal-950); font-size: .88rem; }
.observation-context small { margin-top: 3px; }
.source-line { min-height: 42px; padding-top: 16px; color: var(--muted); font-size: .77rem; }
.weather-warning { display: flex; gap: 20px; align-items: center; margin: 14px 0; padding: 20px 24px; color: #65450d; background: var(--amber-bg); border: 1px solid #ebd2a3; border-radius: 12px; }
.weather-warning strong { flex: 0 0 auto; text-transform: uppercase; letter-spacing: .05em; }
.weather-warning p { margin: 0; }
.rain-panel { margin-top: 14px; }
.rain-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rain-records { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.rain-record { display: grid; grid-template-columns: 150px 1fr 110px 1.5fr; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rain-record span { color: var(--muted); font-size: .8rem; }
.rain-record strong { display: block; color: var(--ink); }
.fine-print { margin: 16px 0 0; color: var(--muted); font-size: .8rem; }

.chart-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 3px 3px 12px; }
.chart-tabs button { min-height: 44px; padding: 10px 17px; color: var(--teal-900); background: transparent; border: 1px solid #9eb4b3; border-radius: 999px; font: inherit; font-size: .85rem; font-weight: 750; cursor: pointer; }
.chart-tabs button[aria-selected="true"] { color: white; background: var(--teal-900); border-color: var(--teal-900); }
.chart-panel { min-height: 350px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chart { width: 100%; min-height: 300px; }
.chart svg { display: block; width: 100%; height: auto; min-height: 300px; overflow: visible; }
.chart-empty { display: grid; min-height: 300px; place-items: center; color: var(--muted); text-align: center; }
.chart-grid { stroke: #dfe4e1; stroke-width: 1; }
.chart-axis { fill: #667476; font-size: 12px; }
.chart-line { fill: none; stroke: var(--teal-700); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: var(--paper); stroke: var(--teal-700); stroke-width: 3; }
.chart-value { fill: var(--teal-950); font-size: 13px; font-weight: 800; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; min-height: 24px; margin-bottom: -8px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 22px; height: 3px; border-radius: 2px; background: var(--teal-700); }
.chart-line.station-jaca { stroke: #b04a32; }
.chart-point.station-jaca { stroke: #b04a32; }
.chart-legend i.station-jaca { background: #b04a32; }

.timeline { max-width: 900px; margin: 0; padding: 0; list-style: none; }
.timeline-item { position: relative; margin-left: 10px; padding: 0 0 36px 38px; border-left: 2px solid #b8cbc8; }
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item::before { content: ""; position: absolute; top: 5px; left: -8px; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--teal-700); border-radius: 50%; }
.timeline-time { color: var(--muted); font-size: .8rem; font-weight: 750; }
.timeline-category { margin: 7px 0 5px; color: var(--teal-700); font-size: .74rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.timeline-description { margin: 0 0 10px; font-size: 1.05rem; }
.timeline-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .78rem; }

.sources-section { width: 100%; max-width: none; padding-right: max(20px, calc((100% - var(--max))/2)); padding-left: max(20px, calc((100% - var(--max))/2)); color: white; background: var(--teal-900); border-bottom: 0; }
.sources-section h2, .sources-section .section-kicker { color: white; }
.sources-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.source-card { display: flex; min-height: 148px; padding: 18px; flex-direction: column; justify-content: space-between; color: white; text-decoration: none; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.17); border-radius: 12px; }
.source-card:hover { color: white; background: rgba(255,255,255,.13); }
.source-card strong { font-size: 1.02rem; }
.source-card span { color: #c1d4d5; font-size: .75rem; }
.source-card .arrow { align-self: end; color: #f3c270; font-size: 1.2rem; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border-bottom: 0; }
.info-card { padding: 24px; background: #efeee7; border-radius: 12px; }
.info-card h2 { font-family: inherit; font-size: 1.1rem; font-weight: 800; }
.info-card p { margin: 10px 0 0; color: var(--muted); font-size: .88rem; }
footer { color: #c6d8d9; background: #09262b; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; width: min(var(--max), calc(100% - 40px)); margin: auto; padding: 35px 0; }
.footer-inner p { margin: 4px 0 0; font-size: .85rem; }
.footer-inner .legal-note { max-width: 760px; margin-top: 12px; color: #a9c0c2; font-size: .72rem; line-height: 1.5; }
.footer-inner > div:last-child { display: flex; gap: 20px; }
.footer-inner a { color: #dce9e9; }
.noscript { position: fixed; z-index: 9999; right: 12px; bottom: 12px; left: 12px; padding: 16px; color: #5e3c07; background: var(--amber-bg); border: 1px solid #d9b77b; border-radius: 8px; }

@media (max-width: 940px) {
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .weather-card { grid-column: 1 / -1; }
  .sources-grid { grid-template-columns: repeat(3, 1fr); }
  .rain-record { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .header-inner { width: min(100% - 28px, var(--max)); padding: 42px 0 32px; }
  .cecopi-report { position: static; width: 100%; margin: 0 0 26px; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.4rem); }
  .official-warning { display: block; }
  .official-warning strong { display: block; margin-bottom: 5px; }
  .update-strip { grid-template-columns: 1fr; }
  .nav-inner { width: 100%; padding: 0 7px; }
  .section { width: calc(100% - 28px); padding: 52px 0; scroll-margin-top: 54px; }
  .map-section, .sources-section { width: 100%; padding-right: 14px; padding-left: 14px; }
  .section-heading { display: block; }
  .section-heading .legend, .section-heading .text-link, .section-heading .section-intro { display: flex; justify-content: start; margin-top: 14px; }
  .status-grid, .weather-grid, .road-grid, .info-grid { grid-template-columns: 1fr; }
  .metric-card.weather-card { grid-column: 1 / -1; }
  .metric-card { min-height: 225px; }
  .map-notes { grid-template-columns: 1fr; }
  .map-actions { justify-items: start; margin-top: 14px; }
  .map-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-summary > div { padding: 8px 10px; }
  #map { height: 560px; }
  .weather-warning { display: block; }
  .weather-warning p { margin-top: 5px; }
  .rain-heading { align-items: start; }
  .rain-record { grid-template-columns: 1fr; gap: 5px; }
  .sources-grid { grid-template-columns: 1fr 1fr; }
  .source-card { min-height: 125px; }
  .footer-inner { display: block; }
  .footer-inner > div:last-child { margin-top: 22px; }
  th, td { padding: 14px; }
}

@media (max-width: 420px) {
  .status-grid { grid-template-columns: 1fr; }
  .weather-brief { grid-template-columns: 1fr 1fr; }
  .evacuation-brief { grid-template-columns: 1fr 1fr; }
  .sources-grid { grid-template-columns: 1fr; }
  .source-card { min-height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .section-nav, .skip-link, .leaflet-control-container { display: none !important; }
  body { color: black; background: white; }
  .site-header, .sources-section { color: black; background: white; }
  .site-header *, .sources-section * { color: black !important; }
  .section { padding: 30px 0; break-inside: avoid; }
  .metric-card, .panel, .road-card, .table-wrap { box-shadow: none; }
}
