/* ============================================================
   ORGAMAP — Design Tokens
   Single source of truth for color, type, space, radius, shadow.
   Load with: <link rel="stylesheet" href="../tokens.css">
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* — Brand color: navy is the anchor — */
  --c-navy-950: #0b1326;
  --c-navy-900: #111d36;
  --c-navy-800: #1a2744;   /* primary navy — Header, prestige */
  --c-navy-700: #233354;
  --c-navy-600: #2f4170;

  /* — Primary blue: CTAs, links, focused state — */
  --c-blue-700: #1e4fd8;
  --c-blue-600: #2563eb;   /* primary CTA */
  --c-blue-500: #3b82f6;
  --c-blue-100: #dbeafe;
  --c-blue-050: #eff5ff;

  /* — Secondary teal: data viz, charts — */
  --c-teal-800: #075e7b;
  --c-teal-700: #0891b2;   /* secondary data */
  --c-teal-500: #22b0d4;
  --c-teal-100: #cffafe;
  --c-teal-050: #ecfeff;

  /* — Semantic — */
  --c-green-700: #047857;
  --c-green-600: #059669;   /* positive */
  --c-green-100: #d1fae5;
  --c-green-050: #ecfdf5;

  --c-amber-700: #b45309;
  --c-amber-600: #d97706;   /* warning */
  --c-amber-100: #fef3c7;
  --c-amber-050: #fffbeb;

  --c-red-700: #b91c1c;
  --c-red-600: #dc2626;     /* critical */
  --c-red-100: #fee2e2;
  --c-red-050: #fef2f2;

  /* — Neutral ramp: cool grays calibrated against navy — */
  --c-ink-900: #0f172a;
  --c-ink-800: #1e293b;
  --c-ink-700: #334155;
  --c-ink-600: #475569;
  --c-ink-500: #64748b;
  --c-ink-400: #94a3b8;    /* muted text per brief */
  --c-ink-300: #cbd5e1;
  --c-ink-200: #e2e8f0;
  --c-ink-150: #eaeef4;
  --c-ink-100: #f1f5f9;
  --c-ink-050: #f8fafc;
  --c-paper:    #ffffff;

  /* Severity bands (table) */
  --band-critical-fg: #b91c1c; --band-critical-bg: #fee2e2; --band-critical-dot: #dc2626;
  --band-high-fg:     #b45309; --band-high-bg:     #fef3c7; --band-high-dot:     #d97706;
  --band-med-fg:      #a16207; --band-med-bg:      #fef9c3; --band-med-dot:      #eab308;
  --band-low-fg:      #047857; --band-low-bg:      #d1fae5; --band-low-dot:      #059669;

  /* — Type — */
  --font-display: 'Inter', 'IBM Plex Sans', system-ui, sans-serif;
  --font-body:    'Inter', 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --fs-display:   32px;
  --fs-h1:        24px;
  --fs-h2:        18px;
  --fs-h3:        15px;
  --fs-body:      14px;
  --fs-small:     12px;
  --fs-micro:     11px;

  --lh-tight:     1.2;  /* @kind other */
  --lh-base:      1.5;  /* @kind other */

  --tracking-cap: 0.08em;

  /* — Spacing scale — */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-6:  24px;
  --s-8:  32px;
  --s-12: 48px;
  --s-16: 64px;

  /* — Radius — */
  --r-input:  4px;
  --r-card:   8px;
  --r-modal:  12px;
  --r-pill:   999px;

  /* — Border — */
  --bd: 1px solid var(--c-ink-200);
  --bd-strong: 1px solid var(--c-ink-300);

  /* — Shadow (single subtle level per brief) — */
  --sh-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --sh-2: 0 4px 8px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --sh-pop: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.08);

  /* — Sidebar — */
  --w-sidebar: 240px;
  --h-topbar:  56px;
}

/* ----- Base resets used in showcase pages ----- */
.tk-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--c-ink-800);
  background: var(--c-ink-050);
  -webkit-font-smoothing: antialiased;
}
.tk-label {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--tracking-cap);
  text-transform: uppercase;
  color: var(--c-ink-500);
}
.tk-mono { font-family: var(--font-mono); font-size: 12px; }

/* Page wrapper used across all design-system cards */
.tk-page {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tk-page-head {
  display: flex; align-items: baseline; gap: 12px;
  border-bottom: 1px solid var(--c-ink-200);
  padding-bottom: 16px;
}
.tk-page-head h1 {
  margin: 0; font-size: 22px; font-weight: 700; color: var(--c-navy-800);
  letter-spacing: -0.01em;
}
.tk-page-head .tk-sub { color: var(--c-ink-500); font-size: 13px; }
