/* Weather tab styles. Loaded in the order base, weather, sky, about. */
.place{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}
.place h2{font-size:clamp(2rem,5vw,3.75rem);letter-spacing:-.065em;margin:0;line-height:.95}
.place p{margin:0;color:var(--muted)}
.hero{display:block;margin-top:22px}
.now{padding:29px;position:relative;overflow:hidden;min-height:260px;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px 40px}
.now-main{min-width:0}
.now-summary{min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:18px}
.now:after{content:"";position:absolute;right:-52px;top:-60px;width:230px;height:230px;border:30px solid rgba(211,166,255,.14);border-radius:50%}
.temp-row{display:flex;align-items:center;gap:21px;margin-top:23px;position:relative;z-index:1}
.temp{font-size:clamp(4rem,9vw,6.8rem);letter-spacing:-.09em;line-height:.78;font-weight:720}
.condition{font-size:1.05rem;font-weight:680;margin-top:11px}
.feel{color:var(--muted);margin-top:6px;font-size:.92rem}
.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:31px;padding-top:20px;border-top:1px solid var(--line)}
.metrics span{display:block;color:var(--muted);font-size:.76rem;margin-bottom:5px}
.metrics b{font-size:.96rem}
.sunline{height:6px;background:linear-gradient(90deg,#a9c6e8 0 18%,var(--yellow) 42% 68%,#a9c6e8 85%);border-radius:99px;position:relative;margin:19px 2px 10px}
.sunline:after{content:"";position:absolute;top:50%;left:var(--sun,50%);width:12px;height:12px;border-radius:50%;background:#fff1bf;transform:translate(-50%,-50%);box-shadow:0 0 0 4px rgba(255,241,191,.13)}
.sun-times{display:flex;justify-content:space-between;color:var(--muted);font-size:.78rem}
.weather-scene{position:relative;isolation:isolate;overflow:hidden}
.weather-scene::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:var(--scene-image,none);background-size:cover;background-position:center;background-repeat:no-repeat;filter:var(--picture-filter)}
.now.weather-scene::before{background-position:70% center}
.now.weather-scene:after{display:none}
.alert{border:1px solid rgba(255,196,126,.52);background:rgba(127,76,29,.23);border-radius:16px;padding:14px 16px;margin-top:18px;display:flex;gap:12px;align-items:flex-start}
.alert strong{display:block;color:#ffe0bb;font-size:.9rem}
.alert p{margin:3px 0 0;color:#f4d2ab;font-size:.81rem;line-height:1.35}
.alert .dot{width:9px;height:9px;border-radius:50%;background:#ffbd70;margin-top:5px;flex:none}
.hourly{display:block;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:rgba(var(--accent-rgb),.5) transparent}
.hour-track{position:relative;display:flex}
.hour-curve{position:absolute;left:0;top:44px;pointer-events:none}
.hour-curve path{fill:none;stroke:rgba(var(--accent-rgb),.42);stroke-width:3;stroke-linecap:round}
.rain{font-size:.74rem;color:#92dfff;margin-top:8px;min-height:16px}
.daily{display:grid;grid-template-columns:repeat(7,1fr);overflow:auto}
.day{padding:18px 13px;text-align:center;min-width:116px;border-right:1px solid var(--line)}
.day:last-child{border:0}
.day strong{font-size:.88rem}
.day span{display:block;font-size:1.6rem;margin:13px 0}
.day small{color:var(--muted);font-size:.73rem}
.highlow{margin-top:9px;font-size:.9rem}
.range{position:relative;height:6px;border-radius:99px;background:rgba(255,255,255,.14);margin:10px 6px 4px}
.range i{position:absolute;top:0;bottom:0;border-radius:99px;background:linear-gradient(90deg,#7fd0ff,rgba(var(--accent-rgb),1),#ffb27a)}
.day.today{background:rgba(var(--accent-rgb),.14);box-shadow:inset 0 0 0 1px rgba(var(--accent-rgb),.45);border-radius:18px}
.day.today strong{color:#fff}
.day .rain{margin-top:6px}
.highlow em{font-style:normal;color:var(--muted);margin-left:5px}
.detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.day-parts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.part{padding:14px 16px}.part span{display:block;color:var(--muted);font-size:.85rem}.part b{display:block;font-size:1.4rem;margin:2px 0}.part small{color:var(--muted);font-size:.78rem;line-height:1.4}.parts-updated{margin:10px 0 0;color:var(--muted);font-size:.78rem;line-height:1.4}.scale-key{display:block;margin-top:6px;color:var(--muted);font-size:.72rem;line-height:1.35}
.detail{padding:17px}
.detail span{display:block;color:var(--muted);font-size:.76rem;margin-bottom:7px}
.detail b{font-size:1.1rem}
.detail small{display:block;color:#a9c9dd;font-size:.73rem;margin-top:5px}
.scale{position:relative;height:6px;border-radius:99px;margin:10px 0 4px;background:linear-gradient(90deg,#5fd08a,#e6d45a 40%,#f5a04c 65%,#e5566b 85%,#a066e0)}
.scale i{position:absolute;top:-4px;width:4px;height:14px;border-radius:2px;background:#fff;box-shadow:0 0 0 2px rgba(6,22,41,.85);left:calc(var(--pos)*1%);transform:translateX(-50%)}
.meter{height:6px;border-radius:99px;background:rgba(255,255,255,.14);overflow:hidden;margin:10px 0 4px}
.meter i{display:block;height:100%;width:calc(var(--pos)*1%);background:linear-gradient(90deg,#7fd0ff,rgba(var(--accent-rgb),1))}
/* Pressure: a plain track with one reference tick (standard pressure, 1013.25 mb, in the middle) and a marker; the arrow after the number is the 3 hour change. */
.pressure-bar{position:relative;height:6px;border-radius:99px;margin:10px 0 4px;background:rgba(255,255,255,.14)}
.pressure-bar::before{content:'';position:absolute;left:50%;top:-2px;width:2px;height:10px;border-radius:1px;background:rgba(255,255,255,.4);transform:translateX(-50%)}
.pressure-bar i{position:absolute;top:-4px;width:4px;height:14px;border-radius:2px;background:#fff;box-shadow:0 0 0 2px rgba(6,22,41,.85);left:calc(var(--pos)*1%);transform:translateX(-50%)}
.trend{width:13px;height:13px;margin-left:6px;vertical-align:-1px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.wind-arrow{width:20px;height:20px;vertical-align:-3px;margin-right:6px;fill:#9fe3ff}
.astro{display:grid;grid-template-columns:repeat(5,1fr);overflow:auto}
.astro div{padding:17px;min-width:132px;border-right:1px solid var(--line)}
.astro div:last-child{border:0}
.astro span{display:block;color:var(--muted);font-size:.76rem;margin-bottom:8px}
.astro b{font-size:.95rem}
@media(max-width:720px){.astro{grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}.astro div{min-width:0;padding:10px 12px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.astro div:nth-child(3n){border-right:0}.astro div:nth-last-child(-n+2){border-bottom:0}}
.astro small{display:block;color:#a9c9dd;font-size:.73rem;margin-top:5px}
.sunmoon{overflow:hidden;position:relative;isolation:isolate}
.sm-layer{position:absolute;inset:0;z-index:-1;pointer-events:none}
.sm-layer{filter:var(--picture-filter);background-size:cover;background-position:center bottom;background-repeat:no-repeat;opacity:0;transition:opacity .9s ease}
.sm-layer.on{opacity:1}
@media(prefers-reduced-motion:reduce){.sm-layer{transition:none}}
.sun-arc{padding:16px 18px 4px;text-align:center}
.sun-arc svg{display:block;width:100%;max-width:520px;height:auto;margin:0 auto}
.arc-track{fill:none;stroke:rgba(255,255,255,.22);stroke-width:3;stroke-dasharray:2 7;stroke-linecap:round}
.arc-done{fill:none;stroke:rgba(var(--accent-rgb),.95);stroke-width:4;stroke-linecap:round}
.horizon{stroke:rgba(255,255,255,.25);stroke-width:2}
.sun-dot{fill:#fff1bf;stroke:rgba(255,241,191,.3);stroke-width:8}
.arc-text{color:#f0ebff;font-size:.92rem;margin:4px 0 10px}
.sunmoon .astro,.sunmoon .astro div{border:0;background:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.sunmoon .arc-text{display:inline-block;padding:2px 10px}
.moon-icon{width:30px;height:30px;vertical-align:middle;margin-right:8px}
.moon-dark{fill:#2a2e58;stroke:rgba(255,255,255,.25);stroke-width:1.5}
.moon-lit{fill:#f4efd2}
@media(max-width:720px){.detail-grid,.day-parts{grid-template-columns:repeat(2,1fr)}}
.data-sources{flex-basis:100%;border-top:1px solid var(--line);padding-top:12px;line-height:1.6}
.data-sources strong{display:block;font-size:.8rem;letter-spacing:.02em;margin-bottom:2px}
.data-sources ul{list-style:none;margin:8px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 32px}
.data-sources li{padding-left:12px;border-left:2px solid rgba(var(--accent-rgb),.45);overflow-wrap:anywhere}
@media(max-width:720px){.data-sources ul{grid-template-columns:1fr}}
.data-sources a{text-decoration:underline}
.privacy-note,.pwa-privacy{flex-basis:100%;margin:0;line-height:1.6}
/* Marcus, 2026-09-22, live bug: this rule only ever set min-height, so the button had no explicit background or
   border and fell through to the browser's own default button chrome (a light gray/white system color) while
   still inheriting --ink (#f1edff, near-white -- meant for text on this page's own dark background) for its
   text color -- near-white text on a near-white background, contrast ~1.01:1. Matches .windy-row button's own
   pattern now (the sibling Install button right above it in the markup), a real transparent/bordered button on
   this dark page instead of the unstyled default. */
#clearSavedData{min-height:44px;padding:0 12px;color:var(--ink);background:transparent;border:1px solid var(--line);border-radius:8px;font:inherit;font-weight:700}
.place h2,.temp{font-family:Orbitron,"Segoe UI",sans-serif}
.place h2{font-size:clamp(1.75rem,4.4vw,3.2rem);letter-spacing:-.04em;line-height:1.05}
.temp{font-size:clamp(3.2rem,7vw,5.5rem);line-height:.9;font-weight:600}
@media(max-width:720px){.hero{grid-template-columns:1fr}.now{min-height:0;padding:24px}.daily,.hourly{border-radius:20px}.metrics{gap:5px}.metrics b{font-size:.88rem}.place h2{font-size:2.35rem}.alert{margin-top:14px}}
#hourly:focus-visible,#daily:focus-visible,#astronomy:focus-visible{outline:2px solid rgb(var(--accent-rgb));outline-offset:2px}
.day small{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;line-height:1.3;height:2.6em;overflow-wrap:anywhere}
.now-note{margin-top:4px}
.warn-panel{margin-top:12px;padding:14px 16px;color:#e9e4f7;font-size:.86rem;line-height:1.5;overflow-wrap:anywhere}
.warn-panel[hidden]{display:none}
.now .warn-panel{background:rgba(6,8,30,.8)}
@media(max-width:720px){.now{min-height:340px}}
.warn-panel strong{display:block;font-size:.95rem}
.warn-panel span,.warn-panel p{display:block;margin:6px 0 0}
.warn-panel a{color:#e9e4f7;text-decoration:underline}
.warn-panel>a{display:inline-block;margin-top:6px}
#astronomy:focus-visible{outline:3px solid #fff;outline-offset:-3px}
.detail b{overflow-wrap:anywhere}
/* The conditions tile shows the whole scene centered near the horizon; the summary tile shows a zoomed crop of the lower left, so the two neighbours never look identical. */
.now.weather-scene::before{background-size:cover;background-position:70% 50%}
/* On a phone the tile is taller than 2:1, so cover shows only about 47% of the picture width; the landscape pictures are darkest on the left, so setScene gives THEM --picture-crop (10% 50%, measured with tools/regional-measure.mjs). The other pictures keep 70% 50%: a rule on the tile alone moved every picture on phones (found 2026-09-21 by the sun-bar surroundings check). */
@media (max-width:600px){.now.weather-scene::before{background-position:var(--picture-crop,70% 50%)}}
/* Text panels on the two scene tiles: a dark scrim keeps text at 4.5:1 or better over any scene, day or night. */
.now .temp-row>div:last-child,.now .metrics,.now .warn-panel,#weatherSummary>div{background:rgba(6,8,30,var(--panel-alpha,.8));-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:16px}
.now .temp-row{margin-top:0}
.now .temp-row>div:last-child{padding:10px 12px;width:fit-content;max-width:100%;justify-self:start}
.now .metrics{padding:10px 12px;border-top:0;margin-top:20px;width:min(100%,340px);max-width:100%;gap:14px}
#weatherSummary>div{padding:10px 12px}
#weatherSummary>div:first-child{width:fit-content;max-width:min(100%,560px)}
#weatherSummary>div:last-child{width:min(100%,320px)}
.now,#weatherSummary{text-shadow:var(--ink-shadow);-webkit-text-stroke:3px rgba(0,0,0,.6);paint-order:stroke fill}
.now .temp-row>div:last-child,.now .metrics,#weatherSummary>div{background:none;-webkit-backdrop-filter:none;backdrop-filter:none;border-radius:0}
.now .warn-panel{text-shadow:none;-webkit-text-stroke:0}
#weatherSummary .sunline{box-shadow:0 0 0 2px #000,0 0 2px #000,0 1px 3px rgba(0,0,0,.9),0 0 8px rgba(0,0,0,.6)}
#weatherSummary .sunline:after{box-shadow:0 0 0 2px #000,0 0 2px #000,0 0 6px rgba(0,0,0,.9)}
.sunmoon .sun-arc svg,.sunmoon .moon-icon{filter:var(--ink-glow)}
@media(max-width:900px){.now{min-height:340px;grid-template-columns:1fr}}
.now .feel,.now .metrics span,#weatherSummary p,#weatherSummary .sun-times{color:#e9e4f7}
#weatherSummary h2{margin:0;font-size:1.2rem;letter-spacing:-.02em}
#weatherSummary p{line-height:1.5;margin:16px 0;font-size:1.2rem}
#weatherSummary .sun-times{font-size:1.2rem}
.radar summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;min-height:44px;margin:34px 0 13px}
.radar summary::-webkit-details-marker{display:none}
.radar summary:focus-visible{outline:2px solid rgb(var(--accent-rgb));outline-offset:2px;border-radius:12px}
.radar-hint{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1px solid rgba(233,228,247,.7);border-radius:12px;background:rgba(255,255,255,.08);color:#f1edff;font-size:.9rem;font-weight:700}
.radar-hint:after{content:"Show radar"}.radar[open] .radar-hint:after{content:"Hide radar"}.radar.estimate .radar-hint:after{content:"Show rain estimate"}.radar.estimate[open] .radar-hint:after{content:"Hide rain estimate"}
.radar-card{overflow:hidden;max-width:820px}
.radar-picture{position:relative;aspect-ratio:4/3;background:#0b1024}
.radar-picture svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.radar-picture .rb-land{fill:#1b2447}.radar-picture .rb-lakes{fill:#0b1024}.radar-picture .rb-rivers path,.radar-picture .rb-roads path{fill:none;vector-effect:non-scaling-stroke;stroke-width:1}.radar-picture .rb-rivers path{stroke:#39588c}.radar-picture .rb-roads path{stroke:rgba(255,255,255,.22)}
.radar-city{position:absolute;transform:translate(-3px,-50%);white-space:nowrap;pointer-events:none;font-size:.72rem;font-weight:650;line-height:1;color:#fff;text-shadow:var(--ink-shadow);-webkit-text-stroke:3px rgba(0,0,0,.6);paint-order:stroke fill}.radar-city:before{content:"";display:inline-block;width:5px;height:5px;margin-right:4px;border-radius:50%;background:#fff;border:1px solid #000;vertical-align:middle}
.radar-marker{position:absolute;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid #000;transform:translate(-50%,-50%);box-shadow:0 0 6px #000}
.radar-stamp{position:absolute;left:14px;top:12px;margin:0;font-weight:700;color:#fff;text-shadow:var(--ink-shadow);-webkit-text-stroke:3px rgba(0,0,0,.6);paint-order:stroke fill}
.radar-info{padding:14px 18px 16px;display:grid;gap:10px}
.radar-info p,.radar-note{margin:0;font-size:.86rem;color:#e9e4f7}
.radar-note{padding:18px}
.radar-controls{display:flex;flex-wrap:wrap;gap:8px}
.radar-controls button{min-height:44px;padding:0 16px;border-radius:12px;border:1px solid var(--line);background:transparent;color:inherit;font:inherit;cursor:pointer}
.radar-controls button[aria-pressed="true"]{background:rgba(var(--accent-rgb),.25);border-color:rgba(var(--accent-rgb),.7)}
.radar-legend{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px}.radar-legend i{display:inline-block;width:26px;height:10px;border-radius:2px}
.radar-credit{color:var(--muted);font-size:.78rem}
.radar-credit a{color:#dbc5ff;text-decoration:underline}
.radar-warn{color:#ffd9a8}
.windy-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:14px 0 0}.windy-row a{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;color:var(--ink);font-weight:700}.windy-row span{color:var(--muted);font-size:.8rem;line-height:1.4;flex:1 1 220px}
.windy-row button{min-height:44px;padding:0 12px;color:var(--ink);background:transparent;border:1px solid var(--line);border-radius:8px;font:inherit;font-weight:700}.install-ios,#offlineStatus{color:var(--muted);font-size:.85rem;line-height:1.4}
/* Drifting clouds (Phase 1). A layer above the scene picture and below the text of the conditions tile, on the partly cloudy and overcast scenes only (weather.js sets data-clouds). Pure CSS and SVG: no file, no request.
   The layer is twice the tile wide and moves half its width on a slow loop with transform only, so nothing is laid out or painted again on each frame. It pauses when the tab is hidden or the tile is off screen (--cloud-state), and it does not exist when the visitor asks for reduced motion. */
.now.weather-scene[data-clouds]::after{display:block;content:"";position:absolute;top:0;bottom:0;left:0;right:auto;width:200%;height:auto;border:0;border-radius:0;z-index:-1;pointer-events:none;background-repeat:repeat-x;background-size:50% 100%;opacity:.42;animation:cloud-drift 110s linear infinite;animation-play-state:var(--cloud-state,running);will-change:transform}
.now.weather-scene[data-clouds="day"]::after{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='600' viewBox='0 0 1200 600' preserveAspectRatio='none'><defs><filter id='b' x='-30%' y='-60%' width='160%' height='220%'><feGaussianBlur stdDeviation='18'/></filter></defs><g filter='url(%23b)' fill='rgb(255,255,255)'><ellipse cx='250' cy='150' rx='150' ry='40'/><ellipse cx='155' cy='164' rx='90' ry='30'/><ellipse cx='342' cy='160' rx='100' ry='34'/><ellipse cx='220' cy='128' rx='84' ry='30'/><ellipse cx='720' cy='330' rx='188' ry='50'/><ellipse cx='601' cy='348' rx='113' ry='38'/><ellipse cx='835' cy='343' rx='125' ry='43'/><ellipse cx='683' cy='303' rx='105' ry='38'/><ellipse cx='1010' cy='120' rx='105' ry='28'/><ellipse cx='944' cy='130' rx='63' ry='21'/><ellipse cx='1074' cy='127' rx='70' ry='24'/><ellipse cx='989' cy='105' rx='59' ry='21'/><ellipse cx='430' cy='500' rx='120' ry='32'/><ellipse cx='354' cy='511' rx='72' ry='24'/><ellipse cx='504' cy='508' rx='80' ry='27'/><ellipse cx='406' cy='482' rx='67' ry='24'/></g></svg>")}
.now.weather-scene[data-clouds="night"]::after{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='600' viewBox='0 0 1200 600' preserveAspectRatio='none'><defs><filter id='b' x='-30%' y='-60%' width='160%' height='220%'><feGaussianBlur stdDeviation='18'/></filter></defs><g filter='url(%23b)' fill='rgb(176,190,224)'><ellipse cx='250' cy='150' rx='150' ry='40'/><ellipse cx='155' cy='164' rx='90' ry='30'/><ellipse cx='342' cy='160' rx='100' ry='34'/><ellipse cx='220' cy='128' rx='84' ry='30'/><ellipse cx='720' cy='330' rx='188' ry='50'/><ellipse cx='601' cy='348' rx='113' ry='38'/><ellipse cx='835' cy='343' rx='125' ry='43'/><ellipse cx='683' cy='303' rx='105' ry='38'/><ellipse cx='1010' cy='120' rx='105' ry='28'/><ellipse cx='944' cy='130' rx='63' ry='21'/><ellipse cx='1074' cy='127' rx='70' ry='24'/><ellipse cx='989' cy='105' rx='59' ry='21'/><ellipse cx='430' cy='500' rx='120' ry='32'/><ellipse cx='354' cy='511' rx='72' ry='24'/><ellipse cx='504' cy='508' rx='80' ry='27'/><ellipse cx='406' cy='482' rx='67' ry='24'/></g></svg>");opacity:.3}
/* The same drift on the landscape pictures (scene names regional/<type>-partly-cloudy|overcast-day|night), fainter than on the stock pictures (.42 day, .3 night). To make it stronger or fainter change the one number after --land-cloud-opacity. */
.now.weather-scene[data-scene^="regional/"][data-clouds]{--land-cloud-opacity:.2}
.now.weather-scene[data-scene^="regional/"][data-clouds]::after{opacity:var(--land-cloud-opacity)}
@keyframes cloud-drift{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
@media(prefers-reduced-motion:reduce){.now.weather-scene[data-clouds]::after{display:none;animation:none}}
/* Rain in the next 12 hours: a plain card under the conditions tile (no picture behind it, so it keeps its box). Six hours to a row on a phone, twelve in a row from 720px; no sideways scrolling. */
.rain-strip{padding:14px 16px 16px}
.rain-strip h2{margin:0;font-size:1rem;display:flex;flex-wrap:wrap;gap:6px 10px;align-items:baseline}
.rain-strip h2 small{font-size:.78rem;font-weight:600;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:1px 9px}
.rain-strip .sum{margin:6px 0 12px;font-size:.95rem}
.rain-hours{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
@media(min-width:720px){.rain-hours{grid-template-columns:repeat(12,1fr)}}
.rain-hours li{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px 2px;border-radius:10px;min-width:0}
.rain-hours time{font-size:.78rem;color:var(--muted);white-space:nowrap}
.rain-hours .bar{width:70%;max-width:34px;height:44px;display:flex;align-items:flex-end}
.rain-hours .bar i{display:block;width:100%;border-radius:4px 4px 2px 2px;background:#9fd0ff;border:1px solid rgba(255,255,255,.55)}
.rain-hours .none .bar i,.rain-hours .unknown .bar i{height:2px;background:transparent;border:0;border-bottom:2px dotted rgba(194,185,216,.6);border-radius:0}
.rain-hours .unknown .bar i{border-bottom-style:dashed}
.rain-hours .trace .bar i{height:2px;background:transparent;border:0;border-bottom:2px solid rgba(159,208,255,.8);border-radius:0}
.rain-hours .lvl-light .bar i{height:30%}.rain-hours .lvl-moderate .bar i{height:62%}.rain-hours .lvl-heavy .bar i{height:100%}
.rain-hours .snow .bar i,.rain-hours .mix .bar i,.rain-hours .freezing .bar i{height:62%}
.rain-hours .snow .bar i{background:repeating-linear-gradient(135deg,#eaf4ff 0 4px,#8fb7dc 4px 6px)}
.rain-hours .mix .bar i{background:linear-gradient(180deg,#9fd0ff 0 50%,#eaf4ff 50% 100%)}
.rain-hours .freezing .bar i{background:repeating-linear-gradient(45deg,#9fd0ff 0 4px,#e9f6ff 4px 6px)}
.rain-hours .word{font-size:.74rem;line-height:1.15;text-align:center}
.rain-hours .chance{font-size:.72rem;color:var(--muted)}
.rain-strip .key{display:flex;flex-wrap:wrap;gap:6px 16px;margin:12px 0 0;padding:0;list-style:none;color:var(--muted);font-size:.78rem}
.rain-strip .src{margin:10px 0 0;color:var(--muted);font-size:.75rem}
/* Falling rain: Marcus's drop picture repeats every 700 x 350 px on a layer that starts 350px above the tile and slides down 350px per loop, transform only, above the picture and below the text, on the rain scenes only (weather.js sets data-rain). Opacity is --rain-opacity: .9 ordinary, .65 light, .9 heavy and thunderstorm; change the three numbers to make the drops stronger or fainter. It pauses with the clouds (--cloud-state) and does not exist for reduced motion. */
.now.weather-scene[data-rain]::after{display:block;content:"";position:absolute;top:-350px;bottom:0;left:0;right:auto;width:100%;height:auto;border:0;border-radius:0;z-index:-1;pointer-events:none;background:url("/assets/rain/rain-overlay.webp") repeat 0 0/700px 350px;opacity:var(--rain-opacity,.9);animation:rain-fall 1.2s linear infinite;animation-play-state:var(--cloud-state,running);will-change:transform}
.now.weather-scene[data-rain="light"]{--rain-opacity:.65}.now.weather-scene[data-rain="heavy"]{--rain-opacity:.9}
@keyframes rain-fall{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,350px,0)}}
@media(prefers-reduced-motion:reduce){.now.weather-scene[data-rain]::after{display:none;animation:none}}
