/* Pathway Cyber Systems - unified design tokens.
   ONE namespace for the whole platform. The three existing namespaces
   (--fcc-*, --dci-*, legacy --acc-*/--glass) are ALIASED to these rather than
   replaced, so nothing breaks while modules migrate one at a time.
   Loaded before every other stylesheet. */
:root {
  /* ---- brand ---- */
  --pcs-brand:        #1d6fe0;
  --pcs-brand-deep:   #0b3c82;
  --pcs-brand-bright: #21c2d4;
  --pcs-accent:       #f0a030;   /* the beam orange, for emphasis only */

  /* ---- semantic status ---- */
  --pcs-ok:      #0b7a3b;
  --pcs-ok-bg:   #e4f6ec;
  --pcs-warn:    #9a6300;
  --pcs-warn-bg: #fdf3e2;
  --pcs-risk:    #c0291f;
  --pcs-risk-bg: #fdecea;
  --pcs-info:    #1d6fe0;
  --pcs-info-bg: #e8f1fd;

  /* ---- surfaces (light) ---- */
  --pcs-bg:        #f5f7fa;
  --pcs-surface:   #ffffff;
  --pcs-surface-2: #eef2f7;
  --pcs-line:      #e3e8ef;
  --pcs-text:      #111827;
  --pcs-text-2:    #5a6b80;
  --pcs-text-3:    #8b97a8;

  /* ---- type ---- */
  --pcs-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pcs-font-brand: Cinzel, Georgia, serif;   /* brand moments only */
  --pcs-fs-xs: 12px;  --pcs-fs-sm: 13.5px; --pcs-fs-md: 15px;
  --pcs-fs-lg: 18px;  --pcs-fs-xl: 24px;   --pcs-fs-2xl: 34px;
  --pcs-fw-normal: 400; --pcs-fw-med: 550; --pcs-fw-bold: 700;

  /* ---- spacing (4px base) ---- */
  --pcs-1: 4px;  --pcs-2: 8px;  --pcs-3: 12px; --pcs-4: 16px;
  --pcs-5: 20px; --pcs-6: 24px; --pcs-8: 32px; --pcs-10: 40px;

  /* ---- radius ---- */
  --pcs-r-sm: 8px; --pcs-r-md: 12px; --pcs-r-lg: 16px; --pcs-r-pill: 999px;

  /* ---- elevation ---- */
  --pcs-e1: 0 1px 2px rgba(16,36,64,.06), 0 1px 3px rgba(16,36,64,.04);
  --pcs-e2: 0 2px 8px rgba(16,36,64,.08);
  --pcs-e3: 0 8px 24px rgba(16,36,64,.12);
  --pcs-e4: 0 20px 56px rgba(8,25,52,.28);

  /* ---- motion ---- */
  --pcs-fast: 120ms cubic-bezier(.2,.0,.2,1);
  --pcs-base: 180ms cubic-bezier(.2,.0,.2,1);

  /* ---- aliases: existing namespaces point here, nothing breaks ---- */
  --fcc-blue: var(--pcs-brand);
  --fcc-blue-dark: #0f4ea8;
  --fcc-blue-deep: var(--pcs-brand-deep);
  --fcc-green: #22c55e;
  --fcc-red: #e5342a;
  --fcc-surface: var(--pcs-surface);
  --fcc-surface-2: var(--pcs-surface-2);
  --fcc-line: var(--pcs-line);
  --fcc-text: var(--pcs-text);
  --fcc-text-2: var(--pcs-text-2);
}

/* Dark surfaces, one definition for the whole platform. */
.pcs-dark, .fcc-cw-window.fcc-cw-dark {
  --pcs-bg:        #0f1620;
  --pcs-surface:   #151b24;
  --pcs-surface-2: #1e2733;
  --pcs-line:      #2b3645;
  --pcs-text:      #e8edf4;
  --pcs-text-2:    #9fb0c4;
  --pcs-text-3:    #71839a;
  --pcs-ok-bg:   #10301f;
  --pcs-warn-bg: #30260f;
  --pcs-risk-bg: #33160f;
  --pcs-info-bg: #122236;
}
@media (prefers-reduced-motion: reduce) {
  :root { --pcs-fast: 0ms; --pcs-base: 0ms; }
}
