/* ==========================================================================
   Puntzone.co — design system
   Tokens, components and layout transcribed from the Figma source.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-050: #f5f7ff;

  /* Ink & neutrals */
  --ink:      #111827;
  --navy:     #0b1b3a;
  --navy-line:#1e3a5f;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --label:    #8f9cae;

  /* Surfaces */
  --bg:          #f7f9fc;
  --surface:     #ffffff;
  --surface-alt: #f8fafc;
  --surface-alt2:#f3f4f6;

  /* Borders */
  --border:        #e5e7eb;
  --border-strong: #cbd5e1;
  --border-card:   #d1d9e5;
  --border-odds:   #d9e3f2;

  /* Status */
  --red-700: #b91c1c;
  --red-300: #fca5a5;
  --red-100: #fee2e2;
  --green-700:#15803d;
  --green-100:#dcfce7;
  --green-300:#86efac;
  --amber-700:#b45309;
  --amber-100:#fef3c7;
  --amber-300:#fcd34d;

  /* Radii */
  --r-4: 4px;
  --r-6: 6px;
  --r-8: 8px;
  --r-10:10px;
  --r-12:12px;
  --r-16:16px;
  --r-20:20px;
  --r-pill: 999px;

  /* Shadows */
  --sh-hero: 0 10px 28px -10px rgba(15, 23, 42, .08);
  --sh-card: 0 10px 24px -10px rgba(15, 23, 42, .07);
  --sh-soft: 0 10px 22px -10px rgba(15, 23, 42, .06);

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --page-max: 1440px;
  --gutter: 48px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--blue-600);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-8);
  font-family: var(--font-display);
  font-weight: 700;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.stack { display: flex; flex-direction: column; }
.row   { display: flex; flex-direction: row; align-items: center; }
.row-between { display: flex; flex-direction: row; align-items: center; justify-content: space-between; }
.grow { flex: 1 1 0; min-width: 0; }

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */
.t-display { font-family: var(--font-display); }
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--blue-600);
}
.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.28;
}
.page-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.lede { font-size: 15px; color: var(--gray-500); line-height: 1.5; }
.muted { color: var(--gray-500); }

/* --------------------------------------------------------------------------
   5. Utility bar (responsible wagering)
   -------------------------------------------------------------------------- */
.utility-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.utility-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 37px;
}
.utility-bar__left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.utility-bar__right { display: flex; align-items: center; gap: 8px; }
.utility-bar__age {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: var(--red-700);
  white-space: nowrap;
}
.utility-bar__msg { font-size: 11px; color: var(--gray-500); }
.utility-bar__msg a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.utility-bar__msg a:hover { color: var(--blue-600); }
.utility-bar__register { font-size: 11px; color: var(--gray-500); white-space: nowrap; }

.badge-alert {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-6);
  background: var(--red-100);
  border: 1px solid var(--red-300);
  color: var(--red-700);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
a.badge-alert:hover { background: #fecaca; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 60;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  min-height: 68px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__badge {
  width: 36px; height: 36px;
  border-radius: var(--r-10);
  background: var(--blue-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  flex: none;
}
.logo__word {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--ink);
}

.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--blue-600); }
.main-nav a[aria-current="page"] { color: var(--blue-600); border-bottom-color: var(--blue-600); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.burger {
  width: 36px; height: 36px;
  border-radius: var(--r-8);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.burger:hover { background: var(--surface-alt2); }

/* Account chip (logged in) */
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
}
.account-chip:hover { border-color: var(--blue-600); }
.account-chip__avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  flex: none;
}
.account-chip__name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu { position: relative; }
.account-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 232px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-12);
  box-shadow: var(--sh-card);
  padding: 8px;
  display: none;
  z-index: 70;
}
.account-menu__panel[data-open="true"] { display: block; }
.account-menu__head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.account-menu__head strong { display: block; font-family: var(--font-display); font-size: 13px; }
.account-menu__head span { display: block; font-size: 12px; color: var(--gray-500); margin-top: 2px; word-break: break-all; }
.account-menu__panel a,
.account-menu__panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: var(--r-8);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.account-menu__panel a:hover,
.account-menu__panel button:hover { background: var(--surface-alt); color: var(--blue-600); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  flex-direction: column;
  background: var(--surface);
}
.mobile-drawer[data-open="true"] { display: flex; }
.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  overflow-y: auto;
}
.mobile-drawer__links { display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.mobile-drawer__links a:first-child { border-bottom: 0; }
.mobile-drawer__links a[aria-current="page"] {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--blue-600);
  border-bottom: 0;
}
.mobile-drawer__links a[aria-current="page"] svg { color: var(--blue-600); }
.mobile-drawer__links svg { color: var(--gray-500); flex: none; }
.mobile-drawer__actions { display: flex; flex-direction: column; gap: 10px; }

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--r-12);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--blue-700); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn--secondary:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn--ghost-light { background: var(--surface); color: var(--ink); }
.btn--ghost-light:hover { background: #eef2ff; }
.btn--lg { font-size: 14px; padding: 12px 18px; }
.btn--xl { font-size: 14px; padding: 15px 18px; border-radius: var(--r-8); }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn--busy { position: relative; color: transparent !important; }
.btn--busy::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  animation: spin .6s linear infinite;
}
.btn--secondary.btn--busy::after { border-color: rgba(17,24,39,.25); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   8. Cards, badges, chips
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--r-16);
  box-shadow: var(--sh-soft);
}
.panel {
  background: var(--surface);
  border-radius: var(--r-20);
  padding: 16px;
}
.panel--alt { background: var(--surface-alt); }
.panel--alt2 { background: var(--surface-alt2); }
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
}
.badge--upper { text-transform: uppercase; }
.badge--neutral { background: var(--surface-alt2); color: var(--gray-700); font-weight: 800; }
.badge--sm { padding: 2px 8px; }

.icon-tile {
  width: 32px; height: 32px;
  border-radius: var(--r-10);
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon-tile--lg { width: 40px; height: 40px; border-radius: var(--r-12); }
.icon-tile--xl { width: 64px; height: 64px; border-radius: 50%; background: var(--blue-50); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--blue-600);
  white-space: nowrap;
  flex: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 2px; }

.divider { height: 1px; background: var(--border); border: 0; width: 100%; }

/* --------------------------------------------------------------------------
   9. Hero blocks
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-20);
  box-shadow: var(--sh-hero);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(37, 99, 235, .18);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.70) 100%);
  z-index: -1;
}
.hero--soft::after { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.60) 100%); }
.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px;
  min-height: 454px;
}
.hero__copy { display: flex; flex-direction: column; gap: 20px; flex: 1 1 0; min-width: 0; }
.hero__title {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 44px;
  font-weight: 800;
  color: #fff;
}
.hero__text { font-size: 15px; line-height: 22px; color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__aside {
  width: 320px;
  flex: none;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-16);
  box-shadow: var(--sh-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__aside h3 { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.hero__aside p { font-size: 14px; line-height: 22px; color: var(--gray-600); }

.hero-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-16);
  box-shadow: var(--sh-card);
  background-size: cover;
  background-position: center;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  min-height: 220px;
}
.hero-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.60) 100%);
  z-index: -1;
}
.hero-band h2 { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: #fff; }
.hero-band p { font-size: 13px; color: #fff; }

/* --------------------------------------------------------------------------
   10. Event & market rows
   -------------------------------------------------------------------------- */
.event-grid { display: flex; gap: 16px; align-items: stretch; }
.event-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--r-16);
  box-shadow: var(--sh-soft);
}
.event-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--surface-alt);
  border-radius: var(--r-12);
}
.event-card__league {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--blue-600);
}
.event-card__time { font-size: 12px; font-weight: 700; color: var(--blue-600); white-space: nowrap; }
.event-card__teams { display: flex; flex-direction: column; gap: 6px; }
.event-card__team { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.event-card__vs { font-size: 12px; color: var(--gray-400); }
.event-card__label { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--gray-500); }

.odds-row { display: flex; gap: 12px; align-items: stretch; }
.odds-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  background: var(--blue-050);
  border: 1.5px solid var(--border-odds);
  border-radius: var(--r-12);
  text-align: left;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.odds-btn__name { font-size: 12px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odds-btn__price { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--blue-600); flex: none; }
.odds-btn:hover { border-color: var(--blue-600); background: #eef3ff; }
.odds-btn.is-selected { background: var(--blue-600); border-color: var(--blue-600); }
.odds-btn.is-selected .odds-btn__name,
.odds-btn.is-selected .odds-btn__price { color: #fff; }

.market-list { background: var(--surface); border-radius: var(--r-16); box-shadow: var(--sh-soft); overflow: hidden; }
.market-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.market-row:last-child { border-bottom: 0; }
.market-row:nth-child(odd) { background: var(--surface-alt); }
.market-row__event { display: flex; align-items: center; gap: 12px; width: 220px; flex: none; }
.market-row__time { font-size: 11px; color: var(--blue-600); }
.market-row__name { font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.market-row .odds-row { flex: 1 1 0; min-width: 0; }
.market-row .odds-btn { padding: 10px 12px; }
.market-row .odds-btn__name { font-weight: 600; }
.market-row .odds-btn__price { font-size: 14px; }

.racing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.racing-row:last-child { border-bottom: 0; }
.racing-row__left { display: flex; align-items: center; gap: 12px; }
.racing-row__name { font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.racing-row__tip { font-size: 11px; color: var(--gray-400); }
.racing-row__right { display: flex; align-items: center; gap: 12px; }
.racing-row__countdown { font-size: 13px; font-weight: 800; color: var(--blue-600); }

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 24px; }
.form-section { display: flex; flex-direction: column; gap: 24px; }
.form-section__head { display: flex; flex-direction: column; gap: 8px; padding: 12px 0 0; }
.form-section__title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 500; color: var(--gray-500); }
.field__hint { font-size: 12px; color: var(--gray-500); }
.field__error {
  font-size: 12px;
  font-weight: 600;
  color: var(--red-700);
  display: none;
}
.field.is-invalid .field__error { display: block; }
.field.is-invalid .input,
.field.is-invalid .input-wrap { border-color: var(--red-700); }

.input,
.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-8);
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--gray-400); }
.input:focus,
.input-wrap:focus-within {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
  outline: none;
}
.input-wrap .input {
  border: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
  flex: 1 1 0;
  min-width: 0;
}
.input-wrap .input:focus { box-shadow: none; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }

.input-prefix {
  font-size: 14px;
  color: var(--gray-500);
  padding-right: 8px;
  border-right: 1px solid var(--border);
  flex: none;
}
.pw-toggle {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  flex: none;
}
.pw-toggle:hover { text-decoration: underline; text-underline-offset: 2px; }

.checkbox-row { display: flex; align-items: flex-start; gap: 12px; }
.checkbox-row input[type="checkbox"] {
  appearance: none;
  width: 18px; height: 18px;
  flex: none;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-4);
  background: var(--surface);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.checkbox-row input[type="checkbox"]:checked {
  background: var(--blue-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center no-repeat;
  border-color: var(--blue-600);
}
.checkbox-row label { font-size: 14px; color: var(--gray-500); line-height: 1.35; cursor: pointer; }
.checkbox-row a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.checkbox-row.is-invalid input[type="checkbox"] { border-color: var(--red-700); }

.split-fields { display: flex; gap: 16px; }
.split-fields > * { flex: 1 1 0; min-width: 0; }

.form-alert {
  display: none;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-8);
  font-size: 13px;
  line-height: 1.45;
}
.form-alert[data-visible="true"] { display: flex; }
.form-alert--error { background: var(--red-100); border: 1px solid var(--red-300); color: var(--red-700); }
.form-alert--success { background: var(--green-100); border: 1px solid var(--green-300); color: var(--green-700); }
.form-alert--info { background: var(--blue-50); border: 1px solid #bfdbfe; color: var(--blue-700); }

/* Auth pages */
.auth-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 80px var(--gutter);
  background: var(--bg);
}
.auth-body--wide { padding: 48px var(--gutter); }
.auth-head { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.auth-head__eyebrow { font-size: 13px; font-weight: 700; color: var(--blue-600); }
.auth-head__title { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--navy); }
.auth-head__sub { font-size: 15px; color: var(--gray-500); }
.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-12);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.auth-card--wide { max-width: 640px; }
.auth-foot { text-align: center; font-size: 14px; color: var(--gray-500); }
.auth-foot a { color: var(--blue-600); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; text-underline-offset: 2px; }

.code-inputs { display: flex; justify-content: center; gap: 10px; }
.code-inputs input {
  width: 48px; height: 56px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-8);
}
.code-inputs input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
  outline: none;
}

/* --------------------------------------------------------------------------
   12. Content pages (legal / info)
   -------------------------------------------------------------------------- */
.doc-layout { display: flex; gap: 24px; align-items: flex-start; }
.doc-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.doc-aside { width: 320px; flex: none; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }

.prose { display: flex; flex-direction: column; gap: 12px; }
.prose h2 { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--ink); }
.prose h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink); }
.prose p, .prose li { font-size: 14px; line-height: 1.6; color: var(--gray-600); }
.prose ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }
.prose a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.info-grid--2 { grid-template-columns: repeat(2, 1fr); }
.info-grid--4 { grid-template-columns: repeat(4, 1fr); }
.info-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--r-16);
  box-shadow: var(--sh-soft);
}
.info-card h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.info-card p { font-size: 13px; line-height: 1.55; color: var(--gray-500); }

.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gray-500);
  background: var(--surface-alt);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .4px;
}
.data-table td { color: var(--gray-600); }
.data-table tr:last-child td { border-bottom: 0; }

.accordion { display: flex; flex-direction: column; gap: 8px; }
.accordion__item { border: 1px solid var(--border); border-radius: var(--r-12); background: var(--surface); overflow: hidden; }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.accordion__trigger:hover { background: var(--surface-alt); }
.accordion__trigger svg { flex: none; transition: transform .2s ease; color: var(--gray-500); }
.accordion__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.accordion__panel { padding: 0 16px 16px; font-size: 14px; line-height: 1.6; color: var(--gray-600); }
.accordion__panel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #cbd5e1; margin-top: auto; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.footer-brand { padding: 64px 0 48px; }
.footer-brand__row { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand__desc { width: 280px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand__desc p { font-size: 13px; line-height: 1.5; color: #cbd5e1; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; }
.footer-logo__badge {
  width: 24px; height: 24px;
  border-radius: var(--r-6);
  background: var(--blue-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
}
.footer-logo__word { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: #fff; }

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}
.footer-col a { font-size: 13px; color: #cbd5e1; }

.footer-line { height: 1px; background: var(--navy-line); border: 0; }
.footer-line--light { background: var(--border); opacity: .18; }

.footer-disclosures { padding: 40px 0; display: flex; flex-direction: column; gap: 32px; }
.footer-disclosures h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: #cbd5e1;
}
.payment-logos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.payment-logos img { height: 40px; width: auto; }
.debit-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.debit-row p { font-size: 13px; color: #cbd5e1; }
.badge-debit {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--surface-alt2);
  color: var(--gray-700);
  font-size: 10px;
  font-weight: 800;
}

.footer-operator { padding: 32px 0; display: flex; flex-direction: column; gap: 12px; }
.footer-operator h3 { font-family: var(--font-display); font-size: 13px; font-weight: 800; color: #fff; }
.footer-operator p { font-size: 13px; line-height: 1.6; color: var(--gray-500); }

.footer-warning { padding: 32px 0; }
.warning-plate {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--r-12);
}
.warning-plate > .badge-alert { align-self: flex-start; }
.warning-plate__body { display: flex; flex-direction: column; gap: 10px; }
.warning-plate__body p { font-size: 12px; line-height: 1.5; color: var(--gray-500); }
.warning-plate__body p:first-child { font-weight: 800; color: var(--ink); }
.warning-plate__body a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }

.footer-meta { padding: 20px 0; }
.footer-meta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-meta p, .footer-meta a { font-size: 11px; color: #cbd5e1; }
.footer-meta__links { display: flex; gap: 16px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   14. Overlays: cookie consent + age gate + toast
   -------------------------------------------------------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(11, 27, 58, .55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.overlay[data-open="true"] { display: flex; }

.age-modal {
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  border-radius: var(--r-16);
  box-shadow: 0 30px 60px -20px rgba(11, 27, 58, .45);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  align-items: center;
}
.age-modal h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.age-modal p { font-size: 14px; line-height: 1.6; color: var(--gray-500); }
.age-modal__actions { display: flex; gap: 12px; width: 100%; }
.age-modal__actions .btn { flex: 1 1 0; }

.cookie-panel {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 960px;
  z-index: 140;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-16);
  box-shadow: 0 24px 48px -18px rgba(11, 27, 58, .35);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 16px;
}
.cookie-panel[data-open="true"] { display: flex; }
.cookie-panel h2 { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.cookie-panel p { font-size: 13px; line-height: 1.6; color: var(--gray-500); }
.cookie-panel__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: var(--r-12);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 18px 36px -14px rgba(11, 27, 58, .5);
  animation: toast-in .22s ease;
}
.toast--success { background: #15803d; }
.toast--error { background: #b91c1c; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   15. Betslip
   -------------------------------------------------------------------------- */
.betslip {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  z-index: 130;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-16);
  box-shadow: 0 24px 48px -18px rgba(11, 27, 58, .3);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.betslip[data-open="true"] { display: flex; }
.betslip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.betslip__title { font-family: var(--font-display); font-size: 15px; font-weight: 800; }
.betslip__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 340px; overflow-y: auto; }
.betslip__empty { font-size: 13px; color: var(--gray-500); text-align: center; padding: 20px 0; }
.betslip-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-12);
  background: var(--surface-alt);
}
.betslip-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.betslip-item__name { font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.betslip-item__event { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.betslip-item__price { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--blue-600); }
.betslip-item__remove { font-size: 11px; color: var(--gray-500); }
.betslip-item__remove:hover { color: var(--red-700); }
.betslip__foot { padding: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.betslip__count {
  position: absolute;
  top: -6px; right: -6px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--red-700);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.betslip-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 125;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--blue-600);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 18px 36px -14px rgba(37, 99, 235, .6);
}
.betslip-fab[data-visible="true"] { display: inline-flex; }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .doc-aside { width: 280px; }
  .hero__aside { width: 280px; }
}

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .doc-layout { flex-direction: column; }
  .doc-aside { width: 100%; position: static; }
  .info-grid, .info-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero__aside { width: 100%; }
  .event-grid { flex-direction: column; }
}

@media (max-width: 860px) {
  .footer-brand__row { flex-direction: column; gap: 32px; }
  .footer-cols { gap: 32px; }
  .footer-brand__desc { width: 100%; }
  .market-row { flex-direction: column; align-items: stretch; }
  .market-row__event { width: 100%; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .site-header__inner { padding-top: 12px; padding-bottom: 12px; min-height: 60px; }
  .logo__badge { width: 28px; height: 28px; border-radius: var(--r-8); font-size: 14px; }
  .logo__word { font-size: 16px; letter-spacing: -.3px; }
  .header-actions .btn { padding: 8px 12px; border-radius: var(--r-8); }
  .header-actions .btn--join-desktop { display: none; }

  .utility-bar__inner { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 8px; padding-bottom: 8px; }
  .utility-bar__right { width: 100%; justify-content: flex-start; }

  .auth-body { padding: 32px var(--gutter); }
  .auth-card { padding: 24px 18px; }
  .split-fields { flex-direction: column; gap: 16px; }
  .code-inputs { gap: 6px; }
  .code-inputs input { width: 44px; height: 52px; font-size: 20px; }

  .hero__inner { padding: 18px; gap: 20px; }
  .hero__title { font-size: 26px; line-height: 32px; }
  .hero-band { padding: 18px; min-height: 200px; }
  .hero-band h2 { font-size: 20px; }

  .info-grid, .info-grid--2, .info-grid--4 { grid-template-columns: 1fr; }
  .panel { border-radius: var(--r-16); padding: 12px; }
  .odds-row { flex-wrap: wrap; }
  .odds-btn { min-width: calc(50% - 6px); }

  .footer-brand { padding: 40px 0 32px; }
  .footer-cols { flex-direction: column; gap: 24px; }
  .warning-plate { flex-direction: column; }
  .footer-meta__inner { flex-direction: column; align-items: flex-start; }

  .betslip { right: 8px; left: 8px; bottom: 8px; width: auto; }
  .betslip-fab { right: 16px; bottom: 16px; }
  .toast-stack { right: 12px; left: 12px; bottom: 12px; }
  .toast { max-width: none; }

  .data-table { display: block; overflow-x: auto; }
}

@media print {
  .utility-bar, .site-header, .site-footer, .cookie-panel, .overlay, .betslip, .betslip-fab { display: none !important; }
}

/* --------------------------------------------------------------------------
   17. Dashboard layout
   -------------------------------------------------------------------------- */
.dashboard-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 48px;
}
.main-feed { display: flex; gap: 24px; align-items: flex-start; }
.left-column { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.right-column { width: 340px; flex: none; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 92px; }

.betslip--docked {
  position: static;
  width: auto;
  max-width: none;
  display: flex;
  box-shadow: 0 12px 28px -10px rgba(15, 23, 42, .10);
  border-color: transparent;
}
.betslip--docked .betslip__head,
.betslip--docked .betslip__foot { padding: 20px; }
.betslip--docked .betslip__body { padding: 0 20px; }
.betslip--docked .betslip__foot { border-top: 0; }
.betslip__title { font-family: var(--font-display); font-size: 16px; font-weight: 800; }

.responsible-panel {
  background: var(--blue-50);
  border-radius: var(--r-16);
  box-shadow: var(--sh-soft);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.responsible-panel__cards {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--r-16);
  align-items: stretch;
}
.responsible-tile {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  transition: border-color .15s ease, background-color .15s ease;
}
.responsible-tile:hover { border-color: var(--blue-600); background: #fff; }
.responsible-tile h3 { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--ink); }
.responsible-tile p { font-size: 12px; line-height: 1.4; color: var(--gray-500); }

@media (max-width: 1180px) {
  .right-column { width: 300px; }
}
@media (max-width: 1024px) {
  .main-feed { flex-direction: column; }
  .right-column { width: 100%; position: static; }
  .responsible-panel__cards { flex-direction: column; }
}
@media (max-width: 720px) {
  .dashboard-body { padding-bottom: 32px; }
  .responsible-panel { padding: 18px; border-radius: var(--r-16); }
  .responsible-panel__cards { padding: 12px; }
}

/* --------------------------------------------------------------------------
   18. Editorial long-form pages (introduced by responsible-gambling.php)
   -------------------------------------------------------------------------- */
.editorial {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  background: var(--surface);
  padding: 56px 80px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}
.editorial > * { width: 100%; max-width: 900px; }
.editorial__rule { max-width: none; height: 1px; margin: 0; background: var(--border); border: 0; }

.editorial-section { display: flex; flex-direction: column; gap: 16px; }
.editorial-section--tight { gap: 12px; }
.editorial-section__h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.editorial-section__h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.editorial-section__h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--ink);
}
.editorial-section p { font-size: 15px; line-height: 24px; color: var(--gray-500); }
.editorial-section .editorial-section__lede { font-size: 16px; line-height: 24px; color: var(--gray-500); }
.editorial-inline-link { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.editorial-inline-link:hover { color: var(--blue-700); }

.editorial-block { display: flex; flex-direction: column; gap: 10px; }
.editorial-block--tight { gap: 8px; }
.editorial-block .editorial-block__label { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.editorial-block ul { display: flex; flex-direction: column; }
.editorial-block li,
.editorial-block .editorial-line { font-size: 14px; line-height: 22px; color: var(--gray-500); }
.editorial-block--lg .editorial-line { font-size: 15px; line-height: 24px; }

.editorial-link {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-600);
}
.editorial-link:hover { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1024px) {
  .editorial { padding: 40px 32px 56px; gap: 40px; }
}

@media (max-width: 720px) {
  .editorial { padding: 24px 16px; gap: 24px; }
  .editorial-section { gap: 12px; }
  .editorial-section--tight { gap: 12px; }
  .editorial-section__h1 { font-size: 32px; line-height: 40px; }
  .editorial-section__h2 { font-size: 22px; }
  .editorial-section .editorial-section__lede { font-size: 15px; }
  .editorial-block--lg .editorial-line { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   18. Legal document pages (introduced by privacy-policy.php)
   -------------------------------------------------------------------------- */
.legal-doc {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  background: var(--surface);
  padding: 64px 80px;
}
.legal-doc__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
}
.legal-doc__title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.legal-doc__intro { display: flex; flex-direction: column; gap: 12px; }
.legal-doc__lede {
  max-width: 800px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-500);
}
.legal-doc__updated {
  font-size: 13px;
  font-weight: 700;
  color: var(--label);
}
.legal-doc__rule {
  height: 0;
  margin: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.legal-doc__body { display: flex; flex-direction: column; gap: 64px; }
.legal-doc__section { display: flex; flex-direction: column; gap: 20px; }
.legal-doc__section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--ink);
  scroll-margin-top: 92px;
}
.legal-doc__section-body { display: flex; flex-direction: column; gap: 20px; }
.legal-doc__section-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-500);
}
.legal-doc__rule--section { margin-top: 24px; }

@media (max-width: 1180px) {
  .legal-doc { padding: 56px 48px; }
  .legal-doc__title { font-size: 40px; }
}

@media (max-width: 1024px) {
  .legal-doc { padding: 48px 32px; }
  .legal-doc__title { font-size: 36px; }
  .legal-doc__body { gap: 48px; }
}

@media (max-width: 720px) {
  .legal-doc { padding: 32px 16px 48px; }
  .legal-doc__title { font-size: 30px; line-height: 1.55; }
  .legal-doc__head { gap: 12px; padding-bottom: 16px; }
  .legal-doc__head .legal-doc__rule { margin-top: 4px; }
  .legal-doc__intro { gap: 8px; }
  .legal-doc__lede { font-size: 15px; line-height: 1.55; }
  .legal-doc__updated { font-size: 12px; }
  .legal-doc__body { gap: 16px; }
  .legal-doc__section { gap: 8px; }
  .legal-doc__section-title { font-size: 22px; line-height: 1.55; }
  .legal-doc__section-body { gap: 8px; }
  .legal-doc__section-body p { font-size: 15px; line-height: 1.55; }
  .legal-doc__rule--section { margin-top: 16px; }
}

/* --------------------------------------------------------------------------
   18. Help centre — introduced by help-centre.php
   -------------------------------------------------------------------------- */
.help-shell {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: 80px;
  padding-right: 80px;
}

.help-band { background: var(--surface); }
.help-band--alt { background: var(--bg); }
.help-band__inner { display: flex; flex-direction: column; gap: 32px; padding: 64px 0; }

.help-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 56px 0 48px;
}
.help-hero__title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--ink);
}
.help-hero__lede { max-width: 640px; font-size: 16px; line-height: 1.5; color: var(--gray-500); }

.help-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 640px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-8);
  color: var(--gray-500);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.help-search:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.help-search svg { flex: none; }
.help-search input {
  flex: 1 1 0;
  min-width: 0;
  padding: 16px 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  color: var(--ink);
}
.help-search input:focus { outline: none; }
.help-search input::placeholder { color: var(--gray-500); }

.help-head { display: flex; flex-direction: column; gap: 8px; }
.help-head--center { align-items: center; text-align: center; }
.help-head h2 { font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.help-head p { max-width: 640px; font-size: 14px; line-height: 1.5; color: var(--gray-500); }

/* FAQ list: the shared accordion drawn as one joined, bordered list. */
.accordion--list {
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-8);
  overflow: hidden;
}
.accordion--list .accordion__item { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.accordion--list .accordion__item:last-child { border-bottom: 0; }
.accordion--list .accordion__trigger { padding: 20px; font-family: var(--font-body); font-size: 16px; font-weight: 600; }
.accordion--list .accordion__panel { padding: 20px; background: #f0f4ff; }
.accordion__static { padding: 20px; font-size: 16px; font-weight: 600; color: var(--ink); }

/* Split panel: one bordered card on desktop, separate cards on small screens. */
.help-panel {
  display: flex;
  align-items: stretch;
  gap: 40px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-8);
}
.help-panel--soft { background: #f0f4ff; }
.help-panel--wide { padding: 40px; }
.help-panel__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.help-panel--wide .help-panel__col { gap: 20px; }
.help-panel__rule { flex: none; width: 1px; align-self: stretch; background: var(--border); border: 0; margin: 0; }
.help-panel__head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--blue-600); }
.help-panel__head h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); }
.help-panel__col p { font-size: 14px; line-height: 1.5; color: var(--gray-500); }
p.help-panel__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue-600);
}
.help-panel__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); }
p.help-panel__phone { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--ink); }
p.help-panel__phone a:hover { color: var(--blue-600); }
.help-panel__link { align-self: flex-start; margin-top: auto; font-size: 14px; font-weight: 700; color: var(--blue-600); }
.help-panel__link:hover { text-decoration: underline; text-underline-offset: 2px; }

.help-btn { align-self: flex-start; padding: 12px 24px; border-radius: var(--r-6); font-size: 14px; }
.help-btn--outline { background: var(--surface); color: var(--blue-600); border: 1.5px solid var(--blue-600); }
.help-btn--outline:hover { background: var(--blue-50); }

@media (max-width: 1180px) {
  .help-shell { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 1024px) {
  .help-panel { flex-direction: column; gap: 24px; }
  .help-panel__rule { width: auto; height: 1px; }
}

@media (max-width: 720px) {
  .help-shell { padding-left: 16px; padding-right: 16px; }
  .help-band__inner { gap: 16px; padding: 16px 0 24px; }

  .help-hero { align-items: stretch; text-align: left; gap: 16px; padding: 24px 0; }
  .help-hero__title { font-size: 28px; letter-spacing: 0; }
  .help-hero__lede { max-width: none; font-size: 14px; }
  .help-search input { padding: 13px 0; font-size: 14px; }

  .help-head--center:not(.help-head--keep-center) { align-items: stretch; text-align: left; }
  .help-head h2 { font-size: 20px; }
  .help-head p { max-width: none; font-size: 13px; }

  .accordion--list .accordion__trigger,
  .accordion--list .accordion__panel,
  .accordion__static { padding: 16px; font-size: 14px; }
  .accordion--list .accordion__panel { font-weight: 400; }

  .help-panel { gap: 12px; padding: 0; background: none; border: 0; border-radius: 0; }
  .help-panel__rule { display: none; }
  .help-panel__col {
    gap: 12px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-10);
  }
  .help-panel--soft .help-panel__col { background: #f0f4ff; }
  .help-panel--wide .help-panel__col { gap: 12px; padding: 20px; }
  .help-panel__head { flex-direction: row; align-items: center; gap: 10px; }
  .help-panel__head svg { width: 20px; height: 20px; }
  .help-panel__head h3 { font-size: 15px; }
  .help-panel__col p { font-size: 13px; line-height: 1.4; }
  p.help-panel__eyebrow { font-size: 10px; }
  .help-panel__title { font-size: 16px; }
  p.help-panel__phone { font-size: 20px; }
  .help-panel__link { font-size: 13px; }
  .help-btn { padding: 10px 16px; font-size: 13px; }
}

/* --------------------------------------------------------------------------
   18. Long-form legal document pages (introduced by cookie-policy.php)
   Full-bleed white column, 80px gutters, numbered sections separated by rules.
   -------------------------------------------------------------------------- */
.cookie-doc { background: var(--surface); }
.cookie-doc__shell {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: 80px;
  padding-right: 80px;
}

.cookie-doc__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 64px 0 40px;
}
.cookie-doc__title {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
}
.cookie-doc__lede { display: flex; flex-direction: column; gap: 12px; }
.cookie-doc__intro { font-size: 16px; line-height: 1.7; color: var(--gray-500); }
.cookie-doc__updated { font-size: 13px; font-weight: 700; color: var(--label); }

.cookie-doc__body {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-bottom: 64px;
}
.cookie-doc__section { display: flex; flex-direction: column; gap: 20px; }
.cookie-doc__section > h2 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.27;
  font-weight: 800;
  color: var(--ink);
}

.cookie-doc__text {
  display: flex;
  flex-direction: column;
  gap: 27px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-500);
}
.cookie-doc__text a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.cookie-doc__bullets { display: flex; flex-direction: column; gap: 0; list-style: none; padding-left: 0; }

.cookie-doc__sub { display: flex; flex-direction: column; gap: 12px; }
.cookie-doc__sub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-doc__sub-head h3 {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.27;
  font-weight: 700;
  color: var(--ink);
}
.cookie-doc__tag { font-size: 13px; font-weight: 700; color: var(--blue-600); white-space: nowrap; }

.cookie-doc__table {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-8);
  overflow-x: auto;
}
.cookie-doc__table th {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--bg);
}
.cookie-doc__table td { padding: 14px 16px; font-size: 14px; line-height: 1.6; }
.cookie-doc__col-cookie { width: 220px; }
.cookie-doc__col-duration { width: 160px; }

.cookie-doc__rule { height: 1px; background: var(--border); border: 0; width: 100%; margin-top: 24px; }
.cookie-doc__rule--head { margin-top: 16px; }

@media (max-width: 1180px) {
  .cookie-doc__shell { padding-left: 32px; padding-right: 32px; }
  .cookie-doc__title { font-size: 40px; }
}

@media (max-width: 720px) {
  .cookie-doc__shell { padding-left: 16px; padding-right: 16px; }

  .cookie-doc__head { gap: 12px; padding: 32px 0 0; }
  .cookie-doc__title { font-size: 30px; line-height: 1.55; }
  .cookie-doc__lede { gap: 8px; }
  .cookie-doc__intro { font-size: 15px; line-height: 1.55; }
  .cookie-doc__updated { font-size: 12px; }

  .cookie-doc__body { gap: 16px; padding-bottom: 48px; }
  .cookie-doc__section { gap: 8px; }
  .cookie-doc__section > h2 { font-size: 22px; line-height: 1.55; }

  .cookie-doc__text { gap: 23px; font-size: 15px; line-height: 1.55; }
  .cookie-doc__sub { gap: 8px; }
  .cookie-doc__sub-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cookie-doc__sub-head h3 { font-size: 17px; line-height: 1.55; }

  .cookie-doc__table .data-table { display: table; }
  .cookie-doc__col-cookie { width: auto; }
  .cookie-doc__col-duration { width: auto; }
  .cookie-doc__table th, .cookie-doc__table td { white-space: nowrap; }

  .cookie-doc__rule, .cookie-doc__rule--head { margin-top: 16px; }
}

/* --------------------------------------------------------------------------
   18. Long-form legal documents (introduced by terms-and-conditions.php)
   -------------------------------------------------------------------------- */
.terms-page { background: var(--surface); }
.terms-doc { max-width: 1280px; margin: 0 auto; }

.terms-head { display: flex; flex-direction: column; gap: 16px; padding: 64px 0 40px; }
.terms-head__title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.terms-head__meta { display: flex; flex-direction: column; gap: 8px; }
.terms-head__intro { max-width: 800px; font-size: 16px; line-height: 1.7; color: var(--gray-500); }
.terms-head__updated { font-size: 13px; font-weight: 700; color: var(--label); }

.terms-rule { width: 100%; height: 1px; border: 0; background: var(--border); margin: 24px 0 0; }
.terms-head .terms-rule { margin-top: 16px; }

.terms-sections { display: flex; flex-direction: column; gap: 64px; padding-bottom: 64px; }
.terms-section { display: flex; flex-direction: column; gap: 20px; }
.terms-section__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.27;
  color: var(--ink);
}
.terms-section__content { display: flex; flex-direction: column; gap: 20px; }

.terms-text { font-size: 16px; line-height: 1.7; color: var(--gray-500); }
.terms-text--strong { font-weight: 700; color: var(--ink); }
.terms-text--sm { font-size: 14px; }
.terms-text a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.terms-text a:hover { color: var(--blue-700); }

.terms-list { display: flex; flex-direction: column; gap: 8px; padding-left: 16px; }

.terms-subsection { display: flex; flex-direction: column; gap: 16px; padding: 24px 0 8px; }
.terms-subsection__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink);
}
.terms-subsection__content { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 1024px) {
  .terms-head { padding: 48px 0 32px; }
  .terms-head__title { font-size: 36px; }
  .terms-sections { gap: 48px; }
  .terms-section__title { font-size: 24px; }
}

@media (max-width: 720px) {
  .terms-head { padding: 32px 0 16px; gap: 12px; }
  .terms-head__title { font-size: 30px; line-height: 1.55; }
  .terms-head__intro { font-size: 15px; line-height: 1.55; }
  .terms-head__updated { font-size: 12px; }
  .terms-head .terms-rule { margin-top: 8px; }

  .terms-sections { gap: 16px; padding-bottom: 48px; }
  .terms-section { gap: 8px; }
  .terms-section__title { font-size: 22px; line-height: 1.55; }
  .terms-section__content { gap: 8px; }

  .terms-text { font-size: 15px; line-height: 1.55; }
  .terms-text--sm { font-size: 13px; }
  .terms-list { padding-left: 0; }

  .terms-subsection { gap: 8px; padding: 16px 0 0; }
  .terms-subsection__title { font-size: 17px; line-height: 1.55; }
  .terms-rule { margin-top: 8px; }
}

/* --------------------------------------------------------------------------
   18. Deposit limits (introduced by deposit-limits.php)
   -------------------------------------------------------------------------- */
.limits-body {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 56px 80px 80px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.limits-section { display: flex; flex-direction: column; gap: 16px; }
.limits-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.limits-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.limits-lede { max-width: 800px; font-size: 16px; line-height: 24px; color: var(--gray-500); }

.limits-card {
  width: 100%;
  max-width: 680px;
  padding: 32px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-12);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.limits-card__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.limits-card__lede { font-size: 15px; line-height: 24px; color: var(--gray-500); }
.limits-card__note { font-size: 14px; line-height: 22px; color: var(--gray-500); }
.limits-card .form-alert a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.segmented {
  display: flex;
  gap: 0;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-8);
}
.segmented__option { flex: 1 1 0; min-width: 0; }
.segmented__option input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}
.segmented__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 33px;
  padding: 0 8px;
  border-radius: var(--r-6);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.segmented__option input:not(:checked) + span:hover { color: var(--ink); }
.segmented__option input:checked + span { background: var(--blue-600); color: #fff; font-weight: 700; }
.segmented__option input:focus-visible + span { outline: 2px solid var(--blue-600); outline-offset: 2px; }

.limits-steps { display: flex; gap: 16px; align-items: stretch; }
.limits-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-12);
}
.limits-step__number {
  width: 32px; height: 32px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 700;
}
.limits-step h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.limits-step p { font-size: 14px; line-height: 20px; color: var(--gray-500); }

.limits-bullets { display: flex; flex-direction: column; gap: 10px; }
.limits-bullets li { display: flex; gap: 10px; font-size: 14px; line-height: 20px; color: var(--gray-500); }
.limits-bullets li::before { content: "\2022"; flex: none; font-size: 15px; line-height: 20px; }

@media (max-width: 1180px) {
  .limits-body { padding: 48px 32px 64px; gap: 40px; }
}

@media (max-width: 1024px) {
  .limits-steps { flex-direction: column; }
}

@media (max-width: 720px) {
  .limits-body { padding: 24px var(--gutter) 32px; gap: 24px; }
  .limits-section { gap: 12px; }
  .limits-title { font-size: 32px; }
  .limits-heading { font-size: 22px; }
  .limits-lede { font-size: 14px; line-height: 20px; }

  .limits-card { max-width: none; padding: 16px; gap: 16px; }
  .limits-card__title { font-size: 18px; }
  .limits-card__lede { font-size: 13px; line-height: 18px; }
  .limits-card__note { font-size: 12px; line-height: 16px; }
  .limits-card .form { gap: 16px; }

  .segmented { gap: 4px; background: var(--surface-alt2); border-color: transparent; }

  .limits-steps { gap: 12px; }
  .limits-step { gap: 8px; padding: 16px; }
  .limits-step__number { width: 28px; height: 28px; font-size: 12px; }
  .limits-step h3 { font-size: 15px; }
  .limits-step p { font-size: 13px; line-height: 18px; }

  .limits-bullets { gap: 8px; }
  .limits-bullets li { gap: 8px; font-size: 13px; line-height: 18px; }
  .limits-bullets li::before { font-size: 14px; line-height: 18px; }
}

/* --------------------------------------------------------------------------
   18. Racing page (introduced by racing.php)
   -------------------------------------------------------------------------- */
.panel--blue { background: var(--blue-50); }
.panel--outlined { border: 1px solid var(--border); box-shadow: var(--sh-soft); }

.racing-row--alt { background: var(--surface-alt); }

/* Code / date filter pills */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-12);
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.filter-pill:hover { border-color: var(--blue-600); color: var(--blue-600); }
.filter-pill[aria-pressed="true"] {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  font-weight: 700;
}

/* Today's meetings */
.meeting-list {
  border: 1px solid var(--border);
  border-radius: var(--r-16);
  overflow: hidden;
}
.meeting-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.meeting-row:last-child { border-bottom: 0; }
.meeting-row--alt { background: var(--surface-alt); }
.meeting-row__venue { width: 180px; flex: none; display: flex; flex-direction: column; gap: 3px; }
.meeting-row__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.meeting-row__state {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: var(--r-4);
  background: var(--surface-alt2);
  color: var(--gray-500);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
}
.meeting-row__code { font-size: 11px; color: var(--gray-400); }
.meeting-row__races { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }

.race-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: var(--r-8);
  background: var(--surface-alt2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.race-chip__no { font-family: var(--font-display); font-size: 10px; font-weight: 700; color: var(--gray-500); }
.race-chip__time { font-size: 11px; color: var(--gray-700); }
.race-chip--next { background: var(--blue-100); border-color: var(--blue-600); }
.race-chip--next .race-chip__no { color: var(--blue-600); font-weight: 800; }
.race-chip--next .race-chip__time { color: var(--blue-600); font-weight: 700; }

/* Selected race field */
.race-card { overflow: hidden; }
.race-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--blue-50);
  border-bottom: 1px solid var(--border-card);
}
.race-card__title { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--ink); }
.race-card__meta { font-size: 13px; color: var(--gray-500); }

.runner-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gray-400);
}
.runner-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.runner-row:last-child { border-bottom: 0; }
.runner-row:nth-child(even) { background: var(--surface-alt); }
.runner-row--highlight,
.runner-row--highlight:nth-child(even) { background: var(--blue-50); border-color: #bfdbfe; }
.runner-row__meta { display: contents; }

.runner-col-num { width: 40px; flex: none; }
.runner-col-name { flex: 1 1 0; min-width: 0; }
.runner-col-odds { width: 340px; flex: none; display: flex; gap: 8px; }
.runner-head .runner-col-odds > span { flex: 1 1 0; text-align: center; }

.runner-row__num { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--gray-400); }
.runner-row__name { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink); }
.runner-row--highlight .runner-row__num,
.runner-row--highlight .runner-row__name { color: var(--blue-700); }
.runner-row__form { display: none; font-family: var(--font-body); font-size: 10px; font-weight: 400; color: var(--gray-500); }
.runner-row .odds-btn__name { color: var(--gray-500); }
.runner-row .odds-btn__price { font-size: 15px; }

@media (max-width: 1024px) {
  .runner-col-odds { width: 300px; }
}

@media (max-width: 720px) {
  .filter-bar { border: 0; background: none; padding: 0; gap: 12px; }
  .filter-group { width: 100%; }

  .meeting-list { border: 0; border-radius: 0; overflow: visible; display: flex; flex-direction: column; gap: 12px; }
  .meeting-row,
  .meeting-row--alt {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-12);
  }
  .meeting-row__venue { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
  .meeting-row__races { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }

  .runner-head { display: none; }
  .runner-row,
  .runner-row:nth-child(even) {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    background: var(--surface);
  }
  .runner-row--highlight,
  .runner-row--highlight:nth-child(even) { background: var(--blue-50); }
  .runner-row__meta { display: flex; align-items: center; gap: 8px; }
  .runner-col-num {
    width: 22px;
    height: 22px;
    border-radius: var(--r-pill);
    background: var(--surface-alt2);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
  }
  .runner-row--highlight .runner-col-num { background: var(--blue-600); color: #fff; }
  .runner-col-name { display: flex; flex-direction: column; gap: 0; font-size: 13px; }
  .runner-col-odds { width: 100%; }
  .runner-row__form { display: block; }
  .runner-row .odds-btn { min-width: 0; }
}

/* --------------------------------------------------------------------------
   19. Contact page (introduced by contact-us.php)
   -------------------------------------------------------------------------- */
.contact-body {
  --gutter: 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 80px;
}

.contact-intro { display: flex; flex-direction: column; gap: 8px; }
.contact-intro h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.contact-intro__copy { display: flex; flex-direction: column; gap: 24px; }
.contact-intro p { font-size: 16px; line-height: 24px; color: var(--gray-500); }
.contact-intro a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.contact-intro a:hover { color: var(--blue-700); }

.contact-card {
  width: 680px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-12);
}
.contact-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form .input { min-height: 42px; }
.contact-form textarea.input { resize: vertical; }

.contact-support {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-support__inner {
  --gutter: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.contact-support__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.contact-support__lede { max-width: 800px; font-size: 15px; line-height: 22px; color: var(--gray-500); }

.support-cards { display: flex; gap: 16px; align-items: stretch; }
.support-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--r-12);
}
.support-card__head { display: flex; align-items: center; gap: 16px; }
.support-card__mark {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}
.support-card__logo { width: 120px; height: auto; flex: none; }
.support-card__id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.support-card__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.support-card__phone { font-size: 14px; font-weight: 700; color: var(--blue-600); align-self: flex-start; }
.support-card__phone:hover { text-decoration: underline; text-underline-offset: 2px; }
.support-card__sub { font-size: 13px; color: var(--gray-500); }
.support-card__text { font-size: 13px; line-height: 1.5; color: var(--gray-500); }
.support-card__cta {
  margin-top: auto;
  padding: 8px 16px;
  border-radius: var(--r-8);
  font-size: 13px;
}
.support-card__cta.btn--secondary { color: var(--blue-600); }

@media (max-width: 1180px) {
  .contact-body { --gutter: 32px; }
  .contact-support__inner { --gutter: 32px; }
}

@media (max-width: 720px) {
  .contact-body {
    --gutter: 16px;
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 0;
  }
  .contact-intro h1 { font-size: 32px; }
  .contact-intro__copy { gap: 20px; }
  .contact-intro p { font-size: 14px; line-height: 20px; }

  .contact-card { gap: 16px; padding: 16px; }
  .contact-card__title { font-size: 18px; }
  .contact-form { gap: 16px; }
  .contact-form .input { min-height: 44px; }

  .contact-support { background: none; border-top: 0; border-bottom: 0; }
  .contact-support__inner { --gutter: 16px; padding-top: 24px; padding-bottom: 32px; }
  .contact-support__title { font-size: 20px; }
  .contact-support__lede { font-size: 14px; line-height: 1.5; }

  .support-cards { flex-direction: column; gap: 12px; }
  .support-card { gap: 16px; padding: 16px; }
  .support-card__head { gap: 12px; }
  .support-card__mark { width: 36px; height: 36px; font-size: 16px; }
  .support-card__name { font-size: 14px; }
  .support-card__phone { font-size: 13px; }
  .support-card__sub { font-size: 12px; }
  .support-card__text { font-size: 12px; line-height: 1.4; }
  .support-card__cta { font-size: 12px; }
}

/* --------------------------------------------------------------------------
   18. How it works page — introduced by how-it-works.php
   -------------------------------------------------------------------------- */
.hiw-section {
  --hiw-ink:  #0f172a;
  --hiw-body: #475569;
  --hiw-line: #e2e8f0;
  --hiw-note: #94a3b8;
  --hiw-tint: #ebf2ff;
  --hiw-gutter: 80px;
  padding: 96px 0;
}
.hiw-section--white { background: var(--surface); }
.hiw-section--alt   { background: #f5f7fa; }
.hiw-section--intro { padding: 80px 0; background: #f5f7fa; }
.hiw-section--tint  { padding: 80px 0; background: var(--hiw-tint); }

.hiw-shell {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--hiw-gutter);
  padding-right: var(--hiw-gutter);
}
.hiw-block { display: flex; flex-direction: column; gap: 56px; }

.hiw-head { display: flex; flex-direction: column; gap: 12px; }
.hiw-h2 { font-family: var(--font-display); font-size: 32px; font-weight: 800; line-height: 1.2; color: var(--hiw-ink); }
.hiw-sub { font-size: 16px; line-height: 1.4; color: var(--hiw-body); }
.hiw-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-600);
}
.hiw-rule { height: 1px; width: 100%; background: var(--hiw-line); border: 0; }

/* Intro */
.hiw-intro { display: flex; align-items: center; gap: 64px; }
.hiw-intro__copy { flex: 1 1 0; min-width: 0; max-width: 776px; display: flex; flex-direction: column; gap: 24px; }
.hiw-title { font-family: var(--font-display); font-size: 48px; font-weight: 800; line-height: 1.15; color: var(--hiw-ink); }
.hiw-lede { font-size: 16px; line-height: 1.6; color: var(--hiw-body); }

/* Wager example card */
.hiw-wager {
  width: 440px; flex: none;
  background: var(--surface);
  border: 1px solid var(--hiw-line);
  border-radius: var(--r-12);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .04);
  padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
}
.hiw-wager__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hiw-wager__title {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--blue-600);
}
.hiw-tag {
  background: var(--hiw-tint); color: var(--blue-600);
  border-radius: var(--r-4); padding: 4px 8px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.hiw-wager__rows { display: flex; flex-direction: column; gap: 12px; }
.hiw-kv { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hiw-kv__key { font-size: 14px; color: var(--hiw-body); }
.hiw-kv__val { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--hiw-ink); }
.hiw-kv--total .hiw-kv__key { font-weight: 600; color: var(--hiw-ink); }
.hiw-kv--total .hiw-kv__val { font-size: 20px; font-weight: 800; color: var(--blue-600); }
.hiw-note { font-size: 11px; color: var(--hiw-note); text-align: center; }

/* Getting started steps */
.hiw-steps { display: flex; gap: 40px; }
.hiw-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hiw-step__top { display: flex; align-items: center; gap: 12px; }
.hiw-step__num { font-family: var(--font-display); font-size: 36px; font-weight: 800; line-height: 1.2; color: var(--blue-600); }
.hiw-step__rule { flex: 1 1 0; height: 1px; background: var(--hiw-line); }
.hiw-step h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--hiw-ink); }
.hiw-step p { font-size: 14px; line-height: 1.5; color: var(--hiw-body); }

/* Numbered timeline */
.hiw-timeline { display: flex; flex-direction: column; }
.hiw-timeline__item { display: flex; gap: 80px; }
.hiw-timeline__item:not(:last-child) { padding-bottom: 36px; }
.hiw-timeline__rail { width: 48px; flex: none; display: flex; justify-content: center; position: relative; }
.hiw-timeline__item:not(:last-child) .hiw-timeline__rail::after {
  content: "";
  position: absolute;
  top: 32px; bottom: -36px; left: 50%;
  width: 2px; margin-left: -1px;
  background: var(--blue-600);
  opacity: .3;
}
.hiw-timeline__dot {
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  background: var(--blue-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  position: relative; z-index: 1;
}
.hiw-timeline__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hiw-timeline__label {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--blue-600);
}
.hiw-timeline__body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--hiw-ink); }
.hiw-timeline__body p { font-size: 14px; line-height: 1.4; color: var(--hiw-body); }

/* Bet slip explainer */
.hiw-slip-demo {
  background: var(--hiw-tint);
  border-radius: var(--r-16);
  padding: 40px;
  display: flex; align-items: center; gap: 64px;
}
.hiw-slip {
  width: 380px; flex: none;
  background: var(--surface);
  border: 1px solid var(--hiw-line);
  border-radius: var(--r-12);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
  padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.hiw-slip__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hiw-slip__title { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--hiw-ink); }
.hiw-slip__count {
  background: var(--blue-600); color: #fff;
  border-radius: var(--r-12); padding: 2px 8px;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
}
.hiw-slip__tab {
  align-self: flex-start;
  border-bottom: 1px solid var(--blue-600);
  padding-bottom: 4px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: var(--blue-600);
}
.hiw-slip__pick { display: flex; flex-direction: column; gap: 8px; }
.hiw-slip__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hiw-slip__row > div { min-width: 0; }
.hiw-slip__name { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--hiw-ink); }
.hiw-slip__meta { font-size: 12px; color: var(--hiw-body); margin-top: 2px; }
.hiw-slip__price { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--hiw-ink); flex: none; }
.hiw-slip__stake {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--blue-600);
  border-radius: var(--r-6);
  padding: 10px;
}
.hiw-slip__stake-key { font-size: 13px; color: var(--hiw-body); }
.hiw-slip__stake-val { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--hiw-ink); }
.hiw-slip__foot { display: flex; flex-direction: column; gap: 12px; }
.hiw-slip__return { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hiw-slip__return-key { font-size: 13px; color: var(--hiw-body); }
.hiw-slip__return-val { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--blue-600); }
.hiw-slip__cta {
  display: block;
  background: var(--blue-600); color: #fff;
  border-radius: var(--r-6);
  padding: 12px;
  text-align: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
}
.hiw-slip-notes { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hiw-annot { display: flex; gap: 16px; }
.hiw-annot > div { min-width: 0; }
.hiw-annot__num {
  width: 28px; height: 28px; flex: none;
  border-radius: 50%;
  background: var(--blue-600); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
}
.hiw-annot h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--hiw-ink); }
.hiw-annot p { font-size: 14px; line-height: 1.5; color: var(--hiw-body); margin-top: 4px; }

/* Browse cards */
.hiw-browse { display: flex; gap: 32px; align-items: flex-start; }
.hiw-browse__card {
  flex: 1 1 0; min-width: 0;
  background: var(--surface);
  border: 1px solid var(--hiw-line);
  border-radius: var(--r-12);
  padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.hiw-browse__label { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--blue-600); }
.hiw-browse__card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--hiw-ink); }
.hiw-browse__card p { font-size: 14px; line-height: 1.5; color: var(--hiw-body); }
.hiw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hiw-chip { background: var(--hiw-tint); color: var(--blue-600); border-radius: var(--r-16); padding: 6px 12px; font-size: 12px; font-weight: 600; }
.hiw-bullets { display: flex; flex-direction: column; gap: 8px; }
.hiw-bullets li { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--hiw-ink); }
.hiw-bullets li::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--blue-600); flex: none; }
.hiw-browse__link {
  align-self: flex-start;
  padding: 0 8px;
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  color: var(--blue-600);
}
.hiw-browse__link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Understanding odds */
.hiw-odds { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.hiw-odds__head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.hiw-odds__head p { max-width: 800px; font-size: 16px; line-height: 1.4; color: var(--hiw-body); }
.hiw-formula {
  width: 700px; max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--hiw-line);
  border-radius: var(--r-12);
  padding: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.hiw-formula__label {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--hiw-body);
}
.hiw-formula__eq { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--hiw-ink); }
.hiw-formula__math { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }
.hiw-formula__num { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: var(--hiw-ink); }
.hiw-formula__num--blue { color: var(--blue-600); }
.hiw-formula__op { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--hiw-body); }
.hiw-formula__note { font-size: 12px; color: var(--hiw-note); }

/* Account & payments */
.hiw-account { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hiw-account__card {
  border: 1px solid var(--hiw-line);
  border-radius: var(--r-12);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.hiw-account__icon {
  width: 48px; height: 48px; flex: none;
  border-radius: 50%;
  background: var(--hiw-tint); color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
}
.hiw-account__body { display: flex; flex-direction: column; gap: 8px; }
.hiw-account__title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.hiw-account__card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--hiw-ink); }
.hiw-account__card p { font-size: 14px; line-height: 1.5; color: var(--hiw-body); }
.hiw-flag { background: var(--red-100); color: #ef4444; border-radius: var(--r-4); padding: 3px 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }

@media (max-width: 1180px) {
  .hiw-section { --hiw-gutter: 32px; }
  .hiw-intro { gap: 40px; }
  .hiw-timeline__item { gap: 40px; }
  .hiw-slip-demo { gap: 32px; padding: 32px; }
}

@media (max-width: 1024px) {
  .hiw-intro { flex-direction: column; align-items: stretch; }
  .hiw-intro__copy { max-width: none; }
  .hiw-wager { width: 100%; }
  .hiw-slip-demo { flex-direction: column; align-items: stretch; }
  .hiw-slip { width: 100%; }
  .hiw-browse { flex-direction: column; }
  .hiw-account { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .hiw-section { --hiw-gutter: 16px; padding: 32px 0; }
  .hiw-section--intro,
  .hiw-section--tint { padding: 32px 0; }
  .hiw-block { gap: 24px; }
  .hiw-intro { gap: 24px; }
  .hiw-intro__copy { gap: 12px; }
  .hiw-title { font-size: 30px; line-height: 36px; }
  .hiw-lede { font-size: 14px; line-height: 20px; }
  .hiw-h2 { font-size: 22px; line-height: 28px; }
  .hiw-sub { font-size: 13px; line-height: 18px; }
  .hiw-eyebrow { font-size: 11px; letter-spacing: 1.2px; }

  .hiw-wager { padding: 20px; gap: 16px; }
  .hiw-wager__title { font-size: 12px; }
  .hiw-kv__key { font-size: 13px; }
  .hiw-kv__val { font-size: 14px; }
  .hiw-kv--total .hiw-kv__val { font-size: 18px; }
  .hiw-note { font-size: 10px; }

  .hiw-steps { flex-direction: column; gap: 20px; }
  .hiw-step { gap: 12px; }
  .hiw-step__num { font-size: 28px; }
  .hiw-step h3 { font-size: 16px; }
  .hiw-step p { font-size: 13px; line-height: 18px; }

  .hiw-timeline__item { gap: 16px; }
  .hiw-timeline__item:not(:last-child) { padding-bottom: 20px; }
  .hiw-timeline__rail { width: 24px; }
  .hiw-timeline__dot { width: 24px; height: 24px; font-size: 10px; }
  .hiw-timeline__item:not(:last-child) .hiw-timeline__rail::after { top: 24px; bottom: -20px; }
  .hiw-timeline__label { font-size: 11px; letter-spacing: .5px; }
  .hiw-timeline__body h3 { font-size: 15px; }
  .hiw-timeline__body p { font-size: 12px; line-height: 16px; }

  .hiw-slip-demo { background: none; border-radius: 0; padding: 0; gap: 24px; }
  .hiw-slip { border-color: var(--blue-600); border-width: 1.5px; padding: 16px; gap: 12px; }
  .hiw-slip__title { font-size: 14px; }
  .hiw-slip__count { font-size: 11px; }
  .hiw-slip__tab { align-self: stretch; font-size: 12px; }
  .hiw-slip__name, .hiw-slip__price { font-size: 14px; }
  .hiw-slip__meta { font-size: 11px; }
  .hiw-slip__stake-key, .hiw-slip__return-key { font-size: 12px; }
  .hiw-slip__stake-val { font-size: 13px; }
  .hiw-slip__return-val { font-size: 15px; }
  .hiw-slip__cta { font-size: 13px; }
  .hiw-slip-notes { gap: 16px; }
  .hiw-annot { gap: 12px; }
  .hiw-annot__num { width: 22px; height: 22px; font-size: 11px; background: var(--hiw-tint); color: var(--blue-600); }
  .hiw-annot h3 { font-size: 13px; }
  .hiw-annot p { font-size: 12px; line-height: 16px; margin-top: 2px; }

  .hiw-browse { gap: 16px; }
  .hiw-browse__card { padding: 20px; gap: 16px; }
  .hiw-browse__card h3 { font-size: 18px; }
  .hiw-browse__card p { font-size: 13px; line-height: 18px; }
  .hiw-chips { gap: 6px; }
  .hiw-chip { padding: 4px 10px; font-size: 11px; }
  .hiw-browse__link { align-self: stretch; padding: 0; font-size: 12px; }

  .hiw-odds { gap: 20px; align-items: stretch; }
  .hiw-odds__head { align-items: flex-start; text-align: left; }
  .hiw-odds__head p { font-size: 13px; line-height: 18px; }
  .hiw-formula { width: 100%; padding: 16px; gap: 12px; }
  .hiw-formula__label { font-size: 11px; letter-spacing: 1px; }
  .hiw-formula__eq { font-size: 14px; }
  .hiw-formula__math { gap: 8px; }
  .hiw-formula__num { font-size: 22px; }
  .hiw-formula__op { font-size: 16px; }
  .hiw-formula__note { font-size: 10px; }

  .hiw-account { grid-template-columns: 1fr; gap: 12px; }
  .hiw-account__card { padding: 20px; gap: 12px; background: var(--surface); }
  .hiw-account__icon { width: 40px; height: 40px; }
  .hiw-account__card h3 { font-size: 15px; }
  .hiw-account__card p { font-size: 12px; line-height: 16px; }
  .hiw-flag { padding: 2px 6px; font-size: 9px; font-weight: 600; }
}

/* --------------------------------------------------------------------------
   19. Sports markets page (introduced by sports.php)
   -------------------------------------------------------------------------- */
.page-intro {
  background: var(--blue-50);
  border-radius: var(--r-20);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-intro__eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--blue-700);
}
.page-intro__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}
.page-intro__text { font-size: 14px; line-height: 22px; color: var(--gray-500); }

.chip-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover { border-color: var(--blue-600); color: var(--blue-600); }
.chip[aria-pressed="true"] {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  font-weight: 700;
}

.sport-section { display: flex; flex-direction: column; gap: 12px; }
.sport-section--panel {
  background: var(--surface-alt);
  border-radius: var(--r-16);
  padding: 16px;
}
.sport-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sport-section__id { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sport-section__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.sport-section__meta { font-size: 12px; color: var(--gray-500); }
.sport-section__link { font-size: 12px; color: var(--blue-600); white-space: nowrap; }
.sport-section__link:hover { text-decoration: underline; text-underline-offset: 2px; }

.sport-table {
  background: var(--surface);
  border-radius: var(--r-16);
  box-shadow: var(--sh-soft);
  overflow: hidden;
}
.sport-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.sport-row:last-child { border-bottom: 0; }
.sport-row__time {
  width: 110px;
  flex: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-600);
}
.sport-row__teams { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sport-row__team {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.sport-row__odds { width: 310px; flex: none; display: flex; align-items: stretch; gap: 8px; }
.sport-row__odds--three { width: 440px; }
.sport-row .odds-btn { padding: 10px 12px; }
.sport-row .odds-btn__price { font-size: 14px; }
.sport-row__markets {
  width: 80px;
  flex: none;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
}

.event-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.slip-tabs {
  display: flex;
  gap: 4px;
  margin: 0 20px 12px;
  padding: 2px;
  background: var(--surface-alt);
  border-radius: var(--r-12);
}
.slip-tabs__tab {
  flex: 1 1 0;
  padding: 8px 12px;
  border-radius: var(--r-10);
  text-align: center;
  font-size: 12px;
  color: var(--gray-500);
}
.slip-tabs__tab--active { background: var(--blue-600); color: #fff; font-weight: 800; }

.slip-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.slip-total__label { font-size: 13px; color: var(--gray-500); }
.slip-total__value {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.slip-total__value--accent { color: var(--blue-600); }

@media (max-width: 1180px) {
  .sport-row__odds { width: 280px; }
  .sport-row__odds--three { width: 380px; }
}

@media (max-width: 860px) {
  .sport-row { flex-wrap: wrap; gap: 12px; }
  .sport-row__time { width: auto; order: 1; }
  .sport-row__markets { width: auto; order: 2; margin-left: auto; }
  .sport-row__teams { order: 3; flex: 1 1 100%; }
  .sport-row__odds,
  .sport-row__odds--three { order: 4; width: 100%; flex: 1 1 100%; }
}

@media (max-width: 720px) {
  .page-intro { padding: 16px; border-radius: var(--r-16); }
  .page-intro__eyebrow { font-size: 13px; }
  .page-intro__title { font-size: 24px; }
  .page-intro__text { font-size: 13px; line-height: 18px; }
  .chip { padding: 8px 12px; font-size: 13px; }
  .sport-section--panel { padding: 12px; }
  .sport-row { padding: 14px; }
  .sport-row__odds { flex-wrap: wrap; }
  .sport-row__odds .odds-btn { min-width: calc(50% - 4px); }
}

/* --------------------------------------------------------------------------
   18. Promotions landing (introduced by promotions.php)
   Wide 80px gutters, split hero, bordered step/info/FAQ cards.
   -------------------------------------------------------------------------- */
.promo-shell {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: 80px;
  padding-right: 80px;
}

.promo-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 56px;
  background: var(--bg);
}
.promo-hero__copy { display: flex; flex-direction: column; gap: 20px; flex: 1 1 0; min-width: 0; }
.promo-hero__title {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--ink);
}
.promo-hero__lede { font-size: 16px; line-height: 24px; color: var(--gray-500); }
.promo-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.promo-hero__note { font-size: 12px; line-height: 18px; color: var(--gray-500); }
.promo-hero__media {
  position: relative;
  width: 560px;
  height: 480px;
  flex: none;
  border-radius: var(--r-16);
  overflow: hidden;
}
.promo-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.promo-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .08);
}

.promo-body {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-top: 64px;
  padding-bottom: 84px;
}

.promo-section { display: flex; flex-direction: column; gap: 24px; }
.promo-section__head { display: flex; flex-direction: column; gap: 8px; }
.promo-section__title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
}
.promo-section__sub {
  max-width: 800px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 20px;
  color: var(--gray-500);
  text-align: center;
}

/* Numbered participation steps */
.promo-steps {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-16);
  overflow: hidden;
}
.promo-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-right: 1px solid var(--border);
}
.promo-step:last-child { border-right: 0; }
.promo-step__num {
  width: 56px; height: 56px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-12);
  background: #ebf0ff;
  border: 1px solid var(--blue-600);
  color: var(--blue-600);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.promo-step__body { display: flex; flex-direction: column; gap: 6px; }
.promo-step__title { font-family: var(--font-display); font-size: 18px; line-height: 1.28; font-weight: 700; color: var(--ink); }
.promo-step__text { font-size: 14px; line-height: 20px; color: var(--gray-500); }

/* Offer information grid */
.promo-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-16);
  overflow: hidden;
}
.promo-info__row {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.promo-info__row:last-child { border-bottom: 0; }
.promo-info__cell { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.promo-info__head { display: flex; align-items: center; gap: 10px; }
.promo-info__dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--blue-600); }
.promo-info__name { font-family: var(--font-display); font-size: 16px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.promo-info__text { font-size: 14px; line-height: 20px; color: var(--gray-500); }
.promo-info__link {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.28;
  font-weight: 700;
  color: var(--blue-600);
}
.promo-info__link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Responsible wagering tools */
.promo-resp {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-16);
  overflow: hidden;
}
.promo-resp__card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-right: 1px solid var(--border);
}
.promo-resp__card:last-child { border-right: 0; }
.promo-resp__icon {
  width: 44px; height: 44px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-12);
  background: #ebf0ff;
  border: 1px solid var(--blue-600);
  color: var(--blue-600);
}
.promo-resp__icon svg { width: 22px; height: 22px; }
.promo-resp__title { font-family: var(--font-display); font-size: 16px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.promo-resp__text { flex: 1 1 auto; font-size: 13px; line-height: 20px; color: var(--gray-500); }
.promo-resp__link {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.28;
  font-weight: 700;
  color: var(--blue-600);
}
.promo-resp__link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* FAQ list */
.promo-faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-12);
  overflow: hidden;
}
.promo-faq__item { border-bottom: 1px solid var(--border); }
.promo-faq__item:last-child { border-bottom: 0; }
.promo-faq h3 { font: inherit; }
.promo-faq .accordion__trigger {
  padding: 20px;
  gap: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.28;
  font-weight: 600;
}
.promo-faq .accordion__panel { padding: 0 20px 20px; font-size: 14px; line-height: 20px; color: var(--gray-500); }

@media (max-width: 1180px) {
  .promo-shell { padding-left: 32px; padding-right: 32px; }
  .promo-hero__title { font-size: 44px; }
  .promo-hero__media { width: 460px; height: 420px; }
}

@media (max-width: 1024px) {
  .promo-hero { flex-direction: column; align-items: stretch; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
  .promo-hero__media { width: 100%; height: 320px; }
  .promo-body { gap: 40px; padding-top: 40px; padding-bottom: 56px; }
  .promo-steps { flex-direction: column; }
  .promo-step { border-right: 0; border-bottom: 1px solid var(--border); }
  .promo-step:last-child { border-bottom: 0; }
  .promo-info__row { flex-direction: column; align-items: stretch; gap: 20px; }
  .promo-resp { flex-direction: column; }
  .promo-resp__card { border-right: 0; border-bottom: 1px solid var(--border); }
  .promo-resp__card:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  .promo-shell { padding-left: 16px; padding-right: 16px; }

  .promo-hero { gap: 16px; padding: 44px 32px 24px; }
  .promo-hero__copy { gap: 12px; }
  .promo-hero__title { font-size: 24px; line-height: 30px; }
  .promo-hero__lede { font-size: 13px; line-height: 18px; }
  .promo-hero__actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .promo-hero__note { font-size: 11px; }
  .promo-hero__media { height: 220px; border-radius: var(--r-12); }

  .promo-body { gap: 24px; padding-top: 24px; padding-bottom: 40px; }
  .promo-section { gap: 16px; }
  .promo-section__head { gap: 6px; }
  .promo-section__title { font-size: 20px; text-align: left; }
  .promo-section__sub { margin: 0; font-size: 13px; line-height: 18px; text-align: left; }

  .promo-step { gap: 10px; padding: 16px; }
  .promo-step__num { width: 40px; height: 40px; border-radius: var(--r-8); border-width: 1.5px; font-size: 20px; }
  .promo-step__body { gap: 4px; }
  .promo-step__title { font-size: 15px; }
  .promo-step__text { font-size: 13px; line-height: 18px; }

  .promo-info__row { padding: 0; gap: 0; border-bottom: 0; }
  .promo-info__cell { gap: 8px; padding: 16px; border-bottom: 1px solid var(--border); }
  .promo-info__row:last-child .promo-info__cell:last-child { border-bottom: 0; }
  .promo-info__dot { width: 8px; height: 8px; }
  .promo-info__head { gap: 8px; }
  .promo-info__name { font-size: 14px; }
  .promo-info__text { font-size: 13px; line-height: 18px; }
  .promo-info__link { font-size: 13px; }

  .promo-resp { gap: 12px; background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .promo-resp__card {
    gap: 10px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-12);
  }
  .promo-resp__card:last-child { border: 1px solid var(--border); }
  .promo-resp__icon { width: 36px; height: 36px; border-radius: var(--r-8); }
  .promo-resp__icon svg { width: 18px; height: 18px; }
  .promo-resp__title { font-size: 15px; }
  .promo-resp__text { flex: 0 0 auto; font-size: 12px; line-height: 16px; }
  .promo-resp__link { font-size: 13px; }

  .promo-faq .accordion__trigger { padding: 16px; gap: 12px; font-size: 13px; }
  .promo-faq .accordion__panel { padding: 0 16px 16px; font-size: 13px; line-height: 18px; }
}

/* --------------------------------------------------------------------------
   Betslip selections (tabs, stake entry and totals)
   -------------------------------------------------------------------------- */
.betslip__tabs {
  display: flex;
  gap: 4px;
  padding: 2px;
  margin: 0 20px;
  background: var(--surface-alt);
  border-radius: var(--r-12);
}
.betslip__tab {
  flex: 1 1 0;
  padding: 8px 12px;
  border-radius: var(--r-10);
  text-align: center;
  font-size: 12px;
  color: var(--gray-500);
  transition: background-color .15s ease, color .15s ease;
}
.betslip__tab:hover:not(:disabled):not(.is-active) { background: rgba(37, 99, 235, .08); color: var(--blue-600); }
.betslip__tab.is-active { background: var(--blue-600); color: #fff; font-weight: 800; }
.betslip__tab:disabled { opacity: .5; cursor: not-allowed; }

.betslip-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border-card);
  border-radius: var(--r-12);
}
.betslip-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.betslip-item__detail { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.betslip-item__name { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--ink); }
.betslip-item__market { font-size: 11px; color: var(--gray-500); }
.betslip-item__event { font-size: 11px; color: var(--gray-400); }
.betslip-item__close {
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--red-100);
  color: var(--red-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.betslip-item__close:hover { background: #fecaca; }
.betslip-item__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.betslip-item__odds { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.betslip-item__odds-label { font-size: 11px; color: var(--gray-500); }
.betslip-item__odds-value { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--blue-600); }
.betslip-item--multi { background: var(--blue-50); border-color: #bfdbfe; }

.betslip-stake {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 120px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: var(--r-10);
}
.betslip-stake:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.betslip-stake__symbol { font-size: 11px; color: var(--gray-400); flex: none; }
.betslip-stake__input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}
.betslip-stake__input:focus { outline: none; }

.betslip__totals { display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }
.betslip__total-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.betslip__total-row span:first-child { font-size: 13px; color: var(--gray-500); }
.betslip__total-row span:last-child { font-family: var(--font-display); font-size: 13px; font-weight: 800; color: var(--ink); }
.betslip__total-row--return span:last-child { color: var(--blue-600); }

/* --------------------------------------------------------------------------
   Underage gambling — type scale overrides for the shared .legal-doc
   component (introduced by underage-gambling.php)
   -------------------------------------------------------------------------- */
.legal-doc--underage .legal-doc__title { font-size: 44px; }
.legal-doc--underage .legal-doc__section-title { font-size: 26px; }

@media (max-width: 1180px) {
  .legal-doc--underage .legal-doc__title { font-size: 40px; }
}
@media (max-width: 1024px) {
  .legal-doc--underage .legal-doc__title { font-size: 36px; }
  .legal-doc--underage .legal-doc__section-title { font-size: 24px; }
}
@media (max-width: 720px) {
  .legal-doc--underage .legal-doc__title { font-size: 30px; line-height: 1.55; }
  .legal-doc--underage .legal-doc__section-title { font-size: 20px; line-height: 1.55; }
}

/* --------------------------------------------------------------------------
   Consolidation: classes used in markup that had no rule of their own
   -------------------------------------------------------------------------- */
.runner-table { display: flex; flex-direction: column; }

/* The underage-gambling support cards reuse the contact-page card, with two
   children of their own. */
.support-card__icon {
  width: 44px; height: 44px;
  flex: none;
  border-radius: var(--r-12);
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.support-card__names { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* The gambling-support band sits directly on the white policy document, so it
   keeps its surface on small screens (introduced by underage-gambling.php). */
@media (max-width: 720px) {
  .contact-support--on-surface { background: var(--surface); }
}

/* Narrow screens: a section head with a long title and a trailing link must
   wrap rather than force the page wider than the viewport. */
@media (max-width: 720px) {
  .panel__head { flex-wrap: wrap; row-gap: 8px; }
  .panel__head > * { min-width: 0; }
  .link-arrow { white-space: normal; }
}

/* Racing rows carry a name, a tip, a countdown and a button; below the tablet
   breakpoint they wrap onto two lines instead of forcing the page wider. */
@media (max-width: 720px) {
  .racing-row { flex-wrap: wrap; row-gap: 12px; }
  .racing-row__left { flex: 1 1 100%; min-width: 0; }
  .racing-row__left .stack { min-width: 0; }
  .racing-row__name,
  .racing-row__tip { overflow-wrap: anywhere; }
  .racing-row__right { flex: 1 1 100%; justify-content: space-between; }
}

/* Once the feed stacks, each column is capped at the container width so a wide
   child (a long strip of race chips, a table) scrolls inside its own box
   instead of stretching the page. */
@media (max-width: 1024px) {
  .main-feed { flex-direction: column; }
  .left-column,
  .right-column { width: 100%; max-width: 100%; min-width: 0; }
  .left-column > *,
  .right-column > * { max-width: 100%; }
}

/* Race chips sit in a nowrap strip that scrolls on narrow screens, so they
   must keep their intrinsic size instead of shrinking to nothing. */
.race-chip { flex: none; }

/* When the meeting row stacks, its main axis becomes vertical, so the desktop
   `flex: 1 1 0` would collapse the chip strip to zero height. */
@media (max-width: 720px) {
  .meeting-row__races { flex: none; width: 100%; }
}
