/*
 * SyntAll design tokens.
 *
 * Components use ONLY the aliases (--sa-ink, --sa-brand-*, --sa-on-*, --sa-focus-ring) for
 * brand colours: those are overridden per distributor later (white-label, R4). Status colours
 * (blue, green, red) are not brand colours and use the base tokens.
 *
 * Rules from the design system (checked in tests/test_design_tokens.py):
 * - gold-500 only as a surface or indicator, never as text on white (as text only on navy);
 * - slate-300 never as text on white; slate-500 never smaller than 12px.
 */
:root {
  /* Colours */
  --sa-color-navy-900: #151b2d;
  --sa-color-navy-800: #1e2640;
  --sa-color-gold-500: #f0aa18;
  --sa-color-gold-600: #d99812;
  --sa-color-gold-700: #8a5a00;
  --sa-color-gold-100: #fff0c9;
  --sa-color-slate-600: #536274;
  --sa-color-slate-500: #6b7686;
  --sa-color-slate-200: #c9d1dc;
  --sa-color-slate-400: #7a8698;
  --sa-color-slate-300: #9ba6b5;
  --sa-color-line: #d9dfe7;
  --sa-color-surface: #ffffff;
  --sa-color-surface-subtle: #fafbfd;
  --sa-color-surface-muted: #eef2f7;
  --sa-color-blue-100: #eaf1ff;
  --sa-color-blue-700: #2b5cb8;
  --sa-color-green-100: #eaf7ee;
  --sa-color-green-700: #1f7a45;
  --sa-color-red-100: #fdecea;
  --sa-color-red-700: #b42318;

  /* Aliases (white-label: override these, not the base colours) */
  --sa-ink: var(--sa-color-navy-900);
  --sa-ink-muted: var(--sa-color-slate-600);
  --sa-brand-primary: var(--sa-color-navy-900);
  --sa-brand-primary-hover: var(--sa-color-navy-800);
  --sa-on-primary: #fff;
  --sa-on-primary-muted: var(--sa-color-slate-200);
  --sa-brand-accent: var(--sa-color-gold-500);
  --sa-brand-accent-hover: var(--sa-color-gold-600);
  --sa-on-accent: var(--sa-color-navy-900);
  --sa-focus-ring: var(--sa-color-navy-900);
  --sa-focus-ring-on-primary: #fff;

  /* Fonts */
  --sa-font-heading: "Space Grotesk Variable", "Segoe UI", system-ui, sans-serif;
  --sa-font-body: "Inter Variable", "Segoe UI", system-ui, sans-serif;

  /* Typography: size / line height / weight */
  --sa-text-display: 700 32px/40px var(--sa-font-heading);
  --sa-text-heading-1: 700 24px/32px var(--sa-font-heading);
  --sa-text-heading-2: 600 18px/26px var(--sa-font-heading);
  --sa-text-body: 400 14px/22px var(--sa-font-body);
  --sa-text-body-strong: 600 14px/22px var(--sa-font-body);
  --sa-text-nav: 500 14px/20px var(--sa-font-heading);
  --sa-text-small: 400 12px/18px var(--sa-font-body);
  --sa-text-label: 600 11px/16px var(--sa-font-heading);
  --sa-text-label-spacing: 0.06em;
  --sa-text-metric: 700 28px/34px var(--sa-font-heading);
  /* Auth pages (login, 2FA, error): brand panel and form title */
  --sa-text-eyebrow: 600 12px/16px var(--sa-font-heading);
  --sa-text-eyebrow-spacing: 0.12em;
  --sa-text-hero: 700 34px/42px var(--sa-font-heading);
  --sa-text-hero-mobile: 700 22px/28px var(--sa-font-heading);
  --sa-text-lead: 400 15px/24px var(--sa-font-body);
  --sa-text-auth-title: 700 28px/36px var(--sa-font-heading);
  /* Form controls on small screens: at least 16px, so iOS does not zoom in */
  --sa-text-input-mobile: 400 16px/24px var(--sa-font-body);

  /* Space */
  --sa-space-1: 4px;
  --sa-space-2: 8px;
  --sa-space-3: 12px;
  --sa-space-4: 16px;
  --sa-space-5: 24px;
  --sa-space-6: 32px;
  --sa-space-7: 48px;

  /* Radius */
  --sa-radius-sm: 4px;
  --sa-radius-md: 8px;
  --sa-radius-lg: 12px;
  --sa-radius-pill: 999px;

  /* The one card shadow */
  --sa-shadow-card: 0 1px 2px rgb(21 27 45 / 6%), 0 1px 3px rgb(21 27 45 / 4%);

  /* Layout */
  --sa-sidebar-width: 240px;
  --sa-control-height: 44px;
  --sa-topbar-height: 56px;
  --sa-tabbar-height: 64px;
}
