/* PGOS Design System tokens v1.1 (Nov 21, 2026).
   Approved by Bill. The single source for color, type, and spacing.
   Fonts: Proxima Nova (display) + Nunito Sans (body). Never Inter, never serif.
   v1.1: eyebrow 13px (never below 13px), dark-theme cream panel tokens added, dark theme approved. */

:root {
  /* Brand */
  --color-indigo:#001D3D;   /* wordmark, headings, structure */
  --color-cobalt:#0B4B88;   /* links, chart accent */
  --color-citrine:#FFC61B;  /* ONE job: the single primary button + the logo accent */
  --color-graphite:#3A3A3A; /* body text */
  --color-canvas:#F4F1EA;   /* app background */
  --color-cream:#F5E6C5;    /* learn, coach, Ask PGOS AI panels */
  --color-card:#FFFFFF;
  --color-on-indigo:#FFFFFF; /* text on an indigo fill; stays light in both themes */
  --color-line:#E6E0D4;
  --color-heading:#0B1F3A;
  --color-muted:#5C5C5C;

  /* Text on cream panels (light theme) */
  --color-cream-heading:#001D3D;
  --color-cream-text:#3A3A3A;
  --color-cream-link:#0B4B88;

  /* Status — text on a pale fill. Never color alone. */
  --status-ontrack-text:#0B5E3F;  --status-ontrack-fill:#E3F4EC;
  --status-watch-text:#7A4D00;    --status-watch-fill:#FFF4D6;
  --status-offtrack-text:#A3191F; --status-offtrack-fill:#FDE7E7;
  --status-idle-text:#3A3A3A;     --status-idle-fill:#EFEAE2;

  /* Chart series (colorblind-safe, cobalt-led) */
  --chart-ink:#3A3A3A; --chart-muted:#5C5C5C; --chart-cobalt:#0B4B88;
  --chart-line:#8B93A0; --chart-surface:#FFFFFF; --chart-track:#E6E0D4;

  /* Type */
  --font-display:"proxima-nova", "Nunito Sans", sans-serif;
  --font-body:"Nunito Sans", sans-serif;
  --text-display:32px; --leading-display:40px;
  --text-h1:28px; --leading-h1:36px;
  --text-h2:22px; --leading-h2:28px;
  --text-h3:18px; --leading-h3:24px;
  --text-body:16px; --leading-body:24px;
  --text-small:14px; --leading-small:20px;
  --text-eyebrow:13px; --leading-eyebrow:16px; /* never below 13px */

  /* Space */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:24px; --space-6:32px; --space-7:48px; --space-8:64px;

  /* Shape */
  --radius-card:12px; --radius-input:8px; --radius-button:8px; --radius-pill:999px;
  --tap-min:44px;
  --shadow-card:0 1px 2px rgba(11,31,58,.06), 0 8px 24px rgba(11,31,58,.04);

  /* Motion */
  --ease:cubic-bezier(.2,0,0,1); --dur-fast:120ms; --dur:200ms; --dur-slow:320ms;

  /* Layout */
  --content-max:1120px; --sidebar-w:240px;
}

[data-theme="dark"] {
  /* Softened dark, approved Nov 24. Replaces the navy dark. */
  --color-canvas:#1C1C1E; --color-card:#2C2C2E; --color-on-indigo:#FFFFFF; --color-line:#3A3A3C;
  --color-heading:#FFFFFF; --color-graphite:#EBEBF0; --color-muted:#AEAEB2;
  --color-cream:#3A3325;            /* dark cream panel */
  --color-cream-heading:#F5E6C5;    /* headings on cream, dark */
  --color-cream-text:#EBEBF0;       /* body text on cream, dark */
  --color-cream-link:#6CB4FF;       /* links on cream, dark */
  --chart-ink:#EBEBF0; --chart-muted:#AEAEB2; --chart-surface:#2C2C2E; --chart-track:#242426;
  --status-ontrack-text:#6FDC9C; --status-ontrack-fill:#1E3A2A;
  --status-watch-text:#FFD27A;   --status-watch-fill:#3D3115;
  --status-offtrack-text:#FF9A94; --status-offtrack-fill:#46201F;
  --status-idle-text:#D1D1D6;    --status-idle-fill:#3A3A3C;
  --shadow-card:none;
}
