/* ============================================================================
   Ontech Design System — shared tokens (slate base, emerald accent)
   Single source of truth for ontechmail + ontech.co.zm / ictm.ontech.co.zm.
   Link this BEFORE any page/app stylesheet:
     <link rel="stylesheet" href="/static/ontech-tokens.css">
   Light + dark themes. AA-safe CTA tokens (--btn-bg/--btn-on). Aliases included
   (--text-light, --bg-alt) so the marketing/auth pages share one definition.
   ========================================================================== */
:root {
  /* Brand */
  --primary: #0f172a; --primary-light: #1e293b; --primary-dark: #020617;
  --accent: #10b981; --accent-dark: #059669; --accent-light: #d1fae5;
  --accent-strong: #047857;            /* emerald-700 — AA text/fill */
  --secondary: #3b82f6; --purple: #8b5cf6;
  --link: #2563eb;                     /* blue-600 — hyperlink colour (AA on white) */
  /* A11y CTA: white on --accent (#10b981) fails 4.5:1 (2.54); use --btn-bg. */
  --btn-bg: #047857; --btn-on: #ffffff;          /* white on emerald-700 = 5.48 AA */
  --focus-ring: 0 0 0 3px rgba(15,23,42,.35);
  /* Status */
  --success: #10b981; --warning: #f59e0b; --danger: #ef4444;
  /* Text (+ alias) */
  --text: #1e293b; --text-secondary: #475569; --text-light: #475569; --muted: #64748b;
  /* Surfaces (+ alias) */
  --bg: #ffffff; --panel: #ffffff; --bg-tertiary: #f4f6f8; --bg-alt: #f4f6f8;
  --border: #e2e8f0; --active-bg: #ecfdf5;
  --hair: rgba(15,23,42,.14); --hair-soft: rgba(15,23,42,.10);
  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05); --shadow-md: 0 4px 6px rgba(0,0,0,.07);
  /* Radius (4/5/6/8/9/10/12/14/16 → 5 steps) */
  --r-sm: 6px; --r-md: 9px; --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;
  /* Spacing (4px base) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
}
:root[data-theme="dark"] {
  --primary: #e2e8f0; --primary-light: #cbd5e1; --primary-dark: #f8fafc;
  --accent: #34d399; --accent-dark: #10b981; --accent-light: #064e3b;
  --accent-strong: #34d399;
  --link: #60a5fa;                     /* blue-400 — hyperlink colour (AA on dark) */
  /* Dark: bright emerald CTA with dark text (AAA), not white. */
  --btn-bg: #34d399; --btn-on: #06281c;
  --focus-ring: 0 0 0 3px rgba(255,255,255,.35);
  --text: #e5e7eb; --text-secondary: #aeb9c7; --text-light: #aeb9c7; --muted: #94a3b8;
  --bg: #0f172a; --panel: #1e293b; --bg-tertiary: #334155; --bg-alt: #334155;
  --border: #334155; --active-bg: #064e3b;
  --hair: rgba(255,255,255,.18); --hair-soft: rgba(255,255,255,.12);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-md: 0 4px 6px rgba(0,0,0,.5);
}
