/* Parda design tokens, v9 (2026-10-13, R9 badge tones; v8 2026-10-12, DSA-1): the brand's violet and grey page (locked by the
   brand package and the approved illustrations), Direction A's ink, red errors only, yellow
   attention, and Polaris-style tone aliases. Vazirmatn is the only face. */
@font-face{
  font-family:Vazirmatn;
  src:url("/static/fonts/vazirmatn-fa-subset.woff2") format("woff2"),
      url("/static/fonts/vazirmatn-fa-subset.ttf") format("truetype");
  font-display:swap;
}
:root{
  /* v6 is light-first: some Chrome builds read the CSS property (not the head meta) when
     deciding whether the force-dark inverter may rewrite the page. Both are set. */
  color-scheme:only light;
  /* the brand: one violet family */
  --primary:#6D28D9; --primary-hover:var(--primary-strong); --on-primary:#FFFFFF;
  --primary-tint:var(--primary-soft); --primary-200:#DDD6FE; --primary-700:var(--primary-strong);

  /* the one red: errors, exclusively (D1) */
  --danger:#DC2626; --on-danger:#fff; --danger-tint:#FEF2F2;

  /* semantic supports */
  --success:#16A34A; --success-deep:#15803D; --success-tint:#DCFCE7;
  --warning:#F59E0B; --warning-300:#FCD34D; --warning-500:#D97706; --warning-tint:#FEF3C7;

  /* surfaces and ink */
  --surface:#FFFFFF; --surface-alt:var(--bg); --surface-well:#F3F4F6;
  --text:#1C1A2E; --text-2:#374151; --muted:#5E5B73; --faint:#9CA3AF;
  --border:#E5E7EB; --border-strong:#D1D5DB; --black:#111827;

  /* the secondary action (X13/X36: quiet outline, never filled). GLM review 2026-09-29: these
     three were dropped in the v6 token rewrite while components.css:25 still consumes them --
     undefined custom properties invalidate the declarations and secondary buttons rendered bare. */
  --secondary-bg:transparent; --secondary-fg:var(--text); --secondary-border:var(--border-strong);

  /* shape and space: the 4px grid the designer asked for */
  --radius:12px; --radius-sm:8px; --radius-lg:16px;
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px;
  --shadow:0 1px 4px rgb(17 24 39 / .08); --shadow-2:0 8px 24px rgb(17 24 39 / .14);
  --scrim:rgb(28 26 46 / .62);   /* GVID-MODAL: a dialog's dimmed backdrop (--text at 62 %), no color-mix: iOS 15.4+ */

  /* v7 motion (spec §4.1): motion explains -- sequence, progress, state change, success -- and
     every animation rests on its final frame. UI 150-400ms; explainers <= 3s, once. */
  --dur-1:150ms; --dur-2:240ms; --dur-3:320ms; --dur-4:400ms; --stagger:450ms;
  --ease-out:cubic-bezier(.2,.8,.2,1); --ease-in-out:cubic-bezier(.4,0,.2,1);
  --ease-pop:cubic-bezier(.34,1.56,.64,1);   /* small overshoot, success only */
  --warning-deep:#92400E;                    /* AA text on --warning-tint */
  --success-tint-2:#BBF7D0;                  /* the copied flash */

  /* v7 (2026-10-06): the grey page, the pressed violet and error ink, the type scale, the frame */
  --bg:#F3F4F6; --primary-strong:#5B21B6; --primary-soft:#EDE9FE; --danger-deep:#B91C1C;
  --fs-xs:12px; --fs-sm:14px; --fs-base:16px; --fs-title:18px; --fs-h1:20px; --fs-figure:28px;
  --h-row:56px; --h-btn:48px; --frame:480px; --radius-pill:999px;

  /* v8 (DSA-1): success as TEXT needs AA (#16A34A is 3.3:1 on white) -- #15803D is 5.0 on white
     and 4.6 on the grey page; #16A34A stays for icons and fills. Progress is violet; green is kept
     for the one success moment. Tone aliases: one meaning per colour, everywhere. */
  --ok-text:var(--success-deep);
  --progress:var(--primary); --progress-ink:var(--primary-strong); --progress-tint:var(--primary-soft);
  --tone-info:var(--primary); --tone-success:var(--success); --tone-attention:var(--warning);
  --tone-critical:var(--danger); --critical-text:var(--danger-deep); --attention-text:var(--warning-deep);

  /* v9 (R9): the badge's five tones, each a pair already in this file -- no new hue. Neutral is
     the grey well, info the brand violet, success green, warning the attention yellow, critical
     the error red; every text colour is the AA "deep" one on its own tint. */
  --badge-neutral-bg:var(--surface-well); --badge-neutral-fg:var(--text-2);
  --badge-info-bg:var(--primary-soft); --badge-info-fg:var(--primary-strong);
  --badge-success-bg:var(--success-tint); --badge-success-fg:var(--success-deep);
  --badge-warning-bg:var(--warning-tint); --badge-warning-fg:var(--warning-deep);
  --badge-critical-bg:var(--danger-tint); --badge-critical-fg:var(--danger-deep);
}
