/* Garder weather station V5.6: additive theme layer, loaded AFTER V5.5. */
:root{--t-bg:#f0f5fa;--t-surface:#fff;--t-card:#f6faff;--t-border:#dce7f0;--t-text:#23374e;--t-muted:#40556b;--t-heading:#233e59;--t-accent:#3973a3;--t-alt:#e39a45;--t-grid:#c8d4df;--t-axis:#8fa4b8;--t-shadow:rgba(25,65,102,.045);--t-highlight:#eaf4fc;--t-status:#fff}
html[data-garder-theme="night"]{color-scheme:dark;--t-bg:#0e1625;--t-surface:#1b283b;--t-card:#223349;--t-border:#34475e;--t-text:#edf4ff;--t-muted:#c1d1e4;--t-heading:#f3f7ff;--t-accent:#69b9ff;--t-alt:#f8b96c;--t-grid:#435873;--t-axis:#7892ad;--t-shadow:rgba(0,0,0,.24);--t-highlight:#273c54;--t-status:#1b283b}
html[data-garder-theme="neon"]{color-scheme:dark;--t-bg:#160d24;--t-surface:#281735;--t-card:#362043;--t-border:#704080;--t-text:#fff0ff;--t-muted:#e6c8ee;--t-heading:#fff5ff;--t-accent:#ff68d4;--t-alt:#9d91ff;--t-grid:#644576;--t-axis:#b78bc7;--t-shadow:rgba(210,49,187,.16);--t-highlight:#472250;--t-status:#301b3c}
body,body[style]{background:var(--t-bg)!important;color:var(--t-text)!important;transition:background-color .25s,color .25s}
.site-header h1,.site-header .eyebrow,.panel-heading h2,.section-heading h2,.side-panel h3,.tide-widget h3{color:var(--t-heading)!important}
.site-header p,.site-header .eyebrow,.section-heading span,.history-subtitle,footer,.history-info,.record-card p,.record-card h3,.chart-card h3,.chart-legend,.chart-empty{color:var(--t-muted)!important}
.site-header .eyebrow{color:var(--t-accent)!important}
.side-panel,.gauges-section,.history-section,.records-section,.preferences,.future,.settings-details,.chart-card,.record-card,.gauge-card{background:var(--t-surface)!important;color:var(--t-text)!important;border-color:var(--t-border)!important;box-shadow:0 5px 22px var(--t-shadow)!important}
.gauge-card,.chart-card,.record-card{background:var(--t-card)!important}
.gauge-card h3,.chart-card h3,.record-card strong,.side-panel .sun-entry strong,.side-panel .today-metric strong,.side-panel .tide-next strong,.side-panel .panel-heading h2,.side-panel h3{color:var(--t-heading)!important}
.side-panel .sun-entry,.side-panel .today-metric,.side-panel .moon-extra,.side-panel .panel-note,.side-panel .panel-heading p,.side-panel .tide-place,.side-panel .tide-status,.side-panel .tide-next span,.side-panel .tide-next small,.side-panel .tide-foot,.gauge-card label,.status-time{color:var(--t-muted)!important}
.side-panel .sun-entry span,.side-panel .today-metric span{color:var(--t-muted)!important}
.panel-divider{background:var(--t-border)!important}.today-metric{border-color:var(--t-border)!important}
.tide-widget,.unitsTable,.settings-content,.future-tide{background:var(--t-highlight)!important;border-color:var(--t-border)!important;color:var(--t-text)!important}
.tide-next>div{background:var(--t-surface)!important;border-color:var(--t-border)!important}
.settings-details summary,.settings-details summary:after,.settings-content,.unitsTable,.cellRight{color:var(--t-text)!important}
.settings-details[open] summary{border-color:var(--t-border)!important}
.history-controls,.history-controls label,.history-controls select,.records-section select{color:var(--t-text)!important}
.history-controls select,.records-section select{background:var(--t-card)!important;border-color:var(--t-border)!important}
.status-v5{background:var(--t-status)!important;border-color:var(--t-border)!important;color:var(--t-text)!important}
.chart svg text{fill:var(--t-muted)!important;font-weight:700}.chart svg .gridline{stroke:var(--t-grid)!important}.chart svg .axis{stroke:var(--t-axis)!important}.chart svg .series{stroke:var(--t-accent)!important}.chart svg .series-alt{stroke:var(--t-alt)!important}.chart svg .bar{fill:var(--t-accent)!important}.chart-legend b{color:var(--t-accent)!important}
.sun-arc svg text{fill:var(--t-muted)!important}.sun-arc svg path:nth-of-type(2){stroke:var(--t-axis)!important}
.tide-curve svg text{fill:var(--t-muted)!important}
/* Header controls: keep status pill and selector on same row when space allows. */
.site-header{justify-content:flex-start!important;gap:12px!important}
.site-header>div:first-child{margin-right:auto}
.theme-switcher{display:flex;align-items:center;gap:3px;flex-wrap:wrap;background:var(--t-surface);border:1px solid var(--t-border);border-radius:999px;padding:5px;box-shadow:0 3px 12px var(--t-shadow)}
.theme-switcher-label{font-size:12px;font-weight:700;color:var(--t-muted);padding:0 8px 0 10px}
.theme-option{appearance:none;border:1px solid transparent;border-radius:999px;padding:7px 11px;background:transparent;color:var(--t-muted);font:600 12px/1.3 system-ui,-apple-system,'Segoe UI',sans-serif;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s,border-color .15s}
.theme-option:hover{background:var(--t-highlight)}.theme-option[aria-pressed="true"]{background:var(--t-highlight);color:var(--t-heading);border-color:var(--t-accent)}.theme-option:focus-visible{outline:3px solid var(--t-accent);outline-offset:2px}
html[data-garder-theme="neon"] .side-panel,html[data-garder-theme="neon"] .gauges-section,html[data-garder-theme="neon"] .history-section,html[data-garder-theme="neon"] .records-section{box-shadow:0 0 18px rgba(246,66,213,.11),0 8px 24px rgba(0,0,0,.18)!important}
html[data-garder-theme="neon"] .gauge-card{border-color:#8b4e9c!important;box-shadow:inset 0 0 18px rgba(237,72,199,.055)!important}
html[data-garder-theme="neon"] .theme-option[aria-pressed="true"]{box-shadow:0 0 10px rgba(255,104,212,.25)}
/* Gauge canvases are painted by SteelSeries; preserve their original face and needles for legibility. */
@media(max-width:1050px){.site-header{flex-wrap:wrap}.site-header>div:first-child{flex-basis:100%}.theme-switcher{order:1}.status-v5{order:2}}
@media(max-width:580px){.theme-switcher{border-radius:16px}.theme-switcher-label{display:none}.theme-option{padding:7px 9px}.status-v5{max-width:100%}}
@media(prefers-reduced-motion:reduce){body,.theme-option{transition:none!important}}
