/* The shared time ruler stays fixed while the four forecast readings move together. */
.weather-horizon {
 --h-bg:#f0f2f5; --h-card:#fff; --h-ink:#131824; --h-muted:#465064; --h-rule:#778197;
 --h-live:#252932; --h-live-text:#fff; --h-signal:#187755;
 --h-temp:#b31432; --h-rain:#004fb8; --h-wind:#006046; --h-uv:#6922b5;
 --h-day-field:#fff8e8; --h-night-field:#e7eef9; --h-day-mark:#895500; --h-night-mark:#415d88;
 --h-edge:#27334918; --h-shadow:0 1px 2px #2534520b,0 5px 18px -12px #1e283b36;
 box-sizing:border-box;width:100%;margin:28px 0 24px;padding:clamp(18px,2.35vw,36px);
 border:1px solid var(--h-edge);border-radius:30px;color:var(--h-ink);color-scheme:light;
 background:var(--h-bg);
 box-shadow:0 18px 64px -32px #12192a66;scroll-margin-top:16px;text-shadow:none;
 font-variant-numeric:lining-nums tabular-nums;
}
html[data-theme=dark] .weather-horizon,body.dark .weather-horizon {
 --h-bg:#0c1b2c; --h-card:#132537; --h-ink:#f4f8fc; --h-muted:#bac9d7; --h-rule:#a0b3c7;
 --h-live:#eef0f6; --h-live-text:#1b1e25; --h-signal:#64c7a1;
 --h-temp:#ff4e63; --h-rain:#409aff; --h-wind:#22bd8c; --h-uv:#af7bff;
 --h-day-field:#282d32; --h-night-field:#0e2036; --h-day-mark:#f2c47a; --h-night-mark:#a4bde4;
 --h-edge:#c1c9e31b; --h-shadow:inset 0 1px 0 #ffffff06,0 4px 16px -12px #000a;
 color-scheme:dark;
}
.weather-horizon[hidden],.horizon-key [hidden],.horizon-hour:empty {display:none}
.horizon-heading {display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;padding:1px 2px clamp(18px,2vw,28px)}
.horizon-place {margin:0 0 6px;color:var(--h-muted);font-size:12px;font-weight:650;letter-spacing:.13em;text-transform:uppercase;overflow-wrap:anywhere}
.horizon-heading h2 {margin:0;font:400 clamp(30px,3.5vw,52px)/1.05 Georgia,serif;letter-spacing:-.045em;color:var(--h-ink)}
.horizon-key {display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--h-muted);font-size:13px;font-weight:500;line-height:1.3}
.horizon-solar-key {display:inline-flex;align-items:center;gap:5px 16px;flex-wrap:wrap}
.horizon-solar-key:empty {display:none}
.horizon-solar-item {display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.horizon-solar-item b {color:var(--h-ink);font-weight:650}
.horizon-solar-item svg,.horizon-sky-glyph {fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.horizon-solar-item svg {width:18px;height:18px;color:var(--h-day-mark)}
.horizon-solar-item.night svg,.horizon-solar-item.sunset svg {color:var(--h-night-mark)}
.horizon-sky {pointer-events:none}
.horizon-phase.day {color:var(--h-day-mark);fill:var(--h-day-field)}
.horizon-phase.night {color:var(--h-night-mark);fill:var(--h-night-field)}
.horizon-sky-edge {stroke:currentColor;stroke-opacity:.58;stroke-width:1.5}
.horizon-past-key,.horizon-clock-now {display:inline-flex;align-items:center;gap:7px}
.horizon-past-key::before {content:"";width:17px;height:2px;background:repeating-linear-gradient(to right,currentColor 0 4px,transparent 4px 7px)}
.horizon-clock-now,.horizon-hour {padding:7px 12px;border:1px solid var(--h-edge);border-radius:16px;color:var(--h-ink);background:var(--h-card);font-weight:600}
.horizon-clock-now::before {content:"";width:7px;height:7px;border-radius:50%;background:var(--h-signal)}
.horizon-clock-now {font:inherit;font-weight:600;cursor:pointer}
.horizon-clock-now:disabled {color:var(--h-ink);opacity:1;cursor:default}
.horizon-clock-now:enabled {border-color:var(--h-signal);text-decoration:underline;text-underline-offset:3px}
.horizon-chart {min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(10px,1.1vw,16px)}
.horizon-temperature-group {min-width:0;background:var(--h-card);border-radius:21px;box-shadow:inset 0 0 0 1px var(--h-edge),var(--h-shadow)}
.horizon-temperature-group .horizon-conditions {background:transparent;border-radius:21px 21px 0 0;box-shadow:none;padding-bottom:0}
.horizon-temperature-group .horizon-lane {background:transparent;border-radius:0 0 21px 21px;box-shadow:none;padding-top:8px}
.horizon-conditions {min-width:0;padding:12px 0 2px;background:var(--h-card);border-radius:18px;box-shadow:inset 0 0 0 1px var(--h-edge),var(--h-shadow)}
.horizon-conditions-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 16px 4px;min-width:0}
.horizon-conditions-head h3 {margin:0;font-family:inherit;font-size:14px;line-height:1.4;font-weight:600;color:var(--h-ink);white-space:nowrap}
.horizon-condition-reading {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:550;color:var(--h-muted)}
.horizon-conditions svg[data-slot-width] {display:block;width:100%;height:auto;cursor:crosshair;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
.horizon-conditions .wx {display:block;width:32px;height:32px;filter:none;pointer-events:none}
.horizon-condition rect {fill:transparent;stroke:transparent}
.horizon-condition.is-active rect {fill:color-mix(in srgb,var(--h-rain) 9%,transparent);stroke:color-mix(in srgb,var(--h-rain) 40%,transparent)}
.horizon-weather-cursor {fill:var(--h-ink);pointer-events:none}
.horizon-lane {
 --series:var(--h-temp);min-width:0;padding:clamp(14px,1.6vw,22px) 0 5px;border-radius:21px;
 background:var(--h-card);
 box-shadow:inset 0 0 0 1px var(--h-edge),var(--h-shadow);
}
.horizon-lane[data-metric=amount] {--series:var(--h-rain)}
.horizon-lane[data-metric=wind] {--series:var(--h-wind)}
.horizon-lane[data-metric=uv] {--series:var(--h-uv)}
.horizon-lane-head {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;margin:0 clamp(12px,1.3vw,21px) 8px}
.horizon-lane-head h3 {display:flex;align-items:center;gap:.52em;margin:0;color:var(--h-ink);font-size:clamp(17px,1.55vw,23px);font-weight:600;line-height:1.2;letter-spacing:-.03em}
.horizon-lane-head h3 small {font-size:.72em;font-weight:500;color:var(--h-muted);letter-spacing:0;white-space:nowrap}
.horizon-glyph {box-sizing:border-box;width:1.55em;height:1.55em;flex:none;padding:.28em;border-radius:30%;color:var(--series);background:currentColor;fill:none;stroke:var(--h-card);stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.horizon-span {margin-inline-start:auto;color:var(--h-muted);font-size:clamp(15px,1.4vw,21px);font-weight:550;letter-spacing:-.025em;text-align:end}
.horizon-bound {white-space:nowrap}
.horizon-bound.high {color:var(--series);font-weight:650}
.horizon-lane svg[data-slot-width] {display:block;width:100%;height:auto;cursor:crosshair;touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none}
.horizon-hour-guide,.horizon-guide,.horizon-time-rule,.horizon-wall {fill:none;stroke:var(--h-rule)}
.horizon-hour-guide {stroke-width:.75;stroke-opacity:.17}
.horizon-hour-guide.labelled {stroke-opacity:.34;stroke-dasharray:2 4}
.horizon-guide {stroke-width:1;stroke-opacity:.33}
.horizon-time-rule {stroke-opacity:.48}
.horizon-wall {stroke-width:1.25;stroke-opacity:.60}
.horizon-history {fill:var(--h-rule);fill-opacity:.055}
.horizon-clock {fill:none;stroke:var(--h-muted);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.horizon-axis {fill:var(--h-ink);font-size:var(--axis-size);font-weight:600}
.horizon-axis-unit {fill:var(--h-muted);font-weight:600}
.horizon-axis-unit,.horizon-tick,.horizon-extreme-value {font-size:calc(var(--axis-size) - 1px)}
.horizon-tick {font-weight:550}
.horizon-tick {fill:var(--h-muted)}
.horizon-extreme-value {fill:var(--series);font-weight:650;paint-order:stroke;stroke:var(--h-card);stroke-width:4;stroke-linejoin:round}
.horizon-live {pointer-events:none}
.horizon-live-rule {fill:none;stroke:var(--h-live);stroke-width:1.45;stroke-opacity:.84}
.horizon-handle {fill:var(--h-live);cursor:grab}
.horizon-grip {fill:none;stroke:var(--h-live-text);stroke-width:1.5;stroke-dasharray:1 3;stroke-linecap:round;opacity:.72}
.horizon-handle text {fill:var(--h-live-text);font-size:12px;font-weight:600}
.horizon-handle.is-picked {fill:var(--h-ink)}
.horizon-handle.is-picked text {fill:var(--h-card)}
.horizon-handle.is-picked .horizon-grip {stroke:var(--h-card)}
.horizon-chart.is-dragging svg,.horizon-chart.is-dragging .horizon-handle {cursor:grabbing}
@media(pointer:coarse){
 .horizon-handle {cursor:default}
 .horizon-grip {visibility:hidden}
}
.horizon-cursor {stroke:var(--h-ink);stroke-width:1.55;stroke-dasharray:4 3;pointer-events:none}
.horizon-cursor-foot {fill:var(--h-ink);pointer-events:none}
.horizon-empty {fill:var(--h-muted);font-size:13px;font-weight:400}
.horizon-pigment {stop-color:var(--series)}
.weather-horizon {--h-freeze:#006ba2;--h-zero:#657080}
html[data-theme=dark] .weather-horizon,body.dark .weather-horizon {--h-freeze:#65caff;--h-zero:#a3aab5}
.horizon-ice {stop-color:var(--h-freeze)}
.horizon-freezing-rule {stroke:var(--h-zero);stroke-width:1.6;stroke-dasharray:6 4}
.horizon-axis.horizon-freezing-axis {fill:var(--h-zero);font-weight:700}
.horizon-lane [data-cold] {--series:var(--h-freeze)}
.horizon-bound[data-cold] {color:var(--h-freeze)}
.horizon-trace {fill:none;stroke:var(--series);stroke-width:3.2;stroke-linejoin:round;stroke-linecap:round}
.horizon-earlier .horizon-trace {stroke-width:2.1;stroke-dasharray:3 5;opacity:.75}
.horizon-extreme {stroke-width:2.4}
.horizon-extreme.low {fill:var(--h-card);stroke:var(--series)}
.horizon-extreme.high {fill:var(--series);stroke:var(--h-card)}
.horizon-sample,.horizon-rain {fill:var(--series)}
.horizon-arrow,.horizon-calm,.horizon-zero,.horizon-missing {fill:none;stroke:var(--h-muted);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.horizon-arrow,.horizon-calm {stroke:var(--series)}
.horizon-more {display:flex;align-items:center;width:fit-content;min-height:44px;margin-top:8px;color:var(--h-ink);font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:4px}
@media(max-width:600px){
 .weather-horizon {margin:18px 0;padding:17px 5px 5px;border-radius:23px}
 .horizon-heading {align-items:flex-start;gap:10px;padding:0 8px 15px}
 .horizon-heading h2 {font-size:clamp(27px,7.5vw,34px)}
 .horizon-key {gap:10px;font-size:12px}
 .horizon-lane {padding:12px 0 2px;border-radius:16px}
 .horizon-temperature-group {border-radius:16px}
 .horizon-lane-head {margin:0 9px 5px;gap:4px 8px}
 .horizon-glyph {width:1.45em;height:1.45em;padding:.22em}
 .horizon-place {font-size:11px}
 .horizon-conditions-head {margin-inline:10px;gap:8px}
 .horizon-conditions-head h3 {font-size:12px}
 .horizon-condition-reading {font-size:12px}
 .horizon-more {margin:4px 8px 0}
}

.weather-horizon :focus-visible,.weather-nav :focus-visible,.place-shortcuts :focus-visible{outline:3px solid var(--h-rain,#137cae);outline-offset:4px}
.weather-nav{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin:12px auto 5px}
.weather-nav[hidden]{display:none}
.weather-nav a,.place-shortcuts a,.place-shortcuts button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border-radius:22px;font-size:14px;color:var(--ink);text-decoration:none;border:1px solid var(--line);background:var(--panel);text-align:center}
.weather-nav a:hover,.place-shortcuts a:hover{text-decoration:underline;text-underline-offset:3px}
.place-shortcuts{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin:10px 0}
.place-shortcuts:empty{display:none}.place-shortcuts>small{width:100%;text-align:center;color:var(--muted);font-size:12px}
.nearby-places{max-width:920px;margin:25px auto;padding:0 12px}.nearby-places h3{font-size:16px;margin:0}.nearby-places .place-shortcuts{justify-content:flex-start}
@media(max-width:600px){.weather-nav{gap:4px}.weather-nav a{padding:7px 11px;font-size:13px}}
