/* Ilma: the header's #ffcf2f, bold temperature and a single living dot field.
   Shared transport, settings and type stay in charge of interaction. */
html:is([data-theme=ilma],[data-theme=rainy]) #radio-app{background:var(--bg)!important;color:var(--ink)}
html:is([data-theme=ilma],[data-theme=rainy]) #edition-display{display:flex;flex:1;min-height:0;flex-direction:column;padding:18px 24px 0;gap:0;background:var(--bg);position:relative;isolation:isolate}
.weather-readout{position:relative;z-index:1;pointer-events:none}.weather-place{pointer-events:auto;display:inline-flex;align-items:center;min-height:44px;max-width:100%;padding:0;border:0;background:none;color:inherit;font:600 26px/1.2 var(--support-font);letter-spacing:-.045em;text-align:left;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;cursor:pointer}
.weather-temperature{font:650 clamp(90px,25vw,136px)/.95 var(--support-font);letter-spacing:-.075em;margin:8px 0 12px}.weather-temperature sup{font-size:.54em;vertical-align:top;position:relative;top:.04em;letter-spacing:-.04em}.weather-condition{font:500 20px/1.3 var(--support-font);letter-spacing:-.03em;margin:0}
.weather-scene{flex:1;min-height:120px;position:relative;margin:-25px -16px -5px;pointer-events:none}.weather-scene canvas{display:block;width:100%;height:100%;position:absolute;inset:0}
.weather-info{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;font:400 12px/1.4 var(--support-font);min-height:32px;margin:0 0 12px}.weather-info p{margin:0;max-width:100%}.weather-info a{display:inline-flex;align-items:center;gap:4px;color:inherit;min-height:36px;text-underline-offset:3px}.weather-info svg{width:16px;height:16px;transform:rotate(-45deg)}.weather-info button{color:inherit;font-size:14px;min-height:44px}
.weather-station{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;border-top:1px solid var(--line);padding:12px 0 0}.weather-station h2{grid-column:1;margin:0!important;font:500 24px/1.15 var(--support-font)!important;letter-spacing:-.045em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.weather-station p{grid-column:1;margin:0;font-size:12px;color:var(--muted)}.weather-station .edition-stations{grid-column:2;grid-row:1/3;border:0;background:none;min-height:48px;padding:8px;color:inherit}.weather-station .edition-stations span{display:none}
html:is([data-theme=ilma],[data-theme=rainy]) .now-playing{border:0;background:none;padding-block:12px}html:is([data-theme=ilma],[data-theme=rainy]) :is(#toggle-play,#previous-station,#next-station){background:none!important;border-color:transparent!important;color:var(--ink)!important;box-shadow:none!important}html:is([data-theme=ilma],[data-theme=rainy]) .play-button{color:var(--ink)!important}html:is([data-theme=ilma],[data-theme=rainy]) .recorded-date{display:none}
.weather-settings{padding:20px var(--support-gutter);display:grid;gap:12px}.weather-settings[hidden]{display:none}.weather-settings label{font:500 22px/1.2 var(--support-font);letter-spacing:-.03em}.weather-location-status{font-size:14px;line-height:1.5;margin:0;color:var(--support-muted)}.weather-location-status:empty{display:none}.weather-place:focus-visible{outline:2px solid currentColor;outline-offset:4px}
@media(min-width:600px){html:is([data-theme=ilma],[data-theme=rainy]) #edition-display{padding-inline:32px}.weather-scene{min-height:150px}.weather-temperature{font-size:136px}}
@media(max-height:650px){html:is([data-theme=ilma],[data-theme=rainy]) #edition-display{padding-top:4px}.weather-place{font-size:22px}.weather-temperature{font-size:80px;margin-block:0 4px}.weather-condition{font-size:17px}.weather-scene{min-height:70px;margin-top:-10px}.weather-info{margin-bottom:0}.weather-station{padding-top:8px}.weather-station h2{font-size:21px!important}}
/* Like Ilma's header, the sky occupies the space beside the temperature. */
.weather-readout,.weather-info,.weather-station{flex-shrink:0}.weather-scene{position:absolute;right:0;top:65px;width:100%;height:calc(100% - 155px);min-height:0;margin:0;z-index:-1}.weather-info{margin-top:auto}.weather-station{margin-bottom:0}
@media(max-height:650px){.weather-scene{top:45px;height:calc(100% - 110px);min-height:0;margin:0}}

.weather-meta{display:flex;flex-wrap:wrap;align-items:center;gap:0 6px;min-width:0}.weather-meta a{min-height:28px}.weather-meta a[hidden]{display:none}

/* Shared Ilma destination: visible as an action, with the project's SVG chevron. */
.weather-info .weather-more{min-height:44px;gap:8px;padding:8px 12px;border:1px solid currentColor;border-radius:var(--radius,0px);font:400 14px/1.3 var(--support-font);text-decoration:none;white-space:nowrap;transition:background 140ms ease}
.weather-info .weather-more svg{width:18px;height:18px;flex:none}
.weather-info .weather-more:hover{background:color-mix(in srgb,currentColor 8%,transparent)}
.weather-info .weather-more:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.weather-info .weather-more{transition:none}}

/* Shared accent-swatches, with Ilma.app exact palette. Auto follows real forecast code/day. */
.weather-colours{margin:18px 0 0;padding:0;border:0}.weather-colours legend{font:inherit}.weather-colours .accent-swatches{gap:12px}.weather-colours [data-weather-colour-choice=auto]{background:var(--support-surface);color:var(--support-ink);font-size:14px}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=yellow]{--weather-bg:#ffcf2f}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=apricot]{--weather-bg:#ffab77}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=gold]{--weather-bg:#f9b73e}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=peach]{--weather-bg:#ffc497}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=coral]{--weather-bg:#ff9b91}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=rose]{--weather-bg:#f4a8c0}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=berry]{--weather-bg:#e9a1d2}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=lilac]{--weather-bg:#d4bbff}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=lavender]{--weather-bg:#bab7fa}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=iris]{--weather-bg:#aebaf1}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=blue]{--weather-bg:#9bd5ff}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=ice]{--weather-bg:#c3e8ff}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=aqua]{--weather-bg:#9edeea}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=turquoise]{--weather-bg:#88ddd1}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=mint]{--weather-bg:#a9e4c3}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=grass]{--weather-bg:#c5e59a}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=lime]{--weather-bg:#d7e879}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=sand]{--weather-bg:#efd7a4}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=pearl]{--weather-bg:#f7f0df}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=silver]{--weather-bg:#d6dde4}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=cloud]{--weather-bg:#d8dee5}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=snow]{--weather-bg:#e5f5ff}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=fog]{--weather-bg:#ebe4ef}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=storm]{--weather-bg:#c5b1f2}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour=night]{--weather-bg:#171d2a}
.weather-colours [data-weather-colour-choice=yellow]{--swatch:#ffcf2f;color:#19170f}
.weather-colours [data-weather-colour-choice=apricot]{--swatch:#ffab77;color:#19170f}
.weather-colours [data-weather-colour-choice=gold]{--swatch:#f9b73e;color:#19170f}
.weather-colours [data-weather-colour-choice=peach]{--swatch:#ffc497;color:#19170f}
.weather-colours [data-weather-colour-choice=coral]{--swatch:#ff9b91;color:#19170f}
.weather-colours [data-weather-colour-choice=rose]{--swatch:#f4a8c0;color:#19170f}
.weather-colours [data-weather-colour-choice=berry]{--swatch:#e9a1d2;color:#19170f}
.weather-colours [data-weather-colour-choice=lilac]{--swatch:#d4bbff;color:#19170f}
.weather-colours [data-weather-colour-choice=lavender]{--swatch:#bab7fa;color:#19170f}
.weather-colours [data-weather-colour-choice=iris]{--swatch:#aebaf1;color:#19170f}
.weather-colours [data-weather-colour-choice=blue]{--swatch:#9bd5ff;color:#19170f}
.weather-colours [data-weather-colour-choice=ice]{--swatch:#c3e8ff;color:#19170f}
.weather-colours [data-weather-colour-choice=aqua]{--swatch:#9edeea;color:#19170f}
.weather-colours [data-weather-colour-choice=turquoise]{--swatch:#88ddd1;color:#19170f}
.weather-colours [data-weather-colour-choice=mint]{--swatch:#a9e4c3;color:#19170f}
.weather-colours [data-weather-colour-choice=grass]{--swatch:#c5e59a;color:#19170f}
.weather-colours [data-weather-colour-choice=lime]{--swatch:#d7e879;color:#19170f}
.weather-colours [data-weather-colour-choice=sand]{--swatch:#efd7a4;color:#19170f}
.weather-colours [data-weather-colour-choice=pearl]{--swatch:#f7f0df;color:#19170f}
.weather-colours [data-weather-colour-choice=silver]{--swatch:#d6dde4;color:#19170f}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-colour]{--bg:var(--weather-bg)!important;--stage:var(--weather-bg)!important;--surface:var(--weather-bg)!important;--raised:var(--weather-bg)!important;--ink:#19170f!important;--muted:#393a40!important;--line:#19170f35!important;--control:#19170f!important;--on-control:var(--weather-bg)!important;--live:#19170f!important}
html:is([data-theme=ilma],[data-theme=rainy])[data-weather-night=true]{--bg:#171d2a!important;--stage:#171d2a!important;--surface:#252a35!important;--raised:#303642!important;--ink:#f4f4f4!important;--muted:#bec2cc!important;--line:#ffffff30!important;--control:#f4f4f4!important;--on-control:#171d2a!important;--live:#f4f4f4!important}

.weather-colour-status{margin:0;font-size:14px;line-height:1.5;color:var(--support-muted)}.weather-colour-status:empty{display:none}

/* Rainy shares weather data, controls and canvas lifecycle; the horizon is local. */
html[data-theme=rainy] #edition-display{color:#fff;background:#526978;padding:20px 24px 0}
html[data-theme=rainy] .weather-scene{inset:0;width:100%;height:100%;background:linear-gradient(#142c3d66,#142c3d22 35%,#081925b8)}
html[data-theme=rainy] :is(.weather-place,.weather-temperature,.weather-condition,.weather-station,.weather-meta,.weather-more){color:#fff;text-shadow:0 1px 8px #10243266}
html[data-theme=rainy] .weather-readout{position:relative;z-index:1}
html[data-theme=rainy] .weather-station{padding-bottom:16px}
html[data-theme=rainy] #radio-app{background:#526978!important;color:#fff;--ink:#fff;--muted:#e6edf1;--line:#ffffff44;--control:#fff;--on-control:#172d3b}
html[data-theme=rainy] #toggle-play{background:#fff;color:#172d3b;box-shadow:0 2px 16px #10243233}

html[data-theme=rainy] .weather-scene{background:#354d5e}
html[data-theme=rainy] .rainy-horizon{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center bottom}
html[data-theme=rainy] .weather-scene::after{content:"";position:absolute;inset:0;background:linear-gradient(#142c3d66,#142c3d44 35%,#081925b8);pointer-events:none}
html[data-theme=rainy] .weather-scene canvas{position:relative;z-index:1}

html[data-theme=rainy] .player-controls{background:#526978!important;color:#fff}
html[data-theme=rainy] #toggle-play{width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;border-radius:50%!important;background:#fff!important;color:#172d3b!important}
html[data-theme=rainy] :is(.player-controls button,#close-player){color:inherit}

html[data-theme=rainy] #close-player{background:#fff!important;color:#172d3b!important}

/* The photographic Rainy scene has a fixed art direction, not Ilma colour swatches. */
html[data-theme=rainy] :is(.weather-colours,.weather-colour-status){display:none!important}
