/*
 * ByteRoute design tokens, Creator Canvas direction (Orange Playground palette)
 * Load first, before byteroute-revamp.css or byteroute-dashboard.css.
 * Tokens are scoped to .br-theme so they never reach customer bio pages or QR output.
 */
.br-theme {
  /* Color: light */
  --br-ivory: #FBF7F0;          /* page background */
  --br-surface: #FFFFFF;        /* cards, inputs, menus */
  --br-sand: #F4EEE5;           /* sunk panels, pill tracks, hover rows */
  --br-sand-2: #EFE8DE;         /* pressed ghost, disabled fill */
  --br-line: #E8DFD3;           /* card borders, dividers */
  --br-line-soft: #F1EBE3;      /* row dividers */
  --br-line-strong: #8C8178;    /* input borders, 3.6:1 on ivory */
  --br-ink: #1B1714;            /* text, dark bands, active nav */
  --br-ink-2: #4A413A;          /* secondary text, 9.3:1 */
  --br-ink-3: #6B6058;          /* muted text, 5.7:1 */
  --br-ink-raised: #2A2420;     /* chips on ink */
  --br-ink-line: #3A332D;       /* borders on ink, dark hover */
  --br-on-ink-2: #CFC6BD;       /* secondary text on ink, 10.6:1 */
  --br-on-ink-3: #A89D93;       /* muted text on ink, 6.7:1 */

  --br-orange: #FE6300;         /* brand: buttons, highlights. Text on it must be ink (5.9:1). Never white (3.0:1). */
  --br-orange-hover: #E85A00;
  --br-orange-display: #E35500; /* orange text 24px and larger only (3.5:1) */
  --br-orange-text: #B23F00;    /* links and small orange text (5.5:1) */
  --br-orange-tint: #FFE3D0;    /* chips, icon tiles, notes */
  --br-orange-tint-text: #8A3300;
  --br-orange-note-text: #5C2300;
  --br-orange-disabled: #FFC7A3;/* loading and disabled primary, ink-2 text */

  /* Fixed in both modes */
  --br-on-orange: #1B1714;      /* text and icons on orange */
  --br-night: #1B1714;          /* dark bands, footer, featured cards, toasts */
  --br-on-night: #FBF7F0;

  --br-success: #1C6B3A;  --br-success-bg: #E3F6EA;  --br-success-strong: #0F4D28;
  --br-error: #B42318;    --br-error-bg: #FDECEA;    --br-error-strong: #7A1A12;  --br-error-line: #F3C5C0;
  --br-success-on-ink: #7FD9A0;

  /* Type */
  --br-font-display: "Gabarito", "Figtree", system-ui, sans-serif;
  --br-font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --br-font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --br-fs-display-xl: clamp(52px, 7vw, 96px);
  --br-fs-display-l: clamp(36px, 4.4vw, 56px);
  --br-fs-display-m: clamp(30px, 3.4vw, 44px);
  --br-fs-heading: clamp(22px, 2.2vw, 30px);
  --br-fs-lead: clamp(17px, 1.5vw, 21px);
  --br-fs-body: 17px;
  --br-fs-ui: 16px;   /* inputs never below 16px */
  --br-fs-small: 14px;
  --br-fs-micro: 13px;
  --br-lh-display: 0.95;
  --br-lh-body: 1.55;
  --br-tracking-display: -0.035em;

  /* Space (4px base) */
  --br-s-1: 4px;  --br-s-2: 8px;  --br-s-3: 12px; --br-s-4: 16px; --br-s-5: 20px;
  --br-s-6: 24px; --br-s-8: 32px; --br-s-10: 40px; --br-s-12: 48px; --br-s-16: 64px;
  --br-s-18: 72px; --br-s-24: 96px;
  --br-gutter: 16px;            /* phone side gutter */
  --br-container: 1280px;

  /* Shape */
  --br-r-pill: 999px; --br-r-2xl: 48px; --br-r-xl: 36px; --br-r-lg: 28px;
  --br-r-md: 20px;    --br-r-sm: 12px;

  /* Elevation: floating layers only */
  --br-shadow-float: 0 24px 48px rgba(27, 23, 20, 0.14);
  --br-shadow-phone: 0 24px 48px rgba(27, 23, 20, 0.18);
  --br-scrim: rgba(27, 23, 20, 0.45);

  /* Motion */
  --br-dur-fast: 150ms; --br-dur: 200ms; --br-dur-slow: 250ms;
  --br-ease: cubic-bezier(0.2, 0, 0, 1);

  /* Focus */
  --br-focus: 3px solid var(--br-ink);
  --br-focus-offset: 3px;

  /* Sizing */
  --br-tap: 44px; --br-control: 52px; --br-control-lg: 56px;

  color-scheme: light;
}

/* Dark mode, dashboard only. Confirm the default theme's dark hook in staging and keep only the matching selector. */
.dark .br-theme.br-dash, .br-theme.br-dash.dark, [data-bs-theme="dark"] .br-theme.br-dash, [data-theme="dark"] .br-theme.br-dash {
  --br-ivory: #141110;
  --br-surface: #1E1A17;
  --br-sand: #2A2420;
  --br-sand-2: #332C27;
  --br-line: #3A332D;
  --br-line-soft: #2F2924;
  --br-line-strong: #8C8178;
  --br-ink: #FBF7F0;
  --br-ink-2: #CFC6BD;
  --br-ink-3: #A89D93;
  --br-orange-text: #FF8A45;
  --br-orange-display: #FF8A45;
  --br-orange-tint: #3D2414;
  --br-orange-tint-text: #FFB98A;
  --br-success: #7EE2A8; --br-success-bg: #12301F;
  --br-error: #FF8A80;   --br-error-bg: #3A1512;
  --br-focus: 3px solid var(--br-orange);
  color-scheme: dark;
}
