/* The values every signed-in page and every sign-in page share: colours,
   text sizes, spacing and button heights (docs/style-guide.md). Loaded before
   app.css by the dashboard (pages/dashboard.html) and by the sign-in pages
   (routes/auth.py), so neither repeats a number. */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1c2128;
  --border: #21262d;
  --border-mid: #30363d;
  --text: #e6edf3;
  --text-2: #d1dae4;
  --muted: #9ba8b5;
  --subtle: #7a8694;
  /* Was referenced by apex's runner settings but never defined — a latent bug
     carried over from the original dashboard; defined here to match intent. */
  --text-dim: #7a8694;
  --green: #3fb950;
  --green-dim: #238636;
  --green-h: #2ea043;
  --blue: #1f6feb;
  --blue-soft: #58a6ff;
  --blue-h: #388bfd;
  --red: #f85149;
  --yellow: #d29922;
  --purple: #8957e5;
  --nav: 184px;
  --header-h: 66px;

  /* Type: one size for each kind of text (docs/style-guide.md). Every
     font-size in the dashboard is one of these, never a number. */
  --fs-label: 11px;    /* small capitals: section labels, badges, tags, table heads */
  --fs-meta: 12px;     /* grey notes, times, help under a field, small buttons */
  --fs-body: 13px;     /* text, buttons, fields, links */
  --fs-title: 14px;    /* the title of a card, a row or a tab */
  --fs-heading: 16px;  /* a dialog's or a page section's heading, a name shown large */
  --fs-page: 20px;     /* the page's title */
  --fs-figure: 28px;   /* a number shown large */

  /* Space: the only distances there are, between and inside things. 1-3px
     only for a hairline inside a badge or a nudge to align an icon. */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* Buttons: two heights, whatever their weight. */
  --btn-h: 32px;
  --btn-h-sm: 26px;
}

/* On a touch screen, controls are sized for a finger: 40px, and small ones
   32px. A mouse keeps the compact sizes above. */
@media (pointer: coarse) {
  :root {
    --btn-h: 40px;
    --btn-h-sm: 32px;
  }
}
