/* منقذ — shared design tokens (public site + admin dashboard).
   Single source of truth for color, type, spacing, radius, elevation.
   Load before styles.css / admin.css. */
:root {
  /* brand */
  --red: #c4060a;
  --red-600: #a80509;
  --red-50: #fdeeee;
  --red-100: #f9d4d4;
  --navy: #0a2247;

  /* text */
  --ink: #0a2247;
  --ink-2: #44546b;
  --ink-3: #66758a;

  /* surfaces */
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --line: #e1e7ef;
  --line-2: #cbd5e1;

  /* status */
  --green: #17704a;
  --green-50: #e8f5ee;
  --green-100: #c9e8d7;
  --amber-50: #fdf6e7;
  --amber-100: #f1e1bb;
  --amber-ink: #6b4a12;

  /* legacy aliases (kept so older markup keeps working) */
  --paper: var(--surface);
  --sand: var(--bg);
  --red-soft: var(--red-50);
  --red-dark: var(--navy);
  --green-soft: var(--green-50);

  /* type */
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --fs-xs: .8125rem;   /* 13 */
  --fs-sm: .875rem;    /* 14 */
  --fs-md: 1rem;       /* 16 */
  --fs-lg: 1.125rem;   /* 18 */
  --fs-xl: 1.375rem;   /* 22 */
  --fs-2xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);      /* section titles */
  --fs-3xl: clamp(1.875rem, 1.4rem + 2.2vw, 2.875rem); /* page title */

  /* spacing (4px grid) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px;

  /* radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  /* elevation */
  --sh-1: 0 1px 2px rgba(10, 34, 71, .06);
  --sh-2: 0 1px 2px rgba(10, 34, 71, .05), 0 8px 24px -12px rgba(10, 34, 71, .16);
  --sh-3: 0 2px 6px rgba(10, 34, 71, .06), 0 24px 48px -20px rgba(10, 34, 71, .28);

  --focus: 0 0 0 3px rgba(196, 6, 10, .28);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

