/*
==================================================================
GO DRIVER CHECK-IN — BRAND & TOUCH DESIGN TOKENS
Loaded before every other kiosk stylesheet. Colors come from the logo
(images/systemlogo.png): teal #00AC97, green #00DB49, white.

Contrast rules (WCAG 2.1):
  - White text never sits on --brand-teal or --brand-green (2.9:1 / 1.9:1).
    Use --brand-teal-strong (5.3:1) or --brand-teal-deep (8.3:1) under white text.
  - Teal text on white uses --brand-teal-strong; success text uses --brand-green-strong.
  - --brand-teal and --brand-green are for accents, borders, icons on dark
    surfaces, glows, and progress fills.
==================================================================
*/

:root {
  /* ----- Brand (logo) ----- */
  --brand-teal: #00ac97;
  --brand-teal-rgb: 0, 172, 151;
  --brand-teal-strong: #007a6b;
  --brand-teal-strong-rgb: 0, 122, 107;
  --brand-teal-deep: #00594d;
  --brand-teal-deep-rgb: 0, 89, 77;
  --brand-teal-50: #e8f7f5;
  --brand-teal-100: #ccefea;
  --brand-teal-200: #99ded5;

  --brand-green: #00db49;
  --brand-green-rgb: 0, 219, 73;
  --brand-green-strong: #007a2e;
  --brand-green-50: #e6fbee;
  --brand-green-100: #c2f5d3;

  /* ----- Neutrals (slate, cool to sit with teal) ----- */
  --ink: #17212b;
  --ink-rgb: 23, 33, 43;
  --ink-2: #344453;
  --ink-3: #5f6f7e;
  --line: #dce4ea;
  --line-strong: #c5d1d9;
  --surface: #ffffff;
  --surface-2: #f4f8f9;
  --surface-3: #e8eef2;

  /* ----- Semantic ----- */
  --danger: #c62828;
  --danger-50: #fdecec;
  --warning: #b26a00;
  --warning-50: #fff4e0;
  --success: var(--brand-green-strong);
  --success-50: var(--brand-green-50);
  --focus-ring: 0 0 0 4px rgba(var(--brand-teal-rgb), 0.45);

  /* ----- Check-in type (tell Delivery and Pickup apart at a glance) -----
     -strong carries white text (>= 5:1); -50 is the card tint. */
  --type-delivery-strong: var(--brand-teal-strong);
  --type-delivery-deep: var(--brand-teal-deep);
  --type-delivery-50: var(--brand-teal-50);
  --type-delivery-200: var(--brand-teal-200);
  --type-pickup-strong: #1d5fbf;
  --type-pickup-deep: #164a94;
  --type-pickup-50: #eaf1fc;
  --type-pickup-200: #a9c4ee;

  /* ----- Type (kiosk viewed at ~50-70cm) ----- */
  --font-body: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', 'Roboto', 'Segoe UI', system-ui, sans-serif;
  --text-sm: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --text-3xl: 3rem;

  /* ----- Touch ----- */
  --touch-min: 64px;
  --touch-comfort: 76px;
  --touch-hero: 96px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;

  /* ----- Elevation ----- */
  --shadow-1: 0 2px 8px rgba(var(--ink-rgb), 0.08);
  --shadow-2: 0 10px 28px rgba(var(--ink-rgb), 0.14);
  --shadow-3: 0 24px 60px rgba(var(--ink-rgb), 0.24);
  --press-scale: 0.97;
}

/* ----- Kiosk browser behavior (Chromium on a Linux touchscreen) -----
   Desktop Chromium ignores user-scalable=no for touchscreen pinch, and a horizontal
   swipe at the page edge navigates back. touch-action applies to every descendant (the
   effective value is the intersection with ancestors), so this blocks pinch and
   double-tap zoom everywhere while keeping scrolling; the signature canvas keeps its own
   touch-action: none. Launch flags in ops/ubuntu-kiosk/ are the second layer. */
html {
  touch-action: pan-x pan-y;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overscroll-behavior: none;
}
