/* ── Unified design tokens ──
   Single source of truth for custom tokens.
   All theme colors now use Carbon tokens directly (--cds-*).
   Only project-specific values remain here. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Carbon spacing scale — bridged manually because @carbon/styles' bundled
     CSS at unpkg ships these as Sass variables only, not as CSS custom
     properties. Without this bridge, every `var(--cds-spacing-XX)` across
     the codebase resolves to undefined → falls back to 0. */
  --cds-spacing-01: 0.125rem;  /* 2px */
  --cds-spacing-02: 0.25rem;   /* 4px */
  --cds-spacing-03: 0.5rem;    /* 8px */
  --cds-spacing-04: 0.75rem;   /* 12px */
  --cds-spacing-05: 1rem;      /* 16px */
  --cds-spacing-06: 1.5rem;    /* 24px */
  --cds-spacing-07: 2rem;      /* 32px */
  --cds-spacing-08: 2.5rem;    /* 40px */
  --cds-spacing-09: 3rem;      /* 48px */
  --cds-spacing-10: 4rem;      /* 64px */
  --cds-spacing-11: 5rem;      /* 80px */
  --cds-spacing-12: 6rem;      /* 96px */
  --cds-spacing-13: 10rem;     /* 160px */

  /* Layout constants */
  --header-h:      48px;
  --db-panel-w:    260px;
  --db-side-w:     360px;

  /* Phase colours (PMBOK — no Carbon equivalent) */
  --ph-initiating: #8b5cf6;
  --ph-planning:   #3b82f6;
  --ph-executing:  #10b981;
  --ph-monitoring: #f59e0b;
  --ph-closing:    #6366f1;

  /* Document category colours (project-specific) */
  --cat-plan:      #3b82f6;
  --cat-register:  #8b5cf6;
  --cat-baseline:  #10b981;
  --cat-report:    #f59e0b;
  --cat-log:       #6366f1;
  --cat-other:     #6b7280;
}
