/* Design tokens: the ONE place for the look of Valero One (DECISIONS #119, rules in docs/DESIGN-SYSTEM.md, live examples at /style-guide.html).
   Look "Calm" (Sami 2026-11-08): near-white page, white cards, neutral surfaces; colour lives in buttons, icon circles and small marks.
   Blue = action (main buttons, the open menu item, links). Orange belongs to the logo only, never a button (too close to red Delete).
   New code reads these names. The old names in app.css / ui.css (--ink, --purple, ...) still point here. */
:root {
  /* Surfaces and lines: neutral, almost white */
  --c-page: #F6F7F9; /* a touch of grey so white cards stand out (Sami 2026-11-09) */
  --c-card: #FFFFFF;
  --c-line: #E8EBF0;
  --c-card-line: #DCE0E7; /* the edge of every card / box / panel: clear, never loud (Sami 2026-11-09) */
  --c-line-strong: #CDD3DE;
  --c-select: #F4F6FA;
  --c-select-line: #E3E7EF;
  --c-tile: #F8F9FB;

  /* Text */
  --c-ink: #1B2233;
  --c-text: #343D52;
  --c-muted: #667089;
  --c-faint: #939BB0;

  /* Action blue: main buttons, links, focus */
  --c-btn: #3B6FE0;
  --c-btn-hover: #2F5BC0;
  --c-accent: #3B6FE0;
  --c-accent-text: #2F5BC0;
  --c-accent-soft: #F1F5FD;
  --c-accent-line: #D6E1F8;
  --c-nav-on: #E4ECFB; /* the open menu item: the whole cell takes this, no side line */

  /* Status: one of each */
  --c-success: #1E6B3A; --c-success-soft: #E6F4EA; --c-success-line: #CFE6D6;
  --c-danger: #B3261E;  --c-danger-soft: #FBE9E7;  --c-danger-line: #F3CDC8;
  --c-warning: #8A5A00; --c-warning-soft: #FBF1DA; --c-warning-line: #F1DDAA;
  --c-info: #1F4E8C;    --c-info-soft: #E6F0FB;    --c-info-line: #CFE0F4;
  --c-neutral: #6B7385; --c-neutral-soft: #F1F2F5;

  /* Icon tints: for icon circles and soft card washes only (KPI cards, section icons). Never for text blocks or big bands. */
  --tint-blue: #3B6FE0;   --tint-blue-soft: #F6F9FE;   --tint-blue-line: #E1EAFB;
  --tint-amber: #D98A0B;  --tint-amber-soft: #FFFAEF;  --tint-amber-line: #F5E8C4;
  --tint-orange: #EA6A1F; --tint-orange-soft: #FFF5EE; --tint-orange-line: #F8DEC9;
  --tint-green: #2E9E5B;  --tint-green-soft: #F3FAF6;  --tint-green-line: #D5EBDD;
  --tint-pink: #D6457A;   --tint-pink-soft: #FEF4F7;   --tint-pink-line: #F4D6DF;
  --pink: #8a4486; --pink-soft: #f6ecf6; --pink-line: #ecd6ea;
  --teal: #23707a; --teal-soft: #e4f3f4; --teal-line: #c8e6e8;

  /* Type */
  --fs-kpi: 28px; --fs-title: 20px; --fs-section: 16px; --fs-body: 14px; --fs-table: 13px; --fs-hint: 12px;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600;

  /* Radius */
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-pill: 999px;

  /* Spacing (multiples of 4) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;

  /* Page width (Sami 2026-11-17, look B of docs/prototypes/page-width): work and reading pages stop here, centred; lists, tables and boards use the full width */
  --page-focus: 1100px;

  /* Depth: cards get a whisper of shadow; the stronger shadow is only for things that float */
  --card-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-pop: 0 8px 24px rgba(16, 24, 40, .12), 0 2px 6px rgba(16, 24, 40, .08);
  --focus-ring: 0 0 0 3px rgba(59, 111, 224, .22);

  /* Buttons: the main one is solid blue with a soft glow; the second kind is a light blue fill with blue text */
  --btn-shadow: 0 2px 6px rgba(59, 111, 224, .3); --btn-press: translateY(1px);
  --btn2-bg: #EDF2FD; --btn2-ink: #2F5BC0; --btn2-border: #CBD9F6; --btn2-bw: 1px;
  --btn2-hover-bg: #E0E9FB; --btn2-hover-border: #9DB8EE; --btn2-shadow: none;
}
/* Tablets (touch): no text under 13px, the hint size steps up to the table size (quiet look B, Sami 2026-11-13, DECISIONS #238) */
@media (hover: none) and (pointer: coarse) { :root { --fs-hint: var(--fs-table); } }

