/* Ported VERBATIM from BrooksCorp-Design-Framework/src/wwwroot/css/brookscorp.tokens.css (BCDF v1.0).
   Do not edit. Province colours are mapped onto these tokens in ../sa/sa.brand.css;
   anything SmartAdmit needs beyond BCDF lives in ../sa/. */
/* ==========================================================================
   BrooksCorp Design Framework (BCDF) — 1. TOKENS
   --------------------------------------------------------------------------
   The ONLY file a new project should need to edit to reskin the whole system.
   Everything downstream (components, layouts, charts) reads from these vars.

   Reskin rule: override --bc-brand-* / --bc-accent-* in a theme file.
   Never hard-code a hex value anywhere else in the codebase.
   ========================================================================== */

:root {
  /* ---------------------------------------------------------------------
     1.1  BRAND SCALE  —  deep corporate foundation (default = Nala Navy)
     --------------------------------------------------------------------- */
  --bc-brand-50:  #EEF2F7;
  --bc-brand-100: #D5DEEA;
  --bc-brand-200: #A8B8CE;
  --bc-brand-300: #7189A9;
  --bc-brand-400: #3E5878;
  --bc-brand-500: #1C3556;
  --bc-brand-600: #0B1D3A;   /* PRIMARY — navigation, sidebar, headings, footer */
  --bc-brand-700: #08172F;
  --bc-brand-800: #061224;
  --bc-brand-900: #040D1A;

  /* ---------------------------------------------------------------------
     1.2  ACCENT SCALE  —  action colour (default = Nala Teal)
     Used for: primary CTAs, active nav, sliders, selected states, focus.
     --------------------------------------------------------------------- */
  --bc-accent-50:  #E6F6F5;
  --bc-accent-100: #C0E9E6;
  --bc-accent-200: #8FD8D3;
  --bc-accent-300: #52C2BB;
  --bc-accent-400: #22AFA6;
  --bc-accent-500: #0FA39A;  /* PRIMARY ACCENT */
  --bc-accent-600: #0C8B84;
  --bc-accent-700: #096F6A;
  --bc-accent-800: #075450;
  --bc-accent-900: #043A37;

  /* ---------------------------------------------------------------------
     1.3  SUPPORT SCALE  —  secondary brand colour (default = Nala Green)
     Progress, positive financial states, illustration accents.
     --------------------------------------------------------------------- */
  --bc-support-50:  #EEF9F2;
  --bc-support-100: #D3F0DE;
  --bc-support-200: #A9E2C0;
  --bc-support-300: #62C58A;  /* SUPPORT */
  --bc-support-400: #45B173;
  --bc-support-500: #349A61;

  /* ---------------------------------------------------------------------
     1.4  NEUTRALS
     --------------------------------------------------------------------- */
  --bc-white:      #FFFFFF;
  --bc-grey-25:    #FAFBFC;
  --bc-grey-50:    #F2F4F7;   /* app background */
  --bc-grey-100:   #E8ECF1;
  --bc-grey-200:   #DDE3EB;   /* borders */
  --bc-grey-300:   #C6CEDA;
  --bc-grey-400:   #9AA5B5;
  --bc-grey-500:   #7D8794;   /* muted text */
  --bc-grey-600:   #5B6472;
  --bc-grey-700:   #414A57;
  --bc-grey-800:   #2A323D;
  --bc-grey-900:   #131A24;

  /* Warm surface — optional, for consumer/marketing "explainer" panels */
  --bc-warm-50:    #FBF8F3;
  --bc-warm-100:   #F7F3ED;
  --bc-warm-200:   #EDE5D8;

  /* ---------------------------------------------------------------------
     1.5  SEMANTIC / STATUS
     --------------------------------------------------------------------- */
  --bc-success:      #27AE60;
  --bc-success-bg:   #E7F7EE;
  --bc-success-fg:   #0F7A3E;

  --bc-warning:      #F59E0B;
  --bc-warning-bg:   #FEF3DC;
  --bc-warning-fg:   #8A5A00;

  --bc-danger:       #E74C3C;
  --bc-danger-bg:    #FDECEA;
  --bc-danger-fg:    #A32419;

  --bc-info:         #5E7BD6;
  --bc-info-bg:      #ECF0FB;
  --bc-info-fg:      #33489B;

  --bc-neutral-bg:   #EEF1F5;
  --bc-neutral-fg:   #55606F;

  --bc-purple:       #8B7BD8;
  --bc-purple-bg:    #F0EDFC;
  --bc-purple-fg:    #4F3FA0;

  /* ---------------------------------------------------------------------
     1.6  ROLE ALIASES  —  components reference THESE, not the scales.
     --------------------------------------------------------------------- */
  --bc-bg-app:        var(--bc-grey-50);
  --bc-bg-surface:    var(--bc-white);
  --bc-bg-raised:     var(--bc-white);
  --bc-bg-sunken:     var(--bc-grey-50);
  --bc-bg-inverse:    var(--bc-brand-600);
  --bc-bg-warm:       var(--bc-warm-100);

  --bc-text-strong:   var(--bc-brand-600);
  --bc-text-body:     var(--bc-grey-700);
  --bc-text-muted:    var(--bc-grey-500);
  --bc-text-subtle:   var(--bc-grey-400);
  --bc-text-inverse:  var(--bc-white);
  --bc-text-accent:   var(--bc-accent-500);

  --bc-border:        var(--bc-grey-200);
  --bc-border-strong: var(--bc-grey-300);
  --bc-border-subtle: var(--bc-grey-100);

  --bc-focus-ring:    0 0 0 3px rgba(15,163,154,.28);

  /* ---------------------------------------------------------------------
     1.7  TYPOGRAPHY
     --------------------------------------------------------------------- */
  --bc-font-display: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bc-font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --bc-font-mono:    "JetBrains Mono", "Cascadia Mono", ui-monospace, monospace;

  --bc-fs-display: 3.5rem;   /* 56 */
  --bc-fs-h1:      2.75rem;  /* 44 */
  --bc-fs-h2:      2rem;     /* 32 */
  --bc-fs-h3:      1.375rem; /* 22 */
  --bc-fs-h4:      1.125rem; /* 18 */
  --bc-fs-lg:      1rem;     /* 16 */
  --bc-fs-base:    .9375rem; /* 15 */
  --bc-fs-sm:      .8125rem; /* 13 */
  --bc-fs-xs:      .75rem;   /* 12 */
  --bc-fs-2xs:     .6875rem; /* 11 */

  --bc-lh-tight: 1.15;
  --bc-lh-snug:  1.35;
  --bc-lh-base:  1.6;

  --bc-fw-regular: 400;
  --bc-fw-medium:  500;
  --bc-fw-semi:    600;
  --bc-fw-bold:    700;

  /* ---------------------------------------------------------------------
     1.8  SPACE  (4px base)
     --------------------------------------------------------------------- */
  --bc-s-1: 4px;   --bc-s-2: 8px;   --bc-s-3: 12px;  --bc-s-4: 16px;
  --bc-s-5: 20px;  --bc-s-6: 24px;  --bc-s-7: 32px;  --bc-s-8: 40px;
  --bc-s-9: 48px;  --bc-s-10: 64px; --bc-s-11: 80px; --bc-s-12: 96px;

  /* ---------------------------------------------------------------------
     1.9  RADIUS  —  structured, not bubbly
     --------------------------------------------------------------------- */
  --bc-r-xs:   6px;
  --bc-r-sm:   8px;
  --bc-r-ctrl: 10px;   /* inputs, selects */
  --bc-r-btn:  10px;   /* buttons */
  --bc-r-card: 16px;   /* standard card */
  --bc-r-lg:   22px;   /* feature card */
  --bc-r-pill: 999px;

  /* ---------------------------------------------------------------------
     1.10 ELEVATION  —  soft, financial-grade. Never harsh.
     --------------------------------------------------------------------- */
  --bc-sh-xs:   0 1px 2px rgba(11,29,58,.06);
  --bc-sh-sm:   0 1px 3px rgba(11,29,58,.07), 0 1px 2px rgba(11,29,58,.04);
  --bc-sh-md:   0 4px 12px rgba(11,29,58,.07), 0 1px 3px rgba(11,29,58,.05);
  --bc-sh-lg:   0 12px 32px rgba(11,29,58,.10), 0 2px 8px rgba(11,29,58,.05);
  --bc-sh-xl:   0 24px 64px rgba(11,29,58,.14), 0 4px 12px rgba(11,29,58,.06);
  --bc-sh-focus: var(--bc-focus-ring);

  /* ---------------------------------------------------------------------
     1.11 LAYOUT
     --------------------------------------------------------------------- */
  --bc-container:      1240px;
  --bc-container-wide: 1560px;
  --bc-form-width:     660px;   /* application wizard card max width */
  --bc-sidebar-w:      248px;
  --bc-sidebar-w-collapsed: 72px;
  --bc-topbar-h:       64px;

  --bc-z-sticky: 100;
  --bc-z-drawer: 400;
  --bc-z-modal:  600;
  --bc-z-toast:  800;

  --bc-transition: 160ms cubic-bezier(.4,0,.2,1);
}

/* ==========================================================================
   1.12  DARK SURFACE CONTEXT
   Apply .bc-dark to any subtree (staff login, MIS sidebar, inverse panels)
   and every role alias flips. Components need no dark-specific rules.
   ========================================================================== */
.bc-dark {
  --bc-bg-app:        var(--bc-brand-700);
  --bc-bg-surface:    var(--bc-brand-600);
  --bc-bg-raised:     var(--bc-brand-500);
  --bc-bg-sunken:     var(--bc-brand-800);

  --bc-text-strong:   var(--bc-white);
  --bc-text-body:     rgba(255,255,255,.82);
  --bc-text-muted:    rgba(255,255,255,.60);
  --bc-text-subtle:   rgba(255,255,255,.42);
  --bc-text-inverse:  var(--bc-brand-600);

  --bc-border:        rgba(255,255,255,.12);
  --bc-border-strong: rgba(255,255,255,.20);
  --bc-border-subtle: rgba(255,255,255,.07);
}
