/* --- assets/css/components/pages/weather/weather-index.css --- */
/**
 * Weather home only — public/index.php
 * All layout/surface styles scoped under .wi-page / .wi-dashboard.
 * JS hooks: element IDs unchanged; loading dims use .wi-dim.
 */

/* ----- Page shell ----- */
html.wi-page {
    height: 100%;
}

body.wi-page {
    margin: 0;
    min-height: 100%;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0f172a;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(14, 165, 233, 0.12) 0%, transparent 55%),
        radial-gradient(100% 70% at 100% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, #e8f0fa 0%, #dfeaf7 45%, #edf2f8 100%);
    display: flex;
    flex-direction: column;
}

body.wi-page .header {
    flex-shrink: 0;
}

/* Desktop / TV: fill viewport, scroll inside main if needed */
@media (min-width: 901px) {
    html.wi-page,
    body.wi-page {
        height: 100%;
        overflow: hidden;
    }

    .wi-dashboard {
        flex: 1;
        min-height: 0;
        overflow: auto;
        overscroll-behavior: contain;
    }
}

@media (max-width: 900px) {
    body.wi-page {
        min-height: 100vh;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wi-dashboard {
        flex: 1 1 auto;
        min-height: auto;
        overflow: visible;
    }
}

/* ----- Dashboard grid ----- */
.wi-dashboard {
    --wi-radius: 16px;
    --wi-border: rgba(15, 23, 42, 0.08);
    --wi-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --wi-shadow-lg: 0 14px 34px rgba(15, 23, 42, 0.12);
    --wi-ink: #0f172a;
    --wi-muted: #64748b;
    --wi-accent: #0369a1;
    --wi-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 250, 255, 0.92) 100%);
    --wi-panel-ring: inset 0 1px 0 rgba(255, 255, 255, 0.75);

    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas:
        "hero clock"
        "hourly wind"
        "hourly metrics";
    gap: clamp(10px, 1.5vw, 16px);
    padding-block: clamp(10px, 1.5vw, 16px);
    padding-inline: clamp(12px, 1.25vw, 22px);
    max-width: min(100%, 2240px);
    margin-inline: auto;
    width: 100%;
    box-sizing: border-box;
}

.wi-panel--hero { grid-area: hero; }
.wi-panel--hourly { grid-area: hourly; }
.wi-panel--clock { grid-area: clock; }
.wi-panel--wind { grid-area: wind; }
.wi-panel--metrics { grid-area: metrics; }

.wi-panel {
    background: var(--wi-surface);
    border: 1px solid var(--wi-border);
    border-radius: var(--wi-radius);
    box-shadow: var(--wi-shadow);
    backdrop-filter: blur(3px);
    transition: box-shadow 0.24s ease, transform 0.24s ease, border-color 0.24s ease;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.wi-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: var(--wi-panel-ring);
    border-radius: inherit;
}

@media (hover: hover) and (pointer: fine) {
    .wi-panel:hover {
        border-color: rgba(2, 132, 199, 0.24);
        box-shadow: var(--wi-shadow-lg);
        transform: translateY(-1px);
    }
}

.wi-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.75) 0%, rgba(248, 251, 255, 0.15) 100%);
}

.wi-panel__greeting {
    margin: 0;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 700;
    color: var(--wi-ink);
    line-height: 1.3;
    max-width: 28rem;
}

.wi-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wi-muted);
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.95) 0%, rgba(224, 242, 254, 0.9) 100%);
    border: 1px solid rgba(2, 132, 199, 0.2);
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

.wi-panel__subhead {
    padding: 12px 16px 8px;
}

.wi-panel__h2 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wi-muted);
}

.wi-muted {
    color: var(--wi-muted);
    font-size: 0.8rem;
}

/* ----- Hero ----- */
.wi-hero {
    display: grid;
    grid-template-columns: 1fr 1fr minmax(0, 0.95fr);
    gap: clamp(10px, 1.5vw, 18px);
    padding: 12px 16px 16px;
    align-items: stretch;
}

.wi-hero__primary,
.wi-hero__condition,
.wi-hero__aside {
    min-width: 0;
}

.wi-hero__temp {
    margin: 0 0 12px;
    line-height: 1;
}

.wi-hero__temp-num {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 800;
    color: #0c4a6e;
    letter-spacing: -0.02em;
}

.wi-hero__temp-unit {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--wi-accent);
    margin-left: 2px;
}

.wi-sun {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.wi-sun__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.9) 0%, rgba(237, 247, 255, 0.6) 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 10px;
}

.wi-sun__label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wi-muted);
}

.wi-sun__time {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--wi-ink);
}

.wi-hero__condition {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 0;
}

.wi-hero__icon {
    width: min(120px, 55%);
    height: auto;
    object-fit: contain;
}

.wi-hero__desc {
    margin: 10px 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    text-transform: capitalize;
}

.wi-hero__aside {
    border: 1px solid rgba(2, 132, 199, 0.16);
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 249, 255, 0.62) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.wi-hero__place {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--wi-muted);
}

.wi-hero__clock-sm {
    margin: 0 0 10px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0369a1;
}

.wi-hero__mini {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
}

.wi-hero__mini-arrow {
    color: #0369a1;
}

.wi-arrow-svg {
    display: block;
}

.wi-hero__wind-line {
    margin: 0;
    font-weight: 800;
    font-size: 0.95rem;
}

.wi-hero__wind-dir {
    margin: 0;
    font-size: 0.8rem;
    color: var(--wi-muted);
}

.wi-hero__hum {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--wi-muted);
}

/* ----- Hourly carousel (overrides global cards.css inside dashboard) ----- */
.wi-dashboard .hourly-carousel {
    width: 100%;
    padding: 2px 12px 10px;
    gap: 8px;
}

.wi-dashboard .hourly-track-wrapper {
    position: relative;
}

.wi-dashboard .hourly-track {
    gap: 12px;
    padding: 6px 4px 8px;
    scrollbar-width: thin;
}

.wi-dashboard .hourly-card {
    min-width: calc((100% - 24px) / 3);
    min-height: auto;
    background: linear-gradient(165deg, #f8fafc 0%, #eff6ff 50%, #f8fafc 100%);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    padding: 14px 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .wi-dashboard .hourly-card:hover {
        border-color: rgba(2, 132, 199, 0.28);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
        transform: translateY(-2px);
    }
}

@media (max-width: 900px) {
    .wi-dashboard .hourly-card {
        min-width: calc((100% - 12px) / 2);
        min-height: auto;
    }
}

.wi-dashboard .hourly-time {
    color: #0c4a6e;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.wi-dashboard .hourly-temp {
    color: #0369a1;
    font-size: clamp(1.35rem, 2.35vw, 1.75rem);
    font-weight: 800;
}

.wi-dashboard .hourly-meta,
.wi-dashboard .hourly-info {
    color: #475569;
    font-size: clamp(1.02rem, 1.6vw, 1.22rem);
    font-weight: 700;
}

.wi-dashboard .hourly-info {
    font-weight: 650;
}

.wi-dashboard .hourly-icon img {
    width: clamp(72px, 10vw, 104px);
    height: clamp(72px, 10vw, 104px);
}

.wi-dashboard .carousel-arrow {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #0369a1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .wi-dashboard .carousel-arrow:hover {
        transform: translateY(-50%) scale(1.06);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
        background: #ffffff;
    }
}

.wi-dashboard .carousel-dots button {
    border-color: rgba(3, 105, 161, 0.35);
}

.wi-dashboard .carousel-dots button.active {
    background: #0369a1;
    border-color: #0369a1;
}

.wi-dashboard .carousel-dots {
    margin-top: 4px;
    margin-bottom: 0;
}

/* Desktop grid: hourly spans wind + metrics rows — stretch panel and grow carousel so the white card fills the column (no dead background gap below) */
@media (min-width: 1101px) {
    .wi-dashboard .wi-panel--hourly {
        display: flex;
        flex-direction: column;
        min-height: 0;
        align-self: stretch;
    }

    .wi-dashboard .wi-panel--hourly .hourly-carousel {
        flex: 1 1 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .wi-dashboard .hourly-track-wrapper {
        flex: 1 1 auto;
        min-height: 12rem;
        display: flex;
        flex-direction: column;
    }

    .wi-dashboard .hourly-track {
        flex: 1 1 auto;
        align-items: stretch;
        min-height: 0;
    }

    .wi-dashboard .hourly-card {
        justify-content: center;
        gap: clamp(8px, 1.8vh, 18px);
        padding-block: clamp(14px, 3.5vh, 36px);
        padding-inline: clamp(12px, 1.5vw, 18px);
    }

    .wi-dashboard .hourly-icon img {
        width: clamp(56px, 9vh, 104px);
        height: clamp(56px, 9vh, 104px);
    }

    .wi-dashboard .hourly-time {
        font-size: clamp(0.95rem, 1.8vh, 1.15rem);
    }

    .wi-dashboard .hourly-temp {
        font-size: clamp(1rem, 2vh, 1.35rem);
    }

    .wi-dashboard .carousel-dots {
        flex-shrink: 0;
        margin-top: clamp(6px, 1.2vh, 14px);
        padding-bottom: 4px;
    }
}

/* ----- Clock ----- */
.wi-dashboard .wi-clock {
    width: 100%;
    height: 100%;
    padding: 14px 16px 18px;
    gap: clamp(16px, 3vw, 28px);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.wi-dashboard .wi-panel--clock {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wi-dashboard .wi-panel--clock .clock-info {
    margin-left: 0;
}

.wi-dashboard .clock-face {
    border-color: #0284c7;
    background: radial-gradient(circle, #ffffff 58%, #e0f2fe 100%);
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.wi-dashboard .clock-hand {
    background: #0284c7;
}

.wi-dashboard .hand-minute {
    background: #0369a1;
}

.wi-dashboard .clock-center {
    background: #0369a1;
}

.wi-dashboard .clock-time {
    color: #0c4a6e;
}

.wi-dashboard .clock-date,
.wi-dashboard .clock-meta {
    color: #475569;
}

/* ----- Wind ----- */
.wi-dashboard .wi-panel--wind {
    padding: 12px 14px 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 252, 255, 0.92) 100%),
        linear-gradient(90deg, rgba(3, 105, 161, 0.06), rgba(14, 165, 233, 0.03));
}

.wi-dashboard .wind-card {
    height: 100%;
    gap: 12px;
}

.wi-dashboard .wind-title {
    color: #0c4a6e;
}

.wi-dashboard .wind-sub {
    color: #0369a1;
}

.wi-dashboard .wind-value {
    color: #0c4a6e;
}

.wi-dashboard .wind-direction {
    color: #0369a1;
    /* Hug content: flex column stretch was forcing full-width pill background */
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}

.wi-dashboard .wind-graph-svg {
    color: #0369a1;
}

.wi-dashboard .wind-arrow {
    color: #0369a1;
    width: 36px;
    height: 36px;
    max-width: 100%;
    transform-origin: center;
}

.wi-dashboard .meta-label {
    color: #64748b;
}

.wi-dashboard .meta-value {
    color: #0f172a;
}

.wi-dashboard .wind-body {
    align-items: stretch;
}

.wi-dashboard .wind-visual {
    flex: 1;
    min-width: 0;
}

.wi-dashboard .wind-graph,
.wi-dashboard .wind-graph-svg {
    max-width: 100%;
}

.wi-dashboard .wind-meta {
    align-items: stretch;
}

.wi-dashboard .meta-item.wind-arrow-meta {
    align-items: center;
    justify-content: center;
    min-width: 64px;
}

.wi-dashboard .wind-arrow-wrap {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: visible;
}

@media (max-width: 600px) {
    .wi-dashboard .wind-direction {
        align-self: center;
    }
}

/* ----- Metrics ----- */
.wi-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 16px 16px;
}

.wi-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 16px 10px;
    min-height: 128px;
    border-radius: 12px;
    border: 1px solid rgba(2, 132, 199, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 248, 255, 0.8) 100%);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .wi-metric:hover {
        transform: translateY(-2px);
        border-color: rgba(2, 132, 199, 0.28);
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
    }
}

.wi-metric__icon img {
    height: 48px;
    width: auto;
    object-fit: contain;
    opacity: 0.92;
}

.wi-metric__val {
    font-size: clamp(1.32rem, 2.35vw, 1.72rem);
    font-weight: 800;
    color: #0c4a6e;
}

.wi-metric__lbl {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wi-muted);
}

/* ----- Responsive: stack ----- */
@media (max-width: 1400px) {
    .wi-hero {
        grid-template-columns: 1.2fr 1fr;
        grid-template-areas:
            "primary condition"
            "aside aside";
    }

    .wi-hero__primary { grid-area: primary; }
    .wi-hero__condition { grid-area: condition; }
    .wi-hero__aside {
        grid-area: aside;
        max-width: none;
    }

    .wi-hero__temp-num {
        font-size: clamp(2.2rem, 5vw, 3.2rem);
    }
}

/* Mid-size desktop/tablet landscape: keep 2-column layout but prevent right-column crowding */
@media (max-width: 1400px) and (min-width: 1281px) {
    .wi-dashboard {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 10px;
    }

    .wi-hero {
        gap: 10px;
        padding: 10px 12px 12px;
    }

    .wi-hero__icon {
        width: min(96px, 48%);
    }

    .wi-hero__desc {
        margin-top: 6px;
        font-size: 0.86rem;
    }

    .wi-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px 12px 12px;
    }

    .wi-metric {
        min-height: 108px;
        padding: 12px 8px;
        gap: 6px;
    }

    .wi-metric__icon img {
        height: 38px;
    }

    .wi-metric__val {
        font-size: clamp(1.18rem, 1.55vw, 1.42rem);
    }
}

/* Compact 2-column mode for 1024x768 up to 1280 widths */
@media (max-width: 1280px) and (min-width: 1001px) {
    .wi-dashboard {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
        grid-template-areas:
            "hero clock"
            "hourly hourly"
            "wind metrics";
        gap: 8px;
        padding-block: 8px;
        padding-inline: 8px;
    }

    .wi-panel__head {
        padding: 9px 11px 7px;
    }

    .wi-panel__subhead {
        padding: 8px 11px 6px;
    }

    .wi-hero {
        grid-template-columns: 1fr 1fr 0.82fr;
        grid-template-areas: none;
        gap: 8px;
        padding: 8px 11px 10px;
    }

    .wi-hero__primary,
    .wi-hero__condition,
    .wi-hero__aside {
        grid-area: auto;
    }

    .wi-hero__temp-num {
        font-size: clamp(1.95rem, 3.1vw, 2.5rem);
    }

    .wi-sun__row {
        padding: 5px 8px;
    }

    .wi-hero__icon {
        width: min(72px, 72%);
    }

    .wi-hero__desc {
        margin-top: 5px;
        font-size: 0.76rem;
    }

    .wi-hero__aside {
        padding: 6px 7px;
    }

    .wi-hero__clock-sm {
        font-size: 0.92rem;
        margin-bottom: 5px;
    }

    .wi-hero__mini {
        gap: 2px;
    }

    .wi-hero__wind-line {
        font-size: 0.86rem;
    }

    .wi-hero__wind-dir {
        font-size: 0.64rem;
    }

    /* Lowest-priority detail in compact mode; prevents bottom clipping */
    .wi-hero__hum {
        display: none;
    }

    .wi-dashboard .wi-clock {
        padding: 10px 12px 12px;
        gap: 12px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .wi-dashboard .clock-face {
        width: 102px;
        height: 102px;
        border-width: 4px;
        flex-shrink: 0;
    }

    .wi-dashboard .clock-info {
        margin-left: 0;
        align-items: center;
        text-align: center;
        gap: 4px;
    }

    .wi-dashboard .hourly-carousel {
        padding: 0 8px 5px;
        gap: 4px;
    }

    .wi-dashboard .hourly-track {
        gap: 8px;
        padding: 2px 2px 4px;
    }

    .wi-dashboard .hourly-card {
        min-width: calc((100% - 16px) / 3);
        min-height: 0;
        padding: 5px 7px;
        gap: 3px;
    }

    .wi-dashboard .hourly-icon img {
        width: clamp(40px, 5vw, 54px);
        height: clamp(40px, 5vw, 54px);
    }

    .wi-dashboard .hourly-time {
        font-size: 0.78rem;
    }

    .wi-dashboard .hourly-temp {
        font-size: 0.9rem;
    }

    .wi-dashboard .hourly-meta,
    .wi-dashboard .hourly-info {
        font-size: 0.78rem;
    }

    .wi-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 6px 8px 8px;
        width: 100%;
        height: 100%;
        align-content: stretch;
        grid-auto-rows: 1fr;
    }

    /* Fill the row cleanly; cards share height evenly */
    .wi-dashboard .wi-panel--metrics {
        align-self: stretch;
        display: block;
    }

    .wi-dashboard .wi-panel--wind {
        padding: 7px 9px 8px;
        overflow: visible;
    }

    .wi-dashboard .wind-card {
        gap: 6px;
        height: auto;
        min-height: 0;
    }

    .wi-dashboard .wind-meta {
        margin-top: 0;
        gap: 4px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .wi-dashboard .meta-item {
        gap: 3px;
        padding: 6px 5px;
        min-height: 0;
    }

    .wi-dashboard .meta-label {
        font-size: 0.6rem;
    }

    .wi-dashboard .meta-value {
        font-size: 0.88rem;
    }

    .wi-dashboard .wind-value {
        font-size: 1.9rem;
    }

    .wi-dashboard .wind-direction {
        font-size: 0.72rem;
        line-height: 1.1;
        padding: 4px 8px;
        border-radius: 6px;
        min-height: 0;
        align-self: flex-start;
        width: fit-content;
    }

    .wi-dashboard .wind-graph {
        height: 46px;
    }

    .wi-dashboard .wind-graph-svg {
        height: 50px;
    }

    .wi-dashboard .meta-item.wind-arrow-meta {
        min-width: 0;
        grid-column: auto;
    }

    .wi-dashboard .wind-arrow-wrap {
        width: 28px;
        height: 28px;
    }

    .wi-dashboard .wind-arrow {
        width: 20px;
        height: 20px;
    }

    .wi-metric {
        min-height: 84px;
        padding: 6px 5px;
        gap: 3px;
        height: 100%;
    }

    .wi-metric__icon img {
        height: 26px;
    }

    .wi-metric__val {
        font-size: clamp(0.92rem, 1.15vw, 1.1rem);
    }

    .wi-metric__lbl {
        font-size: 0.56rem;
    }
}

/* Extra compact mode for short 1024/1280-height viewports */
@media (max-width: 1280px) and (min-width: 1001px) and (max-height: 800px) {
    .wi-dashboard {
        gap: 6px;
        padding-block: 6px;
        padding-inline: 6px;
    }

    .wi-panel__head {
        padding: 7px 9px 6px;
    }

    .wi-panel__subhead {
        padding: 6px 9px 4px;
    }

    .wi-dashboard .wi-clock {
        padding: 8px 10px;
        gap: 8px;
    }

    .wi-dashboard .clock-time {
        font-size: clamp(1.8rem, 3vw, 2.2rem);
    }

    .wi-dashboard .clock-date,
    .wi-dashboard .clock-meta {
        font-size: 0.85rem;
    }

    .wi-dashboard .hourly-track {
        padding: 1px 1px 3px;
    }

    .wi-dashboard .carousel-dots {
        margin-top: 1px;
    }
}

/* Short-height laptop/desktop (e.g. 1366x768): reduce vertical density and prevent clipping */
@media (min-width: 1101px) and (max-width: 1400px) and (max-height: 820px) {
    .wi-dashboard {
        gap: 8px;
        padding-block: 8px;
        padding-inline: 10px;
    }

    .wi-panel__head {
        padding: 10px 12px 8px;
    }

    .wi-panel__subhead {
        padding: 9px 12px 6px;
    }

    .wi-hero {
        /* Keep all three hero sections visible in one row on 1366x768 */
        grid-template-columns: 1.05fr 0.9fr 0.95fr;
        grid-template-areas: none;
        gap: 8px;
        padding: 7px 12px 12px;
        align-items: start;
    }

    .wi-hero__primary,
    .wi-hero__condition,
    .wi-hero__aside {
        grid-area: auto;
    }

    .wi-hero__temp {
        margin-bottom: 8px;
    }

    .wi-hero__temp-num {
        font-size: clamp(2rem, 3.7vw, 2.6rem);
    }

    .wi-sun {
        gap: 6px;
    }

    .wi-sun__row {
        padding: 5px 8px;
    }

    .wi-sun__time {
        font-size: 0.84rem;
    }

    .wi-hero__icon {
        width: min(86px, 46%);
    }

    .wi-hero__desc {
        margin-top: 6px;
        font-size: 0.84rem;
    }

    .wi-hero__aside {
        padding: 7px 8px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 0;
    }

    .wi-hero__clock-sm {
        font-size: 1.02rem;
        margin-bottom: 6px;
    }

    .wi-hero__mini {
        gap: 2px;
    }

    .wi-hero__wind-line {
        font-size: 0.82rem;
    }

    .wi-hero__wind-dir {
        font-size: 0.68rem;
    }

    .wi-hero__mini-arrow .wi-arrow-svg {
        width: 34px;
        height: 34px;
    }

    /* Lowest-priority detail: hide on short-height to prevent clipping */
    .wi-hero__hum {
        display: none;
    }

    .wi-dashboard .wi-panel--hourly .hourly-carousel {
        padding: 0 8px 6px;
        gap: 4px;
    }

    .wi-dashboard .hourly-track {
        gap: 8px;
        padding: 3px 2px 4px;
    }

    .wi-dashboard .hourly-card {
        padding: 8px 8px;
        gap: 6px;
        border-radius: 12px;
    }

    .wi-dashboard .hourly-icon img {
        width: clamp(50px, 6.5vw, 66px);
        height: clamp(50px, 6.5vw, 66px);
    }

    .wi-dashboard .hourly-time {
        font-size: 0.9rem;
    }

    .wi-dashboard .hourly-temp {
        font-size: 1rem;
    }

    .wi-dashboard .hourly-meta,
    .wi-dashboard .hourly-info {
        font-size: 0.9rem;
    }

    .wi-dashboard .carousel-dots {
        margin-top: 2px;
    }

    .wi-metrics {
        gap: 6px;
        padding: 8px 10px 10px;
    }

    .wi-metric {
        min-height: 92px;
        padding: 8px 6px;
        gap: 4px;
    }

    .wi-metric__icon img {
        height: 30px;
    }

    .wi-metric__val {
        font-size: clamp(1rem, 1.2vw, 1.25rem);
    }

    .wi-metric__lbl {
        font-size: 0.6rem;
    }
}

@media (max-width: 1000px) {
    .wi-dashboard {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.98fr);
        grid-template-areas:
            "hero clock"
            "wind metrics"
            "hourly hourly";
        column-gap: clamp(8px, 1.5vw, 12px);
        row-gap: clamp(8px, 1.5vw, 12px);
        align-items: stretch;
    }

    .wi-dashboard .wi-panel--hero,
    .wi-dashboard .wi-panel--clock,
    .wi-dashboard .wi-panel--wind,
    .wi-dashboard .wi-panel--metrics {
        min-width: 0;
    }

    .wi-hero {
        grid-template-columns: 1fr;
        grid-template-areas:
            "primary"
            "condition"
            "aside";
        gap: 12px;
    }

    .wi-hero__aside {
        max-width: none;
    }

    .wi-panel__head {
        padding: 12px 14px 9px;
    }

    .wi-panel__greeting {
        font-size: clamp(0.82rem, 1.5vw, 0.98rem);
    }

    .wi-badge {
        font-size: 0.6rem;
        padding: 4px 9px;
    }

    .wi-dashboard .clock-meta {
        font-size: 0.82rem;
    }

    .wi-dashboard .hourly-meta,
    .wi-dashboard .hourly-info {
        font-size: clamp(0.92rem, 1.45vw, 1.05rem);
    }

    /* Keep hourly section compact on stacked layout */
    .wi-dashboard .wi-panel--hourly .wi-panel__subhead {
        padding: 10px 14px 6px;
    }

    .wi-dashboard .hourly-carousel {
        padding: 0 10px 8px;
        gap: 6px;
    }

    .wi-dashboard .hourly-track {
        padding: 4px 3px 6px;
        gap: 10px;
    }

    .wi-dashboard .hourly-card {
        padding: 10px 10px;
        gap: 8px;
    }

    .wi-dashboard .hourly-icon img {
        width: clamp(56px, 7.2vw, 78px);
        height: clamp(56px, 7.2vw, 78px);
    }

    .wi-dashboard .hourly-time {
        font-size: clamp(0.96rem, 1.45vw, 1.08rem);
    }

    .wi-dashboard .hourly-temp {
        font-size: clamp(1.04rem, 1.65vw, 1.2rem);
    }

    .wi-dashboard .hourly-meta,
    .wi-dashboard .hourly-info {
        font-size: clamp(0.92rem, 1.35vw, 1rem);
    }

    .wi-dashboard .wind-meta {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin-top: 0;
        padding-top: 8px;
        border-top: 1px solid rgba(3, 105, 161, 0.12);
    }

    .wi-dashboard .wind-meta .meta-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 2px;
        min-width: 0;
        min-height: 50px;
        padding: 7px 6px;
        margin: 0;
        border-radius: 10px;
        border: 1px solid rgba(14, 165, 233, 0.18);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.75) 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .wi-dashboard .wind-meta .meta-label {
        font-size: 0.54rem;
        line-height: 1.1;
    }

    .wi-dashboard .wind-meta .meta-value {
        font-size: 0.82rem;
        line-height: 1.15;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .wi-dashboard .wind-meta .meta-item:nth-child(2) .meta-value {
        font-size: 0.72rem;
        line-height: 1.15;
    }

    .wi-dashboard .wind-meta .meta-item.wind-arrow-meta {
        min-width: 0;
        padding-inline: 6px;
    }

    /* Narrow column beside wind: 2×2 metric tiles */
    .wi-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px 14px 14px;
        height: 100%;
        box-sizing: border-box;
        align-content: stretch;
    }

    .wi-metric {
        min-height: 96px;
        padding: 12px 8px;
    }

    .wi-metric__icon img {
        height: 34px;
    }

    .wi-metric__val {
        font-size: clamp(1rem, 2.4vw, 1.35rem);
    }

    .wi-metric__lbl {
        font-size: 0.62rem;
    }

    .wi-dashboard .wi-panel--metrics {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .wi-dashboard .wi-panel--metrics .wi-metrics {
        flex: 1;
    }

    .wi-dashboard .wi-panel--wind {
        display: block;
        min-height: 0;
    }

    .wi-dashboard .wi-panel--wind .wind-card {
        flex: 0 0 auto;
        min-height: 0;
    }
}

/* Tablet portrait (768x1024 class): dedicated layout tuning */
@media (min-width: 700px) and (max-width: 820px) and (min-height: 900px) {
    .wi-dashboard {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr);
        grid-template-areas:
            "hero clock"
            "wind metrics"
            "hourly hourly";
        grid-template-rows: auto auto minmax(0, 1fr);
        row-gap: 8px;
        column-gap: 10px;
        align-items: stretch;
        padding-inline: 10px;
        padding-block: 6px;
    }

    .wi-dashboard .wi-panel--hero,
    .wi-dashboard .wi-panel--clock,
    .wi-dashboard .wi-panel--wind,
    .wi-dashboard .wi-panel--metrics,
    .wi-dashboard .wi-panel--hourly {
        width: 100%;
        min-width: 0;
        align-self: stretch;
    }

    .wi-dashboard .wi-panel--clock,
    .wi-dashboard .wi-panel--metrics,
    .wi-dashboard .wi-panel--wind {
        display: flex;
        min-height: 0;
    }

    .wi-dashboard .wi-panel--clock {
        align-items: center;
        justify-content: center;
    }

    .wi-panel__head {
        padding: 8px 10px 6px;
    }

    .wi-hero {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "primary condition"
            "aside aside";
        gap: 6px 8px;
        padding: 6px 10px 8px;
        align-items: start;
    }

    .wi-hero__temp {
        margin-bottom: 6px;
    }

    .wi-sun__row {
        padding: 5px 8px;
        border-radius: 10px;
    }

    .wi-hero__condition {
        justify-content: flex-start;
        padding-top: 2px;
    }

    .wi-hero__icon {
        width: min(76px, 28vw);
        max-height: 76px;
    }

    .wi-hero__desc {
        margin-top: 4px;
        font-size: 0.82rem;
    }

    .wi-hero__aside {
        padding: 8px 10px;
    }

    .wi-dashboard .wi-clock {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        min-height: 100%;
        padding: 12px 12px;
    }

    .wi-dashboard .clock-face {
        width: 112px;
        height: 112px;
        border-width: 4px;
    }

    .wi-dashboard .clock-info {
        align-items: center;
        text-align: center;
        gap: 3px;
        min-width: 0;
        justify-content: center;
    }

    .wi-dashboard .clock-time,
    .wi-dashboard .clock-date,
    .wi-dashboard .clock-meta {
        margin: 0;
    }

    .wi-dashboard .clock-time {
        font-size: clamp(2rem, 5.2vw, 2.5rem);
        line-height: 1.05;
    }

    .wi-dashboard .clock-date {
        font-size: 1rem;
        line-height: 1.15;
    }

    .wi-dashboard .clock-meta {
        font-size: 0.86rem;
        line-height: 1.25;
        max-width: 24ch;
    }

    .wi-dashboard .wi-panel--wind,
    .wi-dashboard .wi-panel--metrics {
        align-items: stretch;
    }

    .wi-dashboard .wind-card {
        height: 100%;
        min-height: 0;
    }

    .wi-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px 12px 12px;
        height: 100%;
        align-content: stretch;
    }

    .wi-metric {
        min-height: 0;
        height: 100%;
        padding: 10px 8px;
        gap: 5px;
    }

    .wi-metric__icon img {
        height: 30px;
    }

    .wi-metric__val {
        font-size: clamp(1rem, 2.8vw, 1.3rem);
    }

    .wi-metric__lbl {
        font-size: 0.62rem;
    }
}

/* 900×600 stress test: Philippines clock beside hero row; dense panels below */
@media (max-width: 900px) and (max-height: 680px) {
    .wi-dashboard {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "hero clock"
            "wind metrics"
            "hourly hourly";
        gap: 6px;
        column-gap: 8px;
        row-gap: 6px;
        padding-block: 6px;
        padding-inline: 8px;
        padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
        align-items: stretch;
    }

    .wi-dashboard .wi-panel--hero,
    .wi-dashboard .wi-panel--clock {
        align-self: stretch;
        min-height: 0;
    }

    .wi-panel__head {
        padding: 7px 10px 5px;
        gap: 6px;
    }

    .wi-panel__greeting {
        font-size: 0.74rem;
        line-height: 1.25;
        max-width: none;
    }

    .wi-badge {
        font-size: 0.52rem;
        padding: 3px 7px;
    }

    .wi-panel__subhead {
        padding: 6px 10px 4px;
    }

    .wi-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "primary condition"
            "aside aside";
        gap: 8px 10px;
        padding: 8px 10px 10px;
        align-items: start;
    }

    .wi-hero__primary {
        grid-area: primary;
    }

    .wi-hero__condition {
        grid-area: condition;
        padding: 2px 0 0;
        justify-content: flex-start;
    }

    .wi-hero__aside {
        grid-area: aside;
        max-width: none;
        padding: 6px 8px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 10px;
        row-gap: 4px;
        align-items: center;
    }

    .wi-hero__place {
        grid-column: 1 / -1;
        margin-bottom: 0;
        font-size: 0.62rem;
    }

    .wi-hero__clock-sm {
        grid-column: 1;
        grid-row: 2;
        margin-bottom: 0;
        font-size: 0.88rem;
        line-height: 1.2;
        justify-self: start;
    }

    .wi-hero__mini {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        column-gap: 8px;
        row-gap: 2px;
        align-items: center;
        justify-items: end;
        text-align: right;
    }

    .wi-hero__mini-arrow {
        grid-column: 1;
        grid-row: 1 / span 2;
        justify-self: end;
    }

    .wi-hero__wind-line {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
    }

    .wi-hero__wind-dir {
        grid-column: 2;
        grid-row: 2;
        margin: 0;
    }

    .wi-hero__hum {
        display: none;
    }

    .wi-hero__temp {
        margin-bottom: 4px;
    }

    .wi-hero__temp-num {
        font-size: clamp(1.7rem, 6.6vw, 2.15rem);
    }

    .wi-hero__temp-unit {
        font-size: 0.85rem;
    }

    .wi-sun {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

    .wi-sun__row {
        padding: 4px 6px;
        gap: 6px;
        border-radius: 8px;
    }

    .wi-sun__ico {
        width: 16px;
        height: 16px;
    }

    .wi-sun__label {
        font-size: 0.52rem;
    }

    .wi-sun__time {
        font-size: 0.72rem;
    }

    .wi-hero__icon {
        width: min(62px, 29vw);
        max-height: 62px;
    }

    .wi-hero__desc {
        margin-top: 3px;
        font-size: 0.72rem;
        line-height: 1.2;
    }

    .wi-hero__wind-line {
        font-size: 0.78rem;
    }

    .wi-hero__wind-dir {
        font-size: 0.62rem;
    }

    .wi-hero__mini-arrow .wi-arrow-svg {
        width: 28px;
        height: 28px;
    }

    .wi-dashboard .wi-clock {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        height: 100%;
        min-height: 0;
        padding: 10px 12px;
        gap: 14px;
    }

    .wi-dashboard .clock-face {
        width: 86px;
        height: 86px;
        border-width: 3px;
        flex-shrink: 0;
    }

    .wi-dashboard .clock-info {
        align-items: center;
        text-align: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        flex: 0 1 auto;
    }

    .wi-dashboard .clock-time {
        font-size: clamp(1.3rem, 4vw, 1.75rem);
        letter-spacing: 0.01em;
    }

    .wi-dashboard .clock-date {
        font-size: 0.78rem;
    }

    .wi-dashboard .clock-meta {
        font-size: 0.72rem;
        line-height: 1.4;
        max-width: 30ch;
    }

    .wi-dashboard .wi-panel--wind {
        padding: 10px 14px 12px;
        overflow: visible;
    }

    .wi-dashboard .wi-panel--metrics {
        padding: 10px 14px 12px;
    }

    .wi-dashboard .wind-card {
        gap: 10px;
        height: auto;
        min-height: 0;
    }

    .wi-dashboard .wind-header {
        padding-bottom: 2px;
        margin-bottom: 2px;
        border-bottom: 1px solid rgba(3, 105, 161, 0.1);
    }

    .wi-dashboard .wind-header .wind-title {
        font-size: 0.82rem;
        letter-spacing: 0.06em;
    }

    .wi-dashboard .wind-header .wind-sub {
        font-size: 0.58rem;
    }

    /* Speed + ENE inline as one group; chart fills remainder */
    .wi-dashboard .wind-body {
        flex-direction: row;
        align-items: center;
        gap: 12px 14px;
        padding-block: 4px 2px;
    }

    .wi-dashboard .wind-main {
        display: flex;
        flex: 0 1 auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        align-content: center;
        gap: 8px 10px;
        min-width: 0;
        max-width: min(48%, 12rem);
        padding-right: 4px;
    }

    .wi-dashboard .wind-main > p {
        margin: 0;
    }

    .wi-dashboard .wind-value {
        font-size: clamp(1.25rem, 3.8vw, 1.65rem);
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: -0.02em;
    }

    .wi-dashboard .wind-unit {
        font-size: 0.68rem;
        margin-left: 3px;
        opacity: 0.92;
    }

    .wi-dashboard .wind-direction {
        font-size: 0.74rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        padding: 7px 13px;
        border-radius: 999px;
        background: linear-gradient(180deg, #f0f9ff 0%, #bae6fd 55%, #7dd3fc 100%);
        color: #0c4a6e;
        border: 1px solid rgba(3, 105, 161, 0.35);
        box-shadow:
            0 1px 2px rgba(15, 23, 42, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.85);
        align-self: center;
        width: fit-content;
        max-width: 100%;
        flex-shrink: 0;
    }

    .wi-dashboard .wind-visual {
        flex: 1;
        min-width: 0;
        min-height: 0;
        justify-content: center;
        padding: 4px 2px 4px 8px;
        border-left: 1px solid rgba(3, 105, 161, 0.14);
    }

    .wi-dashboard .wind-graph {
        height: 38px;
        max-height: 38px;
        width: 100%;
    }

    .wi-dashboard .wind-graph-svg {
        height: 40px;
        max-height: 40px;
        width: 100%;
        display: block;
    }

    .wi-dashboard .wind-meta {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
        justify-items: stretch;
        margin-top: 0;
        padding-top: 10px;
        border-top: 1px solid rgba(3, 105, 161, 0.14);
        column-gap: 8px;
    }

    .wi-dashboard .wind-meta .meta-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 2px;
        min-width: 0;
        padding: 7px 6px;
        margin: 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.75) 100%);
        border: 1px solid rgba(14, 165, 233, 0.18);
        border-radius: 10px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
        min-height: 50px;
    }

    .wi-dashboard .wind-meta .meta-label {
        font-size: 0.54rem;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: #64748b;
        line-height: 1.1;
    }

    .wi-dashboard .wind-meta .meta-value {
        font-size: 0.82rem;
        font-weight: 800;
        color: #0f172a;
        line-height: 1.15;
        overflow-wrap: anywhere;
        word-break: break-word;
        max-width: 100%;
    }

    /* Long spelled-out direction: slightly smaller, two lines OK */
    .wi-dashboard .wind-meta .meta-item:nth-child(2) .meta-value {
        font-size: 0.72rem;
        font-weight: 700;
        line-height: 1.15;
    }

    .wi-dashboard .wind-meta .meta-item.wind-arrow-meta {
        grid-column: auto !important;
        min-width: 0;
        width: auto;
        padding-inline: 6px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.75) 100%);
        border-color: rgba(14, 165, 233, 0.18);
        color: #0c4a6e;
    }

    .wi-dashboard .wind-meta .meta-item.wind-arrow-meta .wind-arrow {
        color: #f8fafc;
        filter: none;
    }

    .wi-dashboard .wind-arrow-wrap {
        width: 32px;
        height: 32px;
        border-radius: 999px;
        background: linear-gradient(180deg, #0284c7 0%, #0c4a6e 100%);
        box-shadow: 0 2px 6px rgba(2, 132, 199, 0.26);
    }

    .wi-dashboard .wind-arrow {
        width: 20px;
        height: 20px;
    }

    .wi-dashboard .hourly-carousel {
        padding: 0 8px 6px;
        gap: 4px;
    }

    .wi-dashboard .hourly-track {
        padding: 2px 2px 4px;
        gap: 8px;
    }

    .wi-dashboard .hourly-card {
        padding: 6px 7px;
        gap: 4px;
    }

    .wi-dashboard .hourly-icon img {
        width: 44px;
        height: 44px;
    }

    .wi-dashboard .hourly-time {
        font-size: 0.82rem;
    }

    .wi-dashboard .hourly-temp {
        font-size: 0.88rem;
    }

    .wi-dashboard .hourly-meta,
    .wi-dashboard .hourly-info {
        font-size: 0.72rem;
    }

    .wi-metrics {
        gap: 8px;
        padding: 0;
    }

    .wi-metric {
        min-height: 82px;
        padding: 8px 8px;
        gap: 5px;
        border-radius: 10px;
    }

    .wi-metric__icon img {
        height: 24px;
    }

    .wi-metric__val {
        font-size: clamp(0.94rem, 2.65vw, 1.12rem);
    }

    .wi-metric__lbl {
        font-size: 0.54rem;
    }
}

/* Very narrow: stack Philippines clock below hero full width */
@media (max-width: 520px) {
    .wi-dashboard {
        grid-template-columns: 1fr;
        grid-template-areas:
            "hero"
            "clock"
            "wind"
            "hourly"
            "metrics";
        row-gap: clamp(8px, 2vw, 12px);
    }
}

@media (max-width: 640px) {
    .wi-panel__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .wi-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .wi-dashboard .hourly-card {
        min-width: min(100%, 260px);
    }

    .wi-dashboard .hourly-card {
        padding: 10px 8px;
        gap: 7px;
    }

    .wi-dashboard .hourly-icon img {
        width: clamp(52px, 13vw, 64px);
        height: clamp(52px, 13vw, 64px);
    }

    .wi-dashboard .hourly-time {
        font-size: 0.95rem;
    }

    .wi-dashboard .hourly-temp {
        font-size: 1.02rem;
    }

    .wi-dashboard .hourly-meta,
    .wi-dashboard .hourly-info {
        font-size: 0.96rem;
    }
}

@media (max-width: 480px) {
    .wi-badge {
        display: none;
    }
}

