/* ==========================================================================
   SkillX design tokens - v267 (FROM-SCRATCH rebuild)
   Defines colours, type, spacing, radius, shadows, semantic roles, focus
   and motion tokens ONLY. No component selectors, no page selectors.
   Each token is defined exactly once, under --sx-* names only. There is
   no legacy-token redefinition in this file: style.css is deleted in v267
   and nothing in the tree reads the old --bg/--panel/--ink names any more.
   Source of truth: the landing redesign (built public_html/index.php),
   token values per redesign-v267-audit §B.2.
   --------------------------------------------------------------------------
   WCAG 2.2 AA (Level 1 formal standard): normal text 4.5:1, large text
   3:1, non-text UI 3:1. TEXT-GREEN RULE: the ONLY green for text on light
   surfaces is --sx-lime-text #406607 (6.73:1 on white). #78a91a (2.80:1)
   and #7a9b2e (3.20:1) are NEVER text colours; #7a9b2e is used only for
   rating-star graphics (3:1 non-text threshold). #E5484D (3.91:1) is never
   used for text; the danger text colour is #A82323 (7.17:1 white on it).
   Dark is an explicit opt-in only ([data-theme="dark"], stored key
   `skillx-theme` unchanged); absence of the attribute = light. Dark bands
   that are part of the DESIGN (hero, CTA band, footer) are component
   classes (.sx-dark-band), not theme states, and render dark in both
   themes by design.
   ========================================================================== */

:root{
  color-scheme:light;
  /* --- Core ink / paper (light default) --- */
  --sx-ink:#152116;
  --sx-ink-2:#223226;
  --sx-muted:#647165;
  --sx-paper:#f7f8f6;
  --sx-surface:#ffffff;
  --sx-soft:#f0f3ee;
  --sx-dark:#090b09;
  --sx-dark-2:#101411;
  --sx-dark-3:#1a211c;
  /* --- Brand lime --- */
  --sx-lime:#cbf21c;
  --sx-lime-2:#97cc22;
  --sx-lime-text:#406607;
  --sx-lime-btn-text:#182718;
  /* Rating-star ★ glyphs: --sx-star is dark gold #7d6200 in light (5.80:1
     on white, 5.18:1 on --sx-soft) and bright #F5C445 in dark (11.67:1).
     The old fixed #F5C445 was 1.46:1 on light surfaces (UIUX-85-06). */
  --sx-star:#7d6200;
  /* --- Borders --- */
  --sx-silver:#d7dadd;
  --sx-line:#e1e6e0;
  --sx-line-refined:#dbe5da;
  --sx-line-strong:#cfd9cf;
  --sx-track:#c9d2b0;
  /* --- Radius ladder (local convention, Part 27: not a standard) --- */
  --sx-radius:18px;
  --sx-radius-sm:10px;
  --sx-radius-md:14px;
  --sx-radius-lg:18px;
  /* --- Container --- */
  --sx-width:1240px;
  /* --- Elevation --- */
  --sx-shadow:0 18px 60px rgba(7,16,10,.12);
  --sx-shadow-sm:0 14px 32px rgba(15,26,16,.05);
  --sx-shadow-card:0 18px 36px rgba(15,26,16,.08);
  /* --- Type: Inter for headings AND body (landing uses Inter only) --- */
  --sx-ff-body:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --sx-ff-display:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --sx-ff-mono:'Geist Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
  --sx-fs-xs:.6875rem;
  --sx-fs-sm:.8125rem;
  --sx-fs-md:.875rem;
  --sx-fs-base:.9375rem;
  --sx-fs-body:1rem;
  --sx-fs-lg:1.125rem;
  --sx-fs-xl:1.25rem;
  --sx-fs-2xl:1.375rem;
  --sx-fs-3xl:1.5rem;
  --sx-fs-4xl:1.875rem;
  --sx-fs-5xl:2.375rem;
  --sx-fs-display:clamp(2.5rem,5.6vw,4.25rem);
  --sx-fs-hero:clamp(55px,5.55vw,82px);
  --sx-ls-display-tight:-.03em;
  --sx-ls-display:-.02em;
  --sx-ls-hero:-.067em;
  --sx-ls-body:.008em;
  --sx-ls-label:.06em;
  --sx-ls-eyebrow:.155em;
  /* --- Spacing ladder (4px base; local convention, Part 27) --- */
  --sx-space-1:4px;
  --sx-space-2:8px;
  --sx-space-3:12px;
  --sx-space-4:16px;
  --sx-space-5:20px;
  --sx-space-6:24px;
  --sx-space-8:32px;
  --sx-space-10:40px;
  --sx-space-12:48px;
  --sx-space-16:64px;
  --sx-space-20:80px;
  /* --- Landing tones (tokenised in v267; previously hard-coded in the
         landing and in page copy) --- */
  --sx-tone-title:#19281e;
  --sx-tone-body:#435447;
  --sx-tone-muted:#516354;
  --sx-on-dark:#e2f0df;
  --sx-on-dark-muted:#9caea0;
  --sx-on-dark-link:#d3fa80;
  --sx-on-dark-label:#b9e88c;
  --sx-hero-desc:#c5d3c7;
  --sx-mentor-text:#4d6252;
  --sx-mentor-bold:#2b552c;
  --sx-eyebrow-dark:#315a34;
  --sx-benefits-band:#eaf2e5;
  /* --- Semantic roles (light) - every text pair passes 4.5:1 --- */
  --sx-success:#406607;
  --sx-success-bg:#e2eec6;
  --sx-success-border:#9dbb6b;
  --sx-warning:#7c4a03;
  --sx-warning-bg:#fdf3d7;
  --sx-warning-border:#d9b45c;
  --sx-error:#b3261e;
  --sx-error-bg:#fdeceb;
  --sx-error-border:#d8a49e;
  --sx-info:#205a8c;
  --sx-info-bg:#e8f1fb;
  --sx-info-border:#a9c4de;
  --sx-danger:#a82323;
  --sx-focus:#406607;
  --sx-disabled-opacity:.55;
  /* --- Motion --- */
  --sx-eo:cubic-bezier(.23,1,.32,1);
  --sx-motion-fast:.15s;
  --sx-motion-med:.22s;
}

/* --- Dark opt-in: explicit user choice only, behind the toggle --- */
[data-theme="dark"]{
  color-scheme:dark;
  --sx-ink:#f7f8f8;
  --sx-ink-2:#d0d6e0;
  --sx-muted:#8a8f98;
  --sx-paper:#08090a;
  --sx-surface:#0f1011;
  --sx-soft:#131415;
  --sx-lime-text:#b6f34a;
  --sx-lime-btn-text:#182718;
  --sx-star:#F5C445;
  --sx-silver:#3a3f3a;
  --sx-line:rgba(255,255,255,.08);
  --sx-line-refined:rgba(255,255,255,.14);
  --sx-line-strong:rgba(255,255,255,.22);
  --sx-track:#262626;
  --sx-shadow:0 18px 60px rgba(0,0,0,.5);
  --sx-shadow-sm:0 14px 32px rgba(0,0,0,.4);
  --sx-shadow-card:0 18px 36px rgba(0,0,0,.45);
  --sx-tone-title:#f7f8f8;
  --sx-tone-body:#d0d6e0;
  --sx-tone-muted:#8a8f98;
  --sx-success:#b9ed63;
  --sx-success-bg:#1d2f16;
  --sx-success-border:#4e7a3a;
  --sx-warning:#ffd479;
  --sx-warning-bg:#2e2410;
  --sx-warning-border:#7a5c1e;
  --sx-error:#ff9d9a;
  --sx-error-bg:#3a1d1c;
  --sx-error-border:#8a4a44;
  --sx-info:#9cc8ff;
  --sx-info-bg:#12233a;
  --sx-info-border:#2e4a6b;
  --sx-danger:#ff9d9a;
  --sx-focus:#cbf21c;
}
