:root {
  color-scheme: dark;
  --page: #0c171b;
  --panel: #112126;
  --panel-high: #172a2e;
  --ink: #edf6f3;
  --muted: #b0c4c4;
  --line: #294045;
  --accent: #a3ebce;
  --accent-dark: #183c34;
  font: 400 1rem/1.55 system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, select, input { font: inherit; }
button, select { color: inherit; }
button, select, input[type="range"] { cursor: pointer; }
button:disabled, select:disabled, input:disabled { cursor: default; opacity: .5; }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h2, h3, h4 { line-height: 1.15; }
[hidden] { display: none !important; }
.wrap { width: min(100% - clamp(32px, 7vw, 104px), 1200px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: 12px; left: 12px; z-index: 9; padding: .6rem 1rem; background: var(--page); }

.masthead { position: relative; background: #0b1519; border-bottom: 1px solid #203238; }
.masthead-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; color: var(--ink); font-size: 1.26rem; font-weight: 780; letter-spacing: -.055em; text-decoration: none; }
.brand img { display: block; object-fit: contain; filter: brightness(0) invert(1); }
nav { display: flex; gap: clamp(17px, 3vw, 34px); }
nav a { color: var(--muted); font-size: .92rem; font-weight: 600; text-decoration: none; padding-block: .55rem; }
nav a:hover { color: var(--ink); }

.forecast-shell { background: linear-gradient(180deg,#0a161bb9 0,#0c171bed 450px,#0c171b 720px), url('./aurora-v1.webp') center top / max(100%, 1020px) auto no-repeat; }
.forecast { padding-block: clamp(21px, 3vw, 35px) clamp(40px, 7vw, 75px); scroll-margin-top: 1rem; }
.forecast-heading, .night-controls { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); font-weight: 710; line-height: 1.04; letter-spacing: -.065em; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.9vw, 2.75rem); letter-spacing: -.052em; font-weight: 680; }
.forecast-heading p { margin-top: .45rem; color: var(--muted); }
.forecast-heading > div:first-child { flex: 1; min-width: 0; }
.location-controls { display: flex; gap: .55rem; align-items: end; width: 390px; max-width: 100%; flex-shrink: 0; }
.location-controls .place-control { width: 190px; min-width: 0; flex: 1; }
.place-control { display: grid; gap: .28rem; min-width: min(100%, 190px); color: var(--muted); font-size: .88rem; font-weight: 610; }
.locate-button { display: inline-flex; gap: .4rem; align-items: center; white-space: nowrap; min-height: 44px; border: 1px solid #538e7c; border-radius: 7px; padding: .5rem .68rem; background: #1c453a; color: #e6fff4; font-size: .87rem; font-weight: 720; }
.locate-button:not(:disabled):hover { background: #2c5e4f; border-color: var(--accent); }
.locate-button svg { width: 1.12rem; height: 1.12rem; flex-shrink: 0; stroke: currentColor; stroke-width: 1.65; fill: none; stroke-linecap: round; }
.location-status { color: #d5e8e3; font-size: .88rem; text-align: right; }
select { display: block; width: 100%; min-height: 44px; appearance: none; border: 1px solid #3b5357; border-radius: 7px; padding: .5rem 2.25rem .5rem .75rem; background: #17292d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23abd5c7' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .65rem center / 1rem no-repeat; color: var(--ink); font-size: .94rem; font-weight: 650; }
select:hover { border-color: var(--accent); }
.night-controls { align-items: center; margin: 1rem 0 .85rem; min-height: 47px; }
.travel-controls { display: flex; align-items: end; gap: .6rem 1rem; margin: 0 0 .9rem; }
.travel-controls label { display: grid; gap: .25rem; color: var(--muted); font-size: .85rem; font-weight: 650; min-width: 210px; }
.travel-controls p { color: var(--muted); font-size: .8rem; max-width: 45ch; margin-bottom: .35rem; }
@media (max-width: 500px) { .travel-controls { align-items: stretch; flex-direction: column; gap: .3rem; } .travel-controls p { margin: 0; } }
.segmented { display: inline-flex; gap: 4px; max-width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 4px; }
.segmented:empty { visibility: hidden; }
.segmented button { min-height: 40px; min-width: 90px; padding: .42rem .9rem; border: 1px solid transparent; border-radius: 5px; background: transparent; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.segmented button:hover { background: var(--panel-high); }
.segmented button[aria-pressed="true"] { background: var(--accent); color: #102821; }
.freshness { display: flex; align-items: center; gap: .5rem; padding: .12rem 1.15rem .95rem; color: var(--muted); font-size: .84rem; }
.freshness > span:first-child { width: .5rem; height: .5rem; border-radius: 50%; background: #98a9ab; flex-shrink: 0; }
.freshness[data-state="ready"] > span:first-child { background: #83dbba; box-shadow: 0 0 15px #83dbba40; }
.freshness[data-state="limited"] > span:first-child { background: #f1c689; }
.notice { margin-top: 1rem; background: #29271f; color: #f2dfb6; border: 1px solid #634f29; border-radius: 8px; padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.notice button { border: 1px solid #ab8c53; border-radius: 6px; padding: .4rem .7rem; background: transparent; flex-shrink: 0; }
.notice a { color: inherit; }

.forecast-grid { display: grid; grid-template-columns: minmax(0, 2.19fr) minmax(285px, 1fr); gap: 1rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: 1.05rem 1.15rem; }
.panel-head h3 { font-size: clamp(1.26rem, 2.4vw, 1.57rem); font-weight: 680; letter-spacing: -.032em; }
.panel-head p { color: var(--muted); font-size: .91rem; margin-top: .26rem; }
.kp-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: .6rem 1rem; margin: .7rem .7rem 0; padding: .7rem .95rem; border: 1px solid #4c7b70; border-radius: 8px; background: linear-gradient(108deg,#1d3e36,#152d33 77%); }
.kp-banner h2 { color: #d4e8e2; font-size: .9rem; font-weight: 700; }
.kp-reading { display: flex; align-items: baseline; gap: .42rem; margin-top: .22rem; line-height: 1; }
.kp-reading > span:first-child { color: #c2e8da; font-size: clamp(1.05rem, 2vw, 1.5rem); font-weight: 720; }
.kp-reading strong { color: #d1ffe9; font-size: clamp(2.55rem, 4.5vw, 3.8rem); font-weight: 760; font-variant-numeric: tabular-nums; letter-spacing: -.06em; white-space: nowrap; }
.kp-context { min-width: 0; }
.kp-context p { min-height: 4.05em; color: #d3e4e2; font-size: .84rem; font-weight: 560; line-height: 1.35; }
.kp-scale { max-width: 260px; margin-top: .4rem; }
.kp-track { height: .47rem; border-radius: 99px; background: #36504f; overflow: hidden; }
.kp-track::after { content: ''; display: block; width: var(--kp-progress, 0%); height: 100%; background: #96e9c7; border-radius: inherit; }
.kp-ticks { display: flex; justify-content: space-between; margin-top: .08rem; color: #c0d4d1; font-size: .72rem; font-variant-numeric: tabular-nums; }
.night-verdict { margin: .65rem .7rem 0; padding: .75rem .95rem; border-left: 3px solid #74909b; background: #14272d; border-radius: 5px; }
.night-verdict[data-state="good"] { border-color: var(--accent); background: #16332d; }
.night-verdict[data-state="poor"] { border-color: #d3ad70; }
.night-verdict h3 { font-size: 1.2rem; margin-block: .25rem .4rem; line-height: 1.2; }
.night-verdict p { font-size: .84rem; color: var(--muted); }
.night-verdict p + p { margin-top: .35rem; }
.night-verdict .verdict-question { color: var(--accent); font-weight: 700; }
.verdict-window { font-weight: 700; }
.night-verdict button { margin-top: .6rem; white-space: normal; text-align: left; }
.forecast-trust { padding: 0 1.15rem .8rem; font-size: .8rem; color: var(--muted); }
.forecast-trust p + p { margin-top: .35rem; }
.comparison-detail { grid-column: 1 / -1; margin: 0 .6rem .6rem; font-size: .78rem; color: #c3d8d2; }
.travel-comparison { padding: 1rem 1.15rem; margin-top: 1rem; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .65rem 1rem; align-items: center; }
.travel-comparison h3 { font-size: 1.15rem; }
.travel-comparison p { margin-top: .35rem; color: var(--muted); font-size: .85rem; }
.travel-comparison .route-status, .travel-comparison .route-attribution { grid-column: 1 / -1; }
.travel-comparison .route-attribution { font-size: .75rem; }
.solar-panel, .alerts-panel { margin-top: 1rem; }
.solar-panel summary, .alerts-panel summary { cursor: pointer; padding: 1rem 1.15rem; font-weight: 700; }
.solar-content, .alerts-content { padding: 0 1.15rem 1.15rem; font-size: .9rem; }
.solar-content p, .alerts-content p { margin-top: .65rem; }
.muted { color: var(--muted); font-size: .82rem; }
.solar-values { display: flex; gap: 2rem; padding-block: .4rem; }
.solar-values dt { color: var(--muted); font-size: .8rem; }
.solar-values dd { font-size: 1.55rem; font-weight: 740; }
.alert-form { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); gap: .8rem; margin-block: 1rem; }
.alert-form label { display: grid; gap: .25rem; color: var(--muted); font-size: .84rem; }
.alert-actions { display: flex; flex-wrap: wrap; gap: .6rem; grid-column: 1 / -1; }
.alert-actions button { white-space: normal; }
@media (max-width: 500px) {
  .travel-comparison { grid-template-columns: 1fr; }
  .travel-comparison > button { justify-self: start; }
  .night-verdict { margin-inline: .5rem; padding-inline: .65rem; }
  .forecast-trust { padding-inline: .75rem; }
}
.map-layer { flex-shrink: 0; }
.map-scene { position: relative; isolation: isolate; height: clamp(315px, 36vw, 510px); margin: 0 .7rem; overflow: hidden; border: 1px solid #385262; border-radius: 9px; background: #101f32; touch-action: pan-y; }
.map-scene canvas, #markers { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-scene[data-zoomed] { cursor: grab; touch-action: none; }
.map-scene[data-dragging] { cursor: grabbing; }
.map-time { position: absolute; top: .7rem; left: .7rem; z-index: 2; border: 1px solid #a3b8cf61; border-radius: 5px; padding: .35rem .6rem; color: #f3f7ff; background: #101d30ed; font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; }
.map-zoom { position: absolute; top: .7rem; right: .7rem; display: grid; justify-items: end; gap: 3px; z-index: 3; }
.zoom-button { display: grid; place-items: center; min-width: 43px; min-height: 43px; padding: 0 .45rem; border: 1px solid #9ab2c67a; background: #101d30f2; color: #edf5ff; border-radius: 6px; font-size: 1.35rem; font-weight: 650; line-height: 1; }
.zoom-button:not(:disabled):hover { border-color: #a5ebd2; background: #20374e; }
.zoom-button:disabled { opacity: .7; color: #9aacbb; }
.zoom-reset { font-size: .73rem; }
#markers { pointer-events: none; z-index: 1; }
.marker { pointer-events: auto; position: absolute; display: grid; place-items: center; transform: translate(-50%, -50%); border: 0; background: transparent; border-radius: 50%; padding: 0; width: 28px; height: 28px; z-index: 0; }
.marker::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--pin, #899ca1); border: 2px solid #eaf5f0; box-shadow: 0 0 0 2px #14272b, 0 3px 8px #041419ce; }
.marker[data-selected="true"], .marker:hover, .marker:focus-visible { z-index: 1; }
.marker[data-selected="true"]::before { width: 17px; height: 17px; border: 3px solid #f5fff9; box-shadow: 0 0 0 3px #183129, 0 0 0 6px #95edc386; background: #83deb7; }
.marker[aria-pressed="true"] .marker-caption, .marker:hover .marker-caption, .marker:focus-visible .marker-caption { display: block; }
.marker-caption { position: absolute; display: none; white-space: nowrap; left: 50%; bottom: 30px; transform: translateX(-50%); padding: .25rem .48rem; border-radius: 4px; background: #09181df2; color: #f8fcf9; border: 1px solid #547177; font-size: .79rem; font-weight: 700; line-height: 1.3; pointer-events: none; }
.marker[data-rank] { z-index: 2; }
.marker[data-rank]::before { content: attr(data-rank); display: grid; place-items: center; width: 23px; height: 23px; border: 2px solid #e1ffec; background: #257758; color: #fff; font-size: .73rem; font-weight: 800; }
.marker[data-rank] .marker-caption { display: block; background: #122b27f5; border-color: #7cc6a9; color: #ecfff6; }
.marker[data-rank][aria-pressed="true"], .marker:hover, .marker:focus-visible { z-index: 3; }
.marker[data-place="jokulsarlon"] .marker-caption { left: auto; right: calc(100% + 2px); bottom: 50%; transform: translateY(50%); }
.marker[data-place="hofn"] .marker-caption { left: calc(100% + 2px); bottom: 50%; transform: translateY(50%); }
.marker[data-nearby] { z-index: 5; }
.marker[data-nearby]::before { content: '✦'; width: 29px; height: 29px; background: #80edb8; color: #122e2b; border-color: #133c38; box-shadow: 0 0 0 2px #a9f5cc, 0 2px 8px #071419; font-size: .95rem; }
.marker[data-nearby] .marker-caption { display: block; bottom: 34px; left: 50%; right: auto; transform: translateX(-50%); background: #b6f2d5; color: #122e2b; border-color: #163a33; white-space: pre; text-align: center; }
.marker[data-nearby][data-edge="left"] .marker-caption { left: -5px; transform: none; }
.marker[data-nearby][data-edge="right"] .marker-caption { left: auto; right: -5px; transform: none; }
.marker[data-other-time]::before { opacity: .55; }
.marker[data-rank][data-nearby][data-other-time]::before { background: #17313d; color: #c4d5dc; border-color: #c4d5dc; box-shadow: 0 0 0 2px #142634; opacity: 1; }
.marker[data-nearby][data-other-time] .marker-caption { background: #142634; color: #e5eef4; border-color: #819baa; }
.you-pin { position: absolute; z-index: 4; transform: translate(-50%,-50%); display: block; width: 13px; height: 13px; border: 2px solid #fff; border-radius: 50%; background: #5faeff; box-shadow: 0 0 0 5px #4b9eff66, 0 2px 8px #071419; pointer-events: none; }
.you-pin span { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); background: #0b2440; color: #e9f6ff; border: 1px solid #72b8fc; border-radius: 4px; padding: .02rem .32rem; font-size: .75rem; font-weight: 730; }
.empty-map { position: absolute; z-index: 2; inset: auto auto 55px 50%; transform: translateX(-50%); width: max-content; max-width: 90%; border-radius: 6px; padding: .4rem .6rem; color: var(--ink); background: #10242df2; border: 1px solid var(--line); font-size: .88rem; pointer-events: none; }
.legend { position: absolute; z-index: 2; right: .7rem; bottom: .65rem; display: flex; gap: .48rem; align-items: center; border: 1px solid #9ab2c67a; border-radius: 6px; padding: .36rem .52rem; background: #101d30ed; font-size: .78rem; color: #edf5ff; pointer-events: none; }
.legend-gradient { width: clamp(54px, 10vw, 110px); height: .5rem; border: 1px solid #8ba0bb9c; border-radius: 100px; background: linear-gradient(90deg,#e7eff6,#a2b4c9,#536b87,#1a2e44); }
.clock-controls { display: flex; align-items: start; gap: .55rem; padding: .86rem 1.15rem .32rem; }
.icon-button { display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid #3b5357; border-radius: 6px; padding: 0; background: #17292d; font-size: 1rem; }
.icon-button:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }
.step-button { font-size: 1.65rem; line-height: 1; }
.clock-range { flex: 1; min-width: 0; display: grid; }
.range-current { display: block; min-height: 1.4rem; text-align: center; color: #e2fff0; font-size: .87rem; font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock-controls > .icon-button { margin-top: 1.4rem; }
.forecast { overflow-anchor: none; }
.map-footer { min-height: 7.3rem; align-content: start; }
.map-footer p { max-height: 7rem; overflow-y: auto; }
input[type="range"] { width: 100%; height: 25px; accent-color: var(--accent); margin: 0; }
.range-labels { display: flex; justify-content: space-between; gap: .4rem; font-size: .82rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.map-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .8rem; padding: .15rem 1.15rem .28rem; color: var(--muted); font-size: .85rem; }

.conditions-panel { display: flex; flex-direction: column; }
.conditions-panel .panel-head { align-items: start; }
.conditions-panel .detail-label { color: var(--accent); margin-bottom: .3rem; font-size: .84rem; font-weight: 650; }
.conditions-panel .panel-head h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); overflow-wrap: anywhere; }
.place-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; margin-top: .55rem; }
.place-access { display: inline-block; font-size: .86rem; }
.directions-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .25rem .6rem; border: 1px solid #567b70; border-radius: 6px; background: #1c3635; color: #e0f6ee; font-size: .81rem; font-weight: 690; white-space: nowrap; text-decoration: none; }
.directions-link:hover { border-color: #a4e1c7; background: #295047; }
.metrics { padding-inline: 1.15rem; }
.metric { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: .15rem .6rem; border-top: 1px solid var(--line); padding-block: .86rem; }
.metric svg { width: 1.25rem; height: 1.25rem; stroke: var(--accent); fill: none; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.metric dt { font-size: .91rem; color: #d1e1e0; font-weight: 650; }
.metric dd { display: flex; flex-wrap: wrap; grid-column: 2; align-items: baseline; gap: .2rem .58rem; }
.metric strong { font-size: clamp(1.25rem, 2.65vw, 1.72rem); line-height: 1.2; font-weight: 720; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric dd span { font-size: .84rem; color: var(--muted); }
.window { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: .65rem; margin: .3rem 1rem 1rem; padding: .78rem .85rem; border: 1px solid #33584f; border-radius: 8px; background: #172f2c; }
.window-icon { color: var(--accent); line-height: 1.2; }
.window h4 { font-weight: 680; font-size: .97rem; }
.window p { color: #bed4d0; font-size: .88rem; margin-top: .35rem; }

.hourly-panel { margin-top: 1rem; }
.hourly { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(63px, 1fr); overflow-x: auto; padding: 3px 1.15rem 1rem; gap: 6px; }
.hourly-button { min-height: 100px; border: 1px solid #30464b; border-radius: 6px; padding: .35rem .2rem .45rem; background: #12242a; font-size: .83rem; display: grid; justify-items: center; align-content: center; gap: .18rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hourly-button:hover { background: #203638; }
.hourly-button[aria-pressed="true"] { border-color: var(--accent); background: #23423c; }
.hourly-button[aria-pressed="true"]:focus-visible { outline-offset: 1px; }
.hourly-time { font-weight: 670; }
.hourly-meter { width: 74%; height: .33rem; margin-top: .17rem; border-radius: 15px; background: #354a4e; overflow: hidden; }
.hourly-meter span { display: block; height: 100%; border-radius: 15px; background: #b7d0d8; }
.hourly-sky { color: var(--muted); font-size: .75rem; }

.nearby { padding: .95rem 1rem 1rem; background: #162a2d; border-bottom: 1px solid var(--line); }
.nearby h3 { font-size: 1.13rem; }
.nearby p { color: var(--muted); font-size: .84rem; margin-top: .35rem; }
.compare-list { display: grid; gap: .4rem; margin-top: .58rem; min-height: 202px; align-content: start; }
.compare-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: #12272a; padding-right: .4rem; }
.compare-row[data-selected] { border-color: #8ad1b7; background: #19332f; }
.compare-row .directions-link { padding-inline: .42rem; }
.compare-card { text-align: left; display: grid; grid-template-columns: 1.5rem minmax(0,1fr) auto; align-items: center; gap: .02rem .42rem; border: 0; border-radius: 6px; background: transparent; padding: .53rem .55rem; min-height: 53px; }
.compare-card:hover { background: #19332f; }
.compare-rank { grid-row: span 2; display: grid; place-items: center; width: 1.43rem; height: 1.43rem; border-radius: 50%; background: #2b765e; color: #fff; font-size: .77rem; font-weight: 770; }
.compare-card[data-sky="cloudy"] .compare-rank, .marker[data-sky="cloudy"]::before { background: #4a5961; }
.compare-card[data-sky="mixed"] .compare-rank, .marker[data-sky="mixed"]::before { background: #755f38; }
.compare-row[data-nearby] { border-color: #75ba9d; }
.compare-row[data-nearby] .compare-rank, .marker[data-nearby]::before { background: #80edb8; color: #122e2b; }
.compare-name { font-size: .94rem; font-weight: 740; overflow-wrap: anywhere; }
.compare-region { font-size: .78rem; color: var(--muted); }
.compare-value { font-size: 1rem; font-weight: 720; grid-row: span 2; }
.compare-list .compare-empty { grid-column: 1 / -1; color: var(--muted); }

.spot-directory { margin-top: 1rem; }
.spot-directory summary { padding: .8rem 1rem; font-weight: 680; cursor: pointer; }
.spot-directory summary:focus-visible { outline-offset: -4px; }
.spot-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); gap: .45rem .7rem; list-style: none; margin: 0; padding: 0 1rem .9rem; }
.spot-list li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-width: 0; padding: .3rem .45rem .3rem .6rem; border: 1px solid var(--line); border-radius: 6px; }
.spot-name { font-size: .91rem; font-weight: 600; overflow-wrap: anywhere; }

.guide { border-top: 1px solid var(--line); background: #142326; scroll-margin-top: 1rem; }
.guide-inner { padding-block: clamp(33px, 6vw, 65px); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 7vw, 96px); }
.guide p { color: var(--muted); margin-top: .6rem; }
.guide-list { display: grid; gap: 1.15rem; }
.guide-list > div { padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.guide-list > div:last-child { padding-bottom: 0; border: 0; }
.guide-list h3 { font-size: 1.05rem; }
.guide-list p { margin-top: .3rem; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: 2rem; padding-block: 1.7rem 2.4rem; }
.sources { max-width: 70ch; color: var(--muted); font-size: .87rem; }
.sources h2 { color: var(--ink); font-size: 1rem; letter-spacing: 0; margin-bottom: .4rem; }
.sources p + p { margin-top: .35rem; }
.data-timestamp { font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .forecast-grid { grid-template-columns: 1fr; }
  .map-scene { height: clamp(275px, 63vw, 420px); }
  .guide-inner { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .masthead-inner { min-height: 58px; }
  .brand { font-size: 1.13rem; gap: .45rem; }
  .brand img { width: 29px; height: 29px; }
  nav { gap: .9rem; }
  nav a { font-size: .85rem; }
  .forecast-heading, .night-controls { align-items: stretch; flex-direction: column; gap: .65rem; }
  .location-controls { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .location-status { text-align: left; }
  .forecast-heading p { margin-top: .28rem; }
  .night-controls { margin-block: .9rem .62rem; }
  .segmented { display: flex; }
  .segmented button { flex: 1; min-width: auto; padding-inline: .4rem; font-size: .85rem; }
  .notice { align-items: start; flex-direction: column; }
  .panel-head { padding: .85rem .8rem; }
  .map-scene { margin-inline: .5rem; }
  .kp-banner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); margin-inline: .5rem; padding: .54rem .65rem; gap: .5rem; }
  .map-head h3 { max-width: 12ch; }
  .map-layer select { font-size: .85rem; padding-left: .48rem; }
  .clock-controls { padding-inline: .75rem; gap: .4rem; }
  .map-footer, .freshness { padding-inline: .75rem; }
  .metrics { padding-inline: .8rem; }
  .window { margin-inline: .8rem; }
  .hourly { padding-inline: .8rem; }
  .footer-inner { flex-direction: column; gap: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
