/* LastStop design system, layer 1 of 4: tokens (docs/REDESIGN-ROLLOUT.md section 4). Loaded after the older styles.css on
   every page, before base.css, components.css and frame.css. The company's own values arrive in the nonce'd :root block
   src/pages/brand.mjs writes into each page (brandStyle, after these files), so the values below are only the neutral
   fallback (no company known: the root chooser, the switched-off page) for both themes. Role names are fixed for every
   rollout stage: --bg --bg-glow --surface --surface-2 --line --line-2 --ink --ink-2 --muted --accent --accent-ink
   --accent-soft --accent-glow, the status pairs --ok/--ok-soft --rev/--rev-soft --bad/--bad-soft --pend/--pend-soft
   --neu/--neu-soft, --focus; plus the helpers --surface-3 --heading --accent-text (accent-colored text that reads on the
   cards) --accent-fill (a filled button's color, --accent-ink on it reads 4.5:1) --accent-deep --scrim --input-bg. */

:root {
  /* type: Space Grotesk for headings, figures and the dock's labels; Geist for body and UI */
  --font-head: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font: var(--font-body); /* the older stylesheet's family role, so unconverted pages read in Geist too */
  --fs-1: 13px; --fs-2: 15px; --fs-3: 17px; --fs-4: 22px; --fs-5: 28px; --fs-6: 40px; --fs-7: 56px;

  /* radii, spacing (4/8), motion */
  --r-1: 6px; --r-2: 10px; --r-3: 16px; --r-4: 24px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --t-fast: 150ms; --t: 200ms; --t-slow: 250ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* the frame's measures */
  --col: 760px;          /* the main column */
  --sb-w: 240px;         /* the sidebar (64 px collapsed) */
  --strip-h: 52px;       /* the phone's top strip */
  --dock-h: 74px;        /* the phone's dock */
  --panel-w: 480px;      /* the desktop detail panel */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --stripe-w: 3px;       /* the status stripe on top of a Home location card (2 px in light, J725) */

  /* neutral light (no company) */
  color-scheme: light;
  --bg: #f4f5f7; --bg-glow: rgba(43, 74, 120, .12);
  --surface: #ffffff; --surface-2: #f9fafb; --surface-3: #eceef2;
  --line: #e2e4e8; --line-2: #cbcfd6;
  --ink: #16181d; --ink-2: #474b54; --muted: #5f636e; --heading: #16181d;
  --accent: #2b4a78; --accent-deep: #1e365a; --accent-text: #1e365a; --accent-fill: #2b4a78; --accent-ink: #ffffff;
  --accent-soft: #e6ecf7; --accent-glow: rgba(43, 74, 120, .22);
  --ok: #1f7a3f; --ok-soft: #e0f1e5;
  --rev: #7a5300; --rev-soft: #f7ecc9;
  --bad: #a32d12; --bad-soft: #f8e2da;
  --pend: #2456a8; --pend-soft: #e3ebf8;
  --neu: #5f636e; --neu-soft: #eceef2;
  --focus: #1e365a;
  --scrim: rgba(22, 24, 29, .35);
  --input-bg: #ffffff;
  --shadow: 0 20px 48px rgba(22, 24, 29, .16);
  --shadow-sm: 0 8px 20px rgba(22, 24, 29, .10);
}

/* the theme's shadows (brandStyle never sets these; it sets every color role, so no color is repeated here: a rule on
   html[data-theme] outranks brandStyle's :root and would hide the company's own values) */
html[data-theme="dark"] {
  --shadow: 0 24px 60px rgba(0, 0, 0, .5);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .35);
}
html[data-theme="light"] {
  --stripe-w: 2px;
  --shadow: 0 20px 48px rgba(71, 81, 51, .18);
  --shadow-sm: 0 8px 20px rgba(71, 81, 51, .12);
}
/* J725 Quiet: the dimmer behind a sheet in light is a neutral gray, not the company tint (set on the body so it outranks
   brandStyle's :root --scrim; dark keeps the company value) */
html[data-theme="light"] body.ls-body { --scrim: rgba(0, 0, 0, .40); }
