/* GEO platform design tokens. The palette is exactly Mat's five colours; every other value is one
   of them at reduced opacity (DESIGN.md, O-01). Never add a hue, white
   or black. */
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-latin-400.77bc02670657.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-latin-500.f7016cd446d2.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-latin-600.196e3cbc5fee.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-latin-700.c277d7b83f8a.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Sans Arabic"; src: url("../fonts/plex-sans-arabic-400.4fa3d81d41ab.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans Arabic"; src: url("../fonts/plex-sans-arabic-500.106892212ea7.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans Arabic"; src: url("../fonts/plex-sans-arabic-600.64891a810259.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Sans Arabic"; src: url("../fonts/plex-sans-arabic-700.a4390abc98c2.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-latin-400.79936b18df9f.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-latin-500.b1c8a895f5fd.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Primitives: Mat's palette, and nothing else. No white, no black (open point O-01): light
     grounds are the five at reduced opacity over the page, never a mix with white. */
  --ice: #ADE1FB;
  --azure: #266CA9;
  --royal: #0F2573;
  --navy: #041D56;
  --abyss: #01082D;

  /* Semantic. Contrast (WCAG AA) measured on the lightest and the deepest tint they sit on:
     ink 17:1, ink-2 9:1, ink-3 6:1, accent (azure links) 4.7:1, ice on navy 11:1. */
  --ink: var(--abyss);
  --ink-2: color-mix(in srgb, var(--abyss) 80%, transparent);
  --ink-3: color-mix(in srgb, var(--navy) 76%, transparent);
  --canvas: color-mix(in srgb, var(--ice) 14%, transparent);
  --surface: color-mix(in srgb, var(--ice) 12%, transparent);
  --surface-2: color-mix(in srgb, var(--ice) 22%, transparent);
  --surface-3: color-mix(in srgb, var(--ice) 36%, transparent);
  --surface-solid: var(--ice);
  --line: color-mix(in srgb, var(--navy) 13%, transparent);
  --line-strong: color-mix(in srgb, var(--navy) 26%, transparent);
  --accent: var(--azure);
  --accent-strong: var(--royal);
  --accent-soft: color-mix(in srgb, var(--ice) 45%, transparent);
  --focus: var(--azure);
  --night: var(--abyss);
  --night-2: var(--navy);
  --night-3: var(--royal);
  --on-night: var(--ice);
  --on-night-2: color-mix(in srgb, var(--ice) 84%, transparent);
  --on-night-3: color-mix(in srgb, var(--ice) 68%, transparent);
  /* Actions: the primary button is navy with ice text (11:1); azure never carries light text (3.9:1). */
  --action: var(--navy);
  --action-strong: var(--abyss);
  --on-action: var(--ice);

  /* Type */
  --font: "Plex Sans", "Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Plex Sans Arabic", "Plex Sans", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --t-12: 0.75rem; --t-13: 0.8125rem; --t-14: 0.875rem; --t-16: 1rem; --t-20: 1.25rem;
  --t-25: 1.5625rem; --t-31: 1.9375rem; --t-39: 2.4375rem; --t-49: 3.0625rem; --t-61: 3.8125rem;

  /* Space (4px grid) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px;
  --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  /* Shape and depth: hairlines for structure, shadows only for elevation */
  --r-1: 6px; --r-2: 10px; --r-3: 14px; --r-4: 20px; --r-pill: 999px;
  --shadow-1: 0 1px 2px color-mix(in oklab, var(--abyss) 8%, transparent);
  --shadow-2: 0 8px 24px -8px color-mix(in oklab, var(--abyss) 22%, transparent),
              0 2px 6px color-mix(in oklab, var(--abyss) 6%, transparent);
  --shadow-3: 0 24px 60px -20px color-mix(in oklab, var(--abyss) 38%, transparent);

  /* Motion (DESIGN.md: state changes only; ease-out; under 300 ms) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --d-fast: 120ms; --d-base: 180ms; --d-enter: 260ms; --d-exit: 160ms;
  --press: 0.96;

  --sidebar-w: 264px;
}

:lang(ar) { --font: var(--font-ar); }
