/* Console styles (S5). The --k-* tokens live here; the shell and the shared parts (.k-*) in kit.css; each
   page's own classes in its p-*.css (prefixed .ps- / .pg- / .pf- / .po-). legacy.css holds the v4 classes the pages
   not yet rebuilt still use. Loads after /brand/theme/tokens.css + fonts.css. Dark is the default theme.
   Font sizes are tokens only: no px font-size outside this block (test/kit.test.mjs lints every sheet imported below). */
@import url("legacy.css");
@import url("kit.css");
@import url("p-streams.css");
@import url("p-games.css");
@import url("p-fleet.css");
@import url("p-ops.css");
@import url("p-orgs.css");
@import url("p-auth.css");
@import url("p-docs.css");

:root{
  --k-font:var(--ks-font-sans,"Outfit"),system-ui,sans-serif;
  --k-mono:"JetBrains Mono",ui-monospace,"SF Mono",SFMono-Regular,"Cascadia Mono",Menlo,Consolas,"Liberation Mono",monospace;

  /* type scale: size / weight / line height (S5 primitives §1). Outfit ships 400/500/600, so the h1's 700 renders 600. */
  /* readability pass (2026-10-21): 13 px is the floor (12 px carried 37-57% of the characters on the data pages) */
  --k-cap-size:13px;     --k-cap-weight:500;     --k-cap-lh:18px;
  --k-cell-size:14px;    --k-cell-weight:400;    --k-cell-lh:20px;
  --k-body-size:14px;    --k-body-weight:400;    --k-body-lh:20px;
  --k-section-size:16px; --k-section-weight:500; --k-section-lh:22px;
  --k-panel-size:18px;   --k-panel-weight:600;   --k-panel-lh:24px;
  --k-stat-size:20px;    --k-stat-weight:600;    --k-stat-lh:28px;
  --k-h1-size:28px;      --k-h1-weight:600;      --k-h1-lh:36px;
  /* bold emphasis inside running text (lofi "bold" = 600): a current/next/selected item's name, never a whole row */
  --k-strong-weight:600;
  --k-mono-size:13px;
  /* the sign-in card's controls (OAuth, email, Email me a code): bigger than the console's 32 px; 16 px text also
     stops iOS zooming into the email field */
  --k-auth-control-h:48px; --k-auth-size:16px;

  /* spacing, radii, fixed sizes */
  --k-s1:4px; --k-s2:8px; --k-s3:12px; --k-s4:16px; --k-s5:24px; --k-s6:32px; --k-s7:48px; --k-s8:64px;
  --k-r-card:8px; --k-r-btn:8px; --k-r-pill:999px; --k-r-input:6px; --k-r-dialog:12px;
  --k-control-h:32px; --k-row-h:36px; --k-pill-h:22px; --k-dest-h:18px; --k-tile-h:80px;
  --k-topbar-h:56px; --k-pagehead-h:56px; --k-sidebar-w:240px; --k-content-w:1200px;
  --k-icon:16px; --k-icon-sm:14px; --k-icon-xs:12px; --k-dot:8px;
  --k-bucket-w:4px; --k-bucket-gap:1px; --k-strip-h:16px; --k-spark-h:20px; --k-chart-h:160px;
  --k-textarea-h:80px; --k-empty-illus:64px; --k-dialog-w:720px; --k-drawer-w:480px; --k-rail-w:64px; --k-tabbar-h:60px;
  --k-label-w:104px; /* a phone table card's column names (J1-01) */

  /* colour roles, light (the review theme) */
  --k-bg:#F4F7FA; --k-surface:#FFFFFF; --k-text:#1A2B3C; --k-muted:#52637A; --k-border:#ADBCCA;
  --k-brand:#3A7CA5; --k-brand-strong:#1A4B6A; --k-on-brand:#FFFFFF;
  --k-ok:#1d8a4e;   --k-ok-soft:#E3F1E9;   --k-ok-ink:#14633A;
  --k-warn:#a96500; --k-warn-soft:#F5EBDD; --k-warn-ink:#7A4900;
  --k-bad:#b0234a;  --k-bad-soft:#F6E2E8;  --k-bad-ink:#8A1A3A;
  --k-idle:#8899AA; --k-idle-soft:#EDF0F3; --k-idle-ink:#5A6B7C;
  --k-hover:#EAF0F5;
  /* edges that identify a control (inputs, secondary buttons, the nav search) need 3:1 (WCAG 1.4.11); --k-border is
     for decorative edges (cards, rules, table boxes). nav-field = the search box fill, set off from the bar. */
  --k-field-border:#7C8EA0; --k-nav-field:var(--k-bg);
  /* the v4 pages (legacy.css) read the brand kit's --ks-* names: point the two this pass changes at the console roles */
  --ks-text-muted:var(--k-muted); --ks-border:var(--k-border);
  --k-link:var(--k-brand-strong);
  --k-logo-mono:#000000; /* Steam and X: black on light, white on dark (GL-28) */
  --k-scrim:color-mix(in srgb,var(--k-text) 34%,transparent);
  --k-edge-shadow:color-mix(in srgb,var(--k-text) 30%,transparent); /* a pinned table column over scrolled cells */
}
[data-theme="dark"]{
  /* colour roles, dark (the product default). -soft / -ink: soft = a dark tint of the status hue, ink = the status
     colour itself (contrast ≥ 4.5 on its soft: ok 6.9, warn 6.6, bad 5.3, idle 4.6). */
  --k-bg:#0D1B2A; --k-surface:#1B2D3F; --k-text:#E0E8F0; --k-muted:#9AABBC; --k-border:#3A5168;
  --k-brand:#7BC4E8; --k-brand-strong:#A8D8F0; --k-on-brand:#0D1B2A;
  --k-ok:#4cc283;   --k-ok-soft:#173326;   --k-ok-ink:#4cc283;
  --k-warn:#e3a43a; --k-warn-soft:#3a2d12; --k-warn-ink:#e3a43a;
  --k-bad:#f2708e;  --k-bad-soft:#3d1a28;  --k-bad-ink:#f2708e;
  --k-idle:#556677; --k-idle-soft:#24364a; --k-idle-ink:#A9B7C5;
  --k-hover:#22384d;
  --k-field-border:#5F7B96; --k-nav-field:var(--k-bg);
  --k-link:var(--k-brand);
  --k-logo-mono:#FFFFFF;
  --k-scrim:color-mix(in srgb,#050c14 62%,transparent);
  --k-edge-shadow:color-mix(in srgb,#02060a 80%,transparent);
}
