/* Summit skins on the studio app (2026-10-29, Owen: "get the skins part deployed ... to all websites"; light/dark via
   <html data-theme> and the shared dock, 2026-11-02, Owen: "Make sure these themes work across all platforms").
   Load AFTER summit-skins.css. summit-skins.css redefines the shared tokens (--bg, --ink, --brand, --display...);
   these pages draw with brand.css's --sn-* tokens and per-page aliases (--lime, --accent, --card, --body...),
   so the rules below alias those to the shared tokens while a skin is on (<html data-skin>) or while the default
   Summit look is in light (<html data-theme="light">, Summit Studios light palette defined here).
   Summit in dark (no data-skin, data-theme="dark", the default on every studio page) matches nothing here, so the
   native graphite + lime look is exactly what it was. */

/* Summit Studios light: warm off-white ground, graphite ink, the lime deepened to olive so it reads as text (6.3:1) */
:root:not([data-skin])[data-theme="light"]{
  --bg:#f4f4ef;--panel:#fff;--ink:#121218;--muted:#55555f;--line:#d6d5cc;--field:#fafaf6;
  --brand:#3f6300;--brand-ink:#fff;--rust:#a3306f;--ring:#3f6300;--ok:#1f7a35;--bad:#b3261e;
  --card:#fff;--card-alt:#ecebe4;--tint:#e6e5dd;--ink-faint:#6b6b75;--rust-deep:#a3306f;--sage-deep:#00707f;
  --sn-accent-rgb:63 99 0;color-scheme:light;
}

/* colours: every page's own names point at the shared tokens */
:root[data-skin],:root[data-theme="light"]{
  --sn-bg:var(--bg);--sn-bg-2:var(--card-alt);--sn-panel:var(--panel);--sn-panel-2:var(--card-alt);
  --sn-line:var(--line);--sn-line-2:var(--ink-faint);--sn-ink:var(--ink);--sn-muted:var(--muted);
  --sn-accent:var(--brand);--sn-accent-ink:var(--brand-ink);--sn-ok:var(--ok);--sn-bad:var(--bad);
  --accent:var(--brand);--accent-ink:var(--brand-ink);--lime:var(--brand);--lime-ink:var(--brand-ink);--st-accent-ink:var(--brand-ink);
  --soft:var(--card-alt);--soft2:var(--tint);--panel-2:var(--card-alt);--panel2:var(--card-alt);--bg2:var(--card-alt);
  --line2:var(--ink-faint);--acc:var(--brand);
  --pink:var(--rust-deep);--cyan:var(--sage-deep);
}
/* fonts: only the Studio and Terminal skins change them; Summit light keeps each page's own faces */
:root[data-skin]{--sn-display:var(--display);--sn-body:var(--font);--body:var(--font);--sans:var(--font);--serif:var(--display)}

:root[data-skin="studio"]{--sn-accent-rgb:180 84 28;color-scheme:light}
:root[data-skin="studio"][data-theme="dark"]{--sn-accent-rgb:240 144 76;color-scheme:dark}
:root[data-skin="terminal"]{--sn-accent-rgb:242 181 68;color-scheme:dark}
:root[data-skin="terminal"][data-theme="light"]{--sn-accent-rgb:138 90 0;color-scheme:light}

/* hard-coded dark surfaces in brand.css and the seasonal themes (halloween.css, thanksgiving.css, christmas.css) */
:root[data-skin] body,:root[data-theme="light"] body{background-color:var(--bg);background-image:none}
:root[data-skin] .sn-head,:root[data-theme="light"] .sn-head{background:color-mix(in srgb,var(--bg) 88%,transparent);border-bottom-color:var(--line);box-shadow:none}
:root[data-skin] .sn-foot,:root[data-theme="light"] .sn-foot{background:var(--card-alt);border-top-color:var(--line)}
:root[data-skin] .sn-foot .sn-word,:root[data-theme="light"] .sn-foot .sn-word{color:color-mix(in srgb,var(--ink) 6%,transparent)}
:root[data-skin] .sn-tabs a.on,:root[data-theme="light"] .sn-tabs a.on{border-color:var(--line)}
:root[data-skin] .sn-cta,:root[data-theme="light"] .sn-cta{box-shadow:none}
:root[data-skin] .sn-bats,:root[data-skin] .sn-leaves,:root[data-skin] .sn-snow,:root[data-skin] .sn-product::before,:root[data-theme="light"] .sn-bats,:root[data-theme="light"] .sn-leaves,:root[data-theme="light"] .sn-snow,:root[data-theme="light"] .sn-product::before{display:none;content:none}
/* page-only colours that are tuned for the dark ground */
:root[data-theme="light"]{--warn:#8a5a00;--sn-warn:#8a5a00;--yt:#c4302b;--fb:#2d5fd3;--ig:#b0399a;--tt:#00838a;--g:#2d63c8}
/* the staff pages' sticky top bar and the admin centers menu have hard-coded graphite grounds */
:root[data-skin] .top,:root[data-theme="light"] .top{background:color-mix(in srgb,var(--bg) 92%,transparent)}
:root[data-skin] .centers-menu,:root[data-theme="light"] .centers-menu{background:var(--panel);box-shadow:0 18px 48px -12px rgba(0,0,0,.35)}
/* white overlays and light reds that vanish on a light ground */
/* (.bar is a progress track on swap/free, a filter row on console, a chart row on social, a bar fill on analytics) */
:root[data-theme="light"] .bar:has(> i:only-child),:root[data-theme="light"] .bar .tr{background:var(--line)}
:root[data-theme="light"] .kv div,:root[data-theme="light"] .panel.staff,:root[data-theme="light"] tr.click:hover td{background:var(--card-alt)}
:root[data-theme="light"] .sw,:root[data-theme="light"] .picked i,:root[data-theme="light"] .swatch .dot{border-color:rgba(0,0,0,.28)}
:root[data-theme="light"] .danger:not(.arm){color:var(--bad)}
:root[data-theme="light"] .d.publishing,:root[data-theme="light"] .d.auto{color:#2d63c8;border-color:rgba(45,99,200,.45)}
