/* Summit skins on the product hosts (2026-10-29). Each host page keeps its own token names; when a visitor picks the
   Studio or Terminal skin (summit-skins.css sets the shared tokens on <html data-skin>), these aliases point the host's
   own names at the shared ones. Scoped by <html data-site> (build/build.js). No rule applies without data-skin, so the
   default look of every host is unchanged. */

/* security.summitnet.io (Summit Shield) */
:root[data-skin][data-site="summit-shield"]{
  --snow:var(--bg);--granite:var(--walnut);--slate:var(--muted);
  --glacier:var(--brand);--glacier-ink:var(--brand-ink);--signal:var(--ring);--warn:var(--rust);
  --body:var(--font);
}

/* swapstudio.summitnet.io and shapestudio.summitnet.io, plus the Summit Studios header/footer (brand.css, --sn-*) */
:root[data-skin][data-site="swapstudio"],:root[data-skin][data-site="shapestudio"]{
  --bg-2:var(--card-alt);--line-2:var(--line);--body:var(--font);
  --lime:var(--brand);--pink:var(--rust);--cyan:var(--ring);
  --st-accent:var(--brand);--st-accent-ink:var(--brand-ink);
  --cream-2:var(--card-alt);--stone:var(--panel);--stone-2:var(--card-alt);--stone-3:var(--line);--ink-2:var(--muted);
  --bronze:var(--brand);--bronze-2:var(--ring);--bronze-3:var(--brand);
  --dark:var(--panel);--dark-2:var(--card-alt);--dark-ink:var(--ink);--dark-muted:var(--muted);--dark-line:var(--line);
  --serif:var(--display);--sans:var(--font);
  --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(--line);--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);
  --sn-display:var(--display);--sn-body:var(--font);
}
/* shapestudio paints the page with --cream; the shared --cream is a light tint in Studio, so point it at the page ground */
:root[data-skin][data-site="shapestudio"]{--cream:var(--bg)}
/* rgb triplets the studio pages use inside rgb(... / alpha) */
:root[data-skin="studio"][data-site]{--lime-rgb:180 84 28;--pink-rgb:180 84 28;--cyan-rgb:224 138 74;--sn-accent-rgb:180 84 28;color-scheme:light}
:root[data-skin="studio"][data-site][data-theme="dark"]{--lime-rgb:240 144 76;--pink-rgb:240 144 76;--cyan-rgb:240 144 76;--sn-accent-rgb:240 144 76;color-scheme:dark}
:root[data-skin="terminal"][data-site]{--lime-rgb:242 181 68;--pink-rgb:255 210 122;--cyan-rgb:127 209 139;--sn-accent-rgb:242 181 68}

/* SwapStudio paints its sections with hard-coded near-black grounds and glows, so Studio uses its own dark values there
   (paper on a black page would be unreadable) */
:root[data-skin="studio"][data-site="swapstudio"]{
  --bg:#17171a;--panel:#1f2023;--ink:#efe8db;--muted:#a99f90;--line:#34343a;--field:#1b1b1e;
  --brand:#f0904c;--brand-ink:#17171a;--rust:#f0904c;--ring:#f0904c;--ok:#9cc480;--bad:#ff8a7a;
  --card:#1f2023;--card-alt:#232428;--tint:#26262b;
  --lime-rgb:240 144 76;--pink-rgb:240 144 76;--cyan-rgb:240 144 76;--sn-accent-rgb:240 144 76;color-scheme:dark;
}
/* the Summit Studios header (brand.css) has a hard-coded graphite ground: follow the skin's page ground instead */
:root[data-skin][data-site="swapstudio"] .sn-head,:root[data-skin][data-site="shapestudio"] .sn-head{background:color-mix(in srgb,var(--bg) 88%,transparent)}

/* The switcher is the dock summit-skins.js draws on every page (2026-11-02), no longer a row in each host's footer.
   SwapStudio and ShapeStudio are dark-only designs (near-black grounds in the templates, the graphite Summit Studios
   header): build.js puts data-theme-lock="dark" on their <html>, so every skin renders dark there and the sun button
   says so instead of switching to an unreadable light page. */
