/* Design tokens: colours, type, spacing. Version 0.1, 16 October 2026. FCSC navy and bronze.
   Light values on :root; dark values for the OS setting (unless data-theme="light") and for data-theme="dark".
   Every text pair below was checked for WCAG 2.1 AA; ratios are in the book. */

/* Fonts: served from fonts/ next to this file (SIL Open Font License, fonts/OFL.txt). Variable weight 400–700.
   Noto Sans Arabic has no Latin file here: its Latin glyphs are Noto Sans, which follows it in --font-body. */
@font-face { font-family: "Noto Kufi Arabic"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/NotoKufiArabic-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Noto Kufi Arabic"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/NotoKufiArabic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/NotoSansArabic-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Noto Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/NotoSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Light/dark pairs of the same image (logos): show .lt in light, .dk in dark */
.dk { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lt { display: none !important; } :root:not([data-theme="light"]) .dk { display: revert !important; } }
:root[data-theme="dark"] .lt { display: none !important; }
:root[data-theme="dark"] .dk { display: revert !important; }

:root {
  /* Primitives: FCSC colours from the FCSC design system (FCSC deck and website logo) */
  --navy-900: #1B2B48;
  --navy-700: #2A3D63;
  --navy-500: #4A6CA8;
  --bronze-500: #A8845F;
  --bronze-700: #7A5C3C;
  --bronze-300: #D2B48F;
  --ink-900: #1F2937;
  --grey-600: #646B78;
  --grey-400: #858E9D;
  --grey-300: #D1D5DB;
  --grey-100: #F1F3F6;
  --grey-050: #F6F7F9;
  --white: #FFFFFF;
  --red-700: #B3132D;
  --red-600: #C0392B;
  --fcsc-green: #0C8248; /* logo only */
  --fcsc-red: #C21F3B;   /* logo only */

  /* Surfaces and text */
  --bg: var(--grey-050);
  --surface: var(--white);
  --surface-2: var(--grey-100);
  --line: var(--grey-300);
  --line-strong: var(--grey-400);
  --ink: var(--ink-900);
  --title: var(--navy-900);
  --muted: var(--grey-600);
  --link: var(--navy-700);
  --sel: #E8EDF5;

  /* Brand and action */
  --brand: var(--navy-900);
  --brand-hover: var(--navy-700);
  --on-brand: var(--white);
  --accent: var(--bronze-500);     /* rules, active underline, mark; never body text */
  --accent-ink: var(--bronze-700); /* bronze for text and icons */
  --focus: var(--bronze-700);
  --danger: var(--red-600);
  --on-danger: var(--white);
  --secret: var(--red-700);
  --on-secret: var(--white);

  /* Document statuses (meanings fixed by the register) */
  --ok: #1F7A4D;     --ok-bg: #E6F2EC;     --ok-fill: #2F8A5C;
  --draft: #875A0E;  --draft-bg: #FBEFD6;  --draft-fill: #D9A441;
  --avail: #3D4955;  --avail-bg: #ECEFF2;  --avail-fill: #A9B3BD;
  --none: #A3243B;   --none-bg: #FCEDEF;   --none-fill: #C9465E;
  /* Text compare: inserted and deleted words, on the approved and missing pairs (contrast already checked, dark mode follows) */
  --ins: var(--ok);  --ins-bg: var(--ok-bg);
  --del: var(--none); --del-bg: var(--none-bg);

  /* Data: the four strategy objectives and two workload series (dashboard values; g2/s2 darkened to 3:1 on --bg) */
  --g1: #2F6FB0;
  --g2: #B07A22;
  --g3: #7B5CB8;
  --g4: #0E9488;
  --s1: #2F6FB0; /* decisions */
  --s2: #B07A22; /* guides */

  /* Type */
  --font-head: "Noto Kufi Arabic", "Noto Sans", "Geeza Pro", "Segoe UI", system-ui, sans-serif;
  --font-body: "Noto Sans Arabic", "Noto Sans", "Geeza Pro", "Segoe UI", system-ui, sans-serif;
  --font-latin: "Noto Sans", "Segoe UI", system-ui, sans-serif;
  --fs-display: 32px; --lh-display: 1.3;
  --fs-h1: 24px;      --lh-h1: 1.35;
  --fs-h2: 19px;      --lh-h2: 1.4;
  --fs-h3: 16px;      --lh-h3: 1.45;
  --fs-body: 15px;    --lh-body: 1.65;
  --fs-sm: 13.5px;    --lh-sm: 1.55;
  --fs-xs: 12px;      --lh-xs: 1.5;
  --fs-kpi: 28px;     --lh-kpi: 1.15;

  /* Space (4 px steps), shape, elevation, motion */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;
  --r-chip: 4px;
  --r: 6px;
  --r-dialog: 8px;
  --control-h: 44px;
  --control-h-compact: 36px;
  --header-h: 56px;
  --shadow-overlay: 0 8px 24px rgba(16, 24, 40, .16), 0 1px 2px rgba(16, 24, 40, .08);
  --ease: cubic-bezier(.2, 0, 0, 1);
  --t-fast: 150ms;
  --t-panel: 200ms;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1624; --surface: #152033; --surface-2: #1B2840;
    --line: #2C3B57; --line-strong: #66799E;
    --ink: #E5E9F0; --title: #F3F5F9; --muted: #9DA9BB; --link: #A9C1E8; --sel: #22324D;
    --brand: var(--navy-500); --brand-hover: #5A7CB8; --on-brand: var(--white);
    --accent: #B8956D; --accent-ink: var(--bronze-300); --focus: var(--bronze-300);
    --ok: #FFFFFF;    --ok-bg: #2F7A52;    --ok-fill: #3E9A69;
    --draft: #F0C46E; --draft-bg: #3A2F17; --draft-fill: #D9A441;
    --avail: #C5CED7; --avail-bg: #27313B; --avail-fill: #7D8996;
    --none: #F09AAB;  --none-bg: #2A1B20;  --none-fill: #D7697D;
    --g1: #4F8FD6; --g2: #A87520; --g3: #9A7ED6; --g4: #12A594; --s1: #4F8FD6; --s2: #A87520;
    --shadow-overlay: 0 8px 24px rgba(0, 0, 0, .45), 0 0 0 1px #2C3B57;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1624; --surface: #152033; --surface-2: #1B2840;
  --line: #2C3B57; --line-strong: #66799E;
  --ink: #E5E9F0; --title: #F3F5F9; --muted: #9DA9BB; --link: #A9C1E8; --sel: #22324D;
  --brand: var(--navy-500); --brand-hover: #5A7CB8; --on-brand: var(--white);
  --accent: #B8956D; --accent-ink: var(--bronze-300); --focus: var(--bronze-300);
  --ok: #FFFFFF;    --ok-bg: #2F7A52;    --ok-fill: #3E9A69;
  --draft: #F0C46E; --draft-bg: #3A2F17; --draft-fill: #D9A441;
  --avail: #C5CED7; --avail-bg: #27313B; --avail-fill: #7D8996;
  --none: #F09AAB;  --none-bg: #2A1B20;  --none-fill: #D7697D;
  --g1: #4F8FD6; --g2: #A87520; --g3: #9A7ED6; --g4: #12A594; --s1: #4F8FD6; --s2: #A87520;
  --shadow-overlay: 0 8px 24px rgba(0, 0, 0, .45), 0 0 0 1px #2C3B57;
  color-scheme: dark;
}
