/* Giti Pay — design tokens.
   Fix Prompt 8 (v5.15): the palette of the brand kit
   (design-reference/brand/brand-identity.html §5 «رنگ‌ها») — the logo, app
   icon and splash were drawn from these values, which are the Fix Prompt
   #15 tokens; Fix Prompt #39's navy/green values (--gp-*) are gone.
   - Brand: --ink (buttons, links, active states, hero) and --ink-2 (deep
     blue; hover/pressed, the start of the 160° hero gradient).
   - Gold: --gold-2 = brand accent (fills, highlights, badges on blue);
     --gold = gold text/lines on white.
   - Semantic only: --emerald = positive/paid/profit, --danger =
     negative/overdue/error. Never decorative.
   - #3558D9 is the splash/manifest flat colour only, never UI; the logo's
     own gradient stops stay inside the logo files.
   Tints are derived from these tokens and defined once here.

   The app is light-mode only (Fix Prompt #11 section 1). */

:root {
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;

  --bg: #EDEFF4;
  --stage: #EDEFF4;
  --surface: #FFFFFF;
  --surface-2: rgb(249, 249, 251);
  --text: rgb(35, 48, 59);
  --text-soft: rgb(79, 89, 98);
  --muted: rgb(142, 148, 154);
  --border: rgba(164, 169, 174, .4);
  --neutral-tint: rgba(164, 169, 174, .15);

  --ink: rgb(69, 110, 254);
  --ink-2: rgb(38, 66, 180);
  --ink-3: rgb(69, 110, 254);
  --ink-tint: rgba(69, 110, 254, .12);
  --ink-tint-soft: rgba(69, 110, 254, .08);   /* active nav row */

  --gold: rgb(196, 148, 26);
  --gold-2: rgb(248, 199, 78);
  --gold-glow: 196, 148, 26;
  --gold-tint: rgba(196, 148, 26, .12);

  --emerald: rgb(19, 201, 153);
  --emerald-bg: rgba(19, 201, 153, .15);
  --emerald-soft: rgba(19, 201, 153, .1);     /* positive info box */
  --emerald-line: rgba(19, 201, 153, .25);    /* its border / outlined positive button */
  --danger: rgb(231, 55, 38);
  --danger-bg: rgba(255, 99, 99, .15);

  /* Fix Prompt 8.1 — TEXT-ONLY variants (fills, icons and dots keep the base
     colours above). Each is its base colour darkened toward black just
     enough (hue kept) to reach WCAG 4.5:1 for small text on white, on its
     own tint, on --bg and on --surface-2 (tests/test_palette_guard.py
     checks the ratios). Links/brand text use --ink-2 (8.3:1); --ink stays
     for fills — white on --ink (4.3:1) only on bold ≥14px buttons. */
  --emerald-text: rgb(12, 123, 93);   /* --emerald × 61% · 5.2:1 */
  --danger-text: rgb(199, 47, 33);    /* --danger × 86% · 5.4:1 (4.6:1 on --danger-bg) */
  --gold-text: rgb(137, 104, 18);     /* --gold × 70% · 5.2:1 */
  --muted-text: rgb(104, 108, 112);   /* --muted × 73% · 5.3:1 */
  --on-gold: rgb(88, 62, 10);         /* text on --gold-2 fills · 6.3:1 */

  --radius-card: 10px;
  --shadow: 1px 5px 40px 8px rgba(110, 117, 136, 0.07);
  /* Fix Prompt 46 — Redesign 1405: values the approved boards use that had no token yet, copied exactly from the
     boards (owner to confirm; the report lists them). */
  --scrim: rgba(35, 48, 59, .45);                          /* behind a dialog or a sheet */
  --shadow-dialog: 0 20px 60px rgba(35, 48, 59, .25);      /* a centred dialog */
  --shadow-raised: 1px 2px 8px rgba(110, 117, 136, .15);   /* the selected side of a segmented control */
  /* R2.1 (awaiting the owner's confirmation, like the three above): */
  --danger-row: rgba(255, 99, 99, .06);                    /* an overdue row in a table (board Main) */
  --shadow-bar: 0 -4px 20px rgba(110, 117, 136, .12);      /* a phone page's sticky action bar (board InvoiceMobile) */

  --font-body: "Vazirmatn", "Tahoma", sans-serif;
  /* Vazirmatn already has full Farsi-Arabic digit glyph support (Fix Prompt
     #13 section 10) and is already loaded for --font-body, so it's reused
     here too rather than adding a second webfont — same swap-point pattern
     as --font-body below: the client's eventual licensed font (Iran Sans /
     Yekan Bakh) replaces both variables at once when it arrives. */
  --font-mono: "Vazirmatn", "Tahoma", sans-serif;
}

/* Custom Persian font slot ------------------------------------------------
   Vazirmatn itself is self-hosted as of Fix Prompt #18 section 11 — see
   /static/css/fonts.css's @font-face blocks and /static/fonts/*.woff2
   (no more Google Fonts <link>/round-trip). The client still has a
   LICENSED custom Persian font (Iran Sans / Yekan Bakh) they will provide
   separately. When it arrives: drop its font files under /static/fonts/
   and replace fonts.css's three @font-face `src` blocks with ones pointing
   at those files instead of the vazirmatn-*.woff2 files. No other CSS
   changes needed since --font-body/--font-mono already reference
   "Vazirmatn" as the family name. */
