/* Smart Private School — design tokens (single source of truth for the visual system).
   Brand: deep navy + gold crest palette, Cairo typeface, RTL-first.
   See docs/UI_DESIGN_SYSTEM.md. */

/* --- Fonts: vendored locally, no runtime CDN (DECISIONS D-002). ------------
   Cairo (SIL OFL) subsetted to Arabic + Latin. Variable weight 300–900. */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/cairo-var.ef9919827ad8.woff2") format("woff2-variations"),
       url("../fonts/cairo-var.ef9919827ad8.woff2") format("woff2");
}

:root {
  /* Brand — navy */
  --navy-50:  #f4f6f9;
  --navy-100: #e5ebf2;
  --navy-200: #ccdbe7;
  --navy-700: #12365c;
  --navy-800: #0B2240;   /* primary */
  --navy-900: #061326;
  --navy-950: #030c17;

  /* Brand — gold */
  --gold-50:  #fbf9f4;
  --gold-100: #f5edd9;
  --gold-200: #ecdcb4;
  --gold-500: #C5A059;   /* accent */
  --gold-600: #ae8844;
  --gold-700: #947035;

  /* Neutrals */
  --bg:        #f4f6fb;
  --surface:   #ffffff;
  --surface-2: #f8fafc;
  --border:    #e6eaf0;
  --border-strong: #d3dae4;
  --text:      #1f2937;
  --text-muted:#6b7280;
  --text-faint:#9aa4b2;

  /* Semantic */
  --success-50:#ecfdf5; --success-500:#10b981; --success-600:#059669; --success-700:#047857;
  --danger-50: #fef2f2; --danger-500:#ef4444;  --danger-600:#dc2626;  --danger-700:#b91c1c;
  --warning-50:#fffbeb; --warning-500:#f59e0b; --warning-600:#d97706;  --warning-700:#b45309;
  --info-50:   #eff6ff; --info-500:  #3b82f6;  --info-600:  #2563eb;

  /* Typography */
  --font-sans: "Cairo", "Segoe UI", "Noto Sans Arabic", Tahoma, "Geeza Pro", system-ui, sans-serif;
  --fs-xs: 0.72rem;
  --fs-sm: 0.82rem;
  --fs-md: 0.92rem;
  --fs-lg: 1.05rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.6rem;

  /* Spacing scale (4px base) */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem;

  /* Radius — deliberately restrained. This is an administrative register, not a
     consumer app; heavily rounded cards read as generic template UI. */
  --r-sm: 3px; --r-md: 5px; --r-lg: 6px; --r-xl: 8px; --r-full: 999px;

  /* Elevation — borders do the work, shadows are a whisper. */
  --shadow-sm: 0 1px 1px rgba(6,19,38,.04);
  --shadow-md: 0 2px 6px rgba(6,19,38,.07);
  --shadow-lg: 0 8px 24px rgba(6,19,38,.14);

  /* The gold hairline used under section headings — lifted from the school's
     own printed form, where section titles are gold. */
  --rule-gold: 2px solid var(--gold-500);

  /* Layout */
  --sidebar-w: 260px;
  --header-h: 62px;

  --focus-ring: 0 0 0 3px rgba(197,160,89,.45);
}
