/* Generated by dev/build-site.mjs from web/src/styles/tokens.css; edit that file, then run node dev/build-site.mjs. */
/* TorqWright design tokens (UI-STANDARDS.md section 2).
   Imported first in the app (web/src/main.jsx) and the Hub (web/hub/main.jsx); copied to website/tokens.css by dev/build-site.mjs
   (linked before site.css); the F119 email build reads the mirrored values in tokens.json.
   Safe to import before styles.css: the existing color names (bg, surface, surface-2, line, text, muted, accent,
   accent-ink, accent-soft, brand, brand-ink, navy, steel, good, bad, warn, info, info-soft, focus) are NOT redefined here.
   "tint" in the standards = the existing --accent-soft. Values mirrored in tokens.json. */
:root {
  /* text on orange / on accent buttons */
  --on-brand: #15253b; --on-accent: #ffffff;
  /* chrome (sidebar, hub header): dark in both themes */
  --chrome-bg: #15253b; --chrome-text: #e8edf3; --chrome-muted: #9daaba; --chrome-line: #2a4061; --chrome-active: #3b2b24;
  /* accent as text on --accent-soft and --bg */
  --accent-text: #8f3a05;
  /* soft tones (pill backgrounds); pair text = --good / --warn / --bad / --teal / --muted / --accent-text / --info */
  --good-soft: #e1f2e8; --warn-soft: #fdf0d5; --bad-soft: #fdecea; --teal: #1c6f63; --teal-soft: #dff3ef; --muted-soft: #e4e8ec;
  /* type: 7 steps, 12 px floor, 16 px on inputs */
  --fs-1: 12px; --fs-2: 13px; --fs-3: 14px; --fs-4: 16px; --fs-5: 18px; --fs-6: 22px; --fs-7: 30px;
  --fs-label-1: 7.5pt; --fs-label-2: 9pt; --fs-label-3: 10pt; --fs-label-4: 13pt;   /* printed equipment labels (physical units on purpose) */
  --lh-tight: 1.2; --lh-body: 1.45;
  /* spacing: 4 px grid */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  /* radii (50% stays for avatars) */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-pill: 999px;
  /* shadows + focus ring */
  --shadow-1: 0 1px 2px rgba(21, 37, 59, .06), 0 1px 3px rgba(21, 37, 59, .08);
  --shadow-2: 0 4px 16px rgba(21, 37, 59, .14);
  --shadow-3: 0 10px 30px rgba(21, 37, 59, .24);
  --ring: 0 0 0 3px var(--focus);
  /* z-index ladder */
  --z-under: -1; --z-raised: 1; --z-sticky: 10; --z-dropdown: 20; --z-sheet: 30; --z-dialog: 40; --z-toast: 50; --z-tour: 60; --z-jobbar: 25;
  /* density: normal */
  --row-h: 56px; --table-row-h: 44px; --card-pad: var(--sp-4);
  /* motion (F95) */
  --motion-fast: 150ms; --motion-base: 200ms; --motion-slow: 280ms; --ease: cubic-bezier(.2, .7, .2, 1); --spring: cubic-bezier(.34, 1.4, .5, 1);   /* F95: 150-300 ms */
  /* website display sizes */
  --site-h1: clamp(46px, 7vw, 92px); --site-h2: clamp(32px, 4.5vw, 46px); --site-body: 17px;
}
/* Dark: same selectors as styles.css (device setting unless the person chose a theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent-text: #ffa772; --on-accent: #15253b;
    --good-soft: #12301f; --warn-soft: #3a2c0f; --bad-soft: #3d1b18; --teal: #5fd0bf; --teal-soft: #12332e; --muted-soft: #1c3049;
    --chrome-bg: #0a111b;
    --shadow-1: none; --shadow-2: none; --shadow-3: none;
  }
}
:root[data-theme="dark"] {
  --accent-text: #ffa772; --on-accent: #15253b;
  --good-soft: #12301f; --warn-soft: #3a2c0f; --bad-soft: #3d1b18; --teal: #5fd0bf; --teal-soft: #12332e; --muted-soft: #1c3049;
  --chrome-bg: #0a111b;
  --shadow-1: none; --shadow-2: none; --shadow-3: none;
}
:root[data-density="compact"] { --row-h: 44px; --table-row-h: 36px; --card-pad: var(--sp-3); }
/* v0.41 S0 (D17): a small input keeps --fs-3 on wider screens and gets 16 px on phones (iOS zooms into anything smaller) */
:root { --fs-input: var(--fs-3); }
@media (max-width: 600px) { :root { --fs-input: var(--fs-4); } }
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) { --motion-fast: 0ms; --motion-base: 0ms; --motion-slow: 0ms; }
}
:root[data-motion="reduce"] { --motion-fast: 0ms; --motion-base: 0ms; --motion-slow: 0ms; }   /* v0.41 M1: the Reduce motion setting (My settings) */
/* v0.41.1: printed paper (.paper: estimates, invoices, statements) keeps the light values in the dark theme */
.paper {
  --bg: #eef0f2; --surface: #ffffff; --surface-2: #e4e8ec; --line: #d3d9df; --text: #14202e; --muted: #56636f; --accent: #b14a0c; --accent-ink: #ffffff; --accent-soft: #fde9dc;
  --good: #17683b; --bad: #c2362b; --warn: #855400; --info: #2563a8; --info-soft: #e3edf9; --accent-text: #8f3a05; --good-soft: #e1f2e8; --warn-soft: #fdf0d5; --bad-soft: #fdecea; --teal: #1c6f63; --teal-soft: #dff3ef; --muted-soft: #e4e8ec;
}
