/* ============================================================
   THE BLIND SPOT · by IRIS AI
   Design tokens — v3 (brand guideline, Oct 2026)
   จากจุดบอดสู่ทางออก เพื่อธุรกิจไทยที่พร้อมกว่าเดิม
   ============================================================ */

:root {
  /* ---- Brand palette (the guideline's five) ---- */
  --bs-blue:            #0056FF;  /* primary */
  --bs-blue-light:      #3A84FC;  /* secondary */
  --bs-void:            #000000;
  --bs-grey:            #EBEBEB;
  --bs-paper:           #FFFFFF;

  /* ---- Derived, for interaction/accessibility only ---- */
  --bs-blue-deep:       #0047D6;  /* hover/pressed on blue fills; white on it 7.0:1 */
  --bs-blue-wash:       #EEF4FF;  /* tinted panel on Paper */
  --bs-on-blue-faint:   rgba(255, 255, 255, .09);  /* decorative squares on blue */

  /* ---- Status set. Functional, deliberately outside the brand ---- */
  --bs-pass:            #12B76A;
  --bs-watch:           #FFA902;  /* warnings only (e.g. timer's last minute) — never decoration */
  --bs-critical:        #E4483A;
  --bs-status-ink:      #000000;

  /* ---- Type: Archivo Black (EN display), Montserrat (EN text), Anuphan (TH) ----
     Latin-first stacks: Thai glyphs fall through to Anuphan automatically. */
  --bs-font-display:    'Archivo Black', 'Anuphan', system-ui, sans-serif;
  --bs-font-body:       'Montserrat', 'Anuphan', system-ui, sans-serif;
  --bs-font-label:      'Montserrat', 'Anuphan', system-ui, sans-serif;  /* small uppercase labels */

  --bs-lh-display-th:   1.3;    /* Thai display needs more than Latin */
  --bs-lh-body-th:      1.7;
  --bs-track-label:     0.08em;  /* Latin labels only — Thai is never letter-spaced */

  /* ---- Geometry: the mark's rounded squares ---- */
  --bs-radius-sm:       4px;
  --bs-radius-md:       8px;
  --bs-radius-lg:       14px;
  --bs-radius-pill:     999px;
}

/* ============================================================
   Semantic theme layer — set data-theme on <html>.
   ============================================================ */

html[data-theme="light"] {         /* Paper — the default */
  --bs-bg:         #FFFFFF;
  --bs-bg-surface: #F5F5F5;
  --bs-bg-raised:  #EBEBEB;
  --bs-border:     #E0E0E0;
  --bs-text:       #000000;
  --bs-text-subtle:#3D3D3D;   /* 10.86:1 */
  --bs-text-muted: #6B6B6B;   /*  5.33:1 */
  --bs-text-faint: #A3A3A3;   /* decorative only — below AA */
  --bs-text-link:  #0056FF;   /*  5.56:1 */
  --bs-text-accent:#0056FF;
  --bs-text-pass:  #0D804A;
  --bs-text-crit:  #AB362C;
}

html[data-theme="dark"] {          /* Void */
  --bs-bg:         #000000;
  --bs-bg-surface: #0B0B0B;
  --bs-bg-raised:  #171717;
  --bs-border:     #2A2A2A;
  --bs-text:       #FFFFFF;
  --bs-text-subtle:#B3B3B3;   /* 10.02:1 */
  --bs-text-muted: #8A8A8A;   /*  6.08:1 */
  --bs-text-faint: #4D4D4D;
  --bs-text-link:  #3A84FC;   /*  5.89:1 — primary blue fails on black */
  --bs-text-accent:#3A84FC;
  --bs-text-pass:  #12B76A;
  --bs-text-crit:  #E4483A;
}

/* Archivo Black ships one (black) weight: never let the browser fake-bold it. */
html { font-synthesis-weight: none; }

/* The brand's weight contrast in headlines ("จาก<thin>จุดบอด</thin>สู่ทางออก"). */
.thin { font-family: var(--bs-font-body); font-weight: 300; }
