/* Shorevale appearance tokens, shared by every page and matching the Sidekick
   app. Dark: midnight green with mint. Light: warm cream with brown-amber.
   theme.js sets data-theme; without script the device setting decides. */
:root{color-scheme:dark;--bg:#0a1d20;--bg-deep:#071719;--panel:#12302f;--paper:#eaf4f1;--muted:#a5bdb8;--faint:#708d88;--line:rgba(147,211,199,.17);--line-soft:rgba(147,211,199,.08);--mint:#82ddce;--accent-hover:#9de8db;--on-accent:#0a1d20;--accent-wash:rgba(130,221,206,.12);--accent-soft:rgba(130,221,206,.4);--glow:rgba(130,221,206,.5);--chip-border:#315a53;--panel-border:#31554f;--ring:rgba(126,214,197,.15);--ring-faint:rgba(126,214,197,.07);--dots:#5c8a81;--nav:#c2d8d2;--shadow:rgba(0,0,0,.4);--hero-bg:#031113;--section-bg:#0f2629;--grid:rgba(130,221,206,.024);--bar:rgba(104,151,139,.4);--row:rgba(24,55,50,.47);--row-border:#22453f;--window-bg:linear-gradient(140deg,#163a3c,#0d2427 70%);--software-glow:rgba(35,111,101,.12);--max:1240px}
:root[data-theme=light]{color-scheme:light;--bg:#f9f3e3;--bg-deep:#f2ead5;--panel:#fffbf1;--paper:#2e3a3f;--muted:#5b6461;--faint:#696b64;--line:#e2d9c3;--line-soft:#ece4d0;--mint:#8b5a22;--accent-hover:#74491a;--on-accent:#fffbf1;--accent-wash:rgba(139,90,34,.12);--accent-soft:rgba(139,90,34,.45);--glow:rgba(139,90,34,.35);--chip-border:#d3c8ad;--panel-border:#e2d8c0;--ring:rgba(110,90,50,.18);--ring-faint:rgba(110,90,50,.1);--dots:#cbbf9f;--nav:#3e4a4e;--shadow:rgba(90,70,30,.16);--hero-bg:#f9f3e3;--section-bg:#f2ead5;--grid:rgba(110,90,50,.05);--bar:#dccfb2;--row:#fbf5e6;--row-border:#e8dfc8;--window-bg:linear-gradient(140deg,#fffbf1,#f5ecd7 70%);--software-glow:rgba(139,90,34,.07)}
@media(prefers-color-scheme:light){:root:not([data-theme]){color-scheme:light;--bg:#f9f3e3;--bg-deep:#f2ead5;--panel:#fffbf1;--paper:#2e3a3f;--muted:#5b6461;--faint:#696b64;--line:#e2d9c3;--line-soft:#ece4d0;--mint:#8b5a22;--accent-hover:#74491a;--on-accent:#fffbf1;--accent-wash:rgba(139,90,34,.12);--accent-soft:rgba(139,90,34,.45);--glow:rgba(139,90,34,.35);--chip-border:#d3c8ad;--panel-border:#e2d8c0;--ring:rgba(110,90,50,.18);--ring-faint:rgba(110,90,50,.1);--dots:#cbbf9f;--nav:#3e4a4e;--shadow:rgba(90,70,30,.16);--hero-bg:#f9f3e3;--section-bg:#f2ead5;--grid:rgba(110,90,50,.05);--bar:#dccfb2;--row:#fbf5e6;--row-border:#e8dfc8;--window-bg:linear-gradient(140deg,#fffbf1,#f5ecd7 70%);--software-glow:rgba(139,90,34,.07)}}

/* The switch: a round button like Sidekick's header buttons. It shows the
   current mode; aria-pressed reports whether dark mode is on. */
.theme-toggle{flex:none;width:44px;height:44px;display:inline-grid;place-content:center;padding:0;border-radius:50%;border:1px solid var(--line);background:var(--panel);color:var(--muted);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:transform .45s cubic-bezier(.34,1.56,.64,1),color .25s ease,border-color .25s ease,background-color .45s ease}
.theme-toggle:hover{color:var(--mint);border-color:var(--mint);transform:translateY(-1px)}
.theme-toggle:active{transform:scale(.88);transition-duration:.12s}
.theme-toggle:focus-visible{outline:2px solid var(--mint);outline-offset:4px}
.theme-toggle svg{width:19px;height:19px;grid-area:1/1;transition:transform .6s cubic-bezier(.34,1.56,.64,1),opacity .3s ease}
.theme-toggle .icon-sun{opacity:0;transform:rotate(-90deg) scale(.5)}
.theme-toggle .icon-moon{opacity:1;transform:none}
:root[data-theme=light] .theme-toggle .icon-sun{opacity:1;transform:none}
:root[data-theme=light] .theme-toggle .icon-moon{opacity:0;transform:rotate(90deg) scale(.5)}
@media(prefers-color-scheme:light){:root:not([data-theme]) .theme-toggle .icon-sun{opacity:1;transform:none}:root:not([data-theme]) .theme-toggle .icon-moon{opacity:0;transform:rotate(90deg) scale(.5)}}
:root[data-theme=light] .theme-toggle{box-shadow:0 6px 18px rgba(110,90,50,.14)}

/* Colours cross-fade only while the visitor is switching. */
.theme-changing,.theme-changing *,.theme-changing *::before,.theme-changing *::after{transition:background-color .45s ease,color .45s ease,border-color .45s ease,fill .45s ease,stroke .45s ease,box-shadow .45s ease,opacity .45s ease!important}

@media(prefers-reduced-motion:reduce){.theme-toggle,.theme-toggle svg{transition:none}}
.theme-changing .theme-toggle svg{transition:transform .6s cubic-bezier(.34,1.56,.64,1),opacity .3s ease!important}
@media(prefers-reduced-motion:reduce){.theme-changing .theme-toggle svg{transition:none!important}}
