/* Panora Life — Slate: blue-grey paper and navy in light, a near-black navy sky in dark (Craig, 2026-10-30; decision 0073).
 * Light rules hang off html.slate-light, which js/sky.js keeps true only for Slate in light.
 */

/* Home is a sky at every hour, as in Grove, Sunrise and Glacier (Craig, 2026-11-01: "align Ember and Slate
   with Grove, sunrise and Glacier so they are more beautiful and interesting"; decision 0082). The pages inside
   keep their light and dark looks, below. */
html[data-sky='slate'] #wins-home.sky {
  --sky-ink: #ffffff;
}
html[data-sky='slate'] #wins-home.sky:not(.sky-night)::after {
  background: linear-gradient(
    180deg,
    rgba(18, 30, 50, 0.4) 0,
    rgba(18, 30, 50, 0.34) 170px,
    rgba(18, 30, 50, 0) 470px
  );
}
html[data-sky='slate'] #wins-home.sky-morning {
  --sky-bg:
    radial-gradient(90% 38% at 78% -6%, rgba(255, 222, 180, 0.34), rgba(255, 222, 180, 0) 70%),
    linear-gradient(180deg, #8ba5bf 0%, #5f7e9d 32%, #3b5674 64%, #1e2f46 100%);
}
html[data-sky='slate'] #wins-home.sky-afternoon {
  --sky-bg:
    radial-gradient(90% 38% at 78% -6%, rgba(255, 222, 180, 0.28), rgba(255, 222, 180, 0) 70%),
    linear-gradient(180deg, #7f9fbf 0%, #577a9d 32%, #365272 64%, #1b2c43 100%);
}
html[data-sky='slate'] #wins-home.sky-evening {
  --sky-bg:
    radial-gradient(90% 38% at 78% -6%, rgba(255, 222, 180, 0.2), rgba(255, 222, 180, 0) 70%),
    linear-gradient(180deg, #607896 0%, #3f5775 32%, #283a56 64%, #121d30 100%);
}
html[data-sky='slate'] #wins-home.sky-night {
  --sky-bg: linear-gradient(180deg, #2d3b52 0%, #1c273a 45%, #0d1420 100%);
}
html[data-sky='slate'].on-home:has(#wins-home.sky-morning) body {
  background-color: #1e2f46;
}
html[data-sky='slate'].on-home:has(#wins-home.sky-afternoon) body {
  background-color: #1b2c43;
}
html[data-sky='slate'].on-home:has(#wins-home.sky-evening) body {
  background-color: #121d30;
}
html[data-sky='slate'].on-home:has(#wins-home.sky-night) body {
  background-color: #0d1420;
}
html[data-sky='slate'] #wins-home.sky .welcome-card {
  --sky-deep: #23344d;
}

html[data-sky='slate'] #wins-home.sky {
  --sky-ink: #f0f2f4;
}

html[data-sky='slate'] .appbar {
  background: linear-gradient(100deg, #262e39 0%, #2f3946 50%, #384354 100%) !important;
}

html[data-sky='slate'] .appbar .homebtn,
html[data-sky='slate'] .appbar .homebtn span {
  color: #ffffff !important;
}

/* The opening screen, the sky's colours with a soft glow. */
html[data-sky='slate'] #splash {
  color: #f0f2f4;
  background:
    radial-gradient(70% 45% at 50% 44%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #2c3541, #242c36 35%, #1d232c 70%, #161b22);
}

html[data-sky='slate'] #splash .sp-tag {
  color: #f0f2f4;
}

.sky-pick .sw-slate {
  /* Slate's own sky, blue-grey to navy, as Home shows it (2026-11-16). */
  background:
    radial-gradient(90% 60% at 78% -6%, rgba(255, 222, 180, 0.4), rgba(255, 222, 180, 0) 70%),
    linear-gradient(180deg, #8ba5bf, #5f7e9d 35%, #3b5674 70%, #1e2f46);
  box-shadow: inset 0 0 0 1px rgba(31, 41, 55, 0.12);
}

html.slate-light .appbar {
  box-shadow: none;
}

/* ---------- inside the parts ---------- */
/* Light: the parts sit on the same white and greys. */
html.slate-light {
  --canvas: #f2f4f6;
  --surface: #ffffff;
  --surface-quiet: #eef0f2;
  --edge-strong: #cfd5dd;
}

/* Dark: near-black surfaces, and a light grey button with black type. */
html[data-sky='slate']:not(.slate-light) {
  --canvas: #161a21;
  --surface: #1d232c;
  --surface-quiet: #232b35;
  --edge-strong: #343e4e;
}

/* The grey only while it is the theme's own accent (no other accent set). */
html[data-sky='slate']:not(.slate-light):not([data-accent]) {
  --accent: #e2e5ea;
  --accent-hi: #ffffff;
  --accent-lo: #c4cbd4;
  --accent-ink: #181d24;
  --accent-text: #e2e5ea;
  --accent-wash: rgba(255, 255, 255, 0.12);
}

/* Light: the deep colour is the accent (buttons, links, the selected tab). */
html.slate-light:not([data-accent]) {
  --accent: #181d24;
  --accent-hi: #0c0f12;
  --accent-lo: #2f3946;
  --accent-ink: #ffffff;
  --accent-text: #181d24;
  --accent-wash: rgba(0, 0, 0, 0.07);
}

/* The wheel's ink, and dark mode deepened with plain black rather than the night blue the
   other families use (css/sky.css), as Mono did. */
html[data-sky='slate'] {
  --wheel-ink: #181d24;
}

:root[data-theme='dark'][data-sky='slate'] .appbar {
  box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.42);
}

@media (prefers-color-scheme: dark) {
  :root[data-sky='slate']:not([data-theme='light']) .appbar {
    box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, 0.42);
  }
}
/* Each part's data colour (standard.css T2), in greys a shade apart like the wheel. */
html[data-sky='slate'] {
  --pc-food: #94a1b2;
  --pc-exercise: #bec6d0;
  --pc-unplug: #a9b3c1;
  --pc-sleep: #697a91;
  --pc-still: #7d8ca1;
  --pc-focus: #8b98ab;
  --pc-know: #cbd1d9;
  --pc-money: #b2bbc8;
}

html.slate-light:not([data-accent]) {
  --accent: #33445f;
  --accent-hi: #3d5070;
  --accent-lo: #2a3850;
  --accent-text: #33445f;
}

html.slate-light .appbar {
  background: linear-gradient(100deg, #2c3a54 0%, #3a4b6a 55%, #4a5e82 100%) !important;
}

html[data-sky='slate']:not(.slate-light) {
  --canvas: #0e131b;
  --surface: #181f2b;
  --surface-quiet: #212a38;
  --edge-strong: #37435a;
}

html[data-sky='slate']:not(.slate-light):not([data-accent]) {
  --accent: #c6d4ea;
  --accent-hi: #d6e1f2;
  --accent-lo: #b0c1dc;
  --accent-ink: #1f2a3c;
  --accent-text: #c6d4ea;
}

html[data-sky='slate']:not(.slate-light) .appbar {
  background: linear-gradient(100deg, #1a2130 0%, #2c3a54 60%, #3a4b6a 100%) !important;
}

html[data-sky='slate'] #splash {
  background:
    radial-gradient(70% 45% at 50% 44%, rgba(92, 130, 196, 0.3), rgba(92, 130, 196, 0) 70%),
    linear-gradient(180deg, #232c3d, #1a2130 35%, #121823 70%, #0b0f16);
}
