/* ==========================================================================
   BSC Web Portal — Design Tokens  (single source of truth for color/type/space)
   Palette is derived from the MCIT / BSC Miami logo.
   RULE: never hard-code a hex, px radius or shadow in a page. Use these vars.
   ========================================================================== */
:root {
  /* ---- Brand (sampled from logo) ---- */
  --bsc-logo-green: #24B430;   /* decorative only: accents on navy, never text-on-white, never button bg w/ white text */
  --bsc-logo-cyan:  #00C0FC;   /* accent on navy / highlights */
  --bsc-logo-blue:  #0C90D8;   /* decorative / focus ring / chart */

  /* ---- Navy (Amazon-style dark header band, tinted toward brand blue) ---- */
  --bsc-navy-900: #0A1A2B;     /* top header */
  --bsc-navy-800: #12293F;     /* sub-nav strip, footer */
  --bsc-navy-700: #1D3A57;     /* hover on navy */

  /* ---- Action green (buyer-intent actions: Add to cart, Place order, Pay) ---- */
  --bsc-green-500: #24B430;
  --bsc-green-600: #17802A;    /* DEFAULT primary button bg — white text 5.05:1 */
  --bsc-green-700: #146C23;    /* hover — 6.56:1 */
  --bsc-green-800: #0F5A1B;    /* pressed / text on green-50 */
  --bsc-green-50:  #DFF5E2;

  /* ---- Blue (links, secondary actions, info) ---- */
  --bsc-blue-600: #0A73AD;     /* link text on white — 5.16:1 */
  --bsc-blue-700: #0B6AA0;     /* link hover */
  --bsc-blue-800: #064E78;
  --bsc-blue-50:  #DDF1FB;

  /* ---- Neutrals ---- */
  --bsc-gray-0:   #FFFFFF;
  --bsc-gray-50:  #F6F8FA;
  --bsc-gray-100: #EEF1F4;     /* page background (Amazon uses a light gray canvas, white cards) */
  --bsc-gray-200: #DDE3E9;     /* borders */
  --bsc-gray-300: #C5CDD6;     /* strong borders, input borders */
  --bsc-gray-500: #5A6675;     /* secondary text — 5.85:1 on white */
  --bsc-gray-700: #3A4654;     /* body text secondary */
  --bsc-gray-900: #0F1923;     /* primary text */

  /* ---- Semantic ---- */
  --bsc-success-fg: #0F5A1B;  --bsc-success-bg: #DFF5E2;
  --bsc-info-fg:    #064E78;  --bsc-info-bg:    #DDF1FB;
  --bsc-warning-fg: #7A4B00;  --bsc-warning-bg: #FFF4D6;
  --bsc-danger-fg:  #9B1C1C;  --bsc-danger-bg:  #FDE7E7;
  --bsc-danger:     #C62828;                    /* solid danger button, 5.62:1 w/ white */
  --bsc-price:      #B12704;                    /* deal / sale price emphasis (Amazon convention), 6.64:1 */
  --bsc-instock:    #146C23;                    /* "In stock" text */

  /* ---- Tenant brand (white-label). The server may override ONLY these ----
     Defaults = BSC green. A customer's accent must be validated so white text
     reaches 4.5:1 (see docs/TENANT-BRANDING.md). */
  --bsc-brand:        #17802A;
  --bsc-brand-rgb:    23, 128, 42;
  --bsc-brand-hover:  #146C23;
  --bsc-brand-active: #0F5A1B;
  --bsc-accent:       #00C0FC;   /* highlights on dark header (search button) */
  --bsc-accent-2:     #24B430;   /* cart count / small marks on dark header */
  --bsc-header-stripe: linear-gradient(90deg, #24B430, #00C0FC); /* tenant may set a solid color */

  /* ---- Aliases the components actually use ---- */
  --bsc-bg:           var(--bsc-gray-100);
  --bsc-surface:      var(--bsc-gray-0);
  --bsc-text:         var(--bsc-gray-900);
  --bsc-text-muted:   var(--bsc-gray-500);
  --bsc-border:       var(--bsc-gray-200);
  --bsc-border-strong:var(--bsc-gray-300);
  --bsc-link:         var(--bsc-blue-600);
  --bsc-link-hover:   var(--bsc-blue-700);
  --bsc-primary:      var(--bsc-brand);
  --bsc-primary-hover:var(--bsc-brand-hover);
  --bsc-focus:        var(--bsc-logo-blue);

  /* ---- Typography ---- */
  --bsc-font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --bsc-font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --bsc-fs-xs: 0.75rem;    /* 12 — meta, badges */
  --bsc-fs-sm: 0.875rem;   /* 14 — dense tables, helper text */
  --bsc-fs-md: 1rem;       /* 16 — body (never below 16 for inputs: stops iOS zoom) */
  --bsc-fs-lg: 1.125rem;   /* 18 — card titles */
  --bsc-fs-xl: 1.375rem;   /* 22 — section headings */
  --bsc-fs-2xl: 1.75rem;   /* 28 — page title */
  --bsc-fs-price: 1.5rem;  /* 24 — product / total price */
  --bsc-lh: 1.45;

  /* ---- Spacing (4px base) ---- */
  --bsc-s-1: 4px;  --bsc-s-2: 8px;  --bsc-s-3: 12px; --bsc-s-4: 16px;
  --bsc-s-5: 24px; --bsc-s-6: 32px; --bsc-s-7: 48px;

  /* ---- Shape: Amazon is tight & functional, NOT pill-rounded ---- */
  --bsc-radius-sm: 4px;    /* inputs, buttons, badges */
  --bsc-radius-md: 8px;    /* cards, panels */
  --bsc-radius-pill: 999px;/* ONLY for chips/status pills */

  /* ---- Elevation (max 2 levels) ---- */
  --bsc-shadow-card:  0 1px 2px rgba(15, 25, 35, .08);
  --bsc-shadow-float: 0 6px 20px rgba(15, 25, 35, .16);   /* dropdowns, modals */
  --bsc-overlay:      rgba(10, 26, 43, .82);               /* navy dim behind the photo viewer (Step 10b) */

  /* ---- Motion ---- */
  --bsc-ease: cubic-bezier(.2, .7, .2, 1);
  --bsc-dur: 140ms;

  /* ---- Layout ---- */
  --bsc-container: 1280px;
  --bsc-header-h: 56px;
  --bsc-touch: 44px;       /* min tap target */
}

@media (prefers-reduced-motion: reduce) {
  :root { --bsc-dur: 0ms; }
}
