/* Brighter than the site-wide text colours: these sit on small text over dark cards (6.4:1 and 9.2:1). */
#content_alpine {
    --om-text-muted: #a3b3c4;
    --om-text-soft: #c6d4e6;
}

.om-unit {
    text-transform: none;
    text-decoration: none;
}

.om-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.om-hero,
.om-stations {
    /* ~16% overshoot with one dip, from the whistler-forecast hero. */
    --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.281 6.7%, 0.584 11.1%, 0.723 12.9%, 0.938 16.7%, 1.017 18.4%, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154, 1.143 29.9%, 1.089 33.7%, 1.025 37.6%, 0.99 40.3%, 0.969, 0.956 45.4%, 0.95 48.2%, 0.954 51.1%, 0.968 55%, 1.003 62.7%, 1.013 66.6%, 1.016 70.6%, 1.005 81.4%, 1);
}

.om-hero {
    position: relative;
    margin: 1em 1em 0;
    min-height: 24rem;
    overflow: hidden;
    border-radius: 18px;
    color: #f3f6fb;
    isolation: isolate;
    background: #0d1220;
}

.om-hero svg {
    cursor: inherit;
}

.om-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--om-pos, center 38%);
    transform: scale(var(--om-zoom, 1));
    transform-origin: var(--om-focus, center);
}

.om-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgb(var(--om-shade) / 0.28) 0%, rgb(var(--om-shade) / 0.42) 42%, rgb(var(--om-shade) / 0.86) 100%),
        linear-gradient(90deg, rgb(var(--om-shade) / 0.55) 0%, rgb(var(--om-shade) / 0.12) 58%, transparent 80%);
}

/* Per-page shadow colour and framing, so the shared photo reads differently on each forecast page. */
.om-hero {
    --om-shade: 6 8 14;
}

.om-hero.is-dawn {
    --om-pos: center 4%;
    --om-pos-m: center 0%;
}

.om-hero.is-evergreen {
    --om-shade: 6 14 14;
    --om-zoom: 1.3;
    --om-focus: 50% 88%;
}

.om-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 24rem;
    padding: 1.4rem 1.6rem 1.5rem;
}

.om-hero p,
.om-hero dl,
.om-hero dd {
    margin: 0;
    padding: 0;
}

.om-hero-kicker {
    margin-bottom: 0.45rem !important;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5eefff;
}

.om-hero-title {
    margin: 0;
    font-size: clamp(1.65rem, 3.6vw, 2.4rem);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.1;
    color: #f3f6fb;
}

.om-hero-sub,
.om-hero-aside,
.om-hero-when {
    margin-top: 0.35rem !important;
    font-size: 0.86rem;
    color: rgb(243 246 251 / 0.75);
}

.om-hero-when {
    margin-top: auto !important;
    padding-top: 1.1rem !important;
}

.om-hero-metrics {
    display: grid;
    gap: 1.35rem;
    margin-top: 1.4rem;
}

.om-hero-metrics:last-child {
    margin-top: auto;
    padding-top: 1.4rem;
}

.om-hero-temp-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.6rem 1.4rem;
}

.om-hero-asides {
    padding-bottom: 0.35rem;
}

.om-hero-temp {
    font-size: clamp(4rem, 10vw, 6.2rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.om-hero-unit {
    margin-left: 0.12em;
    font-size: 0.28em;
    letter-spacing: 0;
    vertical-align: super;
    color: rgb(243 246 251 / 0.72);
}

.om-roll {
    font-variant-numeric: tabular-nums;
}

.om-roll-digit {
    display: inline-block;
    height: 1em;
    overflow: hidden;
    letter-spacing: 0;
    vertical-align: bottom;
}

.om-roll-strip {
    display: block;
    width: 1ch;
    translate: 0 calc(var(--d) * -1em);
    transition: translate 0.8s var(--spring);
    transition-delay: calc(var(--i) * 50ms);
}

.om-roll-strip > span {
    display: block;
    height: 1em;
    line-height: 1em;
}

.om-hero.is-settled .om-roll-strip {
    transition: none;
}

.om-hero-stats {
    display: grid;
    grid-template-columns: repeat(var(--stats, 3), minmax(0, 1fr));
    gap: 0.8rem 1rem;
}

.om-hero-stats dt {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(243 246 251 / 0.66);
}

.om-hero-stats dt svg {
    width: 16px;
    height: 16px;
    flex: none;
    color: #5eefff;
}

.om-hero-stats dd {
    margin-top: 0.28rem !important;
    font-size: 1.02rem;
    font-weight: 600;
}

@media (max-width: 719px) {
    .om-hero,
    .om-hero-inner {
        min-height: 0;
    }

    .om-hero-img {
        inset: auto 0 0;
        height: 120%;
        object-position: var(--om-pos-m, center 52%);
    }

    .om-hero.is-dawn .om-hero-img {
        inset: 0 0 auto;
    }

    .om-hero-inner {
        padding: 1.1rem 1rem 1.25rem;
    }

    .om-hero-when {
        margin-top: 0.35rem !important;
        padding-top: 1.1rem !important;
    }
}

@media (max-width: 639px) {
    .om-hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .om-roll-strip {
        transition: none;
    }
}

.om-stations {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0.75rem 1em 0;
    padding: 0;
    list-style: none;
}

.om-stations > li {
    margin: 0;
    padding: 0;
}

.om-station {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 0.8rem 0.9rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: #1c2328;
    color: #f3f6fb;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, translate 0.35s var(--spring);
}

.om-station:hover {
    background: #232b32;
    border-color: rgb(94 239 255 / 0.28);
    translate: 0 -2px;
}

.om-station:active {
    translate: 0 0;
}

.om-station:focus-visible {
    outline: 2px solid #5eefff;
    outline-offset: 2px;
}

.om-station-head {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.om-station-name {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--om-text-soft);
}

.om-station-elev,
.om-station-meta {
    font-size: 0.72rem;
    color: var(--om-text-muted);
}

.om-station-temp {
    font-size: 1.85rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.om-station-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.om-station-meta.is-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5eefff;
    box-shadow: 0 0 0 3px rgb(94 239 255 / 0.15);
}

.om-stations.is-settled .om-roll-strip {
    transition: none;
}

@media (max-width: 719px) {
    .om-stations {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .om-stations > .is-wide {
        display: none;
    }

    .om-station {
        padding: 0.7rem 0.7rem 0.65rem;
    }

    .om-station-temp {
        font-size: 1.6rem;
    }
}

#content_alpine .switch-container {
    grid-template-columns: minmax(0, 1fr);
}

#content_alpine .slider-heading span {
    white-space: nowrap;
}

#content_alpine.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.om-elev-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem;
    margin: 1.25em 1em 0;
    padding: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: #1c2328;
}

.om-elev-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.55rem 0.4rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--om-text-soft);
    font: inherit;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.om-elev-tab:hover {
    background: rgba(255, 255, 255, 0.04);
}

.om-elev-tab.is-active {
    background: linear-gradient(180deg, #303a43 0%, #283139 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
    color: #fff;
}

.om-elev-tab-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.om-elev-tab-m {
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
    color: var(--om-text-muted);
}

.om-elev-tab.is-active .om-elev-tab-m {
    color: var(--om-text-soft);
}

@media (min-width: 720px) {
    .om-elev-tabs {
        max-width: 30rem;
    }

    .om-elev-tab {
        flex-direction: row;
        justify-content: center;
        gap: 0.45rem;
    }
}

.om-chart {
    margin: 1.25em 1em 0;
    padding: 1rem 0.75rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: linear-gradient(180deg, #262e35 0%, #1f262c 100%);
}

.om-chart-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem 1rem;
    padding: 0 0.3rem;
}

#content_alpine .om-chart-title,
#content_valley .om-chart-title {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--om-text-soft);
}

.om-chart-legend {
    display: flex;
    gap: 0.4rem;
}

.om-chart-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #d5deea;
    font: inherit;
    font-size: 0.74rem;
    line-height: 1;
    cursor: pointer;
}

.om-chart-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.om-chart-pill.is-snow::before {
    background: var(--snow);
}

.om-chart-pill.is-rain::before {
    background: var(--rain);
}

.om-chart-pill.is-freeze::before {
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #a3b1c6 50%, var(--icon-warm) 50%);
}

.om-chart-pill.is-off {
    color: var(--color-text-dark);
    background: transparent;
    opacity: 0.55;
}

#chart-container {
    margin-top: 0.4rem;
}

.om-chart-stack-label,
.om-chart-fl-label {
    padding: 0.1rem 0.35rem;
    border-radius: 6px;
    background: rgba(24, 30, 35, 0.88);
}

.om-chart-stack-label {
    display: inline-block;
}

.om-chart-tip {
    min-width: 8.5rem;
}

.om-chart-tip-day {
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--om-text-muted);
}

.om-chart-tip-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.12rem 0;
}

.om-chart-tip-row b {
    margin-left: auto;
    font-weight: 500;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.om-chart-tip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.om-summary {
    margin: 1.25em 1em 0;
    padding: 1rem 1.05rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: linear-gradient(180deg, #262e35 0%, #1f262c 100%);
    color: #d5deea;
}

.om-summary p {
    margin: 0;
    padding: 0;
}

.om-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.om-summary-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--om-text-soft);
}

.om-summary-age {
    font-size: 0.72rem;
    color: var(--om-text-muted);
}

.om-summary-lead {
    margin-top: 0.55rem !important;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
}

.om-summary-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.om-summary-tile {
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.om-summary-tile-label {
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--om-text-muted);
}

.om-summary-tile-value {
    margin-top: 0.15rem !important;
    font-size: 1.02rem;
    white-space: nowrap;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.om-summary-tile-note {
    margin-top: 0.1rem !important;
    font-size: 0.76rem;
    line-height: 1.3;
    color: var(--om-text-soft);
}

.om-summary-tile.is-snow .om-summary-tile-value {
    color: var(--snow);
}

.om-summary-tile.is-rain .om-summary-tile-value {
    color: var(--rain);
}

.om-summary-tile.is-flag .om-summary-tile-note {
    color: var(--icon-warm);
}

.om-summary-now {
    margin-top: 0.85rem !important;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--om-text-soft);
}

.om-summary-now span {
    margin-right: 0.3rem;
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--om-text-muted);
}

.om-summary-source {
    margin-top: 0.7rem !important;
    padding-top: 0.6rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.72rem;
    color: var(--om-text-muted);
}

@media (min-width: 720px) {
    .om-summary {
        padding: 1.2rem 1.4rem 1rem;
    }

    .om-summary-lead {
        font-size: 1.1rem;
    }

    .om-summary-tile-value {
        font-size: 1.15rem;
    }

    .om-summary-tiles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.om-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.9rem;
    margin: 1.25em 1em 2em;
}

.om-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem 1.05rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: linear-gradient(180deg, #262e35 0%, #1f262c 100%);
    color: #d5deea;
}

.om-card p,
.om-card h3,
.om-card dl,
.om-card dd {
    margin: 0;
    padding: 0;
}

.om-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.om-card-day {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #fff;
}

.om-card-date {
    margin-top: 0.1rem;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--om-text-muted);
}

.om-card-glyph {
    flex: none;
    width: 40px;
    height: 40px;
    color: #a9b6c6;
}

.om-card-glyph.wx-clear {
    color: #f4c27a;
}

.om-card-glyph.wx-partly {
    color: #c9d3de;
}

.om-card-glyph.wx-drizzle {
    color: #8fb3c9;
}

.om-card-glyph.wx-rain {
    color: var(--rain);
}

.om-card-glyph.wx-snow {
    color: var(--snow);
}

.om-card-glyph.wx-thunder {
    color: var(--icon-warm);
}

.om-card-wx {
    font-size: 0.9rem;
    color: var(--om-text-soft);
}

.om-card-temps {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin: 0.15rem 0 0.4rem;
    font-variant-numeric: tabular-nums;
}

.om-card-hi {
    font-size: 2.1rem;
    font-weight: 500;
    line-height: 1;
    color: #fff;
}

.om-card-lo {
    font-size: 1.15rem;
    color: var(--om-text-muted);
}

.om-card-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.om-card-row {
    display: grid;
    grid-template-columns: 5.4rem 1fr;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.om-card-row:last-child {
    border-bottom: 0;
}

.om-card-row dt {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--om-text-muted);
}

.om-card-row dd {
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    color: #d5deea;
}

.om-card-muted {
    color: var(--om-text-muted);
}

.om-card-note {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.76rem;
    color: var(--om-text-muted);
}

.om-card-precip.is-rain {
    color: var(--rain);
}

.om-card-precip.is-snow {
    color: var(--snow);
}

.om-card-precip.is-mix {
    color: #b9d9c4;
}

.om-card-pop {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.6rem;
    font-size: 0.82rem;
    color: var(--om-text-muted);
}

.om-card-pop-bar {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.om-card-pop-bar::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--pop);
    border-radius: 2px;
    background: #8fb3c9;
}

.om-card-fl {
    color: #a3b1c6;
    font-weight: 500;
}

.om-card-fl.is-warm {
    color: var(--icon-warm);
}

.om-card-trend {
    margin-left: 0.2rem;
    color: var(--om-text-muted);
}

@media (min-width: 1280px) {
    .om-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Dense packing lets the other cards in a row fill in ahead of an open full-width detail panel. */
.om-cards {
    grid-auto-flow: row dense;
}

.om-card.has-detail {
    cursor: pointer;
    transition: border-color 0.24s ease, border-radius 0.24s ease;
}

.om-card.has-detail:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.om-card.is-open {
    border-color: rgba(135, 206, 250, 0.35);
}

.om-card-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: auto -0.3rem 0;
    padding: 0.5rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--om-text-soft);
    font: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.om-card-more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.om-card.has-detail:hover .om-card-more {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.om-card.is-open .om-card-more svg {
    transform: rotate(180deg);
}

.om-card-more.is-none {
    font-size: 0.74rem;
    color: var(--om-text-muted);
    cursor: default;
}

.om-detail {
    --caret-x: 50%;
    position: relative;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
    padding: 1rem 1.05rem 1.1rem;
    border: 1px solid rgba(135, 206, 250, 0.2);
    border-radius: 16px;
    background: linear-gradient(180deg, #232b32 0%, #1d2429 100%);
    color: #d5deea;
}

.om-detail[hidden] {
    display: none;
}

.om-detail {
    box-sizing: border-box;
}

.om-detail.is-animating {
    overflow: hidden;
}

.om-detail::before {
    content: "";
    position: absolute;
    top: -7px;
    left: calc(var(--caret-x) - 7px);
    width: 12px;
    height: 12px;
    border-top: 1px solid rgba(135, 206, 250, 0.2);
    border-left: 1px solid rgba(135, 206, 250, 0.2);
    background: #232b32;
    transform: rotate(45deg);
    transition: left 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.om-detail.is-animating::before {
    opacity: 0;
}

.om-detail p,
.om-detail ol {
    margin: 0;
    padding: 0;
}

.om-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.om-detail-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--om-text-soft);
}

.om-detail-title span {
    font-weight: 400;
    color: var(--om-text-muted);
}

.om-detail-close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--om-text-soft);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.om-detail-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.om-detail-close:active {
    transform: scale(0.92);
}

.om-detail-close svg {
    width: 16px;
    height: 16px;
}

.om-detail-lead {
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
}

.om-parts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.om-part {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.65rem 0.7rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
}

.om-part.is-ski {
    background: rgba(135, 206, 250, 0.07);
    box-shadow: 0 0 0 1px rgba(135, 206, 250, 0.14) inset;
}

.om-part-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.4rem;
}

.om-part-name {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--om-text-soft);
}

.om-part-span {
    font-size: 0.66rem;
    color: var(--om-text-muted);
}

.om-part-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.om-part .om-card-glyph {
    width: 26px;
    height: 26px;
}

.om-part-temp {
    font-size: 0.9rem;
    white-space: nowrap;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.om-part-precip,
.om-part-wind {
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    color: var(--om-text-muted);
}

.om-part-precip.is-rain {
    color: var(--rain);
}

.om-part-precip.is-snow {
    color: var(--snow);
}

.om-part-precip.is-mix {
    color: #b9d9c4;
}

.om-part-pop {
    color: var(--om-text-muted);
}

.om-hours {
    display: flex;
    gap: 4px;
    margin: 0 -1.05rem !important;
    padding: 0 1.05rem 0.4rem !important;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.om-next .om-hours {
    margin-top: 0.6rem !important;
}

.om-next .om-summary-title {
    white-space: nowrap;
}

.om-hours-note {
    margin-top: 0.35rem !important;
    text-align: right;
    font-size: 0.68rem;
    color: var(--om-text-muted);
}

.om-hour {
    flex: 0 0 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.25rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    scroll-snap-align: start;
}

.om-hour.is-night {
    background: rgba(0, 0, 0, 0.18);
}

.om-hour.is-ski {
    background: rgba(135, 206, 250, 0.07);
}

.om-hour-time {
    font-size: 0.74rem;
    color: var(--om-text-muted);
}

.om-hour .om-card-glyph {
    width: 26px;
    height: 26px;
}

.om-hour-temp {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
}

.om-hour-precip {
    color: var(--om-text-muted);
}

.om-hour-precip small {
    margin-left: 1px;
    font-size: 0.6rem;
    opacity: 0.8;
}

.om-hour-precip.is-rain {
    color: var(--rain);
}

.om-hour-precip.is-snow {
    color: var(--snow);
}

.om-hour-pop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
    color: var(--om-text-muted);
}

.om-hour-pop .om-card-pop-bar {
    width: 32px;
}

.om-hour-wind {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    color: var(--om-text-soft);
    white-space: nowrap;
}

.om-hour-dir {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--om-text-muted);
}

.om-hour-speed {
    font-weight: 500;
}

.om-card-glyph.wx-moon,
.om-card-glyph.wx-partly-night {
    color: #c9d3de;
}

.om-card-glyph.wx-mix {
    color: #b9d9c4;
}

.om-card.is-night {
    background: linear-gradient(180deg, #20272e 0%, #1a2025 100%);
}

.om-card-templabel {
    margin-top: -0.2rem !important;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--om-text-muted);
}

.om-source {
    margin: 1em 1em 0;
}

.om-source p {
    margin: 0;
}

.om-source-line {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #d5deea;
}

.om-source-badge {
    display: inline-block;
    margin-right: 0.5em;
    padding: 0.12em 0.6em;
    border-radius: 999px;
    background: #d5deea;
    color: #1a2029;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: 0.08em;
}

.om-source-badge.is-automated {
    background: #a3b3c4;
}

.om-source-meta {
    margin-top: 0.3rem !important;
    font-size: 0.75rem;
    color: var(--om-text-muted);
}

.om-new {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1em 1em 0;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: #1c2328;
    font-size: 0.85rem;
    line-height: 1.45;
    color: #d5deea;
}

.om-new[hidden] {
    display: none;
}

.om-new p {
    flex: 1;
    margin: 0;
}

.om-new strong {
    color: #f1f5fa;
}

.om-new a {
    color: #9fd4ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.om-new-close {
    flex: none;
    padding: 0.4em 0.85em;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: transparent;
    color: #f1f5fa;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}

.om-note {
    margin: 1.25em 1em 2em;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--om-text-muted);
}

@media (max-width: 639px) {
    .om-card.is-open {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-color: transparent;
    }

    .om-detail {
        margin-top: calc(-0.9rem - 1px);
        border-top: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-color: rgba(135, 206, 250, 0.35);
    }

    .om-detail::before {
        display: none;
    }

    .om-card-row {
        grid-template-columns: 6.4rem 1fr;
    }

    .om-card-row dt {
        font-size: 0.76rem;
        font-weight: 500;
        letter-spacing: 0.03em;
        white-space: nowrap;
    }

    .om-card-date {
        font-size: 0.82rem;
        letter-spacing: 0.03em;
    }

    .om-card-templabel {
        font-size: 0.75rem;
        letter-spacing: 0.03em;
    }

    .om-card-note,
    .om-card-more.is-none {
        font-size: 0.82rem;
    }

    .om-card-pop {
        font-size: 0.86rem;
    }

    .om-summary-tile-label,
    .om-summary-now span {
        font-size: 0.72rem;
        letter-spacing: 0.03em;
    }

    .om-summary-age,
    .om-summary-source,
    .om-source-meta {
        font-size: 0.8rem;
    }

    .om-chart-tip-day,
    .om-elev-tab-m {
        font-size: 0.75rem;
    }

    .om-part-head {
        flex-wrap: wrap;
        column-gap: 0.4rem;
        row-gap: 0;
    }

    .om-part-name,
    .om-part-span {
        font-size: 0.74rem;
        white-space: nowrap;
    }

    .om-part-name {
        letter-spacing: 0.03em;
    }

    .om-part-precip,
    .om-part-wind {
        font-size: 0.84rem;
    }

    .om-hour-time {
        font-size: 0.74rem;
    }

    .om-hour-pop,
    .om-hour-dir {
        font-size: 0.7rem;
    }
}

@media (min-width: 720px) {
    .om-detail {
        padding: 1.2rem 1.4rem 1.2rem;
    }

    .om-hours {
        margin: 0 -1.4rem !important;
        padding: 0 1.4rem 0.4rem !important;
    }

    .om-next .om-hours {
        margin: 0.6rem -1.4rem 0 !important;
        padding: 0 1.4rem 0.4rem !important;
    }

    .om-hour {
        flex-basis: 76px;
    }

    .om-hour-temp {
        font-size: 1.08rem;
    }

    .om-parts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .om-detail-lead {
        font-size: 1.05rem;
    }
}

.om-hilo {
    --hilo-high: #c5ccd6;
    --hilo-high-ink: #121820;
    --hilo-low: #5b8cff;
    --hilo-low-ink: #fff;
    --hilo-freeze: #f4a261;
}

/* nav/css-nav-no-switch.css gives every svg a pointer cursor; icons should only show one inside something tappable. */
#content_alpine svg:not(.highcharts-root) {
    cursor: inherit;
}

.om-hilo {
    cursor: default;
}

.om-hilo-title-short {
    display: none;
}

@media (max-width: 719px) {
    .om-hilo-title-long {
        display: none;
    }

    .om-hilo-title-short {
        display: inline;
    }
}

.om-hilo-key {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.75rem;
    color: var(--om-text-soft);
}

.om-hilo-key span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.om-hilo-key .is-high::before,
.om-hilo-key .is-low::before {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--hilo-high);
}

.om-hilo-key .is-low::before {
    background: var(--hilo-low);
}

.om-hilo-key .is-freeze {
    gap: 0.15rem;
}

.om-hilo-key .om-hilo-thermo {
    width: 14px;
    height: 14px;
    color: var(--hilo-freeze);
}

/* Side padding matches OM_HILO.padL and padR in js-forecast.js. */
.om-hilo-row {
    display: grid;
    grid-template-columns: repeat(var(--hilo-days, 5), minmax(0, 1fr));
    padding: 0 12px 0 34px;
    text-align: center;
}

.om-hilo-wx {
    margin-top: 0.9rem;
}

.om-hilo-wx .om-card-glyph {
    width: 28px;
    height: 28px;
    color: #a9b6c6;
}

.om-hilo-wx .om-card-glyph.wx-rain,
.om-hilo-wx .om-card-glyph.wx-drizzle {
    color: var(--rain);
}

.om-hilo-wx .om-card-glyph.wx-snow {
    color: var(--snow);
}

/* The mix glyph draws cloud, rain streaks, then snow dots as three paths. */
.om-hilo-wx .om-card-glyph.wx-mix path:nth-of-type(2) {
    stroke: var(--rain);
}

.om-hilo-wx .om-card-glyph.wx-mix path:nth-of-type(3) {
    stroke: var(--snow);
    stroke-width: 2.6;
}

@media (min-width: 720px) {
    .om-hilo-wx .om-card-glyph {
        width: 32px;
        height: 32px;
    }
}

.om-hilo-days {
    font-size: 0.75rem;
    color: var(--om-text-muted);
}

.om-hilo-svg {
    display: block;
    width: 100%;
    height: 196px;
    overflow: visible;
}

.om-hilo-grid {
    stroke: rgba(255, 255, 255, 0.07);
    stroke-width: 1;
}

.om-hilo-axis {
    font-size: 10px;
    fill: var(--om-text-muted);
}

.om-hilo-freeze {
    stroke: var(--hilo-freeze);
    stroke-width: 1.5;
    stroke-opacity: 0.55;
    stroke-dasharray: 7 3;
}

.om-hilo-freeze-mark {
    color: var(--hilo-freeze);
}

.om-hilo-line {
    fill: none;
    stroke-width: 1.4;
}

.om-hilo-line.is-high {
    stroke: var(--hilo-high);
}

.om-hilo-line.is-low {
    stroke: var(--hilo-low);
}

.om-hilo-day {
    transform-box: fill-box;
    transform-origin: center;
}

.om-hilo-bubble.is-high {
    fill: var(--hilo-high);
}

.om-hilo-bubble.is-low {
    fill: var(--hilo-low);
}

.om-hilo-value {
    font-size: 12px;
    font-weight: 700;
}

.om-hilo-value.is-high {
    fill: var(--hilo-high-ink);
}

.om-hilo-value.is-low {
    fill: var(--hilo-low-ink);
}

@media (min-width: 720px) {
    .om-hilo-svg {
        height: 210px;
    }
}
