/* Now view (1.51). Flat surfaces, hairline borders, no accent bars; rain bars use the accent. */
.now-page { max-width:880px; display:grid; gap:14px; padding-top:20px; }
.now-page .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.now-label,.now-place { font:500 11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.08em; text-transform:uppercase; color:var(--text-3); margin:0; }
.now-place { display:flex; gap:6px; }

/* Official alerts */
.now-alerts { display:grid; gap:8px; }
.now-alert { display:flex; align-items:center; gap:10px; padding:10px 14px; border-radius:var(--radius-md,12px); text-decoration:none; color:var(--text); font-size:14px; border:1px solid color-mix(in srgb,var(--warning) 45%,var(--border)); background:color-mix(in srgb,var(--warning) 9%,var(--surface)); }
.now-alert.danger { border-color:color-mix(in srgb,var(--danger) 45%,var(--border)); background:var(--danger-bg,color-mix(in srgb,var(--danger) 9%,var(--surface))); }
.now-alert span:last-child { color:var(--text-2); font-size:13px; }
.now-alert-badge { font:600 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.06em; padding:4px 6px; border-radius:4px; border:1px solid currentColor; color:var(--warning); }
.now-alert.danger .now-alert-badge { color:var(--danger); }

/* Hero */
.now-hero { display:grid; gap:14px; padding:20px 22px 16px; border:1px solid var(--border); background:var(--surface); border-radius:var(--radius-lg,16px); }
.now-hero-top { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.now-reading { display:grid; gap:2px; min-width:0; }
.now-temp { margin:2px 0 0; display:flex; align-items:flex-start; font-size:84px; line-height:.95; font-weight:300; letter-spacing:-.04em; font-variant-numeric:tabular-nums; color:var(--text); }
.now-deg { font-size:.55em; line-height:1.2; color:var(--text-2); margin-inline-start:2px; }
.now-condition { margin:8px 0 0; font-size:18px; font-weight:500; color:var(--text); }
.now-meta { margin:2px 0 0; display:flex; gap:12px; flex-wrap:wrap; font-size:14px; color:var(--text-2); font-variant-numeric:tabular-nums; }
.now-meta span:empty { display:none; }
.now-icon { flex:none; width:96px; height:96px; display:grid; place-items:center; }
.now-icon .weather-icon { width:96px; height:96px; }
.now-sentence { margin:0; padding-top:14px; border-top:1px solid var(--border); font-size:18px; line-height:1.5; color:var(--text); text-wrap:pretty; }
.now-sentence:empty { display:none; }
.now-source { margin:0; display:flex; align-items:center; gap:8px; font-size:12px; color:var(--text-3); }
.now-dot { width:7px; height:7px; border-radius:50%; background:var(--text-3); flex:none; }
.now-source[data-tone=live] .now-dot { background:var(--success); }
.now-source[data-tone=delayed] .now-dot { background:var(--warning); }

/* Next rain */
.now-next { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:14px; align-items:center; padding:14px 14px 14px 18px; border:1px solid var(--border); background:var(--surface); border-radius:var(--radius-lg,16px); text-decoration:none; color:var(--text); transition:border-color .15s,box-shadow .2s,transform .2s cubic-bezier(.16,1,.3,1); }
.now-next:hover { border-color:var(--border-strong); box-shadow:var(--shadow-float); transform:translateY(-1px); }
.now-next:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.now-next-icon { width:40px; height:40px; display:grid; place-items:center; }
.now-next-icon .weather-icon { width:40px; height:40px; }
.now-next-copy { display:grid; gap:3px; min-width:0; }
.now-next-copy strong { font-size:17px; line-height:1.35; font-weight:600; }
.now-next-detail { font-size:13px; line-height:1.45; color:var(--text-2); }
.now-next[data-state=raining] strong,.now-next[data-state=arrival] strong { color:var(--accent); }
.now-badge { display:inline-block; font-size:11px; line-height:1.5; padding:0 7px; border-radius:999px; border:1px dashed var(--border-strong); color:var(--text-2); white-space:nowrap; }
.now-thumb { position:relative; width:96px; height:96px; border-radius:12px; overflow:hidden; background:var(--surface-2); border:1px solid var(--border); flex:none; }
.now-thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .4s; }
.now-thumb.has-image img { opacity:1; }
.now-thumb-ring { position:absolute; inset:22%; border-radius:50%; border:1px dashed color-mix(in srgb,var(--text-3) 60%,transparent); }
.now-thumb-dot { position:absolute; left:50%; top:50%; width:8px; height:8px; margin:-4px 0 0 -4px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 25%,transparent); }
.now-thumb-label { position:absolute; left:6px; bottom:5px; font:600 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.06em; text-transform:uppercase; color:var(--text-2); }

/* Sections */
.now-section { display:grid; gap:10px; padding:16px 18px; border:1px solid var(--border); background:var(--surface); border-radius:var(--radius-lg,16px); min-width:0; }
.now-section-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.now-section-head h2 { margin:0; font-size:15px; font-weight:600; }
.now-hint { font-size:12px; color:var(--text-3); }
.now-link { color:var(--accent); text-decoration:none; }
.now-link:hover { text-decoration:underline; }

/* Hourly strip */
.now-hours { list-style:none; margin:0 -18px; padding:4px 18px 6px; display:grid; grid-auto-flow:column; grid-auto-columns:56px; gap:4px; overflow-x:auto; scroll-snap-type:x proximity; scrollbar-width:thin; overscroll-behavior-x:contain; }
.now-hours:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; border-radius:8px; }
.now-hour { scroll-snap-align:start; display:grid; justify-items:center; gap:5px; padding:8px 0; border-radius:10px; font-variant-numeric:tabular-nums; }
.now-hour.is-now { background:var(--surface-2); }
.now-hour-time { font-size:12px; color:var(--text-2); white-space:nowrap; }
.now-hour.is-now .now-hour-time { color:var(--text); font-weight:600; }
.now-hour-icon .weather-icon { width:28px; height:28px; }
.now-hour-temp { font-size:15px; font-weight:600; }
.now-pop { position:relative; width:8px; height:34px; border-radius:4px; background:var(--surface-2); box-shadow:inset 0 0 0 1px var(--border); overflow:hidden; }
.now-pop span { position:absolute; inset:0; border-radius:inherit; background:var(--accent); transform-origin:bottom; transform:scaleY(var(--pop,0)); transition:transform .7s cubic-bezier(.16,1,.3,1); }
.now-pop span { transition-delay:calc(var(--i,0) * 22ms); }
.now-pop-label { min-height:14px; font-size:11px; color:var(--accent); }
.now-hours.is-growing .now-pop span { transform:scaleY(0); transition:none; }

/* 7 days */
.now-days { list-style:none; margin:0; padding:0; display:grid; }
.now-day { display:grid; grid-template-columns:72px 32px 38px 40px minmax(60px,1fr) 40px; align-items:center; gap:10px; padding:9px 0; border-top:1px solid var(--border); font-variant-numeric:tabular-nums; font-size:15px; }
.now-day:first-child { border-top:0; }
.now-day-name { font-weight:500; }
.now-day-icon .weather-icon { width:28px; height:28px; display:block; }
.now-day-pop { font-size:12px; color:var(--accent); }
.now-day-low { text-align:end; color:var(--text-2); }
.now-day-high { font-weight:600; }
.now-range { position:relative; height:6px; border-radius:3px; background:var(--surface-2); box-shadow:inset 0 0 0 1px var(--border); }
.now-range-fill { position:absolute; top:0; bottom:0; border-radius:inherit; background:color-mix(in srgb,var(--text-2) 55%,var(--surface)); transform-origin:left; transition:transform .8s cubic-bezier(.16,1,.3,1); transition-delay:calc(var(--i,0) * 50ms); }
.now-days.is-growing .now-range-fill { transform:scaleX(0); transition:none; }
.now-range-marker { position:absolute; top:50%; width:10px; height:10px; margin:-5px 0 0 -5px; border-radius:50%; background:var(--surface); border:2px solid var(--text); }

.now-footnote { margin:4px 2px 12px; font-size:12px; line-height:1.55; color:var(--text-3); }

@media (max-width:600px) {
    .now-page { padding-top:8px; gap:10px; }
    .now-hero { padding:16px 16px 14px; gap:12px; }
    .now-temp { font-size:72px; }
    .now-icon,.now-icon .weather-icon { width:76px; height:76px; }
    .now-sentence { font-size:16px; padding-top:12px; }
    .now-next { grid-template-columns:auto minmax(0,1fr) auto; gap:10px; padding:12px; }
    .now-next-icon,.now-next-icon .weather-icon { width:32px; height:32px; }
    .now-next-copy strong { font-size:15px; }
    .now-thumb { width:72px; height:72px; }
    .now-section { padding:14px; }
    .now-section-head .now-hint:not(.now-link) { display:none; }
    .now-hours { margin:0 -14px; padding-inline:14px; }
    .now-day { grid-template-columns:52px 28px 34px 34px minmax(40px,1fr) 34px; gap:8px; font-size:14px; }
}
@media (prefers-reduced-motion:reduce) {
    .now-next,.now-pop span,.now-range-fill,.now-thumb img { transition:none; }
    .now-next:hover { transform:none; }
}
