/* Verbatim copy of the ENSSP platform's app/resources/css/tokens.css (enssp-school f9b844e). Refresh with scripts/brand-sync.sh --refresh; never edit by hand. */
:root {
  /* ENSSP identity. Wall blue #006296 (the colour of the School's painted wall) is the signature and action colour;
     deep wall blue #004b6a supports bands and the footer; logo mint and coral are small accents only. */
  --enssp-teal: #006296;
  --enssp-teal-deep: #004b6a;
  --enssp-mint: #73d0b4;
  --enssp-coral: #ff8588;
  /* Calls to action: the logo's brick red (the 10% accent of the 70/20/10 balance). White text: 6.1:1; the brighter tone
     on deep-blue bands: 4.6:1. */
  --enssp-red: #a8402a;
  --enssp-red-hover: #8c3322;
  --enssp-red-on-dark: #c25239;
  --enssp-red-soft: #f8e7e3;
  --enssp-ink: #13252e;
  --enssp-white: #ffffff;
  --enssp-pale: #e9f2f6;
  /* Source Sans 3 / Source Serif 4 for French and English, IBM Plex Sans Arabic / Alexandria for Arabic. */
  --font-latin: 'Source Sans 3 Variable', 'Source Sans 3', ui-sans-serif, system-ui, sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
  --font-heading-latin: 'Source Serif 4 Variable', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-heading-arabic: 'Alexandria Variable', 'Alexandria', 'IBM Plex Sans Arabic', sans-serif;
  --font-heading: var(--font-heading-latin);
  --type-editorial-body: 1.0625rem;
  --type-entry-title: 1.375rem;
  --type-focused-title: clamp(1.75rem,3vw,2.5rem);
  --type-h3: 1.25rem;
  --type-h4: 1.125rem;
  --type-lead: 1.125rem;
  --type-body-large: 1.125rem;
  --type-body: 1rem;
  --type-small: .875rem;
  --type-metadata: .8125rem;
  --type-label: .9375rem;
  --type-button: .9375rem;
  --type-table: .9375rem;
  --type-stat-value: 2.25rem;
  --type-admin-title: 1.75rem;
  --type-compact-title: 1.5rem;
  --type-feature-title: 1.875rem;
  --type-mobile-display: 2.125rem;
  --type-caption: .75rem;
  --type-smallest-caption: .6875rem;
  --leading-body: 1.6;
  --leading-heading: 1.18;
  --leading-arabic: 1.75;
  --leading-arabic-heading: 1.45;
  --duration-feedback: 150ms;
  --duration-overlay: 220ms;
  --ease-standard: cubic-bezier(.2,.7,.2,1);
  /* Restrained rectangular components: square surfaces and media, a hair of rounding on controls. */
  --radius-surface: 4px;
  --radius-media: 4px;
  --radius-small: 4px;
  --radius-control: 4px;
  --radius-medium: 4px;
  --radius-large: 6px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-112: 112px;
  --space-128: 128px;
  --content-public: 1440px;
  --content-reading: 920px;
  --content-form: 920px;
  --content-admin: 1440px;
  --content-editor: 1080px;
  --content-focused-shell: 960px;

  --heading: #13252e;
  --workspace: #f7f9f8;
  --border-control: #6b7b81;
  --type-display: clamp(2.25rem, 4vw, 3.5rem);
  --type-title: clamp(1.875rem, 3.2vw, 2.75rem);
  --type-section: clamp(1.5rem, 2.5vw, 2rem);
  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-section: 4rem;
  --shadow-overlay: 0 12px 32px #171b1a1f;
  /* Links, icons and selected states are teal; light teal is an occasional supporting ground. */
  --brand-primary: #006296;
  --brand-primary-hover: #005988;
  --brand-primary-strong: #004b6a;
  --brand-primary-soft: #e9f2f6;
  --brand-sky: #73d0b4;
  --brand-sky-soft: #e9f2f6;
  --brand-accent: #73d0b4;
  --brand-accent-strong: #73d0b4;
  --brand-accent-soft: #fff0f0;
  --brand-coral: #ff8588;
  --brand-coral-soft: #fff0f0;
  /* Primary action: teal with white text. */
  --action: #006296;
  --action-hover: #005988;
  --action-text: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f9f8;
  --surface-muted: #e9f2f6;
  --text-primary: #13252e;
  --text-secondary: #384f5e;
  --text-muted: #52636a;
  --border: #dbe4e8;
  --border-strong: #6b7b81;
  --success: #17704a;
  --success-soft: #eef8f2;
  --warning: #805600;
  --danger: #b42318;
  --danger-soft: #fff4f2;
  --info: var(--brand-primary);
  --focus-ring: #006296;
  --overlay: #18252933;
  /* Thin dividing rules instead of floating cards. */
  --shadow-card: 0 0 #0000;
  --shadow-lift: 0 10px 28px #171b1a14;
  /* Compatibility names shared by existing Blade and React primitives. */
  --primary: var(--brand-primary);
  --primary-hover: var(--brand-primary-hover);
  --navy: var(--text-primary);
  --soft: var(--surface-soft);
  --muted: var(--surface-muted);
  --text: var(--text-primary);
  --secondary: var(--text-secondary);
  --control: var(--border-strong);
  --footer-surface: #004b6a;
  --footer-text: #f4f8f9;
  --footer-muted: #c1d3db;
  --footer-border: #ffffff26;
}
/* Shared public-page language (interfaces, WebTV, Library): one set of grounds, lines, radii and sizes. */
:root {
  --surface-pale: #f7f9f8;
  --surface-raised: #ffffff;
  --line-strong: #c2d1d8;
  /* Readable mint for eyebrows, markers and small links on white. */
  --blue-ink: #006296;
  --mint: #73d0b4;
  --mint-ink: #006296;
  --feature-band: #006296;
  --radius-card: 4px;
  --radius-feature: 6px;
  --type-chapter: clamp(1.75rem, 2.8vw, 2.5rem);
  --type-list-title: clamp(1.5rem, 2.3vw, 2rem);
  --type-page-title: clamp(2.25rem, 4.2vw, 3.6rem);
  --shadow-button: 0 0 #0000;
}
/* Type scale (Source Serif 4 headings over Source Sans 3 for French/English; Alexandria over IBM Plex Sans Arabic):
   one weight per role. Serif headings 600, card titles 600, body 400-500, navigation 500-600, metadata 500. */
:root {
  --fw-display: 600;
  --fw-heading: 600;
  --fw-title: 600;
  --fw-body: 400;
  --fw-body-strong: 500;
  --fw-nav: 500;
  --fw-nav-strong: 600;
  --fw-meta: 500;
}
html[lang='ar'] {
  --fw-display: 700;
  --fw-heading: 700;
  --fw-title: 600;
  --font-heading: var(--font-heading-arabic);
}
html[data-theme='dark'] {
  --surface: #0c171c;
  --surface-pale: #0c171c;
  --surface-raised: #112028;
  --line-strong: #2c4653;
  --blue-ink: #87cae8;
  --mint-ink: #87cae8;
  --feature-band: #004b6a;
}
html[data-theme='dark'] {
  --surface-raised: #112028;
  color-scheme: dark;
  --heading: #f0f6f8;
  /* Dark theme: deep teal-black grounds, light teal links, mint actions with dark text. */
  --workspace: #0b151a;
  --brand-primary: #87cae8;
  --brand-primary-hover: #aeddf2;
  --brand-primary-strong: #d0ecf8;
  --brand-primary-soft: #102631;
  --brand-sky: #73d0b4;
  --brand-sky-soft: #102631;
  --brand-accent: #73d0b4;
  --brand-accent-strong: #73d0b4;
  --brand-accent-soft: #2e1f20;
  --brand-coral: #ff8588;
  --brand-coral-soft: #2e1f20;
  --action: #73d0b4;
  --action-hover: #93dcc6;
  --action-text: #052b3b;
  --surface: #0c171c;
  --surface-soft: #102631;
  --surface-muted: #142d3a;
  --text-primary: #edf4f6;
  --text-secondary: #c3cfd2;
  --text-muted: #9fb0b5;
  --border: #223944;
  --border-strong: #6b7f85;
  --border-control: #86999e;
  --success: #68d39b;
  --success-soft: #103726;
  --warning: #f3c56c;
  --danger: #ff978c;
  --danger-soft: #44201d;
  --info: var(--brand-primary);
  --focus-ring: #87cae8;
  --overlay: #00000099;
  --shadow-card: 0 0 #0000;
  --shadow-lift: 0 12px 28px #00000066;
  --shadow-overlay: 0 12px 32px #00000099;
  --footer-surface: #002c3e;
  --footer-text: #e3edf1;
  --footer-muted: #a6bcc4;
  --footer-border: #ffffff24;
}

html[data-theme='dark'] .admin-body {
  --workspace: #0a0c0b;
}
