/* نسك الإنسانية — Nusuk Humanitarian — generated from tokens.json */
:root, [data-theme="light"] {
  --color-primary: #b39060; /* ذهبي — THE brand accent. CTAs, active states, the mark, key numbers, section rules. Never a flood: large gold fills only for a hero word, a title block or the primary button. */
  --color-black: #1e1b17; /* أسود — brand black: headings, the wordmark, dark bands, dark theme ground. */
  --color-accent: #e4dac0; /* رملي (sand) — accent panels, callouts, ornament grounds; text on dark bands. */
  --color-ivory: #ece8df; /* عاجي (ivory) — section panels, sunken surfaces, the lockup's light ink. */
  --color-bg-light: #f8f8f6; /* أبيض (brand white) — the page background in light. */
  --color-white: #ffffff; /* Pure white — cards on ivory, text on gold. */
  --color-bg-dark: var(--color-black); /* Dark page background — hero bands, footers, dark theme ground (= brand black). */
  --color-secondary-1: #6d5959; /* موف — secondary, used when needed: quiet accents, tags. */
  --color-secondary-2: #8f8061; /* زيتي — secondary, used when needed; also the warning hue. */
  --color-secondary-3: var(--color-black); /* Charcoal role, now brand black: dark buttons, sidebars. */
  --color-red: #94696a; /* أحمر — secondary; the danger hue. */
  --color-navy: #5e6a74; /* كحلي — secondary; the info hue. */
  --color-green: #6e7a68; /* أخضر — secondary; the success hue. */
  --primary-50: oklch(0.96 0.012 80); /* Gold scale (derived). Tinted icon wells, `accent-bg` in light. */
  --primary-100: oklch(0.92 0.022 80); /* Gold scale (derived). Avatar fallback fill, soft brand chips. */
  --primary-200: oklch(0.86 0.035 80); /* Gold scale (derived). Soft brand borders. */
  --primary-300: oklch(0.79 0.048 80); /* Gold scale (derived). Brand tints on dark. */
  --primary-400: oklch(0.72 0.056 80); /* Gold scale (derived). `text-brand` in the dark theme. */
  --primary-500: var(--color-primary); /* Gold scale (derived). = `color-primary`. */
  --primary-600: oklch(0.62 0.058 78); /* Gold scale (derived). Pressed / darker gold; focus-ring base. */
  --primary-700: oklch(0.53 0.052 76); /* Gold scale (derived). Gold text on light surfaces where body-size contrast is needed. */
  --primary-800: oklch(0.44 0.044 74); /* Gold scale (derived). Text on `primary-50`/`primary-100` tints (Avatar initials). */
  --primary-900: oklch(0.35 0.034 72); /* Gold scale (derived). Deepest gold. */
  --neutral-0: #ffffff; /* Warm neutral scale. Pure white. */
  --neutral-50: var(--color-bg-light); /* Warm neutral scale. = brand white. */
  --neutral-100: var(--color-ivory); /* Warm neutral scale. = ivory; `surface-sunken` in light. */
  --neutral-200: var(--color-accent); /* Warm neutral scale. = sand. */
  --neutral-300: #d6d0c4; /* Warm neutral scale. Hairline borders (`border-subtle`), body text in dark. */
  --neutral-400: #b7b2ac; /* Warm neutral scale. Control borders (`border-default`), muted text in dark. */
  --neutral-500: #8c8681; /* Warm neutral scale. Muted text in light (`text-muted`). */
  --neutral-600: var(--color-secondary-1); /* Warm neutral scale. = موف; `border-strong`. */
  --neutral-700: #48423d; /* Warm neutral scale. Body text in light (`text-body`). */
  --neutral-800: #2a2622; /* Warm neutral scale. Card surface in dark, dark buttons. */
  --neutral-900: var(--color-black); /* Warm neutral scale. = brand black. */
  --neutral-950: #121212; /* Warm neutral scale. Sunken surfaces in dark. */
  --color-success: var(--color-green); /* Success — solid badges, alert accent border. Always paired with a word or icon. */
  --color-success-soft: #e9ebe6; /* Success tint — soft badge and alert background. */
  --color-warning: var(--color-secondary-2); /* Warning — alert accent border, progress. Muted olive; pair with an icon. */
  --color-warning-soft: #eeebe3; /* Warning tint — soft badge and alert background. */
  --color-danger: var(--color-red); /* Danger / error — error text and borders on inputs, alert accent. Pair with an icon or word. */
  --color-danger-soft: #f0e8e8; /* Danger tint — soft badge and alert background. */
  --color-info: var(--color-navy); /* Info — alert accent border and icon. */
  --color-info-soft: #e6e9eb; /* Info tint — alert background. */
  --bg-base: var(--color-bg-light); /* Page background. */
  --bg-subtle: var(--color-ivory); /* Section panels, subtle bands. */
  --surface-card: var(--color-white); /* Cards, inputs, secondary buttons. */
  --surface-raised: var(--color-white); /* Menus, popovers, modals. */
  --surface-sunken: var(--color-ivory); /* Wells, table headers, sunken panels. */
  --surface-inverse: var(--color-black); /* Inverse bands (dark hero in light theme). */
  --text-strong: var(--color-black); /* Headings and labels on `bg-base`, `surface-card`, `surface-sunken`. */
  --text-body: var(--neutral-700); /* Paragraphs on `bg-base`, `surface-card`, `surface-sunken`. */
  --text-muted: var(--neutral-500); /* Secondary text, captions, helper text. NOTE: about 3.3:1 on `bg-base` in light — keep it to 18px+ or non-essential hints there; 3.6:1 on `surface-card`. */
  --text-on-primary: var(--color-white); /* Text on `color-primary` (primary button). NOTE: white on the brand gold is about 3:1 — the brand's own pairing (ivory on gold in the guide); keep labels 16px medium or larger. Dark theme flips to brand black (5.8:1). */
  --text-on-dark: var(--color-ivory); /* Text on `color-black` / `surface-inverse` bands and the dark sidebar (ivory on black, per the guide). */
  --text-brand: var(--color-primary); /* Links, eyebrows/kickers, brand numbers. NOTE: gold on light grounds is about 3:1 — use for 18px+ or bold kickers; prefer `primary-700` for small gold text. */
  --border-subtle: var(--neutral-300); /* Hairline on cards and surfaces. */
  --border-default: var(--neutral-400); /* Form-control borders. NOTE: 2.1:1 on `surface-card` — the focus state adds `border-brand` plus `focus-ring`. */
  --border-strong: var(--neutral-600); /* Emphasised dividers, hovered controls. */
  --border-brand: var(--color-primary); /* Focused control border, selected states. */
  --focus-ring: #9a825e73; /* Soft gold focus halo (3px outline, 2px offset) around `border-brand`. The ring is translucent; the solid gold border carries the 3:1 focus indication. */
  --accent-fg: var(--color-primary); /* Foreground for brand-accented elements. */
  --accent-bg: var(--primary-50); /* Soft brand background (selected rows, icon wells). */
  --shadow-xs: 0 1px 2px rgba(65, 65, 65, 0.06); /* Default card, secondary button. */
  --shadow-sm: 0 2px 6px rgba(65, 65, 65, 0.08); /* Cards, dark buttons. */
  --shadow-md: 0 6px 18px rgba(65, 65, 65, 0.10); /* Hovered interactive cards, dropdowns. */
  --shadow-lg: 0 14px 36px rgba(65, 65, 65, 0.12); /* Popovers, lifted cards. */
  --shadow-xl: 0 24px 60px rgba(28, 28, 28, 0.16); /* Modals. */
  --shadow-brand: 0 10px 30px rgba(179, 144, 96, 0.28); /* Gold glow — primary button only. */
  --shadow-inset: inset 0 1px 2px rgba(65, 65, 65, 0.08); /* Sunken wells, switch tracks. */
}
[data-theme="dark"] {
  --color-bg-dark: var(--color-black);
  --color-secondary-3: var(--color-black);
  --primary-500: var(--color-primary);
  --neutral-50: var(--color-bg-light);
  --neutral-100: var(--color-ivory);
  --neutral-200: var(--color-accent);
  --neutral-600: var(--color-secondary-1);
  --neutral-900: var(--color-black);
  --color-success: var(--color-green);
  --color-warning: var(--color-secondary-2);
  --color-danger: var(--color-red);
  --color-info: var(--color-navy);
  --bg-base: var(--color-black);
  --bg-subtle: var(--neutral-950);
  --surface-card: var(--neutral-800);
  --surface-raised: #363029;
  --surface-sunken: var(--neutral-950);
  --surface-inverse: var(--color-bg-light);
  --text-strong: var(--color-ivory);
  --text-body: var(--neutral-300);
  --text-muted: var(--neutral-400);
  --text-on-primary: var(--color-black);
  --text-on-dark: var(--color-ivory);
  --text-brand: var(--primary-400);
  --border-subtle: #3a342e;
  --border-default: var(--neutral-700);
  --border-strong: var(--neutral-500);
  --border-brand: var(--color-primary);
  --accent-fg: var(--color-primary);
  --accent-bg: #614f3740;
}
:root {
  --space-0: 0; /* No gap. */
  --space-1: 4px; /* Icon-to-label nudges. */
  --space-2: 8px; /* Tight gaps, chip padding. */
  --space-3: 12px; /* Control inner gaps, form row gaps. */
  --space-4: 16px; /* Default gap; small card padding. */
  --space-5: 20px; /* Compact card padding. */
  --space-6: 24px; /* Card padding; KPI grid gap. */
  --space-8: 32px; /* Large card padding, group spacing. */
  --space-10: 40px; /* Block spacing. */
  --space-12: 48px; /* Sub-section spacing. */
  --space-16: 64px; /* Section spacing (compact). */
  --space-20: 80px; /* Section spacing. */
  --space-24: 96px; /* Hero / section vertical rhythm (~88–96px). */
  --radius-xs: 4px; /* Tiny marks, progress inner ends. */
  --radius-sm: 8px; /* Checkboxes, small tags. */
  --radius-md: 12px; /* Form controls (inputs, selects). */
  --radius-lg: 16px; /* Cards, icon wells. */
  --radius-xl: 24px; /* Large panels, modals. */
  --radius-2xl: 32px; /* Feature panels, hero blocks. */
  --radius-pill: 999px; /* Buttons, badges, chips, avatars, switches — fully round. */
  --radius-card: 16px; /* Alias of `radius-lg` — the card corner. */
  --radius-control: 12px; /* Alias of `radius-md` — the control corner. */
  --fs-xs: 12px; /* Badges, captions. */
  --fs-sm: 14px; /* Secondary text, labels, small buttons. */
  --fs-base: 16px; /* Body. */
  --fs-md: 18px; /* Lead, large buttons. */
  --fs-lg: 20px; /* h4. */
  --fs-xl: 24px; /* h3. */
  --fs-2xl: 30px; /* h2, KPI values. */
  --fs-3xl: 36px; /* h1. */
  --fs-4xl: 48px; /* Display. */
  --fs-5xl: 60px; /* Display XL. */
  --fs-6xl: 72px; /* Hero. */
  --fw-light: 300; /* Large light lead text. */
  --fw-regular: 400; /* Body. */
  --fw-medium: 500; /* Labels, buttons, eyebrows. */
  --fw-bold: 700; /* Headings. */
  --fw-black: 900; /* Display, KPI numbers. */
  --lh-tight: 1.15; /* Display & headings. */
  --lh-snug: 1.3; /* Small headings, labels. */
  --lh-normal: 1.55; /* Body. */
  --lh-relaxed: 1.75; /* Lead paragraphs. */
  --ls-tight: -0.02em; /* Display headlines. */
  --ls-normal: 0; /* Default. */
  --ls-wide: 0.04em; /* Small caps-like labels. */
  --ls-wider: 0.12em; /* Eyebrows / kickers. */
  --container-sm: 640px; /* Forms, modals. */
  --container-md: 820px; /* Reading column. */
  --container-lg: 1080px; /* Standard page content. */
  --container-xl: 1280px; /* Wide layouts (content max ~1200px). */
  --container-2xl: 1440px; /* Full dashboards. */
  --shape-chamfer: polygon(6% 0, 94% 0, 100% 18%, 100% 100%, 0 100%, 0 18%); /* Chamfered top corners — title blocks, callout panels, the guide's section cards. */
  --shape-octagon: polygon(8% 0, 92% 0, 100% 22%, 100% 78%, 92% 100%, 8% 100%, 0 78%, 0 22%); /* All four corners cut — ornament bands, feature panels. */
  --shape-arch: polygon(50% 0, 100% 22%, 100% 100%, 0 100%, 0 22%); /* The pointed arch / shield — swatches, tiles, ornament frames (the guide's نماذج tiles). */
  --gradient-gold: linear-gradient(135deg, #e4dac0 0%, #b39060 55%, #e4dac0 100%); /* Warm wash behind hero panels and business-card grounds; keep text in `color-black` on the sand parts only. */
  --gradient-ivory: linear-gradient(160deg, #f8f8f6 0%, #e4dac0 60%, #ece8df 100%); /* Subtle page / section wash on light grounds. */
  --z-base: 1; /* Raised in-flow content. */
  --z-dropdown: 100; /* Menus. */
  --z-sticky: 200; /* Sticky header. */
  --z-overlay: 300; /* Scrims. */
  --z-modal: 400; /* Modals. */
  --z-toast: 500; /* Toasts. */
  --font-display: "Nusuk Huwiya Display Win", "Nusuk Huwiya Arabic Win", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nusuk Huwiya Arabic Win", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --text-display-hero: 900 72px/1.15 var(--font-display); /* Hero headline (`fs-6xl`), one per page. */
  --text-display-xl: 900 60px/1.15 var(--font-display); /* Large section openers (`fs-5xl`). */
  --text-display: 900 48px/1.15 var(--font-display); /* Page titles (`fs-4xl`). */
  --text-h1: 700 36px/1.15 var(--font-display); /* Section headings (`fs-3xl`). */
  --text-h2: 700 30px/1.15 var(--font-display); /* Sub-section headings (`fs-2xl`); KPI values use this size at Black. */
  --text-h3: 700 24px/1.3 var(--font-display); /* Card titles, panel headings (`fs-xl`). */
  --text-h4: 700 20px/1.3 var(--font-display); /* Small headings, value cards (`fs-lg`). */
  --text-lead: 400 18px/1.75 var(--font-body); /* Hero sub-heads and intros (`fs-md`). */
  --text-body-sm: 400 14px/1.55 var(--font-body); /* Secondary text, table cells, helper text (`fs-sm`). Body never goes below 14px. */
  --text-label: 500 14px/1.3 var(--font-body); /* Form labels, button text (`fs-sm`/`fs-base` at Medium). */
  --text-eyebrow: 500 14px/1.3 var(--font-body); /* Section kickers in `text-brand`; Latin kickers set uppercase. */
  --text-caption: 400 12px/1.55 var(--font-body); /* Badges, meta, timestamps (`fs-xs`) — labels only, never paragraphs. */
}
.display-hero {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.display-xl {
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.display {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.h1 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}
.h2 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}
.h3 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
}
.h4 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
}
.lead {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0;
}
.body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
}
.body-sm {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
}
.label {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.caption {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
}
@font-face {
  font-family: "Nusuk Huwiya Display Win";
  src: url("fonts/NusukHuwiyaDisplayWin-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nusuk Huwiya Display Win";
  src: url("fonts/NusukHuwiyaDisplayWin-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nusuk Huwiya Display Win";
  src: url("fonts/NusukHuwiyaDisplayWin-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nusuk Huwiya Arabic Win";
  src: url("fonts/NusukHuwiyaArabicWin-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nusuk Huwiya Arabic Win";
  src: url("fonts/NusukHuwiyaArabicWin-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nusuk Huwiya Arabic Win";
  src: url("fonts/NusukHuwiyaArabicWin-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nusuk Huwiya Arabic Win";
  src: url("fonts/NusukHuwiyaArabicWin-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nusuk Huwiya Arabic Win";
  src: url("fonts/NusukHuwiyaArabicWin-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
