.weather-page {
    padding-bottom: 3rem;
}
.weather-widget {
    margin-block: 2rem;
}
.weather-panel {
    min-width: 0;
    margin-bottom: 1rem;
    padding: clamp(1rem, 2.8vw, 2rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-wrap: anywhere;
}
.weather-widget-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .35rem 1.25rem;
}
.weather-widget-heading h2 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}
.weather-location {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: .75rem;
}
.weather-location .field {
    flex: 0 1 16rem;
    max-width: 100%;
}
.weather-location label {
    display: block;
    margin-bottom: .25rem;
}
.weather-location button {
    margin-top: 1.8rem;
    max-width: 100%;
}
.weather-status {
    min-height: 1.6em;
    font-size: .9rem;
    margin: .5rem 0;
}
.weather-status:empty {
    margin: 0;
}
.weather-message, .weather-warning {
    border: 1px solid #d9ba8a;
    background: #fff8ed;
    color: #503414;
    border-radius: .65rem;
    padding: .75rem 1rem;
}
.weather-warning {
    margin-bottom: 1rem;
}
.weather-warning p {
    color: inherit;
}
.weather-warning-text p {
    white-space: pre-wrap;
}
.weather-credit {
    font-size: .85rem;
    margin: .75rem 0 0;
}
.weather-days {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: .75rem;
}
.weather-card {
    padding: .9rem;
    border: 1px solid var(--border);
    border-radius: .65rem;
    background: var(--surface-secondary);
}
.weather-card p, .weather-card ul {
    margin-bottom: .5rem;
}
.weather-card ul {
    padding-left: 1.25rem;
}
.weather-card li + li {
    margin-top: .5rem;
}
.weather-card dl, .weather-measures {
    display: grid;
    gap: .55rem 1rem;
    margin: .5rem 0 .75rem;
}
.weather-measures {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}
.weather-card dt, .weather-measures dt {
    font-size: .84rem;
    color: var(--muted-text);
}
.weather-card dd, .weather-measures dd {
    margin: 0;
    font-weight: 650;
}
.weather-scroll {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: .55rem;
}
.weather-scroll table {
    width: 100%;
    min-width: 53rem;
    border-collapse: collapse;
    font-size: .88rem;
}
.weather-scroll caption, .weather-scroll th, .weather-scroll td {
    text-align: left;
    padding: .55rem .7rem;
}
.weather-scroll th[scope="col"] {
    background: var(--surface-secondary);
}
.weather-scroll td, .weather-scroll th[scope="row"] {
    border-top: 1px solid var(--border);
}
.weather-methodology {
    max-width: 75ch;
}
.weather-widget-summary {
    margin: .25rem 0;
}
@media (max-width: 480px) {
    .weather-location .field {
        flex-basis: 100%;
    }
    .weather-location button {
        margin-top: 0;
    }
}

/* Batch 2 city discovery and compact home presentation. */
.weather-city-search {
    position: relative;
}
.weather-location .weather-city-search {
    flex-basis: 28rem;
}
.weather-city-search input {
    width: 100%;
    min-width: 0;
}
.weather-search-status {
    display: block;
    margin-top: .4rem;
    line-height: 1.4;
    min-height: 2.8em;
}
.weather-suggestions {
    position: absolute;
    inset: 100% 0 auto;
    z-index: 20;
    max-height: 21rem;
    overflow-y: auto;
    padding: .35rem;
    margin: 0;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: .6rem;
    background: var(--surface);
    box-shadow: 0 10px 24px #10281b24;
}
.weather-suggestions[hidden] {
    display: none;
}
.weather-suggestions [role="option"] {
    padding: .65rem .7rem;
    border-radius: .4rem;
    cursor: pointer;
    min-height: 3rem;
    overflow-wrap: anywhere;
}
.weather-suggestions [role="option"]:hover,
.weather-suggestions [aria-selected="true"] {
    background: #e5f3eb;
    outline: 1px solid #448264;
}
.weather-suggestions span, .weather-suggestions small {
    display: block;
}
.weather-suggestions small {
    color: var(--muted-text);
    line-height: 1.4;
    margin-top: .15rem;
}
.weather-native-results li {
    margin-bottom: .65rem;
}
.weather-widget > .weather-panel {
    border-top: 3px solid #3c8262;
    padding: clamp(1rem, 2vw, 1.5rem);
}
.weather-widget-heading {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.weather-widget-heading .eyebrow {
    font-size: .76rem;
    margin: 0 0 .4rem;
}
.weather-widget-heading h2 {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    margin: 0;
}
.weather-widget-heading .button {
    font-size: .9rem;
}
.weather-widget-body {
    display: grid;
    grid-template-columns: minmax(13rem, 1fr) minmax(0, 2fr);
    gap: 1rem 1.5rem;
}
.weather-widget .weather-location {
    display: block;
}
.weather-widget .weather-location button {
    margin-top: .25rem;
}
.weather-widget .weather-location label {
    font-size: .88rem;
}
.weather-widget-content {
    min-width: 0;
    min-height: 14rem;
}
.weather-widget-result {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.weather-widget .weather-status-success {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.weather-widget .weather-search-status {
    min-height: 1.4em;
}
.weather-widget-sources {
    margin-top: .4rem;
    font-size: .78rem;
}
.weather-widget-sources summary {
    cursor: pointer;
}
.weather-widget-current {
    display: flex;
    gap: .75rem;
    align-items: center;
}
.weather-widget-current .field-help {
    display: block;
}
.weather-widget-current strong {
    font-size: 1.1rem;
}
.weather-condition-icon {
    font-size: 2.3rem;
    color: #316c50;
}
.weather-widget-days {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem 1rem;
    margin-top: .7rem;
}
.weather-widget-summary > span {
    display: block;
}
.weather-widget-tip, .weather-widget-warning {
    margin: .5rem 0;
    font-size: .9rem;
}
.weather-widget-warning {
    color: #6c4412;
}
.weather-widget .weather-credit {
    font-size: .76rem;
    margin-top: .4rem;
}
.weather-widget .weather-warning-link {
    font-size: .86rem;
}
.weather-scroll table {
    min-width: 73rem;
    width: max-content;
}
.weather-scroll th, .weather-scroll td {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}
.weather-scroll th[scope="col"] {
    max-width: 16rem;
    vertical-align: bottom;
}
.weather-scroll th[scope="row"] {
    white-space: nowrap;
}
.weather-scroll td.weather-number {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.weather-scroll .weather-number {
    text-align: right;
}
@media (max-width: 767px) {
    .weather-widget-body {
        grid-template-columns: minmax(0, 1fr);
        gap: .25rem;
    }
    .weather-widget-content {
        min-height: 18rem;
    }
    .weather-widget-result {
        grid-template-columns: minmax(0, 1fr);
        gap: .4rem;
    }
    .weather-widget .weather-location {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        margin-bottom: .25rem;
    }
    .weather-widget .weather-location .field {
        position: static;
        flex: 1 1 100%;
    }
    .weather-widget .weather-location button {
        margin-top: 1.75rem;
        padding-inline: .75rem;
        font-size: .87rem;
    }
}
@media (max-width: 480px) {
    .weather-location .weather-city-search {
        flex-basis: 100%;
    }
    .weather-widget-heading .button {
        width: 100%;
        text-align: center;
        padding-block: .55rem;
    }
    .weather-suggestions {
        max-height: 18rem;
    }
}
