.frame:has(.od-weather) {
    background: var(--color-surface-dark);
}

.frame:has(.od-weather) :is(.frame-header, header:first-child) {
    width: min(100%, 100rem);
    margin-inline: auto;
    padding: clamp(2.5rem, 5vw, 5rem) 3rem 0;
    text-align: center;
}

.frame:has(.od-weather) :is(.frame-header, header:first-child) :is(h1, h2, h3) {
    margin: 0;
    color: var(--color-taupe);
    font-family: "Libre Caslon Text", Georgia, serif;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    text-wrap: balance;
}

.od-weather {
    padding: clamp(3rem, 5vw, 5.5rem) 0;
    background: var(--color-surface-dark);
    color: var(--color-text);
}

.frame:has(.od-weather) .frame-header + .od-weather {
    padding-top: clamp(2rem, 3.5vw, 3.75rem);
}

.od-weather__inner {
    max-width: 100rem;
    margin-inline: auto;
}

.od-weather__days {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.od-weather__day {
    min-width: 0;
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    border-top: 0.25rem solid var(--color-primary);
    border-radius: 0.5rem;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.od-weather__day header p,
.od-weather__box-day p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.od-weather__day header h3,
.od-weather__box-day h3 {
    margin: 0.3rem 0 0;
    color: var(--color-taupe);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 400;
}

.od-weather__icon {
    display: block;
    margin: 1.5rem 0 1rem;
    color: var(--color-primary);
    font-size: clamp(3.25rem, 5vw, 4.75rem);
    line-height: 1;
}

.od-weather__temperature {
    margin: 0 0 1.5rem;
    color: var(--color-surface-deep);
    font-family: "Libre Caslon Text", Georgia, serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1;
}

.od-weather__facts {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.od-weather__facts > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.od-weather__facts dt {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
}

.od-weather__facts dd {
    margin: 0;
    color: var(--color-text);
    font-weight: 700;
    white-space: nowrap;
}

.od-weather__copy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.od-weather__copy-card {
    padding: clamp(1.75rem, 3vw, 3rem);
    background: var(--color-surface-deep);
    color: #fff;
}

.od-weather__eyebrow {
    margin: 0 0 0.6rem;
    color: var(--color-primary-text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.od-weather__copy-card h3 {
    margin: 0 0 1rem;
    color: var(--color-sand);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
}

.od-weather__copy-card > :last-child {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.0625rem;
    line-height: 1.65;
}

.od-weather__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    color: var(--color-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.od-weather__copyright {
    text-align: right;
    white-space: pre-line;
}

.od-weather__box {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: 0 1rem 2.5rem rgba(106, 1, 9, 0.08);
}

.od-weather__box-days {
    display: grid;
    min-width: 0;
    flex: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.od-weather__box-day {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem 1rem;
    min-width: 0;
    padding: 1.25rem;
    border-right: 1px solid var(--color-border);
}

.od-weather__box-day .bi {
    grid-row: span 2;
    color: var(--color-primary);
    font-size: 2.25rem;
}

.od-weather__box-day strong {
    color: var(--color-text);
    font-size: 1.15rem;
}

.od-weather__detail-link {
    display: inline-flex;
    min-width: 11rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 1.75rem;
    background: var(--color-primary);
    color: var(--color-surface-deep);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.od-weather__detail-link:hover,
.od-weather__detail-link:focus-visible {
    background: var(--color-surface-deep);
    color: var(--color-on-primary);
}

.od-weather__notice {
    margin: 0;
    padding: 1.5rem;
    border-left: 0.25rem solid var(--color-primary);
    background: var(--color-surface);
    color: var(--color-text);
}

@media (max-width: 1199.98px) {
    .od-weather__days {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .od-weather__box {
        flex-direction: column;
    }

    .od-weather__detail-link {
        min-height: 3.5rem;
    }
}

@media (max-width: 767.98px) {
    .frame:has(.od-weather) :is(.frame-header, header:first-child) {
        padding: 2rem 1rem 0;
    }

    .od-weather {
        padding: 2rem 0;
    }

    .od-weather__inner {
        padding-right: 1rem !important;
        padding-left: 1rem !important;
    }

    .od-weather__days,
    .od-weather__copy-grid,
    .od-weather__box-days {
        grid-template-columns: 1fr;
    }

    .od-weather__box-day {
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .od-weather__meta {
        flex-direction: column;
    }

    .od-weather__copyright {
        text-align: left;
    }
}
