/* ==========================================================================
   GSTC (Global Solutions Training & Consulting) — design tokens
   Consumed by the shared app chrome (@whitestone/core/styles/app.css), which
   reads ONLY these variables. Variable NAMES stay `--ws-*`; the VALUES are
   GSTC's, taken from the approved prototype's :root
   (clients/marketing/public/gstc/index.html, Nov 18, 2026):

     ink #070b14 · deep #0b1220 · panel #111a2c · panel-2 #16213a
     line rgba(201,162,75,.24) (gold hairline) · line-soft rgba(160,176,214,.14)
     blue #2a4bd0 · blue-hi #7f9bff · gold #c9a24b · gold-hi #ecd391
     white #f4f6fb · text #d7deec · mute #94a1bb · ok #57c08a · warn #e2a13c
     Cinzel (display) · Barlow Condensed (labels, buttons) · Public Sans (body)

   ONE DARK WORLD. Unlike every other client, the GSTC hub is dark from edge
   to edge, like the prototype's hub: the ground is ink, cards are panel, the
   rail is #05080f. So the "light" tokens here carry dark values, and
   .ws-on-dark restates nearly the same set.

   Every value here is literal. No token aliases another token: an alias
   resolves where it is DECLARED, not where it is used (see
   beyond-letters-tokens.css's header). The same prototype colours are also
   restated as --g-* in app/globals.css for this app's own rules.

   Gold is the accent: gold text (#ecd391) on dark, gold fills (#c9a24b) with
   the near-black #141005 label. Blue (#2a4bd0, white label) is the fill for
   small "on" states core paints with a white label (active chip, done dot,
   avatar), because white on gold fails contrast.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* --- Palette --- */
  --ws-stone:       #0b1220; /* deep: table headers, pressed */
  --ws-olive:       #2a4bd0; /* fills with a white label (avatar, active chip, done dot): blue, 6.3:1 with white */
  --ws-olive-deep:  #ecd391; /* small accent text: links, "current" meta. Gold-hi, 12:1 on panel */
  --ws-sage:        #c9a24b; /* gold as a decorative fill */
  --ws-pebble:      #2a3550; /* strokes, dividers (opaque line-soft on panel). NEVER text */
  --ws-ivory:       #070b14; /* default background: ink */
  --ws-ink:         #f4f6fb; /* strongest text: white */
  --ws-terracotta:  #e5484d; /* signal red */

  /* --- Support tints --- */
  --ws-limestone:      #16213a; /* hover, raised panels (panel-2) */
  --ws-gray-warm:      #94a1bb; /* secondary text (mute) */
  --ws-sage-light:     #ecd391;
  --ws-sage-lighter:   rgba(201, 162, 75, 0.14);
  --ws-terracotta-deep:#ff8f86; /* the text-safe red on dark: errors, danger */

  --ws-cream:  #070b14;
  --ws-paper:  #111a2c; /* cards, panels, inputs */

  /* --- Semantic aliases (literal values, deliberately not var()) --- */
  --ws-bg:              #070b14;
  --ws-surface:         #111a2c;
  --ws-surface-light:   #16213a;
  --ws-text:            #d7deec;
  --ws-text-secondary:  #94a1bb;
  --ws-accent:          #ecd391; /* gold-hi: the text-safe accent on every dark ground */
  --ws-accent-bright:   #c9a24b;
  --ws-stroke:          rgba(160, 176, 214, 0.14);
  --ws-stroke-focus:    #ecd391;
  --ws-pop:             #c9a24b;

  /* --- Actions --- */
  --ws-btn-primary-bg:     #c9a24b; /* struck gold... */
  --ws-btn-primary-text:   #141005; /* ...near-black label (8.9:1) */
  --ws-btn-primary-hover:  #ecd391;
  --ws-btn-emphasis-bg:    #2a4bd0; /* the prototype's btn-blue */
  --ws-btn-emphasis-text:  #ffffff;
  --ws-btn-secondary-text: #f4f6fb; /* the prototype's btn-ghost */
  --ws-btn-secondary-stroke: rgba(201, 162, 75, 0.24);

  /* --- Status chips: tinted fill + light text (the prototype's .pill) --- */
  --ws-chip-positive-bg:   rgba(87, 192, 138, 0.14);
  --ws-chip-positive-text: #57c08a;
  --ws-chip-neutral-bg:    rgba(160, 176, 214, 0.10);
  --ws-chip-neutral-text:  #94a1bb;
  --ws-chip-stroke:        rgba(160, 176, 214, 0.14);
  --ws-chip-warm-bg:       rgba(201, 162, 75, 0.14);
  --ws-chip-warm-text:     #ecd391;
  --ws-chip-urgent-bg:     rgba(229, 72, 77, 0.16);
  --ws-chip-urgent-text:   #ff8f86;
  --ws-chip-info-bg:       rgba(42, 75, 208, 0.25);
  --ws-chip-info-text:     #7f9bff;

  /* Royal blue: the second accent (Global Security Solutions, licensing). */
  --ws-navy:       #2a4bd0;
  --ws-navy-2:     #3558e2;
  --ws-navy-soft:  rgba(42, 75, 208, 0.25);

  /* --- Typography ---
     Cinzel 500-700 (display: roman caps for names and headings), Barlow
     Condensed 500-700 (labels, eyebrows, buttons), Public Sans 400-700
     (body), all linked in app/layout.tsx, exactly as the prototype. */
  --ws-font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --ws-font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ws-tracking-display: 0.02em;
  --ws-tracking-kicker: 0.2em;

  /* --- Shape and space --- */
  --ws-radius-card: 12px;
  --ws-radius-pill: 999px;
  --ws-radius-swatch: 6px;
  --ws-stroke-width: 1px;
  --ws-hit-target: 44px;

  /* --- Elevation: deep, black, as the prototype's photos and sheets. --- */
  --ws-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --ws-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 16px 36px -12px rgba(0, 0, 0, 0.55);
  --ws-shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.5);

  /* --- Motion. Platform defaults, restated literally. --- */
  --ws-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ws-ease-out: cubic-bezier(0.16, 1, 0.30, 1);
  --ws-dur-fast: 130ms;
  --ws-dur: 200ms;
  --ws-dur-slow: 320ms;

  /* --- Strata mark courses --- */
  --ws-course-1: #f4f6fb;
  --ws-course-2: #7f9bff;
  --ws-course-3: #c9a24b;
  /* "Powered by Whitestone" cairn in the prototype's colours (white, blue-hi,
     gold: the MARK svg in hub.js); see core powered-by.tsx */
  --ws-pwd-1: #f4f6fb;
  --ws-pwd-2: #7f9bff;
  --ws-pwd-3: #c9a24b;

  /* -------------------------------------------------------------------
     THEME STRUCTURE TOKENS (packages/core/styles/app.css)
     Every token in core's WS-THEME-STRUCTURE-TOKENS block, restated here.
     ------------------------------------------------------------------- */
  --ws-radius: 8px;
  --ws-radius-sm: 6px;
  --ws-radius-avatar: 50%;

  /* Buttons speak in Barlow Condensed caps, as the prototype's .btn. */
  --ws-btn-transform: uppercase;
  --ws-btn-tracking: 0.12em;
  --ws-btn-weight: 600;

  --ws-input-border-sides: 1px;
  --ws-input-border-bottom: 1px;
  --ws-input-bg: #0b1220; /* the prototype's .field: deep */
  --ws-input-radius: 8px;
  --ws-input-padding-x: 14px;

  --ws-font-label: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --ws-label-tracking: 0.14em;
  --ws-body-weight: 400;

  --ws-hairline: 1px solid rgba(160, 176, 214, 0.14);
  --ws-elevation: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* Dark-fill context: the rail and the phone menu sheet (#05080f). Literal
   values, restated for the same reason as above. */
.ws-on-dark {
  --ws-text:           #d7deec;
  --ws-text-secondary: #94a1bb;
  --ws-accent:         #ecd391;
  --ws-accent-bright:  #c9a24b;
  --ws-stroke:         rgba(160, 176, 214, 0.14);
  --ws-course-1: #f4f6fb;
  --ws-course-2: #7f9bff;
  --ws-course-3: #c9a24b;
  --ws-pwd-1: #f4f6fb;
  --ws-pwd-2: #7f9bff;
  --ws-pwd-3: #c9a24b;
  color: #d7deec;
}

/* Nov 18, 2026: tokens shared hub code reads with a light-theme fallback.
   Undefined here, they fell back to dark reds, browns and pale lines that
   vanish on GSTC's dark ground. */
:root {
  --ws-danger: #ff8f86;
  --danger: #ff8f86;
  --ws-warn: #e2a13c;
  --ws-line: rgba(160, 176, 214, 0.14);
  --ws-line-soft: rgba(160, 176, 214, 0.10);
  --line: rgba(160, 176, 214, 0.14);
  --ws-primary: #c9a24b;
  --ws-on-primary: #141005;
  --wf-gold: #ecd391;
}
