.weather-dashboard {
    padding: clamp(18px, 2vw, 28px) 4.5% clamp(28px, 3vw, 42px);
    color: #17251e;
}

.weather-dashboard [hidden] {
    display: none !important;
}

.weather-dashboard__hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
    padding: 15px 20px;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% -60%, rgba(255, 226, 117, 0.22), transparent 45%),
        var(--brand-dark);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
}

.weather-dashboard__hero-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #fff1a8;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(255, 220, 94, 0.23);
    font-size: 30px;
}

.weather-dashboard__hero h1,
.weather-dashboard__hero p {
    margin: 0;
    color: inherit;
}

.weather-dashboard__hero h1 {
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.2;
}

.weather-dashboard__hero p {
    margin-top: 3px;
    font-size: 14px;
    opacity: 0.88;
}

.weather-locations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 14px;
    padding: 8px;
    background: #edf1ee;
    border: 1px solid #c4cbc6;
}

.weather-locations button,
.weather-dashboard__error button {
    min-height: 36px;
    padding: 7px 16px;
    color: #ffffff;
    background: #59615c;
    border: 2px solid;
    border-color: #e5e5e5 #343434 #343434 #e5e5e5;
    border-radius: 0;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 1px 0 #333333;
}

.weather-locations button:hover,
.weather-locations button:focus-visible,
.weather-dashboard__error button:hover,
.weather-dashboard__error button:focus-visible {
    color: var(--brand-dark);
    background: var(--brand-soft);
    text-shadow: none;
    outline: none;
}

.weather-locations button.is-active {
    color: #ffffff;
    background: #17654d;
    border-color: #343434 #e5e5e5 #e5e5e5 #343434;
    box-shadow: inset 0 0 0 1px #0d4736;
    text-shadow: none;
}

.weather-dashboard__status,
.weather-dashboard__error {
    padding: 34px 20px;
    color: #4e5953;
    background: #ffffff;
    border: 1px solid #c3cac6;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.weather-dashboard__error p {
    margin: 0 0 12px;
}

.weather-dashboard__overview {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 14px;
}

.weather-current,
.weather-fishing,
.weather-hourly,
.weather-daily,
.weather-sources {
    background: #ffffff;
    border: 1px solid #bcc4bf;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.1);
}

.weather-current,
.weather-fishing {
    padding: clamp(16px, 2vw, 22px);
}

.weather-current__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.weather-dashboard__eyebrow {
    margin: 0 0 4px;
    color: #68716c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.weather-current h2,
.weather-fishing h2,
.weather-section-heading h2 {
    margin: 0;
    color: var(--brand-dark);
}

.weather-current h2 {
    font-size: clamp(20px, 2vw, 27px);
}

.weather-current time {
    display: block;
    margin-top: 3px;
    color: #66716b;
    font-size: 12px;
}

.weather-current__temperature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-current__icon {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
}

.weather-current__temperature strong {
    color: #17251e;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
}

.weather-current__description {
    margin: 10px 0 16px;
    padding-bottom: 12px;
    color: #33443a;
    border-bottom: 1px solid #d8ddda;
    font-size: 16px;
    font-weight: 700;
}

.weather-current__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
}

.weather-current__metrics div {
    padding: 8px 10px;
    background: #f1f4f2;
    border-left: 3px solid #a9b6ae;
}

.weather-current__metrics dt,
.weather-current__metrics dd {
    margin: 0;
}

.weather-current__metrics dt {
    color: #6a746e;
    font-size: 11px;
}

.weather-current__metrics dd {
    margin-top: 2px;
    color: #17251e;
    font-size: 14px;
    font-weight: 700;
}

.weather-fishing {
    border-top: 4px solid var(--accent);
}

.weather-fishing h2 {
    font-size: 19px;
}

.weather-fishing__notes {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

.weather-fishing__note {
    display: grid;
    gap: 2px;
    padding: 9px 10px;
    background: #f0f2f1;
    border-left: 4px solid #7a837e;
}

.weather-fishing__note strong {
    color: #24352b;
    font-size: 13px;
}

.weather-fishing__note span {
    color: #536059;
    font-size: 12px;
    line-height: 1.4;
}

.weather-fishing__note--good {
    background: #e4f2e8;
    border-left-color: #368054;
}

.weather-fishing__note--attention {
    background: #fff1d9;
    border-left-color: #c27612;
}

.weather-fishing__note--danger {
    background: #f8e3df;
    border-left-color: #ae4b3c;
}

.weather-fishing__warning {
    margin: 12px 0 0;
    color: #6b5143;
    font-size: 11px;
    line-height: 1.45;
}

.weather-hourly,
.weather-daily {
    margin-top: 14px;
    padding: 16px;
}

.weather-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.weather-section-heading h2 {
    font-size: 19px;
}

.weather-section-heading > span {
    color: #68736c;
    font-size: 11px;
}

.weather-hourly__track {
    display: grid;
    grid-auto-columns: minmax(112px, 1fr);
    grid-auto-flow: column;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-color: #8b958f #e2e6e3;
}

.weather-hourly__item {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 132px;
    padding: 8px 6px;
    background: #f1f4f2;
    border-bottom: 4px solid #7d8781;
    text-align: center;
}

.weather-hourly__item time {
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
}

.weather-hourly__icon {
    font-size: 28px;
    line-height: 1.2;
}

.weather-hourly__item strong {
    font-size: 18px;
}

.weather-hourly__item span:not(.weather-hourly__icon) {
    color: #59655e;
    font-size: 10px;
}

.weather-daily__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(125px, 1fr));
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.weather-daily__item {
    display: grid;
    place-items: center;
    align-content: start;
    gap: 5px;
    min-height: 214px;
    padding: 10px 8px;
    background: #f1f4f2;
    border-top: 3px solid var(--brand-dark);
    text-align: center;
}

.weather-daily__item time {
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: capitalize;
}

.weather-daily__icon {
    font-size: 32px;
    line-height: 1.2;
}

.weather-daily__item > strong {
    font-size: 17px;
}

.weather-daily__condition {
    min-height: 30px;
    color: #59655e;
    font-size: 11px;
    line-height: 1.35;
}

.weather-daily__item dl {
    display: grid;
    gap: 3px;
    width: 100%;
    margin: 3px 0 0;
    padding-top: 6px;
    border-top: 1px solid #d4dad6;
}

.weather-daily__item dl div {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.weather-daily__item dt,
.weather-daily__item dd {
    margin: 0;
    font-size: 10px;
}

.weather-daily__item dt {
    color: #6e7772;
}

.weather-daily__item dd {
    font-weight: 700;
}

.weather-sources {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 18px;
    margin-top: 14px;
    padding: 11px 14px;
    color: #5c6760;
    font-size: 11px;
}

.weather-sources a {
    color: var(--link);
    font-weight: 700;
}

@media (max-width: 1000px) {
    .weather-dashboard__overview {
        grid-template-columns: 1fr;
    }

    .weather-current__metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .weather-dashboard {
        padding: 12px;
    }

    .weather-dashboard__hero {
        justify-content: flex-start;
        padding: 13px 14px;
    }

    .weather-dashboard__hero-icon {
        width: 40px;
        height: 40px;
        font-size: 25px;
    }

    .weather-locations {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weather-locations button:first-child {
        grid-column: 1 / -1;
    }

    .weather-current__heading {
        align-items: flex-start;
    }

    .weather-current__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weather-hourly,
    .weather-daily {
        padding: 12px;
    }

    .weather-daily__grid {
        grid-template-columns: repeat(7, 135px);
    }

    .weather-sources {
        display: grid;
    }
}

@media (max-width: 430px) {
    .weather-dashboard__hero-icon {
        display: none;
    }

    .weather-locations button {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 13px;
    }

    .weather-current__temperature {
        gap: 4px;
    }

    .weather-current__icon {
        font-size: 34px;
    }

    .weather-current__temperature strong {
        font-size: 36px;
    }

    .weather-current__metrics {
        grid-template-columns: 1fr 1fr;
    }
}
