/* Rain & River Forecast page */
.wrap{
    max-width:1180px;
    margin:0 auto;
    padding:30px 24px 56px;
}

.hero{
    color:#fff;
    margin:28px 0 26px;
    text-shadow:0 12px 32px rgba(0,0,0,.38);
}
.hero h1{
    font-size:clamp(36px,5vw,58px);
    font-weight:950;
    letter-spacing:-.055em;
    line-height:.95;
    margin:0 0 10px;
}
.hero p{
    color:rgba(255,255,255,.82);
    font-size:15px;
    line-height:1.45;
    margin:0;
}

.card{
    background:linear-gradient(180deg,rgba(255,255,255,.93),rgba(255,255,255,.82));
    border:1px solid rgba(255,255,255,.48);
    border-radius:28px;
    box-shadow:0 22px 55px rgba(0,0,0,.24);
    padding:26px;
    margin-bottom:22px;
    backdrop-filter:blur(18px) saturate(140%);
    -webkit-backdrop-filter:blur(18px) saturate(140%);
}
.card-title{
    font-size:22px;
    font-weight:950;
    letter-spacing:-.04em;
    color:#111827;
    margin-bottom:7px;
}
.card-subtitle{
    font-size:13.5px;
    line-height:1.55;
    color:#52637b;
    margin-bottom:20px;
}
.loading,
.no-data-placeholder{
    background:rgba(255,255,255,.82);
    border:1px solid rgba(255,255,255,.45);
    border-radius:22px;
    padding:22px;
    color:#475569;
}

.status-strip{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:14px;
    margin-bottom:22px;
}
.status-tile{
    background:linear-gradient(180deg,rgba(255,255,255,.90),rgba(255,255,255,.76));
    border:1px solid rgba(255,255,255,.48);
    border-radius:22px;
    box-shadow:0 16px 38px rgba(0,0,0,.16);
    padding:18px 16px;
    text-align:center;
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
}
.st-value{
    font-size:28px;
    font-weight:950;
    letter-spacing:-.045em;
    color:#111827;
    line-height:1;
}
.st-label{
    margin-top:8px;
    color:#64748b;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:10.5px;
    font-weight:900;
}

/* Weather app forecast */
.forecast-card{
    overflow:hidden;
}
.weather-grid{
    display:grid;
    grid-template-columns:repeat(7,minmax(132px,1fr));
    gap:14px;
    align-items:stretch;
}
.wx-day-column{
    min-width:0;
}
.wx-day-name{
    min-height:38px;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    padding:0 6px 9px;
    color:#162033;
    font-size:15px;
    font-weight:900;
    letter-spacing:-.02em;
    text-align:center;
}
.wx-stack{
    display:grid;
    grid-template-rows:1fr 1fr;
    gap:10px;
    height:350px;
}
.wx-period{
    position:relative;
    overflow:hidden;
    height:170px;
    border-radius:22px;
    border:1px solid rgba(15,23,42,.08);
    background:linear-gradient(180deg,rgba(255,255,255,.94),rgba(248,250,252,.82));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.82),
        0 12px 26px rgba(15,23,42,.08);
    padding:14px 12px 12px;
    display:grid;
    grid-template-rows:auto auto auto 1fr;
    align-items:center;
    justify-items:center;
    text-align:center;
}
.wx-period::before{
    content:"";
    position:absolute;
    inset:0 0 auto 0;
    height:4px;
    background:linear-gradient(90deg,rgba(148,163,184,.38),rgba(203,213,225,.52));
    opacity:.75;
}
.wx-period.day.dry::before{background:linear-gradient(90deg,#fde68a,#fbbf24);}
.wx-period.night.dry::before{background:linear-gradient(90deg,#c4b5fd,#818cf8);}
.wx-period.wet.chance::before{background:linear-gradient(90deg,#7dd3fc,#38bdf8);}
.wx-period.wet.likely::before{background:linear-gradient(90deg,#60a5fa,#2563eb);}
.wx-period.wet.heavy::before{background:linear-gradient(90deg,#818cf8,#7c3aed);}
.wx-period-top{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}
.wx-period-label{
    font-size:11px;
    font-weight:950;
    color:#64748b;
    letter-spacing:.10em;
    text-transform:uppercase;
}
.wx-icon{
    font-size:30px;
    line-height:1;
    filter:drop-shadow(0 5px 8px rgba(15,23,42,.14));
}
.wx-temp{
    margin-top:7px;
    font-size:26px;
    font-weight:950;
    letter-spacing:-.05em;
    color:#101827;
    line-height:1;
}
.wx-badges{
    min-height:24px;
    display:flex;
    justify-content:center;
    gap:6px;
    flex-wrap:wrap;
    margin-top:8px;
}
.wx-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:22px;
    padding:3px 8px;
    border-radius:999px;
    font-size:11px;
    font-weight:950;
    line-height:1;
}
.wx-badge.pct{
    color:#1d4ed8;
    background:rgba(219,234,254,.95);
    border:1px solid rgba(147,197,253,.75);
}
.wx-badge.amount{
    color:#075985;
    background:rgba(224,242,254,.95);
    border:1px solid rgba(125,211,252,.8);
}
.wx-desc{
    align-self:start;
    max-width:100%;
    margin-top:8px;
    font-size:12px;
    font-weight:750;
    line-height:1.2;
    color:#52637b;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.wx-period.empty{
    opacity:.45;
    background:rgba(248,250,252,.70);
}
.wx-empty-text{
    color:#94a3b8;
    font-size:12px;
    font-weight:800;
}

.impact-list{
    display:grid;
    gap:14px;
}
.impact-card,
.confidence-note,
.webhook-box{
    border:1px solid rgba(15,23,42,.08);
    border-radius:20px;
    background:rgba(255,255,255,.66);
    padding:16px;
}
.impact-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:14px;
}
.impact-period{
    font-weight:950;
    color:#111827;
}
.impact-pct,
.impact-stat-sub{
    color:#64748b;
    font-size:12px;
    margin-top:3px;
}
.impact-rain{
    font-size:24px;
    font-weight:950;
    color:#075985;
}
.impact-bucket-pill{
    display:inline-flex;
    align-items:center;
    border-radius:999px;
    padding:5px 10px;
    font-size:11px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.06em;
    background:#e0f2fe;
    color:#075985;
}
.bucket-trace{background:#f1f5f9;color:#475569;}
.bucket-light{background:#dbeafe;color:#1d4ed8;}
.bucket-moderate{background:#ccfbf1;color:#0f766e;}
.bucket-heavy{background:#fef3c7;color:#92400e;}
.bucket-extreme{background:#fee2e2;color:#991b1b;}
.impact-body{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}
.impact-stat-label{
    color:#64748b;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-size:10.5px;
    font-weight:950;
}
.impact-stat-value{
    margin-top:4px;
    color:#111827;
    font-size:22px;
    font-weight:950;
    letter-spacing:-.04em;
}
.rise{color:#16a34a!important;}
.lag{color:#2563eb!important;}
.confidence-note{
    margin-top:16px;
    color:#475569;
    font-size:13px;
    line-height:1.55;
}

.corr-table{
    width:100%;
    border-collapse:collapse;
    font-size:13px;
}
.corr-table th,
.corr-table td{
    padding:11px 10px;
    border-bottom:1px solid rgba(15,23,42,.08);
    text-align:left;
}
.corr-table th{
    color:#64748b;
    font-size:10.5px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.obs-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:12px 0;
    border-bottom:1px solid rgba(15,23,42,.08);
}
.obs-row:last-child{border-bottom:0;}
.obs-date{font-weight:850;color:#111827;}
.obs-rain{font-weight:950;color:#075985;}
.obs-dry{font-weight:850;color:#64748b;}
.source{
    color:rgba(255,255,255,.75);
    font-size:13px;
    line-height:1.5;
    text-align:center;
    padding:10px 0 18px;
}
.source a{color:#fff;font-weight:800;}

@media (max-width:1180px){
    .weather-grid{
        grid-template-columns:repeat(4,minmax(150px,1fr));
    }
}
@media (max-width:860px){
    .wrap{padding:22px 16px 42px;}
    .status-strip{grid-template-columns:repeat(2,minmax(0,1fr));}
    .weather-grid{
        display:flex;
        gap:14px;
        overflow-x:auto;
        padding:2px 2px 12px;
        scroll-snap-type:x proximity;
        -webkit-overflow-scrolling:touch;
    }
    .wx-day-column{
        flex:0 0 168px;
        scroll-snap-align:start;
    }
    .wx-stack{height:350px;}
    .impact-body{grid-template-columns:1fr;}
}
@media (max-width:520px){
    .card{padding:20px;border-radius:24px;}
    .status-strip{grid-template-columns:1fr;}
    .hero h1{font-size:38px;}
    .wx-day-column{flex-basis:156px;}
    .wx-period{height:166px;padding:13px 11px 11px;}
    .wx-stack{height:342px;}
    .wx-icon{font-size:28px;}
    .wx-temp{font-size:24px;}
}
