body.weather-page .home-shell {
    padding-top: 18px;
}

.weather-page-root {
    position: relative;
    min-height: 100vh;
}

.weather-shell {
    display: grid;
    gap: 24px;
}

.weather-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(184, 205, 239, 0.14);
    border-radius: 18px;
    background: rgba(6, 12, 20, 0.66);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

.weather-hero__backdrop,
.weather-hero__overlay {
    position: absolute;
    inset: 0;
}

.weather-hero__backdrop {
    background-position: center center;
    background-size: cover;
    opacity: 0.32;
    filter: saturate(0.92) brightness(0.48) contrast(1.02);
    transform: scale(1.06) translateY(1.4%);
}

.weather-hero__overlay {
    background:
        linear-gradient(180deg, rgba(2, 5, 11, 0.18), rgba(2, 5, 11, 0.72) 42%, rgba(2, 5, 11, 0.94) 100%),
        linear-gradient(90deg, rgba(2, 5, 11, 0.86), rgba(2, 5, 11, 0.2) 46%, rgba(2, 5, 11, 0.76));
}

.weather-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr) minmax(260px, 0.72fr);
    gap: 18px;
    padding: 28px 30px 30px;
}

.weather-hero__intro {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 8px 4px 8px 2px;
}

.weather-hero__eyebrow {
    margin: 0;
    color: var(--home-gold);
    font: 700 0.74rem/1.1 'IBM Plex Mono', monospace;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.weather-hero__title {
    margin: 0;
    display: grid;
    gap: 2px;
    font: italic 900 clamp(3.4rem, 7vw, 6.7rem)/0.9 'Archivo', sans-serif;
    letter-spacing: -0.06em;
}

.weather-hero__title span:first-child {
    color: #ffffff;
}

.weather-hero__title span:nth-child(2) {
    color: var(--home-blue);
}

.weather-hero__title span:last-child {
    color: #c6dcff;
}

.weather-hero__copy,
.weather-panel__copy {
    margin: 0;
    max-width: 42rem;
    color: var(--home-ink-soft);
    font: 500 1rem/1.7 'Archivo', sans-serif;
}

.weather-hero__status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.weather-hero__status .home-panel__tag a {
    color: inherit;
    text-decoration: none;
}

.weather-panel {
    display: grid;
    gap: 16px;
    align-content: start;
    min-height: 100%;
}

.weather-panel__head {
    display: grid;
    gap: 6px;
}

.weather-panel__head h2 {
    margin: 0;
    font: italic 800 clamp(2rem, 3vw, 3rem)/0.95 'Archivo', sans-serif;
    letter-spacing: -0.05em;
}

.weather-panel__actions,
.weather-panel__quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.weather-panel__quicklinks a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(184, 205, 239, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 36, 0.58);
    color: var(--home-ink);
    font: 700 0.78rem/1 'IBM Plex Mono', monospace;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.weather-now {
    display: grid;
    gap: 18px;
}

.weather-now__display {
    display: flex;
    align-items: center;
    gap: 18px;
}

.weather-now__icon {
    display: grid;
    place-items: center;
    width: clamp(72px, 10vw, 104px);
    aspect-ratio: 1;
    border-radius: 24px;
    border: 1px solid rgba(184, 205, 239, 0.16);
    background: rgba(14, 24, 40, 0.8);
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.weather-now__temp {
    font: italic 900 clamp(3.7rem, 6vw, 5.8rem)/0.9 'Archivo', sans-serif;
    letter-spacing: -0.08em;
    color: #ffffff;
}

.weather-now__summary {
    margin-top: 6px;
    color: var(--home-ink-soft);
    font: 700 1rem/1.35 'IBM Plex Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.weather-now__meta {
    display: grid;
    gap: 4px;
}

.weather-now__meta strong {
    font: 800 1rem/1.2 'Archivo', sans-serif;
    color: #ffffff;
}

.weather-now__meta span {
    color: var(--home-ink-soft);
    font: 500 0.95rem/1.5 'Archivo', sans-serif;
}

.weather-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.weather-metric,
.weather-astro__item,
.weather-hour,
.weather-highlight {
    border: 1px solid rgba(184, 205, 239, 0.14);
    border-radius: 14px;
    background: rgba(11, 18, 31, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.weather-metric {
    display: grid;
    gap: 4px;
    padding: 12px 13px;
}

.weather-metric span,
.weather-astro__item span,
.weather-highlight span,
.weather-day-row__label,
.weather-hour__time,
.weather-hour__precip {
    color: var(--home-ink-dim);
    font: 700 0.66rem/1.2 'IBM Plex Mono', monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.weather-metric strong,
.weather-astro__item strong,
.weather-highlight strong {
    color: #ffffff;
    font: 800 1rem/1.3 'Archivo', sans-serif;
}

.weather-hero__rail {
    display: grid;
    gap: 18px;
}

.weather-astro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.weather-astro__item {
    display: grid;
    gap: 5px;
    padding: 12px 13px;
}

.weather-astro__item strong {
    font-size: 0.96rem;
}

.weather-astro__item--wide {
    grid-column: 1 / -1;
}

.weather-route-list,
.weather-community-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.weather-route-list span,
.weather-community-list span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(184, 205, 239, 0.14);
    border-radius: 999px;
    background: rgba(12, 19, 30, 0.64);
    color: var(--home-ink);
    font: 700 0.74rem/1 'IBM Plex Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.weather-board {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 22px;
}

.weather-board--lower {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
}

.weather-hourly {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(96px, 1fr);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.weather-hour {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 14px 12px 12px;
    min-height: 142px;
}

.weather-hour__icon {
    font-size: 1.55rem;
}

.weather-hour__temp {
    font: 800 1.1rem/1 'Archivo', sans-serif;
    color: #ffffff;
}

.weather-hour__wind {
    color: var(--home-ink-soft);
    font: 600 0.76rem/1.3 'Archivo', sans-serif;
}

.weather-daily {
    display: grid;
}

.weather-day-row {
    display: grid;
    grid-template-columns: 90px 44px 1fr auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(184, 205, 239, 0.1);
}

.weather-day-row:last-child {
    border-bottom: 0;
}

.weather-day-row__icon {
    font-size: 1.35rem;
    text-align: center;
}

.weather-day-row__summary {
    display: grid;
    gap: 4px;
}

.weather-day-row__summary strong {
    color: #ffffff;
    font: 800 0.98rem/1.2 'Archivo', sans-serif;
}

.weather-day-row__summary span {
    color: var(--home-ink-soft);
    font: 500 0.86rem/1.45 'Archivo', sans-serif;
}

.weather-day-row__hi {
    color: var(--home-gold);
    font: 800 1rem/1 'Archivo', sans-serif;
}

.weather-day-row__lo {
    color: var(--home-blue);
    font: 800 1rem/1 'Archivo', sans-serif;
}

.weather-day-row__rain {
    color: var(--home-teal);
    font: 700 0.82rem/1 'IBM Plex Mono', monospace;
    letter-spacing: 0.08em;
}

.weather-highlight-list {
    display: grid;
    gap: 10px;
}

.weather-highlight {
    display: grid;
    gap: 5px;
    padding: 14px 15px;
}

body.frame-mode.weather-page {
    background: #050b13;
}

body.frame-mode.weather-page .home-atmosphere,
body.frame-mode.weather-page .home-topbar,
body.frame-mode.weather-page .home-floating-player {
    display: none;
}

body.frame-mode.weather-page .home-shell {
    max-width: 100%;
    padding: 18px;
}

body.frame-mode.weather-page .weather-hero {
    margin-top: 0;
}

@media (max-width: 1400px) {
    .weather-hero__content,
    .weather-board,
    .weather-board--lower {
        grid-template-columns: 1fr;
    }

    .weather-hero__intro {
        max-width: 56rem;
    }
}

@media (max-width: 900px) {
    .weather-hero__content {
        padding: 22px 20px 22px;
    }

    .weather-hero__title {
        font-size: clamp(2.8rem, 12vw, 4.8rem);
    }

    .weather-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weather-day-row {
        grid-template-columns: 78px 38px 1fr auto auto;
    }

    .weather-day-row__rain {
        grid-column: 3 / -1;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .weather-shell {
        gap: 18px;
    }

    .weather-hero__content {
        padding: 18px 16px 18px;
    }

    .weather-hero__status,
    .weather-panel__actions,
    .weather-panel__quicklinks,
    .weather-route-list,
    .weather-community-list {
        gap: 8px;
    }

    .weather-metrics,
    .weather-astro {
        grid-template-columns: 1fr;
    }

    .weather-now__display {
        align-items: flex-start;
    }

    .weather-hourly {
        grid-auto-columns: minmax(88px, 1fr);
    }

    .weather-day-row {
        grid-template-columns: 70px 34px 1fr auto;
        gap: 10px;
    }

    .weather-day-row__lo {
        justify-self: end;
    }

    .weather-day-row__rain {
        grid-column: 1 / -1;
    }

    .weather-panel__quicklinks a {
        width: 100%;
        justify-content: center;
    }
}
