/*
 * My PrestaChamps account: SILVER, WHITE AND BLACK (owner, 20 Oct 2026: "this silver with white and black ... more
 * professional", "this is amazing, we will keep this"). Every platform has its own colour, so the account carries
 * none: black buttons and rail, silver canvas and header glow, white cards. Colour belongs to the products: their
 * logo or letters, their badges, the product dots.
 *
 * Load AFTER ultra-tokens.css (UltraFrontend, the prestachamps skills plugin). Hand-made: make_palette.py keeps an
 * indigo-black rail for a grey brand. The same token names, so the components are untouched.
 *
 * Readability (WCAG, 4.5 needed for text), checked 20 Oct 2026:
 *   light: white on the black button 13.5 to 19.8 · text on white 18.9 · secondary text 8.7 · muted text 5.6 on
 *   white, 4.9 on the silver canvas · links 17.7 · rail text 13.4, rail labels 6.1 · current page on silver 12.7+
 *   dark: black on the silver button 11.9+ · text 15.9 · secondary 9.1 · muted 5.6 · links 14.6
 */
:root {
  /* neutrals: true greys, no blue */
  --bg-page: #EEEFF1;
  --bg-muted: #F5F5F6;
  --bg-sunken: #E7E8EA;
  --border: #E3E4E7;
  --border-strong: #CFD1D6;
  --text-primary: #111113;
  --text-secondary: #4A4B52;
  --text-muted: #65676F;

  /* black for actions */
  --color-primary: #18181B;
  --color-primary-dark: #0A0A0B;
  --color-primary-light: #52525B;
  --color-secondary: #3F3F46;
  --color-gradient: linear-gradient(135deg, #2E2E33 0%, #0A0A0B 100%);
  --color-gradient-hover: linear-gradient(135deg, #3F3F46 0%, #18181B 100%);
  --text-on-brand: #FFFFFF;
  --color-primary-a10: rgba(24, 24, 27, 0.07);
  --color-primary-a20: rgba(24, 24, 27, 0.18);
  --brand-glow: rgba(10, 10, 11, 0.35);
  --text-link: #18181B;
  --bg-purple-tint: rgba(24, 24, 27, 0.06);

  /* silver for the header card glow and heading bands */
  --head-a: rgba(113, 113, 122, 0.18);
  --head-b: rgba(161, 161, 170, 0.06);
  --band-bg: linear-gradient(90deg, #E4E4E7 0%, #F1F1F3 100%);
  --band-line: rgba(24, 24, 27, 0.16);
  --band-ink: #18181B;
  --chart-bar: #3F3F46;
  --chart-bar-muted: #D4D4D8;
  --sig-found: #18181B;
  --sig-found-soft: rgba(24, 24, 27, 0.08);
  --sig-found-ink: #18181B;
  --t-brand: #ECECEE;
  --c-brand: #18181B;

  /* the black rail, and the silver mark of the current page on it (the rail is dark in both themes) */
  --rail: #0A0A0B;
  --rail-2: #161618;
  --rail-3: #27272B;
  --rail-ink: #D4D4D8;
  --rail-ink-2: #8E8E96;
  --rail-current-bg: linear-gradient(135deg, #FAFAFA 0%, #CFCFD4 100%);
  --rail-current-ink: #0A0A0B;

  /* the night card: charcoal to graphite, with silver bars */
  --night-1: #18181B;
  --night-2: #232326;
  --night-deep: #0A0A0B;
  --night-3: #3A3A40;
  --night-gradient: linear-gradient(150deg, #0E0E10 0%, #1C1C1F 55%, #3A3A40 100%);
  --night-shadow: 0 22px 50px -28px rgba(10, 10, 11, 0.75);
  --night-orb: rgba(255, 255, 255, 0.10);
  --night-bar: rgba(244, 244, 245, 0.88);
  --night-grid: rgba(255, 255, 255, 0.12);
}

:root[data-theme="dark"] {
  --bg-page: #09090A;
  --bg-surface: #131315;
  --bg-muted: #18181B;
  --bg-sunken: #0E0E10;
  --border: #26262A;
  --border-strong: #3A3A40;
  --text-primary: #EDEDEF;
  --text-secondary: #B4B5BB;
  --text-muted: #8C8D95;

  /* in the dark, actions turn silver-white with black text */
  --color-primary: #E4E4E7;
  --color-primary-dark: #D4D4D8;
  --color-primary-light: #F4F4F5;
  --color-secondary: #A1A1AA;
  --color-gradient: linear-gradient(135deg, #FAFAFA 0%, #C8C8CE 100%);
  --color-gradient-hover: linear-gradient(135deg, #FFFFFF 0%, #D4D4D8 100%);
  --text-on-brand: #0A0A0B;
  --color-primary-a10: rgba(228, 228, 231, 0.10);
  --color-primary-a20: rgba(228, 228, 231, 0.22);
  --brand-glow: rgba(228, 228, 231, 0.18);
  --text-link: #E4E4E7;
  --bg-purple-tint: rgba(228, 228, 231, 0.08);
  --head-a: rgba(228, 228, 231, 0.10);
  --head-b: rgba(161, 161, 170, 0.04);
  --band-bg: linear-gradient(90deg, rgba(228, 228, 231, 0.14) 0%, rgba(161, 161, 170, 0.08) 100%);
  --band-line: rgba(228, 228, 231, 0.28);
  --band-ink: #F4F4F5;
  --chart-bar: #D4D4D8;
  --chart-bar-muted: #2A2A2F;
  --sig-found: #D4D4D8;
  --sig-found-soft: rgba(212, 212, 216, 0.12);
  --sig-found-ink: #E4E4E7;
  --t-brand: rgba(228, 228, 231, 0.10);
  --c-brand: #E4E4E7;
  --rail: #050506;
  --rail-2: #111113;
  --rail-3: #1F1F23;
  color-scheme: dark;
}
