/*
 * SiteManager design tokens — colors.
 * Source of truth: design-system/DESIGN-SPECIFICATION.md §3 and §10.
 * Spec values are kept verbatim. Tokens marked "a11y-derived" are additions
 * required to meet WCAG 2.2 AA (4.5:1) for small text — see
 * design-system/components/accessibility-notes.md.
 */
:root {
  /* Brand (spec §3.1) */
  --sm-primary: #243B80;
  --sm-primary-hover: #1D3068;
  --sm-accent: #536DFE;
  --sm-teal: #0F9D91;

  /* Backgrounds (spec §3.2) */
  --sm-bg: #F7F8FC;
  --sm-surface: #FFFFFF;
  --sm-surface-muted: #F0F2F7;
  --sm-sidebar: #FFFFFF;

  /* Text (spec §3.2) */
  --sm-text: #172033;
  --sm-text-secondary: #5D6678; /* ≥4.78:1 on every surface incl. #F0F2F7 (was #667085: 4.44:1 there — failed WCAG AA, Phase 6 audit) */
  --sm-text-muted: #98A2B3; /* decorative/disabled only: 2.58:1 on white */

  /* Borders */
  --sm-border: #E6EAF0;

  /* Status (spec §3.3) — fills, icons, borders, large text */
  --sm-success: #16865C;
  --sm-warning: #B7791F;
  --sm-danger: #D64545;
  --sm-info: #2874C7;
  --sm-ai: #536DFE;
  --sm-neutral: #667085;

  /* a11y-derived: small text / white-label fills (all >= 4.5:1) */
  --sm-accent-strong: #3D52D9;   /* 6.16:1 — AI button fill, AI text */
  --sm-accent-strong-hover: #3245C2;
  --sm-teal-text: #0B7A70;       /* 5.21:1 */
  --sm-success-text: #126B4A;    /* 6.51:1 */
  --sm-warning-text: #8A5A12;    /* 5.91:1 */
  --sm-danger-text: #B33636;     /* 6.00:1 — danger button fill */
  --sm-danger-hover: #9C2D2D;
  --sm-info-text: #1F5FA6;       /* 6.47:1 */

  /* Soft tints for badges / notices (text uses *-text tokens on these) */
  --sm-success-soft: #E8F5EF;
  --sm-warning-soft: #FBF3E6;
  --sm-danger-soft: #FBECEC;
  --sm-info-soft: #EAF2FB;
  --sm-ai-soft: #EEF1FF;
  --sm-neutral-soft: #F0F2F7;

  /* Focus ring */
  --sm-focus-ring: 0 0 0 2px var(--sm-surface), 0 0 0 4px var(--sm-primary);
}
