/*
 * Black Horse design tokens: the ONLY place for colors, the font and the scales
 * (D-120). Everything else (static/css/app.css) uses these variables. The brand is
 * black + the logo's neon blue (D-171: #0799f7, taken from brand/logo-source.jpeg; it
 * was gold before). The variables keep their old names (--bh-gold…, .btn-gold): «gold»
 * means THE BRAND COLOR, now blue.
 * Contrast (WCAG AA): text >= 4.5:1 on its background; checked for every pair below.
 */
:root {
  /* --- Brand ------------------------------------------------------------------------ */
  --bh-black: #0e0e0e;
  --bh-black-soft: #1c1c1c;
  --bh-ink: #141414;            /* body text: 17.4:1 on the page */
  --bh-gold: #0799f7;           /* THE brand blue: buttons, accents (ink on it: 6.1:1;
                                   white on it only 3.0:1, so never white text) */
  --bh-gold-rgb: 7, 153, 247;   /* the same, for the transparent shades */
  --bh-gold-light: #5cc2ff;     /* on black: 9.8:1 */
  --bh-gold-dark: #0062b3;      /* links and blue text on light: 5.8:1 */
  --bh-gold-darker: #004e8f;    /* hover of blue text: 8.0:1 */
  --bh-gold-tint: #e2f2fe;      /* soft blue background (dark blue on it: 5.4:1) */
  --bh-on-dark: #f4f1ea;        /* text on black */
  --bh-on-gold: #141414;        /* text on the blue */
  --bh-hero-glow: #0a1d33;      /* the home page's blue corner */

  /* --- Neutrals ------------------------------------------------------------------- */
  --bh-surface: #faf8f3;        /* the page */
  --bh-card: #ffffff;
  --bh-gray-50: #f5f3ee;
  --bh-gray-100: #ece9e1;
  --bh-gray-200: #ddd9cf;
  --bh-gray-300: #c8c3b7;
  --bh-gray-500: #8d897f;
  --bh-muted: #5f5d57;          /* secondary text: 6.2:1 */
  --bh-dark: #2a2a2a;           /* the dark (secondary) button */

  /* --- States: one color each, everywhere (badges, alerts, scan results) ---------- */
  --bh-success: #1d7a4a;        /* white on it: 5.3:1 */
  --bh-success-tint: #e3f3ea;
  --bh-success-ink: #14532d;
  --bh-warning: #f0b429;        /* ink on it: 9.9:1 */
  --bh-warning-tint: #fdf3dc;
  --bh-warning-ink: #6b4100;
  --bh-warning-hover: #e3a316;
  --bh-warning-press: #d39612;
  --bh-danger: #b42318;         /* white on it: 6.6:1 */
  --bh-danger-tint: #fbe7e5;
  --bh-danger-ink: #7a150e;
  --bh-info: #2b6a7c;           /* white on it: 6.1:1 (never Bootstrap's blue) */
  --bh-info-tint: #e2eff2;
  --bh-info-ink: #173f4a;
  --bh-incentive: var(--bh-gold);  /* incentive slots 5/10/15/20/25 */

  /* --- Type ------------------------------------------------------------------------ */
  --bh-font: "Cairo Variable", system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
  --bh-font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --bh-text-xs: 0.75rem;
  --bh-text-sm: 0.875rem;
  --bh-text-md: 1rem;
  --bh-text-lg: 1.125rem;
  --bh-text-xl: 1.375rem;
  --bh-text-2xl: 1.75rem;
  --bh-text-3xl: clamp(1.9rem, 1.2rem + 3vw, 3rem);

  /* --- Space, shape, depth, motion --------------------------------------------------- */
  --bh-space-1: 0.25rem;
  --bh-space-2: 0.5rem;
  --bh-space-3: 0.75rem;
  --bh-space-4: 1rem;
  --bh-space-5: 1.5rem;
  --bh-space-6: 2rem;
  --bh-space-7: 3rem;
  --bh-space-8: 4.5rem;
  --bh-radius-sm: 0.5rem;
  --bh-radius: 0.75rem;
  --bh-radius-lg: 1.25rem;
  --bh-radius-pill: 50rem;
  --bh-shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.06);
  --bh-shadow: 0 4px 16px rgba(20, 20, 20, 0.08);
  --bh-shadow-lg: 0 12px 32px rgba(20, 20, 20, 0.12);
  --bh-focus: 0 0 0 0.2rem rgba(var(--bh-gold-rgb), 0.55);
  --bh-touch: 2.75rem;          /* 44px: the smallest thing to tap on a phone */
  --bh-ease: 160ms ease-out;

  /* --- Bootstrap 5.3 reads its theme from these: one place, no scattered overrides -- */
  --bs-font-sans-serif: var(--bh-font);
  --bs-font-monospace: var(--bh-font-mono);
  --bs-body-font-family: var(--bh-font);
  --bs-body-color: var(--bh-ink);
  --bs-body-color-rgb: 20, 20, 20;
  --bs-body-bg: var(--bh-surface);
  --bs-emphasis-color: var(--bh-black);
  --bs-secondary-color: var(--bh-muted);
  --bs-secondary-bg: var(--bh-gray-50);
  --bs-tertiary-bg: var(--bh-gray-50);
  --bs-border-color: var(--bh-gray-200);
  --bs-border-color-translucent: rgba(20, 20, 20, 0.12);
  --bs-heading-color: var(--bh-black);

  --bs-primary: var(--bh-gold);
  --bs-primary-rgb: var(--bh-gold-rgb);
  --bs-primary-text-emphasis: var(--bh-gold-darker);
  --bs-primary-bg-subtle: var(--bh-gold-tint);
  --bs-primary-border-subtle: #a9d8fb;
  --bs-secondary: var(--bh-dark);
  --bs-secondary-rgb: 42, 42, 42;
  --bs-secondary-text-emphasis: var(--bh-ink);
  --bs-secondary-bg-subtle: var(--bh-gray-100);
  --bs-secondary-border-subtle: var(--bh-gray-300);
  --bs-success: var(--bh-success);
  --bs-success-rgb: 29, 122, 74;
  --bs-success-text-emphasis: var(--bh-success-ink);
  --bs-success-bg-subtle: var(--bh-success-tint);
  --bs-success-border-subtle: #a9d9bd;
  --bs-warning: var(--bh-warning);
  --bs-warning-rgb: 240, 180, 41;
  --bs-warning-text-emphasis: var(--bh-warning-ink);
  --bs-warning-bg-subtle: var(--bh-warning-tint);
  --bs-warning-border-subtle: #f3d48a;
  --bs-danger: var(--bh-danger);
  --bs-danger-rgb: 180, 35, 24;
  --bs-danger-text-emphasis: var(--bh-danger-ink);
  --bs-danger-bg-subtle: var(--bh-danger-tint);
  --bs-danger-border-subtle: #f0b4ad;
  --bs-info: var(--bh-info);
  --bs-info-rgb: 43, 106, 124;
  --bs-info-text-emphasis: var(--bh-info-ink);
  --bs-info-bg-subtle: var(--bh-info-tint);
  --bs-info-border-subtle: #a9cdd7;
  --bs-light: var(--bh-gray-50);
  --bs-light-rgb: 245, 243, 238;
  --bs-dark: var(--bh-black);
  --bs-dark-rgb: 14, 14, 14;

  --bs-link-color: var(--bh-gold-dark);
  --bs-link-color-rgb: 138, 106, 14;
  --bs-link-hover-color: var(--bh-gold-darker);
  --bs-link-hover-color-rgb: 116, 88, 10;
  --bs-focus-ring-color: rgba(var(--bh-gold-rgb), 0.55);
  --bs-border-radius: var(--bh-radius);
  --bs-border-radius-sm: var(--bh-radius-sm);
  --bs-border-radius-lg: var(--bh-radius-lg);
  --bs-border-radius-pill: var(--bh-radius-pill);
  --bs-box-shadow: var(--bh-shadow);
  --bs-box-shadow-sm: var(--bh-shadow-sm);
  --bs-box-shadow-lg: var(--bh-shadow-lg);
}
