/* Snow-Forecast page styles on top of meteo/css-forecast.css. Shared by /weather/ and /weather-top/. */
#content_weather {
    --om-text-muted: #a3b3c4;
    --om-text-soft: #c6d4e6;
    padding-bottom: 1.5em;
}

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

/* nav/css-nav-no-switch.css gives every svg a pointer cursor. */
#content_weather svg:not(.highcharts-root) {
    cursor: inherit;
}

#notice_weather {
    margin: 2em 1em;
    color: #c6d4e6;
}

.om-empty {
    margin: 2em 1em;
    color: var(--om-text-soft);
}

/* Each photo gets its own framing and shadow. */
.om-hero.is-sf-mid {
    --om-shade: 6 14 14;
    --om-pos: center 36%;
    --om-pos-m: center 32%;
    --om-zoom: 1.08;
    --om-focus: center 30%;
}

.om-hero.is-sf-bot {
    --om-shade: 8 12 16;
    --om-pos: center 46%;
    --om-pos-m: center 42%;
    --om-zoom: 1.16;
    --om-focus: center 35%;
}

.om-hero.is-sf-top {
    --om-shade: 8 10 18;
    --om-pos: center 52%;
    --om-pos-m: center 48%;
    --om-zoom: 1.12;
    --om-focus: center 46%;
}

.sf-parts {
    display: grid;
    grid-template-columns: repeat(var(--parts, 3), minmax(0, 1fr));
    gap: 0.4rem;
    margin: 0.35rem 0 0.2rem !important;
}

.sf-part {
    gap: 0.25rem;
    padding: 0.6rem 0.55rem;
}

.sf-part.is-night {
    background: rgba(0, 0, 0, 0.16);
}

/* Snow periods use flat blue surfaces. */
.sf-part.has-snow {
    background: #293e4c;
}

.sf-part.has-snow.is-night {
    background: #223542;
}

.sf-part.has-snow::before {
    content: none;
}

.sf-part .om-part-main {
    gap: 0.35rem;
}

.sf-part .om-part-temp {
    font-size: 1rem;
}

.sf-part-wx {
    min-height: 2.3em;
    font-size: 0.74rem;
    line-height: 1.15;
    color: var(--om-text-soft);
}

.sf-part-precip {
    font-size: 0.78rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.sf-part-precip .om-part-precip:not([class*='is-']) {
    font-weight: 400;
}

.sf-map {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: calc(100% + 2.1rem);
    margin: 0 -1.05rem -0.6rem;
    padding: 0.6rem 1.05rem 0.7rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0 0 16px 16px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.sf-map:hover {
    background: rgba(255, 255, 255, 0.025);
}

.sf-map img {
    flex: none;
    width: 34px;
    height: 48px;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: width 0.25s ease, height 0.25s ease;
}

.sf-map-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

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

.sf-map-hint {
    font-size: 0.74rem;
    color: var(--om-text-muted);
}

.sf-map[aria-expanded='true'] {
    flex-direction: column;
    align-items: stretch;
}

.sf-map[aria-expanded='true'] img {
    width: 100%;
    height: auto;
    aspect-ratio: 120 / 171;
    max-width: 12rem;
    align-self: center;
    border-radius: 10px;
}

.sf-map[aria-expanded='true'] .sf-map-text {
    align-items: center;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .sf-map img {
        transition: none;
    }
}
