#in_content:has(> #g-weather-pages) { padding: 0 18px; }

#g-weather-pages {
    padding: 12px 0 20px;
    color: var(--ink);
    line-height: 1.4;
}

#g-weather-pages :where(h1, h2, h3, p, dl, dd, ul) { margin: 0; }
#g-weather-pages ul { padding: 0; list-style: none; }
#g-weather-pages a { color: inherit; }
#g-weather-pages a:focus-visible,
#g-weather-pages summary:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.weather-pages-path,
.weather-pages-intro,
.weather-pages-links,
.weather-pages-panel-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.weather-pages-path { color: #5c705f; font-size: 13px; }
.weather-pages-path a { text-decoration: none; }
.weather-pages-path a:hover { text-decoration: underline; }
.weather-pages-crumb { display: inline-flex; align-items: baseline; gap: 6px; }
.weather-pages-crumb > [aria-hidden="true"] { color: #708072; }
.weather-pages-intro { align-items: center; justify-content: space-between; margin: 10px 0 var(--section-gap); gap: 10px 18px; }
#g-weather-pages h1 { color: var(--ink); font-size: clamp(24px, 4vw, 32px); line-height: 1.15; letter-spacing: -.3px; }

#g-weather-pages .g-link-button { color: var(--link-color); }
#g-weather-pages .g-link-button[aria-current="page"] {
    --link-color: #fff;
    background: #315441;
    border-color: #315441;
}

.weather-pages-panel {
    padding: 12px 15px;
    margin-bottom: var(--section-gap);
    color: var(--panel-ink);
    scroll-margin-block-start: 12px;
}

.weather-pages-panel-heading {
    justify-content: space-between;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

#g-weather-pages h2 { font-size: 22px; font-weight: 500; line-height: 1.25; }
#g-weather-pages :is(#period-summary, #period-description) { color: color-mix(in srgb, var(--panel-ink) 70%, #141414); }
.weather-pages-panel-heading > :not(h2) { color: var(--panel-muted); font-size: 13px; }
.weather-pages-panel-heading a { text-decoration: none; }
.weather-pages-panel-heading a:hover { text-decoration: underline; text-underline-offset: 3px; }
.weather-pages-panel-heading h2 a span { font-size: .7em; }
.weather-pages-panel-heading h2::first-letter { text-transform: uppercase; }

.weather-period-description-text {
    font-size: 14px;
    line-height: 1.5;
}
#g-weather-pages .weather-period-description p { margin: 0; }
.weather-period-description-dates { color: var(--panel-muted); font-size: 13px; }

.weather-pages-month-list,
.weather-pages-archive-list {
    display: grid;
    gap: 4px;
}

.weather-pages-calendar a {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 2px;
    padding: 7px 2px;
    border-radius: 5px;
    font-size: 13px;
    text-decoration: none;
}

.weather-pages-temperatures { font-weight: 500; white-space: nowrap; }
.weather-pages-calendar a:hover,
.weather-pages-archive-list a:hover,
.weather-pages-month-link:hover { background: var(--panel-hover); }

#g-weather-pages .g-weather-icon { display: block; flex: none; max-width: 100%; }

.weather-range-views { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

#g-weather-pages .weather-range-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.weather-range-cards > li { display: flex; min-width: 0; scroll-margin-block-start: 12px; }
.weather-range-cards + .weather-pages-panel { margin-block-start: var(--section-gap); }
#g-weather-pages .weather-range-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    box-sizing: border-box;
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--panel-edge);
    border-radius: 8px;
    background: color-mix(in srgb, var(--panel-paper) 42%, white);
    color: var(--panel-ink);
    text-decoration: none;
}
#g-weather-pages .weather-range-today {
    background: var(--panel-paper) var(--panel-gradient);
    border-color: var(--panel-selected-edge);
}
.weather-range-date {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-inline-end: 16px;
    line-height: 1.2;
}
.weather-range-date strong { font-size: 17px; font-weight: 500; }
.weather-range-date strong::first-letter { text-transform: uppercase; }
.weather-range-date > span { font-size: 13px; color: var(--panel-muted); }
.weather-range-arrow {
    position: absolute;
    inset-block-start: 13px;
    inset-inline-end: 14px;
    color: var(--panel-muted);
    font-size: 14px;
}
.weather-range-condition {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 1px;
    padding-block: 7px 12px;
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
}
.weather-range-icon { display: grid; place-items: center; width: 68px; height: 62px; }
.weather-range-icon .g-weather-icon { width: 100%; height: 100%; }
.weather-range-temperatures {
    padding-block-start: 9px;
    border-top: 1px solid var(--panel-edge);
    border-image: var(--row-divider) 1;
    text-align: center;
}
.weather-range-temperatures dt { color: var(--panel-muted); font-size: 13px; }
.weather-range-temperatures dd {
    margin-top: 1px;
    color: var(--panel-ink);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
}
@media (hover: hover) {
    #g-weather-pages .weather-range-card:hover { border-color: var(--panel-selected-edge); background: var(--panel-hover); }
    .weather-range-card:hover .weather-range-arrow { color: var(--panel-ink); }
}

.weather-pages-metrics {
    --metric-padding: 8px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    text-align: start;
}
.weather-pages-panel-heading:has(+ .weather-pages-metrics) { margin-bottom: 0; }
.weather-pages-metrics + .weather-pages-metrics {
    border-top: 1px solid var(--panel-edge);
    border-image: var(--row-divider) 1;
}
.weather-pages-metrics > div { position: relative; padding: var(--metric-padding) 12px; }
.weather-pages-metrics > div:first-child { padding-inline-start: 0; }
.weather-pages-metrics > div:last-child { padding-inline-end: 0; }
.weather-pages-metrics > div + div::before {
    content: "";
    position: absolute;
    inset-block: 4px;
    inset-inline-start: 0;
    border-inline-start: 1px solid var(--panel-edge);
    mask-image: var(--divider-mask);
}
.weather-pages-metrics dt { font-size: 13px; color: var(--panel-muted); }
.weather-pages-metrics dd { font-size: 23px; font-weight: 500; }

.weather-period-details {
    display: grid;
    gap: 5px;
    padding-block-start: 10px;
    border-top: 1px solid var(--panel-edge);
    border-image: var(--row-divider) 1;
    color: var(--panel-muted);
    font-size: 14px;
}
.weather-period-details a { text-underline-offset: 2px; }
.weather-period-items {
    --divider-spacing: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px calc(2 * var(--divider-spacing));
    overflow: clip;
}
.weather-period-items > span { position: relative; }
.weather-period-condition {
    display: flex;
    align-items: center;
    gap: 4px;
}
.weather-period-items > span + span::before {
    content: "";
    position: absolute;
    inset-block: 2px;
    inset-inline-start: calc(0px - var(--divider-spacing));
    border-inline-start: 1px solid var(--panel-edge);
    mask-image: var(--divider-mask);
}

.weather-pages-month-list,
.weather-pages-archive-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.weather-pages-month-list li,
.weather-pages-archive-list a {
    border: 1px solid var(--panel-edge);
    border-radius: 5px;
    background: color-mix(in srgb, var(--panel-paper) 50%, transparent);
}
.weather-pages-month-link,
.weather-pages-archive-list a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 3px 8px;
    padding: 9px 11px;
    text-decoration: none;
    border-radius: 4px;
}
.weather-pages-month-link > strong { text-transform: capitalize; }
.weather-pages-season-link { display: inline-block; margin: 0 11px 8px; font-size: 13px; text-underline-offset: 2px; }
.weather-pages-archive-list strong { font-size: 21px; }
.weather-pages-archive-list a > span { font-size: 13px; color: var(--panel-muted); }

.weather-pages-calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: center;
}
.weather-pages-calendar th { padding: 4px 0 7px; color: var(--panel-muted); font-size: 13px; font-weight: 500; }
.weather-pages-calendar tbody tr { background: var(--row-divider) left top / 100% 1px no-repeat; }
.weather-pages-calendar td { padding: 2px; vertical-align: top; border-top: 1px solid transparent; }
.weather-pages-calendar a { min-height: 96px; }
.weather-pages-calendar .weather-pages-temperatures { font-size: clamp(11px, 2.1vw, 13px); }
.weather-pages-calendar-icon { width: 38px; height: 38px; }
.weather-pages-calendar-condition {
    color: var(--panel-muted);
    font-size: 13px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.weather-pages-calendar-weekday { display: none; }
.weather-pages-calendar-missing { display: inline-block; margin-top: 7px; font-size: 13px; color: var(--panel-muted); }

@media (max-width: 760px) {
    #in_content:has(> #g-weather-pages) { padding-inline: 10px; }
    .weather-pages-panel { padding-inline: 10px; }
    .weather-pages-month-list, .weather-pages-archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    #g-weather-pages .weather-range-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
}

@media (max-width: 546px) {
    .weather-pages-metrics { --metric-padding: 6px; display: block; }
    .weather-pages-metrics > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding-inline: 0;
    }
    .weather-pages-metrics > div + div {
        border-top: 1px solid var(--panel-edge);
        border-image: var(--row-divider) 1;
    }
    .weather-pages-metrics > div + div::before { content: none; }
    .weather-pages-metrics dt { font-size: 14px; }
    .weather-pages-metrics dd { font-size: 19px; }

    .weather-pages-panel-heading:has(+ .weather-pages-calendar) { margin-bottom: 0; }
    .weather-pages-calendar,
    .weather-pages-calendar tbody,
    .weather-pages-calendar tr,
    .weather-pages-calendar td { display: block; }
    .weather-pages-calendar thead,
    .weather-pages-calendar td:not(:has(> *)) { display: none; }
    .weather-pages-calendar tbody tr { background: none; }
    .weather-pages-calendar td {
        padding: 0;
        text-align: start;
        background: var(--row-divider) left top / 100% 1px no-repeat border-box;
    }
    .weather-pages-calendar tbody > tr:first-child > td:nth-child(1 of :has(> *)) {
        border-top: 0;
        background: none;
    }
    .weather-pages-calendar a {
        grid-template-columns: 42px 30px minmax(0, 1fr) auto;
        grid-template-areas: "date icon condition temperatures";
        align-items: center;
        justify-items: start;
        gap: 6px;
        min-height: 0;
        padding: 3px 2px 0;
    }
    #g-weather-pages .weather-pages-calendar a:focus-visible { outline-offset: -2px; }
    .weather-pages-calendar time {
        grid-area: date;
        display: flex;
        align-items: baseline;
        gap: 4px;
        font-size: 16px;
        font-weight: 500;
    }
    .weather-pages-calendar-weekday {
        display: inline;
        color: var(--panel-muted);
        font-size: 12px;
        font-weight: 400;
    }
    .weather-pages-calendar-icon { grid-area: icon; width: 30px; height: 30px; }
    .weather-pages-calendar-icon .g-weather-icon { width: 100%; height: 100%; }
    .weather-pages-calendar-condition { grid-area: condition; }
    .weather-pages-calendar .weather-pages-temperatures { grid-area: temperatures; justify-self: end; font-size: 13px; }
    .weather-pages-calendar-missing { margin: 0; padding: 8px 2px 7px; }
}

@media (max-width: 480px) {
    #g-weather-pages .weather-range-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #g-weather-pages .weather-range-card { padding: 11px 10px; }
    .weather-range-date strong { font-size: 16px; }
    .weather-range-arrow { inset-block-start: 11px; inset-inline-end: 10px; }
    .weather-range-icon { width: 62px; height: 56px; }
}

#g-weather-pages .weather-range-rows {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
}
.weather-range-rows > li + li {
    border-top: 1px solid var(--panel-edge);
    border-image: var(--row-divider) 1;
}
#g-weather-pages .weather-range-rows .weather-range-card {
    grid-template: "date condition temperatures metrics arrow" auto / minmax(108px, 1fr) minmax(0, 1.55fr) minmax(114px, .85fr) minmax(299px, 2.5fr) 16px;
    align-items: center;
    gap: 14px;
    min-height: 65px;
    padding: 7px 16px;
    background: transparent;
    border: 0;
    border-radius: 0;
}
#g-weather-pages .weather-range-rows .weather-range-today { background: var(--panel-paper) var(--panel-gradient); }
#g-weather-pages .weather-range-rows .weather-range-card:focus-visible { outline-offset: -2px; }
.weather-range-rows .weather-range-date { grid-area: date; padding-inline-end: 0; }
.weather-range-rows .weather-range-condition {
    grid-area: condition;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0;
    text-align: start;
    overflow-wrap: anywhere;
}
.weather-range-rows .weather-range-icon { flex: 0 0 auto; width: 48px; height: 44px; }
.weather-range-rows .weather-range-temperatures { grid-area: temperatures; display: block; padding: 0; border: 0; }
.weather-range-rows .weather-range-temperatures dd { color: var(--panel-ink); font-weight: 500; }
.weather-range-rows .weather-range-arrow { position: static; grid-area: arrow; justify-self: end; }
.weather-range-metrics {
    position: relative;
    grid-area: metrics;
    display: grid;
    grid-template-columns: minmax(90px, 1.35fr) repeat(3, minmax(0, 1fr));
    text-align: center;
    padding-inline-start: 10px;
    border-inline-start: 1px solid transparent;
}
.weather-range-metrics::before {
    content: "";
    position: absolute;
    inset-block: 0;
    inset-inline-start: -1px;
    border-inline-start: 1px solid var(--panel-edge);
    mask-image: var(--divider-mask);
}
.weather-range-metrics dt { color: var(--panel-muted); font-size: 13px; }
.weather-range-metrics dd { font-size: 17px; line-height: 1.2; white-space: nowrap; }
.weather-range-metrics .weather-range-unit { color: var(--panel-muted); font-size: 12px; }
@media (hover: hover) {
    #g-weather-pages .weather-range-rows .weather-range-card:hover { background: var(--panel-hover); }
}

@media (max-width: 690px) {
    #g-weather-pages .weather-range-rows .weather-range-card {
        grid-template: "date condition temperatures" auto / minmax(100px, 1fr) minmax(0, 2fr) minmax(114px, 1fr);
    }
    .weather-range-rows .weather-range-arrow,
    .weather-range-metrics { display: none; }
}

@media (max-width: 480px) {
    #g-weather-pages .weather-range-rows .weather-range-card {
        grid-template-columns: minmax(max-content, .8fr) minmax(0, 1.2fr) 94px;
        column-gap: 7px;
        padding-inline: 9px;
    }
    .weather-range-rows .weather-range-date strong { font-size: 15px; }
    .weather-range-rows .weather-range-condition { gap: 4px; font-size: 13px; }
    .weather-range-rows .weather-range-icon { width: 31px; height: 33px; }
    .weather-range-rows .weather-range-temperatures dd { font-size: 17px; }
}

