/* HSC design tokens. Mirrors the Figma variable collections (Colors, Radius, Space). */
:root {
  /* Colors */
  --blue: #0596E5;
  --logo-blue: #143D8D;
  --navy: #062B52;
  --ink: #0B1726;
  --white: #FFFFFF;
  --text: #2F3D4E;
  --muted: #4E647E;
  --line: #D5E3EF;
  --mist: #EEF6FC;
  --chip-mist: #DAEFFF; /* chip background (Figma 162:32) */
  --sky: #8FD3FF;
  --text-on-dark: #D5E3EF;
  --muted-on-dark: #AFC0D2;
  --line-on-dark: #4E647E;
  --orange: #FF720B;
  --green: #2DBE6C;
  --green-done: #0B8E4B; /* any green shape holding a white mark: Figma Green/Shade20, 4.21:1 (Julia, 3 Nov); bare dots stay --green */
  --green-tint: color-mix(in srgb, var(--green) 20%, var(--white)); /* the success surface: Admin's .tag.t-success, and the Portal's plan pill (the same name and value as admin-tokens.css) */
  --orange-tint: color-mix(in srgb, var(--orange) 20%, var(--white)); /* the warning surface: .chip.warn, Academy Portal invite rows (Julia, 6 Nov: "A, colour by state") */
  --highlight: #AEFF00; /* text-selection colour, used at 20% (Julia, 30 Oct) */
  --red: #C9302C;
  /* UAE PASS button (third-party brand, Assets/UAE Pass Guidelines): black or white only, never our colours */
  --uaepass-black: #000000;
  --uaepass-ink: #1D1D1A;
  --uaepass-pressed: #2B2B2B;
  --uaepass-pressed-light: #F0F0F0;

  /* Radius */
  --radius-sm: 8px; /* 4px grid r1 §2: was 6 */
  --radius-xs: 4px; /* 4px grid r1 §2 (new): marks 20 px high or less */
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Space */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 20px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 40px;
  --space-4xl: 64px;
  --space-5xl: 80px;
  --space-6xl: 112px;

  /* Size */
  --size-page-max: 1840px; /* page content cap = a 1920 window minus 2 × space-3xl (Julia, 31 Oct: "1920 is a better cap"); wider screens get side margins */

  /* Type: Inter for English, Alexandria for Arabic (Inter has no Arabic glyphs, so Arabic falls through to Alexandria) */
  --font: 'Inter', 'Alexandria', system-ui, sans-serif;
  --font-ar: 'Alexandria', 'Inter', system-ui, sans-serif;
  --font-uaepass: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif; /* the guideline's button title face */

  /* Text styles (Specs/Design system.md 2.1): one font shorthand each, used as font: var(--type-body). Names match the Figma text styles.
     Inter for every English string, Alexandria for every Arabic string; an Arabic string never takes an English style. */
  --type-word: italic 900 68px/1 var(--font);
  --type-display: italic 900 54px/56px var(--font);
  --type-title-lg: italic 900 48px/1 var(--font);
  --type-h1: 800 48px/52px var(--font);
  --type-h2: 800 40px/1.1 var(--font);
  --type-title: italic 900 30px/32px var(--font);
  --type-h3: 700 20px/28px var(--font);
  --type-lead: 400 18px/28px var(--font);
  --type-body: 400 16px/1.5 var(--font);
  --type-body-strong: 600 16px/1.5 var(--font);
  --type-nav: 500 16px/1.5 var(--font);
  --type-body-sm: 400 14px/20px var(--font);
  --type-label: 600 14px/20px var(--font);
  --type-caption: 500 12px/16px var(--font);
  --type-eyebrow: 600 12px/16px var(--font);
  --type-ar-display: 900 88px/1.5 var(--font-ar);
  --type-ar-title: 700 26px/36px var(--font-ar);
  --type-ar-sub: 700 20px/1.4 var(--font-ar);
  --tracking-eyebrow: 0.16em; /* the eyebrow style's tracking; its case (uppercase) is set where it is used */

  /* Size (control and component dimensions) */
  --size-control-h: 56px; /* every Button, pill toggle, .menu-btn, large avatar, date block width */
  --size-choice: 24px; /* checkbox and radio (Figma 167:159, 164:115) */
  --icon-check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); /* Lucide check, 2 px at 16 */
  --icon-check-muted: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E647E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --gap-label: 4px; /* label to its box (Figma 167:47) */
  --field-border: #92A6BD; /* field at rest (Figma 167:51; Julia, 3 Nov) */
  --field-border-hover: #768DA8; /* field on hover (Figma 167:51; Julia, 3 Nov) */
  --size-field-h: 44px; /* inputs and selects (Julia, 3 Nov) */
  --size-tile-h: 308px; /* photo tiles and event grid rows */
  --size-tile-sm-h: 192px; /* the small word tiles (308 / phi); PROPOSED, needs Julia's yes */
  --size-measure: 720px; /* reading and panel width on KYC, member and booking pages */
  --size-side-w: 440px; /* KYC sidebar, Family aside */
  --size-dot: 8px; /* status dot */
  --size-dot-lg: 12px; /* hero status ring, pulse dot */
  --size-icon: 24px; /* button icon, alert marker, button spinner (4px grid r1: was 22; checkbox and radio are --size-choice) */
  --size-icon-sm: 16px; /* icons inside a line of text (Design system 2.6); PROPOSED 1 Nov, built under "build in full" */
  --size-marker: 32px; /* KYC step numbers, timeline dots */
  --size-avatar: 44px; /* avatar, hero pause button, page spinner */
  --size-touch: 44px; /* the minimum touch target on phones (Mobile adaptation r1); PROPOSED, needs Julia's yes */

  /* Stroke */
  --stroke-divider: 1px; /* row and section dividers */
  --stroke-border: 1.5px; /* card, input and chip outlines, the Secondary and Light outline rings */
  --stroke-card: 1px; /* outline of padded boxes drawn as a CSS border (plan, option, drop zone, child card): Chrome draws borders in whole pixels, so 1.5 would land as 1 and the box 1 px off the grid (KYC, 10 Nov) */
  --stroke-border-strong: 2px; /* recommended or selected outline, header link underline, timeline line */
  --stroke-underline-offset: 3px; /* every underlined text link */
  --focus-offset: 0; /* control to focus ring: no gap (Julia, 3 Nov; Figma 167:61) */
  --stroke-focus: 4px; /* the focus ring on every control (Julia, 3 Nov) */
  --stroke-glint: 3px; /* the moving border of the glass button */

  /* Elevation: the system is flat; shadows only for things that float */
  --shadow-sm: 0 10px 30px color-mix(in srgb, var(--navy) 15%, transparent); /* floating on light surfaces: simulated UAE PASS card, demo box */
  --shadow-lg: 0 12px 32px color-mix(in srgb, var(--ink) 35%, transparent); /* floating over anything: dropdowns, toast */
  --shadow-btn: 0 8px 20px color-mix(in srgb, var(--logo-blue) 30%, transparent); /* button hover lift: Primary */
  --shadow-btn-soft: 0 8px 20px color-mix(in srgb, var(--logo-blue) 16%, transparent); /* button hover lift: Secondary */
  --shadow-btn-light: 0 8px 20px color-mix(in srgb, var(--ink) 30%, transparent); /* button hover lift: Light */
  --shadow-glass: inset 0 0 0 1.5px color-mix(in srgb, var(--logo-blue) 18%, transparent), 0 0 14px color-mix(in srgb, var(--white) 18%, transparent); /* glass CTA, white glass: a faint blue rim, so the white glint shows as it passes, + soft halo; 14px = Figma blur 28 (Julia's Join CTA, 9 Nov) */

  /* Overlays and tints (colour token + opacity, never rgba) */
  --scrim-hero: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 40%, transparent) 0%, color-mix(in srgb, var(--ink) 72%, transparent) 50%, color-mix(in srgb, var(--ink) 72%, transparent) 100%);
  --overlay-tile: color-mix(in srgb, var(--ink) 48%, transparent); /* every photo tile (Julia, 31 Oct: 48%) */
  --overlay-reveal: color-mix(in srgb, var(--navy) 90%, transparent); /* tile hover and focus reveal */
  --overlay-media: color-mix(in srgb, var(--ink) 45%, transparent); /* hero pause button */
  --overlay-media-hover: color-mix(in srgb, var(--ink) 65%, transparent);
  --tint-hover: color-mix(in srgb, var(--white) 8%, transparent); /* hover on a dark row */
  --tint-current: color-mix(in srgb, var(--white) 12%, transparent); /* current or hovered item on dark */
  --hover-tint: var(--chip-mist); /* Light Button's hover: brand/blue/150 (Julia, 5 Nov: "too light", then "A, blue 150") */

  /* Motion (easing is the CSS default, ease) */
  --dur-fast: 150ms; /* colour and background changes on hover, chevron rotation */
  --dur-base: 300ms; /* tile reveal fades */
  --dur-slow: 600ms; /* tile photo zoom */
  --dur-glint: 6s; /* glass CTA: one slow lap of the light glint round the border (Julia, 1 Nov: "border shimmering slowly") */

  /* Layers (local -2 to 2 only inside an isolation: isolate parent) */
  --z-nav: 5;
  --z-dropdown: 10;
  --z-sticky: 50;
  --z-demo: 90;
  --z-toast: 100;
  --z-actbar: 20; /* the mobile action bar (below 600) */
  --z-sweep: 200; /* the landing page-sweep overlay; above everything */
}
