/* NSBM Green University: base design tokens.
   Source: DESIGN_STRUCTURE.md §11 (Proposed v1.0, 2026-10-05; shades still need owner confirmation).
   Components use role tokens (--primary, --surface, --text ...), never palette tokens (--blue-600).
   Theme: <html data-theme="light|dark">; with no attribute the site follows prefers-color-scheme. */

@font-face { font-family: "Roboto Slab"; src: url("fonts/RobotoSlab-latin-ext.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; 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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Slab"; src: url("fonts/RobotoSlab-latin.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; 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; }

:root {
  color-scheme: light;
  /* Blue: primary */
  --blue-50:#EEF6FF; --blue-100:#D8EAFE; --blue-200:#B3D4FC; --blue-300:#7FB5F7;
  --blue-400:#4891EE; --blue-500:#1A6FD1; --blue-600:#0B5CAD; --blue-700:#0A4A8C;
  --blue-800:#0B3C70; --blue-900:#0C315B; --blue-950:#071E3A;
  /* Green: secondary / accent */
  --green-50:#EDFBF2; --green-100:#D3F5E0; --green-200:#A8EAC4; --green-300:#70D8A0;
  --green-400:#3BBF7A; --green-500:#1FA463; --green-600:#168550; --green-700:#126A41;
  --green-800:#125536; --green-900:#11462E; --green-950:#062818;
  /* White / cool neutral */
  --white:#FFFFFF; --neutral-25:#FBFCFE; --neutral-50:#F5F8FC; --neutral-100:#EDF2F8;
  --neutral-200:#DFE6EF; --neutral-300:#C7D2DF; --neutral-400:#9AA9BC; --neutral-500:#6B7C91;
  --neutral-600:#4E5F74; --neutral-700:#3A495C; --neutral-800:#273445; --neutral-900:#172232;
  --neutral-950:#0B1422;
  /* Status */
  --success-50:#EDFBF2; --success-600:#168550; --success-700:#126A41;
  --warning-50:#FFF7E6; --warning-500:#E59A0B; --warning-700:#93500A;
  --error-50:#FEF1F0;   --error-500:#E0453A;   --error-600:#C2261B; --error-700:#9C1D14;
  --info-50:#EEF6FF;    --info-600:#0B5CAD;    --info-700:#0A4A8C;

  /* Roles: light */
  --bg:var(--neutral-25); --surface:var(--white); --surface-2:var(--neutral-50); --surface-3:var(--neutral-100);
  --surface-inverse:var(--blue-950); --surface-glass:rgb(255 255 255 / .68);
  --text:var(--neutral-900); --text-muted:var(--neutral-600); --text-subtle:var(--neutral-500); --text-inverse:var(--white);
  --heading:var(--blue-950);
  --border:var(--neutral-200); --border-strong:var(--neutral-300); --border-input:#8090A5;
  --primary:var(--blue-600); --primary-hover:var(--blue-700); --primary-active:var(--blue-800);
  --primary-soft:var(--blue-50); --primary-soft-2:var(--blue-100); --on-primary:var(--white);
  --accent:var(--green-600); --accent-hover:var(--green-700); --accent-soft:var(--green-50); --on-accent:var(--white);
  --link:var(--blue-600); --link-hover:var(--blue-800);
  --focus:var(--green-500);
  --disabled-bg:var(--neutral-100); --disabled-text:var(--neutral-400); --disabled-border:var(--neutral-200);
  --scrim:linear-gradient(180deg, rgb(7 30 58 / 0) 30%, rgb(7 30 58 / .55) 65%, rgb(7 30 58 / .9) 100%);
  --scrim-side:linear-gradient(90deg, rgb(7 30 58 / .88) 0%, rgb(7 30 58 / .55) 45%, rgb(7 30 58 / 0) 80%);
  --overlay:rgb(7 30 58 / .55);

  /* Gradients */
  --grad-primary:linear-gradient(135deg, var(--blue-600) 0%, var(--blue-500) 55%, var(--green-500) 130%);
  --grad-brand:linear-gradient(120deg, var(--blue-700) 0%, var(--blue-500) 50%, var(--green-500) 100%);
  --grad-ink:linear-gradient(160deg, var(--blue-900) 0%, var(--blue-950) 70%);
  --grad-mesh:radial-gradient(60% 80% at 10% 10%, rgb(26 111 209 / .22), transparent 60%),
              radial-gradient(50% 70% at 90% 20%, rgb(31 164 99 / .18), transparent 60%),
              radial-gradient(70% 90% at 50% 100%, rgb(127 181 247 / .20), transparent 60%);
  --grad-soft:linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);

  /* Typography */
  --font-sans:"Roboto Slab", Georgia, "Times New Roman", serif;
  --font-mono:ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --fs-display:clamp(2.75rem, 2.1rem + 2.667vw, 4.5rem);
  --fs-h1:clamp(2.25rem, 1.786rem + 1.905vw, 3.5rem);
  --fs-h2:clamp(1.875rem, 1.55rem + 1.333vw, 2.75rem);
  --fs-h3:clamp(1.5625rem, 1.354rem + .857vw, 2.125rem);
  --fs-h4:clamp(1.3125rem, 1.196rem + .476vw, 1.625rem);
  --fs-h5:clamp(1.125rem, 1.055rem + .286vw, 1.3125rem);
  --fs-h6:clamp(1rem, .954rem + .19vw, 1.125rem);
  --fs-lead:clamp(1.1875rem, 1.118rem + .286vw, 1.375rem);
  --fs-body-lg:clamp(1.0625rem, 1.039rem + .095vw, 1.125rem);
  --fs-body:1rem; --fs-body-sm:.875rem; --fs-caption:.75rem; --fs-overline:.8125rem;
  --fs-label:.875rem; --fs-button:.9375rem; --fs-code:.875rem;
  --fs-quote:clamp(1.375rem, 1.189rem + .762vw, 1.875rem);

  /* Spacing */
  --space-0:0; --space-0-5:2px; --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:20px; --space-6:24px; --space-8:32px; --space-10:40px; --space-12:48px;
  --space-16:64px; --space-20:80px; --space-24:96px; --space-32:128px; --space-40:160px;
  --section-sm:clamp(40px, 6vw, 64px); --section-md:clamp(56px, 8vw, 96px); --section-lg:clamp(72px, 10vw, 128px);
  --gutter:clamp(16px, 2vw, 32px); --page-margin:clamp(20px, 4vw, 64px);

  /* Layout */
  --container-wide:1440px; --container:1280px; --container-content:960px; --container-text:720px; --container-narrow:560px;
  --header-h:72px; --header-h-compact:60px;

  /* Shape */
  --radius-xs:4px; --radius-sm:8px; --radius-md:12px; --radius-lg:16px; --radius-xl:24px; --radius-2xl:32px; --radius-pill:999px;
  --border-w:1px; --border-w-strong:1.5px; --focus-w:3px; --focus-offset:3px;

  /* Elevation */
  --shadow-xs:0 1px 2px rgb(7 30 58 / .06);
  --shadow-sm:0 1px 2px rgb(7 30 58 / .05), 0 2px 6px rgb(7 30 58 / .06);
  --shadow-md:0 2px 4px rgb(7 30 58 / .04), 0 8px 20px rgb(7 30 58 / .08);
  --shadow-lg:0 4px 8px rgb(7 30 58 / .04), 0 18px 40px rgb(7 30 58 / .12);
  --shadow-xl:0 8px 16px rgb(7 30 58 / .06), 0 32px 72px rgb(7 30 58 / .18);
  --shadow-glow:0 10px 28px -6px rgb(11 92 173 / .45);
  --shadow-glow-green:0 10px 28px -6px rgb(22 133 80 / .40);
  --shadow-inset:inset 0 1px 2px rgb(7 30 58 / .06);

  /* Motion */
  --dur-instant:80ms; --dur-fast:150ms; --dur-base:240ms; --dur-slow:400ms; --dur-slower:600ms; --dur-cinematic:900ms;
  --ease-standard:cubic-bezier(.2, 0, 0, 1);
  --ease-out:cubic-bezier(.22, 1, .36, 1);
  --ease-in:cubic-bezier(.4, 0, 1, 1);
  --ease-in-out:cubic-bezier(.65, 0, .35, 1);
  --ease-spring:cubic-bezier(.34, 1.56, .64, 1);
  --reveal-distance:16px; --stagger:70ms; --hover-lift:-4px; --image-zoom:1.05;

  /* Layers */
  --z-base:0; --z-raised:10; --z-dropdown:100; --z-sticky:200; --z-overlay:300; --z-modal:400; --z-popover:500; --z-toast:600; --z-tooltip:700;

  /* Icons */
  --icon-xs:14px; --icon-sm:16px; --icon-md:20px; --icon-lg:24px; --icon-xl:32px; --icon-feature:48px;
}

/* Roles: dark. Explicit choice, or the device preference when no choice has been made. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:#060F1C; --surface:#0C1A2C; --surface-2:#112238; --surface-3:#172C46;
  --surface-inverse:#020812; --surface-glass:rgb(12 26 44 / .66);
  --text:#EAF1FA; --text-muted:#A9B8CB; --text-subtle:#7F91A8; --text-inverse:#071E3A; --heading:#F3F8FF;
  --border:#1F3550; --border-strong:#2C4766; --border-input:#5A7393;
  --primary:var(--blue-400); --primary-hover:var(--blue-300); --primary-active:var(--blue-200);
  --primary-soft:rgb(72 145 238 / .14); --primary-soft-2:rgb(72 145 238 / .22); --on-primary:var(--blue-950);
  --accent:var(--green-400); --accent-hover:var(--green-300); --accent-soft:rgb(59 191 122 / .14); --on-accent:var(--green-950);
  --link:var(--blue-300); --link-hover:var(--blue-200); --focus:var(--green-400);
  --disabled-bg:#132339; --disabled-text:#566A84; --disabled-border:#1F3550;
  --success-50:rgb(59 191 122 / .12); --success-600:var(--green-400); --success-700:var(--green-300);
  --warning-50:rgb(229 154 11 / .12); --warning-700:#F5C063;
  --error-50:rgb(224 69 58 / .14);    --error-600:#FF7A70; --error-700:#FF9F97;
  --info-50:rgb(72 145 238 / .14);    --info-600:var(--blue-300); --info-700:var(--blue-200);
  --shadow-sm:0 1px 2px rgb(0 0 0 / .4); --shadow-md:0 8px 20px rgb(0 0 0 / .35);
  --shadow-lg:0 18px 40px rgb(0 0 0 / .45); --shadow-xl:0 32px 72px rgb(0 0 0 / .55);
  --shadow-glow:0 10px 28px -6px rgb(72 145 238 / .45);
  --grad-soft:linear-gradient(180deg, #0F2140 0%, var(--bg) 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    color-scheme: dark;
    --bg:#060F1C; --surface:#0C1A2C; --surface-2:#112238; --surface-3:#172C46;
    --surface-inverse:#020812; --surface-glass:rgb(12 26 44 / .66);
    --text:#EAF1FA; --text-muted:#A9B8CB; --text-subtle:#7F91A8; --text-inverse:#071E3A; --heading:#F3F8FF;
    --border:#1F3550; --border-strong:#2C4766; --border-input:#5A7393;
    --primary:var(--blue-400); --primary-hover:var(--blue-300); --primary-active:var(--blue-200);
    --primary-soft:rgb(72 145 238 / .14); --primary-soft-2:rgb(72 145 238 / .22); --on-primary:var(--blue-950);
    --accent:var(--green-400); --accent-hover:var(--green-300); --accent-soft:rgb(59 191 122 / .14); --on-accent:var(--green-950);
    --link:var(--blue-300); --link-hover:var(--blue-200); --focus:var(--green-400);
    --disabled-bg:#132339; --disabled-text:#566A84; --disabled-border:#1F3550;
    --success-50:rgb(59 191 122 / .12); --success-600:var(--green-400); --success-700:var(--green-300);
    --warning-50:rgb(229 154 11 / .12); --warning-700:#F5C063;
    --error-50:rgb(224 69 58 / .14);    --error-600:#FF7A70; --error-700:#FF9F97;
    --info-50:rgb(72 145 238 / .14);    --info-600:var(--blue-300); --info-700:var(--blue-200);
    --shadow-sm:0 1px 2px rgb(0 0 0 / .4); --shadow-md:0 8px 20px rgb(0 0 0 / .35);
    --shadow-lg:0 18px 40px rgb(0 0 0 / .45); --shadow-xl:0 32px 72px rgb(0 0 0 / .55);
    --shadow-glow:0 10px 28px -6px rgb(72 145 238 / .45);
    --grad-soft:linear-gradient(180deg, #0F2140 0%, var(--bg) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
}
