/*
 * Shared colour tokens and the dark palette.
 *
 * Load order matters: this file comes after Bootstrap and before style.css / the per-page "modern"
 * stylesheets. Those files still define their own light :root values, so light mode is unchanged.
 * The dark values below win over them because :root[data-theme="dark"] is more specific than :root.
 *
 * data-theme is always a concrete 'light' or 'dark': js/theme-init.js resolves 'system' before setting it.
 *
 * As pages move onto these tokens, delete their local :root colour definitions rather than
 * adding more overrides here.
 */
:root {
  --ws-surface-2: #f8fafc;
  --ws-hover: #f1f5f9;
  --ws-text-subtle: #94a3b8;
  --ws-border-strong: #d3d9e2;
  --ws-primary-soft: #e8f1fc;
  --ws-warning: #d97706;
  --ws-success: #16a34a;
  --ws-danger: #dc2626;
  --ws-shadow-lg: 0 10px 30px -10px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .06);
}

:root[data-theme="dark"] {
  --ws-bg: #0e1520;
  --ws-surface: #16202e;
  --ws-surface-2: #1b2736;
  --ws-hover: #202d3f;
  --ws-border: #263447;
  --ws-border-strong: #34455c;
  --ws-text: #e5ecf4;
  --ws-text-muted: #9aa9bc;
  --ws-text-subtle: #6f8097;
  --ws-primary: #4fa8e6;
  --ws-primary-dark: #7bbff0;
  --ws-primary-hover: #7bbff0;
  --ws-primary-soft: #14304a;
  --ws-accent: #f5b400;
  --ws-success: #4ade80;
  --ws-warning: #fbbf24;
  --ws-danger: #f87171;
  --ws-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .5);
  --ws-shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .4);
  --ws-ring: 0 0 0 3px rgba(79, 168, 230, .35);
  color-scheme: dark;
}
