/* =========================================================================
   Sottozero — Brand Tokens v2.0  ·  July 2026
   Drop this file into any web project and reference the variables.
   Example:
     .my-button { background: var(--sz-primary); color: var(--sz-white); }

   v2.0 changes (HUB update):
   - NEW navy family for the HUB shell: --sz-navy, --sz-sidebar, --sz-ice
   - NEW second accent: --sz-mint (+ soft)
   - NEW status colour: --sz-info (+ soft)
   - NEW dark-mode primitives (--sz-dark-*) and an opt-in
     [data-theme="dark"] remap block at the bottom
   - Typography moved from Boston to Inter (UI) + Manrope (display).
     Weights now carried by --sz-weight-* tokens.
     Load: https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@700;800&display=swap
   ========================================================================= */

:root {
  /* ---------- Primary ---------- */
  --sz-primary-logo:   #3B52A4;   /* Original logo wordmark colour — print only */
  --sz-primary:        #0A4FD1;   /* Screen primary — buttons, links, KPIs, focus */
  --sz-primary-soft:   #EAF1FC;   /* Soft tinted backgrounds */
  --sz-primary-dark:   #0034A8;   /* Hover / depth */

  /* ---------- HUB navy family (new in v2.0) ---------- */
  --sz-navy:           #283267;   /* Deep brand navy — hero panels, marketing surfaces, dark headers */
  --sz-sidebar:        #1E274F;   /* HUB sidebar / deepest navy surface */
  --sz-ice:            #5CA9FF;   /* Ice blue — accents, links & active states on navy/dark surfaces */
  --sz-ice-soft:       rgba(92, 169, 255, 0.14);  /* Ice tint — hover/badge backgrounds on dark */

  /* ---------- Accents ---------- */
  --sz-accent-orange:  #FF5C1F;   /* Brand highlighter — HUB wordmark, marketing. Use sparingly, never data. */
  --sz-mint:           #38D9A9;   /* Fresh mint — training progress, achievements, positive highlights.
                                     Not a status colour, not a data colour. */
  --sz-mint-soft:      rgba(56, 217, 169, 0.12);

  /* ---------- Neutrals ---------- */
  --sz-ink:            #0B0E13;
  --sz-ink-2:          #232730;
  --sz-muted:          #5B616B;
  --sz-muted-2:        #9CA0A8;
  --sz-line:           #EAEAEF;
  --sz-line-2:         #F3F3F6;
  --sz-bg:             #F7F7F9;
  --sz-white:          #FFFFFF;

  /* ---------- Status ---------- */
  --sz-good:           #0F9E66;
  --sz-good-soft:      rgba(15, 158, 102, 0.10);
  --sz-bad:            #C9302E;
  --sz-bad-soft:       rgba(201, 48, 46, 0.10);
  --sz-warn:           #B27310;
  --sz-warn-soft:      rgba(178, 115, 16, 0.10);
  --sz-info:           #3B82F6;   /* Informational banners, icons, neutral notices.
                                     For info TEXT on white use --sz-primary (better contrast). */
  --sz-info-soft:      rgba(59, 130, 246, 0.10);

  /* ---------- Shadows ---------- */
  --sz-shadow-xs:      0 1px 2px rgba(15, 18, 28, 0.04);
  --sz-shadow:         0 1px 2px rgba(15, 18, 28, 0.04), 0 12px 36px rgba(15, 18, 28, 0.04);
  --sz-shadow-lg:      0 1px 2px rgba(15, 18, 28, 0.04), 0 28px 72px rgba(15, 18, 28, 0.10);

  /* ---------- Radius ---------- */
  --sz-radius-sm:      10px;
  --sz-radius:         14px;
  --sz-radius-pill:    999px;

  /* ---------- Typography (v2.0: Inter UI + Manrope display) ---------- */
  --sz-font-display:   "Manrope", "Inter", system-ui, Arial, sans-serif;
  --sz-font-head:      "Inter", system-ui, Arial, sans-serif;
  --sz-font-subhead:   "Inter", system-ui, Arial, sans-serif;
  --sz-font-emphasis:  "Inter", system-ui, Arial, sans-serif;
  --sz-font-body:      "Inter", system-ui, Arial, sans-serif;

  --sz-weight-display: 800;
  --sz-weight-head:    800;
  --sz-weight-subhead: 700;
  --sz-weight-emphasis: 600;
  --sz-weight-body:    400;

  /* ---------- Dark mode primitives (new in v2.0) ---------- */
  --sz-dark-bg:        #0F172A;   /* App background */
  --sz-dark-surface:   #1E293B;   /* Panels, sidebar surface */
  --sz-dark-card:      #263348;   /* Cards, modals */
  --sz-dark-line:      #334155;   /* Borders, dividers */
  --sz-dark-ink:       #F8FAFC;   /* Primary text */
  --sz-dark-ink-2:     #E2E8F0;   /* Headings / strong body */
  --sz-dark-muted:     #94A3B8;   /* Secondary text */
  --sz-dark-muted-2:   #64748B;   /* Placeholder only */
  --sz-dark-line-2:    rgba(255, 255, 255, 0.06);  /* Subtle row separators on dark */
}

/* =========================================================================
   Opt-in dark theme.
   Set data-theme="dark" on <html> and every component built on the semantic
   tokens above goes dark automatically. Apps that don't opt in are untouched.
   ========================================================================= */
[data-theme="dark"] {
  --sz-bg:            var(--sz-dark-bg);
  --sz-white:         var(--sz-dark-card);      /* card surfaces */
  --sz-ink:           var(--sz-dark-ink);
  --sz-ink-2:         var(--sz-dark-ink-2);
  --sz-muted:         var(--sz-dark-muted);
  --sz-muted-2:       var(--sz-dark-muted-2);
  --sz-line:          var(--sz-dark-line);
  --sz-line-2:        var(--sz-dark-line-2);

  /* On dark surfaces the interactive blue is Ice Blue; pressed goes deep. */
  --sz-primary:       var(--sz-ice);
  --sz-primary-soft:  var(--sz-ice-soft);
  --sz-primary-dark:  #0A4FD1;
}
