/* Shared design tokens — preview only. Two skins: ASG blue, Rovers maroon.
   Theme: data-theme="light|dark". With no attribute, follow prefers-color-scheme (System). */
@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/gsf-9.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Google Sans Flex";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/gsf-10.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: "DhiBakuru";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/DhiBakuru-Regular.woff2") format("woff2");
  unicode-range: U+0780-07BF, U+060C, U+061B, U+061F, U+FDF2, U+0660-0669, U+200C-200F;
}
@font-face {
  font-family: "DhiBakuru";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/DhiBakuru-Bold.woff2") format("woff2");
  unicode-range: U+0780-07BF, U+060C, U+061B, U+061F, U+FDF2, U+0660-0669, U+200C-200F;
}

:root {
  --font-en: "Google Sans Flex", "Google Sans", system-ui, sans-serif;
  --font-dv: "DhiBakuru", sans-serif;
  --font-display: "Google Sans Flex", "Google Sans", system-ui, sans-serif;
  --font: var(--font-en);

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-full: 999px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t: 240ms;
  --t-slow: 300ms;

  --measure: 1120px;
  --gutter: 24px;
  --section-space: clamp(4rem, 3rem + 4vw, 6rem);
  --header-h: 64px;
  --strip-h: 32px;

  --success: #086025;
  --error: #ba1a1a;
}

/* ——— ASG colours, sampled from the official emblem
   (asg26-logo.png / asg26-icon-512.png)
   Sky fill (most common pixel): #04ADF0  average fill: #03ADF1
   Named sky / primary (live + near-identical to the fill): #00AAF2
   Arabic “كشافة” red: #D83647
   Crescent lettering / star ink: #000000 (average near-black #00090C)
   Shades below are those samples mixed with black or white only.
   Do not use navy (#14215A) or royal (#2F80FF / #0057BF). */
:root[data-brand="asg"] {
  color-scheme: light;
  --sky: #00AAF2;
  --sky-logo: #04ADF0;
  --sky-deep: #0077A9;          /* sky × 30% black, 4.99:1 on white */
  --sky-ink: #003349;           /* sky × 70% black, button text */
  --sky-hover: #0090CE;         /* sky × 15% black */
  --primary: #00AAF2;
  --on-primary: #003349;
  --primary-container: #E0F5FD; /* sky × 88% white */
  --on-primary-container: #003349;
  --accent: #D83647;            /* emblem red, markers and highlights */
  --accent-deep: #B82E3C;       /* red × 15% black, 6.01:1 on white — small text */
  --accent-soft: #FBEBED;       /* red × 90% white */
  --surface: #FFFFFF;
  --surface-dim: #F2FBFE;       /* sky × 95% white */
  --surface-low: #EBF8FE;       /* sky × 92% white */
  --surface-c: #E0F5FD;
  --on-surface: #00090C;        /* emblem near-black */
  --on-surface-var: #3D5663;    /* sky-deep mixed toward mid */
  --outline: #5E7A88;
  --outline-var: #D2E4EE;
  --link: #0077A9;
  --focus: #0077A9;
  --brand-fixed: #0077A9;
  --on-brand-fixed: #FFFFFF;
  --strip-bg: #F1F3F4;
  --strip-ink: #3C4043;
  --strip-line: #DADCE0;
  --shadow: 0 1px 2px rgba(0, 9, 12, .05);
  --accent-rovers: #6B0E0B;     /* Rovers emblem maroon, used on the Rovers stop */
  --tone-deep: #00141C;          /* sky #00AAF2 × ~87% black — ocean floor */
  --tone-mid: #003349;
  --tone-high: #0077A9;
  --hero-ink: #F2FBFE;
  --hero-muted: #B8D4E0;
  --hero-gradient: linear-gradient(180deg, #00AAF2 0%, #0077A9 24%, #003349 58%, #00141C 100%);
}


:root[data-brand="asg"][data-theme="dark"] {
  color-scheme: dark;
  --sky: #5EC8F5;               /* sky × white, same hue as #00AAF2 */
  --sky-logo: #04ADF0;
  --sky-deep: #5EC8F5;
  --sky-ink: #003349;
  --sky-hover: #7DD4F8;
  --primary: #00AAF2;
  --on-primary: #003349;
  --primary-container: #0B3A4D;
  --on-primary-container: #E0F5FD;
  --accent: #E26875;            /* red × 25% white, 5.97:1 on dark surface */
  --accent-deep: #E26875;
  --accent-soft: #3A181C;
  --surface: #0E1417;
  --surface-dim: #080B0D;
  --surface-low: #12181C;
  --surface-c: #182025;
  --on-surface: #E6F3F8;
  --on-surface-var: #B3C8D1;
  --outline: #8AA0A9;
  --outline-var: #243038;
  --link: #5EC8F5;
  --focus: #5EC8F5;
  --brand-fixed: #0077A9;
  --on-brand-fixed: #FFFFFF;
  --success: #89D98F;
  --error: #E26875;
  --strip-bg: #1B1C1E;
  --strip-ink: #C4C7C5;
  --strip-line: #3C4043;
  --shadow: none;
  --accent-rovers: #BC9391;
  --tone-deep: #00090C;
  --tone-mid: #003349;
  --tone-high: #0077A9;
  --hero-ink: #F2FBFE;
  --hero-muted: #B8D4E0;
  --hero-gradient: linear-gradient(180deg, #0077A9 0%, #003349 36%, #00141C 68%, #00090C 100%);
}


@media (prefers-color-scheme: dark) {
  :root[data-brand="asg"]:not([data-theme="light"]) {
    color-scheme: dark;
    --sky: #5EC8F5;
    --sky-logo: #04ADF0;
    --sky-deep: #5EC8F5;
    --sky-ink: #003349;
    --sky-hover: #7DD4F8;
    --primary: #00AAF2;
    --on-primary: #003349;
    --primary-container: #0B3A4D;
    --on-primary-container: #E0F5FD;
    --accent: #E26875;
    --accent-deep: #E26875;
    --accent-soft: #3A181C;
    --surface: #0E1417;
    --surface-dim: #080B0D;
    --surface-low: #12181C;
    --surface-c: #182025;
    --on-surface: #E6F3F8;
    --on-surface-var: #B3C8D1;
    --outline: #8AA0A9;
    --outline-var: #243038;
    --link: #5EC8F5;
    --focus: #5EC8F5;
    --brand-fixed: #0077A9;
    --on-brand-fixed: #FFFFFF;
    --success: #89D98F;
    --error: #E26875;
    --strip-bg: #1B1C1E;
    --strip-ink: #C4C7C5;
    --strip-line: #3C4043;
    --shadow: none;
    --accent-rovers: #BC9391;
    --tone-deep: #00090C;
    --tone-mid: #003349;
    --tone-high: #0077A9;
    --hero-ink: #F2FBFE;
    --hero-muted: #B8D4E0;
    --hero-gradient: linear-gradient(180deg, #0077A9 0%, #003349 36%, #00141C 68%, #00090C 100%);
  }
}

/* ——— Rovers colours, sampled from the official ARN emblem
   (rovers_site/public/img/logo.png, 534×600)
   Maroon of the stars and “ASG ROVERS” banner: #6B0E0B (average #6C0F0C)
   Centre fleur blue: #027EC1
   Side-petal pale blue: #ACD5E9
   Banner lettering: #FFFFFF (average #FCFAFA)
   No gold is present in this emblem — none is introduced.
   Shades below are those samples mixed with black or white only. */
:root[data-brand="rovers"] {
  color-scheme: light;
  --primary: #6B0E0B;
  --on-primary: #FFFFFF;
  --primary-container: #F3ECEB; /* maroon × 92% white */
  --on-primary-container: #4B0A08;
  --accent: #027EC1;            /* centre-petal blue, used sparingly */
  --accent-deep: #026BA4;       /* mid-blue × 15% black, 5.77:1 on white */
  --accent-blue: #027EC1;
  --accent-pale: #ACD5E9;
  --accent-soft: #ACD5E9;
  --surface: #FFFFFF;
  --surface-dim: #F8F3F3;       /* maroon × 95% white */
  --surface-low: #F3ECEB;
  --surface-c: #EDE2E2;
  --on-surface: #140303;
  --on-surface-var: #5A3A38;
  --outline: #8A6E6D;
  --outline-var: #EDE2E2;
  --link: #6B0E0B;
  --focus: #6B0E0B;
  --brand-fixed: #560B09;       /* maroon × 20% black */
  --on-brand-fixed: #FFFFFF;
  --strip-bg: #F1F3F4;
  --strip-ink: #3C4043;
  --strip-line: #DADCE0;
  --shadow: 0 1px 2px rgba(107, 14, 11, .06);
  --accent-rovers: #6B0E0B;
  --sky-hover: #560B09;
  --tone-deep: #0A0101;
  --tone-mid: #4B0A08;
  --tone-high: #6B0E0B;
  --hero-ink: #F8F3F3;
  --hero-muted: #D3B7B6;
  --hero-gradient: linear-gradient(180deg, #6B0E0B 0%, #4B0A08 32%, #140303 68%, #0A0101 100%);
}

:root[data-brand="rovers"][data-theme="dark"] {
  color-scheme: dark;
  --primary: #6B0E0B;           /* true emblem maroon stays on buttons */
  --on-primary: #FFFFFF;
  --primary-container: #3A1210;
  --on-primary-container: #F3ECEB;
  --accent: #5BABD7;            /* mid-blue × 35% white */
  --accent-deep: #5BABD7;
  --accent-blue: #5BABD7;
  --accent-pale: #1A3A4E;       /* mid-blue darkened, for fills */
  --accent-soft: #1A3A4E;
  --surface: #140303;
  --surface-dim: #100202;
  --surface-low: #1C0808;
  --surface-c: #241010;
  --on-surface: #F3ECEB;
  --on-surface-var: #D3B7B6;
  --outline: #A08C8A;
  --outline-var: #4B0A08;
  --link: #BC9391;              /* maroon × 55% white, 6.81:1 on #181211-range */
  --focus: #BC9391;
  --brand-fixed: #560B09;
  --on-brand-fixed: #FFFFFF;
  --success: #89D98F;
  --error: #BC9391;
  --strip-bg: #1B1C1E;
  --strip-ink: #C4C7C5;
  --strip-line: #3C4043;
  --shadow: none;
  --accent-rovers: #BC9391;
  --sky-hover: #4B0A08;
  --tone-deep: #070000;
  --tone-mid: #4B0A08;
  --tone-high: #6B0E0B;
  --hero-ink: #F8F3F3;
  --hero-muted: #D3B7B6;
  --hero-gradient: linear-gradient(180deg, #4B0A08 0%, #140303 40%, #0A0101 100%);
}

@media (prefers-color-scheme: dark) {
  :root[data-brand="rovers"]:not([data-theme="light"]) {
    color-scheme: dark;
    --primary: #6B0E0B;
    --on-primary: #FFFFFF;
    --primary-container: #3A1210;
    --on-primary-container: #F3ECEB;
    --accent: #5BABD7;
    --accent-deep: #5BABD7;
    --accent-blue: #5BABD7;
    --accent-pale: #1A3A4E;
    --accent-soft: #1A3A4E;
    --surface: #140303;
    --surface-dim: #100202;
    --surface-low: #1C0808;
    --surface-c: #241010;
    --on-surface: #F3ECEB;
    --on-surface-var: #D3B7B6;
    --outline: #A08C8A;
    --outline-var: #4B0A08;
    --link: #BC9391;
    --focus: #BC9391;
    --brand-fixed: #560B09;
    --on-brand-fixed: #FFFFFF;
    --success: #89D98F;
    --error: #BC9391;
    --strip-bg: #1B1C1E;
    --strip-ink: #C4C7C5;
    --strip-line: #3C4043;
    --shadow: none;
    --accent-rovers: #BC9391;
    --sky-hover: #4B0A08;
    --tone-deep: #070000;
    --tone-mid: #4B0A08;
    --tone-high: #6B0E0B;
    --hero-ink: #F8F3F3;
    --hero-muted: #D3B7B6;
    --hero-gradient: linear-gradient(180deg, #4B0A08 0%, #140303 40%, #0A0101 100%);
  }
}

html[lang="dv"],
html[dir="rtl"] {
  font-size: 110%;
}
html[lang="dv"] body,
html[dir="rtl"] body {
  line-height: 1.8;
  font-family: var(--font-dv);
}
:lang(dv),
html[lang="dv"] body,
html[lang="dv"] button,
html[lang="dv"] .btn,
html[lang="dv"] nav,
html[lang="dv"] h1,
html[lang="dv"] h2,
html[lang="dv"] h3,
html[lang="dv"] .eyebrow,
html[lang="dv"] .wordmark,
html[lang="dv"] .strip {
  font-family: var(--font-dv);
}
html[lang="dv"] :lang(en) {
  font-family: var(--font-en);
}
[lang="dv"] {
  font-family: var(--font-dv);
}
