/* =============================================================================
   AAZ_123HOC design tokens — theme "Knowledge Blue & Warm Orange"
   Style: Modern Education Commerce. Authority: docs/design/AAZ_123HOC_BRAND_AND_STOREFRONT_DESIGN_LOCK.md

   Every value below is the Design Lock's own. Where a lock colour cannot carry
   text at its stated size, the contrast ratio is measured here and a second,
   darker token is given for the text — the lock colour still paints the surface.
   ========================================================================== */
:root {
  /* ---- Brand -----------------------------------------------------------
     Primary #1D4ED8 on white = 6.66:1, and white on it = 6.66:1, so the blue
     carries body text and white button labels at any size. */
  --hoc-blue: #1D4ED8;          /* Primary */
  --hoc-blue-hover: #1E40AF;
  --hoc-blue-active: #1E3A8A;
  --hoc-navy: #1E3A8A;          /* Primary Dark — header bands, footer, admin rail */
  --hoc-logo-navy: #1E3A8A;

  /* Strong surfaces (hero gradient) */
  --hoc-hero-dark: #1E3A8A;
  --hoc-hero-light: #2563EB;

  /* ---- Warm Orange accent ----------------------------------------------
     Measured, because the lock is explicit that orange must not be treated as
     a default button colour with white text:

       --hoc-accent      on #FFFFFF      = 2.85:1  -> no text, any size
       --hoc-accent      on --hoc-navy   = 3.62:1  -> non-text UI, large text
       #FFFFFF           on --hoc-accent = 2.85:1  -> never
       --hoc-accent-on   on --hoc-accent = 5.50:1  -> the label on an orange CTA
       --hoc-accent-ink  on #FFFFFF      = 7.31:1  -> orange-toned text on light

     RULE: orange fills a surface or marks an edge. Text on orange is
     --hoc-accent-on. Orange text on a light surface is --hoc-accent-ink. */
  --hoc-accent: #F97316;
  --hoc-accent-hover: #EA580C;
  --hoc-accent-on: #431407;
  --hoc-accent-ink: #9A3412;
  --hoc-accent-hairline: rgba(249, 115, 22, 0.55);
  --hoc-accent-soft: #FFF2E6;

  /* ---- Typography ------------------------------------------------------- */
  --hoc-ink: #1E293B;           /* Text Primary */
  --hoc-text: #334155;
  --hoc-muted: #64748B;         /* Text Secondary — 4.76:1 on Surface, 4.54:1 on Background */

  /* ---- Surfaces --------------------------------------------------------- */
  --hoc-white: #FFFFFF;         /* Surface */
  --hoc-bg: #F5F7FB;            /* Background */
  --hoc-soft: #F1F5F9;
  --hoc-soft-2: #E8EEF7;

  /* ---- Borders ---------------------------------------------------------- */
  --hoc-border: #E2E8F0;
  --hoc-border-strong: #CBD5E1;

  /* ---- Semantic --------------------------------------------------------- */
  --hoc-danger: #DC2626;        /* Error — 4.83:1 on Surface */
  --hoc-success: #16A34A;

  /* ---- Commerce emphasis ------------------------------------------------- */
  --hoc-price: #C2410C;         /* Price — 5.18:1 on Surface */
  --hoc-total: #C2410C;

  /* ---- Marketplace brands (affiliate CTAs) -------------------------------
     The sàn's own colour marks the control; the fill is one step darker so a
     white label clears 4.5:1 (#D23F20 = 4.67:1, Shopee #EE4D2D alone = 3.67:1). */
  --hoc-shopee: #EE4D2D;
  --hoc-shopee-cta: #D23F20;

  /* ---- Derived tints ----------------------------------------------------- */
  --hoc-selected-bg: #F5F8FE;
  --hoc-focus-ring: 0 0 0 3px rgba(29, 78, 216, 0.30);
  --hoc-danger-bg: #FEF2F2;
  --hoc-danger-border: #FBB4B4;
  --hoc-success-bg: #ECFDF5;
  --hoc-info-bg: #DBEAFE;       /* Primary Light */

  /* ---- Geometry ---------------------------------------------------------- */
  --hoc-radius: 6px;
  --hoc-radius-lg: 8px;         /* Card border-radius */
  --hoc-shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
  --hoc-shadow-2: 0 6px 20px rgba(15, 23, 42, 0.10);

  /* ---- Layout ------------------------------------------------------------ */
  --container-max: 1440px;
  --gutter: 24px;               /* desktop; 16px tablet, 12px mobile (see hoc.css §14) */
  --grid-gap: 16px;             /* product card gap; 12px on mobile */
  --reading-max: 760px;
  --admin-max: 1760px;

  /* ---- Type --------------------------------------------------------------
     Be Vietnam Pro is served by this site from wwwroot/fonts (fonts.css).
     No webfont is fetched from anywhere else: the site never depends on a CDN.
     The stack after it is what a reader sees while the woff2 loads, and if the
     font fails to load at all. */
  --hoc-font-sans: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, "Noto Sans", Arial, sans-serif;
  --hoc-font-mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
}
