:root {
    color-scheme: dark;
    --ink: #f6fbff;
    --muted: #b9cad5;
    --faint: #8ba2b0;
    --line: rgba(255, 255, 255, .15);
    --surface: rgba(8, 31, 45, .76);
    --surface-strong: rgba(6, 24, 36, .92);
    --surface-soft: rgba(255, 255, 255, .08);
    --accent: #91cdf4;
    --accent-strong: #c5e8ff;
    --accent-ink: #09283c;
    --warning: #ffd36a;
    --danger: #ff9b91;
    --success: #74dfb2;
    --shadow: 0 22px 70px rgba(0, 8, 16, .32);
    --radius: 8px;
    --page: min(1180px, calc(100% - 32px));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="day"] {
    --sky-top: #0f4d72;
    --sky-mid: #397fa4;
    --sky-bottom: #86b6cc;
}

html[data-theme="night"] {
    --sky-top: #031623;
    --sky-mid: #0c2d43;
    --sky-bottom: #244e63;
}

html[data-condition="rain"] { --sky-bottom: #4f7181; --accent: #9ed6f7; }
html[data-condition="storm"] { --sky-top: #15182d; --sky-mid: #25364b; --sky-bottom: #4d5f70; --accent: #b9b4ff; }
html[data-condition="snow"] { --sky-top: #315b74; --sky-mid: #6c93a8; --sky-bottom: #b9d1dc; }
html[data-condition="fog"] { --sky-top: #405d6b; --sky-mid: #6e8b96; --sky-bottom: #9db1b8; }
html[data-condition="clear"][data-theme="day"] { --sky-top: #07527f; --sky-mid: #3f8eb9; --sky-bottom: #9acbd9; }

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: linear-gradient(155deg, var(--sky-top) 0%, var(--sky-mid) 46%, var(--sky-bottom) 100%);
    background-attachment: fixed;
    line-height: 1.55;
    transition: background .55s ease;
}

body::after {
    position: fixed;
    inset: 0;
    z-index: -3;
    content: "";
    background: linear-gradient(180deg, transparent 35%, rgba(1, 12, 20, .67) 100%);
    pointer-events: none;
}

a { color: var(--accent-strong); text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--warning); outline-offset: 3px; }
[hidden] { display: none !important; }
.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; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 99; padding: 10px 14px; color: #061d2b; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.atmosphere { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.orb { position: absolute; display: block; border-radius: 50%; filter: blur(2px); opacity: .45; }
.orb-one { width: 270px; height: 270px; top: 80px; right: 7vw; background: radial-gradient(circle, rgba(255, 216, 124, .8), rgba(255, 216, 124, 0) 69%); }
.orb-two { width: 440px; height: 440px; left: -180px; top: 42vh; background: radial-gradient(circle, rgba(107, 203, 255, .3), transparent 70%); }
html[data-theme="night"] .orb-one { background: radial-gradient(circle, rgba(207, 225, 255, .44), transparent 68%); }
.cloud { position: absolute; width: 220px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .07); filter: blur(16px); }
.cloud-one { top: 28%; left: 9%; }
.cloud-two { top: 62%; right: -2%; width: 320px; opacity: .6; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    width: var(--page);
    min-height: 74px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 27, 41, .74);
    backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.08rem; font-weight: 760; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; color: var(--accent-strong); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.brand-mark svg { width: 30px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.3; }
.nav-location { max-width: 170px; margin-left: auto; overflow: hidden; color: var(--accent-strong); font-size: .82rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.nav-toggle { display: none; min-height: 42px; align-items: center; gap: 7px; padding: 0 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.nav-toggle svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.top-actions { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 9px; }
.nav-search { position: relative; width: min(370px, 34vw); }
.control-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
select { min-height: 40px; padding: 0 30px 0 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; background: var(--surface-strong); }
.nav-location-note { display: none; }

.page-shell { width: var(--page); margin: 0 auto; padding: 24px 0 56px; }
.eyebrow { margin: 0 0 5px; color: var(--accent-strong); font-size: .72rem; font-weight: 780; letter-spacing: .14em; text-transform: uppercase; }
.search-form { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; min-height: 44px; padding: 4px 4px 4px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(4, 24, 37, .76); }
.search-form svg, .location-button svg, .icon-button svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }
.search-form input { min-width: 0; color: var(--ink); border: 0; outline: 0; background: transparent; }
.search-form input::placeholder { color: #a9bbc6; }
.search-form button, .error-card button { min-height: 36px; padding: 0 13px; color: var(--accent-ink); font-weight: 760; border: 0; border-radius: 6px; background: var(--accent); }
.location-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; background: rgba(4, 24, 37, .55); }
.location-button span { display: none; }
.search-results { position: absolute; top: calc(100% + 7px); left: 0; z-index: 12; width: max(100%, 330px); max-height: 330px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: #071f2f; box-shadow: var(--shadow); }
.search-result { width: 100%; padding: 12px 13px; color: var(--ink); text-align: left; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); background: transparent; }
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result[aria-selected="true"] { background: rgba(145, 205, 244, .13); }
.search-result strong, .search-result span { display: block; }
.search-result span { color: var(--muted); font-size: .83rem; }
.search-empty { padding: 16px; color: var(--muted); }

.loading-card, .error-card, .hero-card, .content-card, .metric {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}
.loading-card { min-height: 470px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden; }
.loading-sky { position: relative; align-self: stretch; min-height: 330px; overflow: hidden; background: linear-gradient(145deg, rgba(76, 159, 202, .36), rgba(4, 27, 42, .25)); }
.loading-sun { position: absolute; top: 20%; left: 23%; width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle, #ffe39e 0 24%, rgba(255, 220, 135, .52) 25% 48%, transparent 70%); animation: breathe 2.2s ease-in-out infinite; }
.loading-cloud { position: absolute; top: 53%; left: 20%; width: 260px; height: 72px; border-radius: 42px; background: rgba(223, 242, 253, .82); animation: drift 3.2s ease-in-out infinite; }
.loading-cloud i { position: absolute; display: block; border-radius: 50%; background: inherit; }
.loading-cloud i:nth-child(1) { width: 100px; height: 100px; left: 34px; bottom: 18px; }
.loading-cloud i:nth-child(2) { width: 132px; height: 132px; right: 31px; bottom: 14px; }
.loading-cloud i:nth-child(3) { width: 76px; height: 76px; right: -3px; bottom: 0; }
.loading-copy { padding: clamp(28px, 6vw, 70px); }
.loading-copy h2 { max-width: 480px; margin: 6px 0 12px; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.045em; }
.loading-copy > p:not(.eyebrow) { max-width: 440px; color: var(--muted); }
.loading-line { width: min(100%, 350px); height: 4px; margin-top: 30px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.loading-line span { display: block; width: 35%; height: 100%; background: var(--accent); animation: loading-line 1.5s ease-in-out infinite; }
.error-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 24px; }
.error-card h2, .error-card p { margin: 0; }
.error-card p, .error-card small { color: var(--muted); }
.error-icon { display: grid; width: 46px; height: 46px; place-items: center; color: #35110e; font-size: 1.4rem; font-weight: 800; border-radius: 50%; background: var(--danger); }

#dashboard { display: grid; width: 100%; min-width: 0; gap: 20px; }
#dashboard > * { min-width: 0; }
.hero-card { position: relative; min-height: 420px; padding: clamp(22px, 4vw, 48px); overflow: hidden; background: linear-gradient(125deg, rgba(5, 30, 45, .92), rgba(11, 60, 84, .56)); }
.hero-card::after { position: absolute; width: 440px; height: 440px; right: -140px; bottom: -220px; content: ""; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 0 0 52px rgba(255, 255, 255, .025), 0 0 0 104px rgba(255, 255, 255, .018); }
.hero-heading, .section-heading { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hero-heading h2 { margin: 2px 0 0; font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.1; letter-spacing: -.04em; }
.muted { color: var(--muted); }
.hero-heading .muted { margin: 5px 0 0; }
.icon-button { display: grid; width: 46px; height: 46px; flex: none; place-items: center; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .08); }
.icon-button.is-loading svg { animation: spin .8s linear infinite; }
.hero-weather { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(180px, .7fr) 1.3fr; align-items: center; min-height: 230px; }
.weather-art { width: min(100%, 260px); color: var(--accent-strong); }
.weather-art svg { display: block; width: 100%; overflow: visible; }
.temperature-wrap { display: flex; align-items: flex-end; gap: 26px; }
.current-temp { font-size: clamp(5.2rem, 13vw, 10rem); font-weight: 370; line-height: .8; letter-spacing: -.085em; }
.condition-name { margin: 0 0 4px; font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 720; }
.temperature-wrap .muted { margin: 0 0 10px; }
.hero-meta { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 18px; padding-top: 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: .86rem; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric { min-height: 138px; padding: 20px; background: rgba(6, 29, 43, .7); }
.metric > span, .metric small { display: block; color: var(--muted); font-size: .75rem; }
.metric > span { font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.metric strong { display: block; margin: 15px 0 3px; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1; }
.content-card { padding: clamp(20px, 3vw, 30px); background: rgba(6, 29, 43, .72); }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.72rem); letter-spacing: -.025em; }
.section-meta { color: var(--muted); font-size: .82rem; }
.hourly-list { display: grid; grid-auto-columns: minmax(112px, 1fr); grid-auto-flow: column; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scroll-snap-type: x proximity; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.hour-card { min-width: 112px; padding: 15px 9px; text-align: center; scroll-snap-align: start; border: 1px solid rgba(255, 255, 255, .09); border-radius: 6px; background: rgba(255, 255, 255, .045); }
.hour-card.is-now { border-color: rgba(145, 205, 244, .62); background: rgba(145, 205, 244, .13); }
.hour-card span, .hour-card small { display: block; overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.mini-weather { width: 54px; height: 54px; margin: 8px auto 4px; color: var(--accent-strong); }
.mini-weather svg { width: 100%; height: 100%; }
.hour-card strong { display: block; font-size: 1.15rem; }
.rain-chance { color: #a9ddff !important; }
.forecast-navigation { display: flex; align-items: center; gap: 8px; }
.carousel-button { display: grid; width: 38px; height: 38px; flex: none; place-items: center; padding: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .07); transition: border-color .18s ease, background .18s ease, opacity .18s ease; }
.carousel-button:hover:not(:disabled) { border-color: rgba(145, 205, 244, .65); background: rgba(145, 205, 244, .14); }
.carousel-button:disabled { cursor: default; opacity: .35; }
.daily-list { display: grid; grid-auto-columns: clamp(220px, 24vw, 272px); grid-auto-flow: column; grid-template-columns: none; gap: 9px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 2px 2px 12px; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.day-row { display: grid; grid-template-columns: minmax(78px, 1fr) 52px; align-items: center; gap: 6px 10px; min-height: 142px; padding: 14px; color: var(--ink); text-align: left; scroll-snap-align: start; border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; background: rgba(255, 255, 255, .04); }
.day-row.is-selected { border-color: rgba(145, 205, 244, .72); background: rgba(145, 205, 244, .14); box-shadow: inset 0 0 0 1px rgba(145, 205, 244, .14); }
.day-name strong, .day-name span { display: block; }
.day-name span, .day-condition, .day-rain, .day-humidity { color: var(--muted); font-size: .78rem; }
.day-condition { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-summary { min-width: 0; }
.day-temperatures { display: flex; align-items: baseline; justify-content: flex-end; gap: 9px; font-size: 1.2rem; }
.day-temperatures span:last-child { color: var(--muted); }
.day-row .mini-weather { grid-column: 2; grid-row: 1; margin: 0; }
.day-row .day-summary { grid-column: 1; grid-row: 2; }
.day-row .day-temperatures { grid-column: 2; grid-row: 2; }
.insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.insight { min-height: 260px; }
.aqi-badge { padding: 5px 10px; color: #062218; font-size: .74rem; font-weight: 800; border-radius: 999px; background: var(--success); }
.aqi-reading { display: flex; align-items: baseline; gap: 13px; margin: 30px 0; }
.aqi-reading strong { font-size: 4.4rem; font-weight: 400; line-height: .8; }
.aqi-reading span { color: var(--muted); }
.pollutants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pollutants span { padding: 10px; color: var(--muted); font-size: .75rem; border-left: 2px solid rgba(145, 205, 244, .5); background: rgba(255, 255, 255, .04); }
.pollutants strong { display: block; margin-top: 2px; color: var(--ink); font-size: .95rem; }
.sun-path { position: relative; height: 86px; margin: 25px 8px 12px; overflow: hidden; border-top: 1px dashed rgba(255, 255, 255, .19); border-radius: 50% 50% 0 0; }
.sun-path::before { position: absolute; inset: 15px 3% -72px; content: ""; border: 1px solid rgba(255, 211, 106, .52); border-bottom: 0; border-radius: 50% 50% 0 0; }
.sun-dot { position: absolute; z-index: 1; top: 18px; left: 49%; width: 18px; height: 18px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 24px rgba(255, 211, 106, .7); }
.sun-times { display: flex; justify-content: space-between; }
.sun-times small, .sun-times strong { display: block; }
.sun-times small { color: var(--muted); }
.sun-times span:last-child { text-align: right; }
.alert-item { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.alert-item:first-child { border-top: 0; }
.alert-item h3 { margin: 0 0 5px; color: #ffe0ab; }
.alert-item p { margin: 4px 0; color: var(--muted); }

.site-footer { width: var(--page); margin: 0 auto; padding: 34px 0 46px; display: grid; grid-template-columns: 1fr auto; gap: 18px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.site-footer p { margin: 3px 0; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
.site-footer nav a { color: var(--muted); }
.attribution { grid-column: 1 / -1; }

.legal-body { background: #071c2a; }
.legal-body::after { background: radial-gradient(circle at 80% 0, rgba(43, 114, 151, .25), transparent 40%); }
.legal-header { position: sticky; top: 0; background: rgba(7, 28, 42, .9); backdrop-filter: blur(16px); }
.language-links { display: flex; gap: 8px; }
.language-links a { padding: 7px 11px; color: var(--muted); text-decoration: none; border: 1px solid transparent; border-radius: 6px; }
.language-links a.active { color: var(--ink); border-color: var(--line); background: var(--surface-soft); }
.legal-shell { width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: 58px 0 76px; }
.back-link { display: inline-block; margin-bottom: 38px; color: var(--muted); text-decoration: none; }
.legal-shell > h1 { max-width: 720px; margin: 4px 0 5px; font-size: clamp(2.5rem, 7vw, 5.6rem); line-height: .98; letter-spacing: -.06em; }
.legal-updated { margin: 13px 0 45px; color: var(--muted); }
.legal-shell section { padding: 26px 0; border-top: 1px solid var(--line); }
.legal-shell h2 { margin: 0 0 12px; font-size: 1.35rem; letter-spacing: -.025em; }
.legal-shell p, .legal-shell li { color: #c7d5dd; }
.legal-shell li + li { margin-top: 8px; }
.legal-shell table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.legal-shell th, .legal-shell td { padding: 13px 11px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.legal-shell th { color: var(--ink); background: rgba(255, 255, 255, .06); }
.legal-shell td { color: #c7d5dd; }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.safety-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-soft); }
.safety-grid p { margin: 5px 0 0; }
.legal-footer { grid-template-columns: 1fr; }
.legal-footer nav { justify-content: flex-start; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.09); opacity: .82; } }
@keyframes drift { 50% { transform: translateX(24px); } }
@keyframes loading-line { 0% { transform: translateX(-120%); } 65%, 100% { transform: translateX(340%); } }

@media (max-width: 840px) {
    .site-header { gap: 10px; }
    .nav-location { flex: 1; max-width: none; }
    .nav-toggle { display: inline-flex; }
    .top-actions { position: absolute; top: calc(100% + 7px); right: 0; left: 0; display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(4, 24, 37, .97); box-shadow: var(--shadow); }
    .top-actions.is-open { display: grid; }
    .nav-search { grid-column: 1 / -1; width: 100%; }
    .location-button { grid-column: 1 / -1; }
    .location-button span { display: inline; }
    .control-label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .nav-location-note { display: block; grid-column: 1 / -1; margin: 2px 1px 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
    .loading-card { grid-template-columns: 1fr; }
    .loading-sky { min-height: 280px; }
    .metrics-grid { grid-template-columns: 1fr 1fr; }
    .insights-grid { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr; }
    .site-footer nav { justify-content: flex-start; }
    .attribution { grid-column: 1; }
}

@media (max-width: 620px) {
    :root { --page: min(100% - 24px, 1180px); }
    .site-header { width: 100%; min-height: 64px; padding: 9px 12px; gap: 9px; border-bottom-color: rgba(255, 255, 255, .12); }
    .brand-mark { width: 38px; height: 38px; }
    .brand > span:last-child { display: none; }
    .nav-location { flex: 1; max-width: none; margin-left: 0; }
    .nav-toggle { display: inline-flex; }
    .top-actions { position: absolute; top: calc(100% + 7px); right: 12px; left: 12px; display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(4, 24, 37, .97); box-shadow: var(--shadow); }
    .top-actions.is-open { display: grid; }
    .nav-search { grid-column: 1 / -1; width: 100%; }
    .location-button { grid-column: 1 / -1; }
    .location-button span { display: inline; }
    .control-label { min-width: 0; }
    .nav-location-note { display: block; grid-column: 1 / -1; margin: 2px 1px 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
    select { width: 100%; max-width: none; min-height: 38px; padding-left: 8px; font-size: .83rem; }
    .page-shell { padding-top: 12px; }
    .search-form { grid-template-columns: 20px 1fr auto; padding: 5px 5px 5px 11px; }
    .search-results { top: calc(100% + 6px); width: 100%; }
    .loading-card { min-height: 460px; }
    .loading-sky { min-height: 230px; }
    .loading-cloud { left: 12%; transform: scale(.82); transform-origin: left center; }
    .loading-copy { padding: 26px 22px 30px; }
    .error-card { grid-template-columns: auto 1fr; }
    .error-card button { grid-column: 1 / -1; }
    .hero-card { min-height: 390px; padding: 20px 17px; }
    .hero-weather { grid-template-columns: 1fr; align-content: center; }
    .weather-art { width: 145px; height: 120px; }
    .temperature-wrap { gap: 18px; }
    .current-temp { font-size: 5.8rem; }
    .hero-meta { flex-direction: column; gap: 3px; }
    .metrics-grid { gap: 8px; }
    .metric { min-height: 126px; padding: 15px 13px; }
    .forecast-card { padding-right: 0; }
    .forecast-card .section-heading { padding-right: 20px; }
    .forecast-navigation { gap: 6px; }
    .carousel-button { display: none; }
    .daily-list { grid-auto-columns: minmax(158px, 72vw); gap: 8px; padding: 1px 20px 10px 0; }
    .day-row { min-height: 156px; padding: 12px; scroll-snap-align: start; }
    .day-condition { display: block; }
    .day-temperatures { gap: 6px; font-size: 1.05rem; }
    .pollutants { grid-template-columns: 1fr 1fr 1fr; }
    .site-footer { padding-bottom: max(38px, env(safe-area-inset-bottom)); }
    .legal-shell { padding-top: 38px; overflow-x: hidden; }
    .legal-shell > h1 { font-size: 2.75rem; }
    .legal-shell table { display: block; overflow-x: auto; white-space: normal; }
    .safety-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .top-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .nav-toggle span { display: none; }
}

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