@charset "UTF-8";
/* ==========================================================================
   UPCOZ AU — design system
   Archetype: Swiss Editorial x Soft Ticket
   Signature: numbered section marks, ticket-notch panels, striped tags,
              tabular figures, pill chips.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-var-latin.woff2') format('woff2-variations'),
       url('../fonts/sora-var-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var-latin.woff2') format('woff2-variations'),
       url('../fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
/* Metric-matched stand-ins for the swap window. Without them the fallback sets
   type at different metrics and the whole page reflows when the webfont lands —
   worth ~0.1 CLS on a real connection. */
@font-face {
  font-family: 'Inter fallback';
  src: local('Arial');
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Sora fallback';
  src: local('Arial');
  size-adjust: 105.6%;
  ascent-override: 92.4%;
  descent-override: 23.1%;
  line-gap-override: 0%;
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* surfaces */
  --ink:        #0A1020;
  --sunken:     #070C18;
  --surface:    #101A2E;
  --raised:     #16233C;
  --overlay:    rgba(7, 12, 24, .72);

  /* text */
  --text:       #EEF3FA;
  --muted:      #A2B3CD;
  --dim:        #7E90B2;

  /* roles */
  --price:      #FF7A18;
  --price-ink:  #1A0A00;
  --price-soft: rgba(255, 122, 24, .12);
  --rg:         #2FB289;
  --rg-soft:    rgba(47, 178, 137, .12);
  --warn:       #F5B93F;
  --warn-ink:   #2A1C00;
  --info:       #4CA8FF;

  /* lines */
  --line:        rgba(162, 179, 205, .18);
  --line-strong: rgba(162, 179, 205, .34);
  --line-bright: rgba(238, 243, 250, .70);

  /* radii — soft ticket geometry */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* spacing, 8px grid */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 40px; --s6: 56px; --s7: 72px; --s8: 96px;

  /* shadows */
  --sh-sm: 0 1px 2px rgba(0, 0, 0, .28);
  --sh-md: 0 6px 20px -6px rgba(0, 0, 0, .48);
  --sh-lg: 0 20px 48px -18px rgba(0, 0, 0, .62);

  /* type */
  --d: 'Sora', 'Sora fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --b: 'Inter', 'Inter fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1240px;
  --hdr-h: 68px;
  /* Masthead height once it has shrunk and stuck — what sticky sidebars clear. */
  --hdr-stuck: 104px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* Any component that sets `display` silently defeats the hidden attribute, so
   the confirmation panels shipped visible before their form was submitted.
   One rule covers every current and future case. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--b);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--d); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
p, li { overflow-wrap: break-word; }

:focus-visible {
  outline: 2px solid var(--price);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--price); color: var(--price-ink); font-family: var(--d); font-weight: 700;
  padding: 10px 18px; border-radius: var(--r-sm); transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

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

/* --- Layout --------------------------------------------------------------- */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s3); }

.shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s5); align-items: start; }
.shell > .col-main { min-width: 0; }

.page { padding-block: var(--s5) var(--s8); }

/* --- Utilities ------------------------------------------------------------ */
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }
.ico-sm { width: 1em; height: 1em; }
.ico-lg { width: 1.5em; height: 1.5em; }
.lede { color: var(--muted); font-size: 1.0625rem; max-width: 62ch; }
.dim { color: var(--dim); font-size: .8125rem; }
.stack > * + * { margin-top: var(--s2); }
.flow-xs { display: grid; gap: 2px; }
.flow    { display: grid; gap: var(--s4); }
.flow-md { display: grid; gap: var(--s5); }
.flow-lg { display: grid; gap: var(--s6); }
.flow-xl { display: grid; gap: var(--s7); }
.grow { flex: 1 1 auto; }
.narrow { max-width: 640px; }
.narrow-sm { max-width: 560px; }
.measure { max-width: 56ch; }
.flush-top { border-top: 0; padding-top: 0; }
.mt-2 { margin-top: var(--s2); }
.mt-3 { margin-top: var(--s3); }
.mt-5 { margin-top: var(--s5); }
.mb-3 { margin-bottom: var(--s3); }
.center { text-align: center; }
.acts-center { justify-content: center; }
.t-sm { font-size: .875rem; }
.t-base { font-size: 1rem; }
.h-md { font-size: 1.375rem; }
.h-lg { font-size: 1.5rem; }
.step-h { font-size: 1.25rem; margin-bottom: var(--s2); }
.link-inline { color: var(--text); border-bottom: 1px solid var(--price); }
.link-inline:hover { color: var(--price); }
.link-muted { color: var(--muted); border-bottom: 1px solid var(--price); }
.link-muted:hover { color: var(--price); }
.btn-inline {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--text); border-bottom: 1px solid var(--price);
}
.is-rg { border-color: rgba(47, 178, 137, .35); }
.tile-ico.is-rg { color: var(--rg); background: var(--rg-soft); border-color: rgba(47, 178, 137, .35); }

/* Help topic rail */
.helpnav a {
  display: block; padding: 8px 10px; border-radius: var(--r-sm);
  font-size: .875rem; color: var(--muted);
}
.helpnav a:hover { background: var(--raised); color: var(--text); }
.helpnav a.is-on { background: var(--price-soft); color: var(--price); font-weight: 600; }

/* Striped signature rule — repeats under every page title, in the hero and
   above the footer warning band. */
.stripe-rule {
  height: 8px; border-radius: var(--r-pill);
  background: repeating-linear-gradient(115deg, var(--price) 0 10px, transparent 10px 24px);
}
.stripe-rule-sm { width: 96px; height: 6px; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--d); font-weight: 600; font-size: .875rem; line-height: 1;
  padding: 12px 20px; min-height: 44px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: transparent; color: var(--text); cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), color .18s var(--ease);
}
.btn:hover { background: var(--raised); border-color: var(--line-bright); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-cta { background: var(--price); border-color: var(--price); color: var(--price-ink); font-weight: 700; }
.btn-cta:hover { background: #FF8C38; border-color: #FF8C38; color: var(--price-ink); }

.btn-rg { background: var(--rg-soft); border-color: rgba(47, 178, 137, .5); color: var(--rg); }
.btn-rg:hover { background: rgba(47, 178, 137, .2); border-color: var(--rg); color: var(--rg); }

.btn-sm { padding: 9px 15px; min-height: 38px; font-size: .8125rem; }
.btn-lg { padding: 15px 28px; min-height: 52px; font-size: .9375rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* --- Chips ---------------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--d); font-weight: 600; font-size: .6875rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 11px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); color: var(--muted); background: rgba(255, 255, 255, .02);
}
.chip-code  { border-color: rgba(255, 122, 24, .45); color: var(--price); background: var(--price-soft); }
.chip-state { border-color: var(--line); color: var(--dim); }
.chip-rg    { border-color: rgba(47, 178, 137, .5); color: var(--rg); background: var(--rg-soft); }

/* --- Responsible gambling strip ------------------------------------------ */
.rgbar {
  background: var(--sunken);
  border-bottom: 1px solid var(--line);
  font-size: .8125rem; color: var(--muted);
  position: relative; z-index: 60;
}
.rgbar .wrap {
  display: flex; align-items: center; gap: 8px 20px;
  min-height: 42px; padding-block: 8px; flex-wrap: wrap;
}
.rgbar strong { color: var(--text); font-weight: 600; }
.rgbar .grow { flex: 1 1 auto; }
/* The helpline and the support link are the two targets that must never be
   fiddly to hit, so they carry a full 44px touch height of their own rather
   than inheriting the strip's line height. */
.rgbar a {
  color: var(--muted); border-bottom: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; min-height: 44px;
}
.rgbar a:hover { color: var(--text); border-color: var(--price); }
.rgbar .age {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--rg); color: var(--rg); background: var(--rg-soft);
  border-radius: var(--r-pill); padding: 2px 10px;
  font-family: var(--d); font-weight: 700; font-size: .6875rem; letter-spacing: .08em;
}
.rgbar .tel { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }

/* --- Masthead ------------------------------------------------------------- */
.mast { position: relative; z-index: 50; background: var(--ink); }
.mast-top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding-block: var(--s3) var(--s2);
}
.brand { display: inline-flex; align-items: baseline; gap: 2px; }
.brand-word {
  font-family: var(--d); font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: .85; letter-spacing: -.05em;
}
.brand-dot {
  display: inline-block; width: .2em; height: .2em; margin-left: .04em;
  background: var(--price); border-radius: .05em; vertical-align: baseline;
}
.brand-sub {
  display: block; font-family: var(--d); font-size: .625rem; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase; color: var(--dim); margin-top: 8px;
}
.mast-meta {
  text-align: right; font-size: .6875rem; line-height: 1.8;
  letter-spacing: .08em; text-transform: uppercase; color: var(--dim);
}
.mast-meta b { color: var(--muted); font-weight: 600; }

.rubrics {
  display: flex; align-items: stretch; gap: 0;
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line);
}
.rubrics-scroll { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.rubrics-scroll::-webkit-scrollbar { display: none; }
/* :not(.btn) throughout — otherwise this container rule outranks .btn-cta and
   repaints the account button's text muted, strips its left padding and hangs
   a divider off its edge. The rubric links are the only target here. */
.rubrics a:not(.btn) {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--d); font-weight: 600; font-size: .875rem;
  padding: 15px 18px; color: var(--muted);
  border-right: 1px solid var(--line);
  transition: color .18s var(--ease), background .18s var(--ease);
}
/* The first rubric sits flush with the masthead edge. Scoped to the scroller
   so it cannot catch a button that happens to be first inside its wrapper. */
.rubrics-scroll a:first-child { padding-left: 0; }
.rubrics a:not(.btn):hover { color: var(--text); }
.rubrics a:not(.btn).is-on { color: var(--text); box-shadow: inset 0 -3px 0 var(--price); }
.rubrics .push { flex: 1 1 auto; }
.rubrics .acts { display: flex; align-items: center; gap: 8px; padding-left: var(--s2); }
.burger { display: none; }

/* sticky shrink */
.mast.is-stuck {
  position: sticky; top: 0;
  background: rgba(10, 16, 32, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-md);
}
.mast.is-stuck .mast-top { padding-block: 10px; }
.mast.is-stuck .brand-word { font-size: 1.5rem; }
.mast.is-stuck .brand-sub, .mast.is-stuck .mast-meta { display: none; }

/* --- Mobile drawer -------------------------------------------------------- */
.drawer {
  position: fixed; inset: 0; z-index: 120;
  background: var(--overlay); backdrop-filter: blur(6px);
  display: none; opacity: 0; transition: opacity .22s var(--ease);
}
.drawer.is-open { display: block; opacity: 1; }
.drawer-panel {
  position: absolute; inset-block: 0; left: 0; width: min(340px, 88vw);
  background: var(--surface); border-right: 1px solid var(--line);
  padding: var(--s3); overflow-y: auto;
  transform: translateX(-16px); transition: transform .26s var(--ease);
  display: flex; flex-direction: column; gap: var(--s2);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--d); font-weight: 600; font-size: 1rem;
  padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--muted);
}
.drawer nav a.is-on { color: var(--price); }
.drawer .drawer-foot { margin-top: auto; display: grid; gap: 10px; }

/* --- Section heading (signature) ------------------------------------------ */
.shead { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); flex-wrap: wrap; }
.shead-kick {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--d); font-size: .75rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.shead-kick i { font-style: normal; color: var(--price); font-weight: 700; }
.shead-kick > span:not(.shead-rule) { white-space: nowrap; }
.hero .shead-kick { white-space: nowrap; }
.shead-rule { flex: 1 1 60px; height: 1px; background: var(--line-strong); }
.shead-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--d); font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--price); padding-bottom: 3px;
  transition: color .18s var(--ease), gap .18s var(--ease);
}
.shead-link:hover { color: var(--price); gap: 10px; }

/* --- Ticket panel (signature) --------------------------------------------- */
.ticket {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s3);
}
.ticket-lg { padding: var(--s4); border-radius: var(--r-xl); }
.ticket-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  flex-wrap: wrap; margin-bottom: var(--s2);
}
.ticket-head h2, .ticket-head h3 {
  font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.ticket-head .meta { font-family: var(--d); font-size: .75rem; color: var(--dim); letter-spacing: .06em; }

/* perforated divider with side notches */
.perf { position: relative; height: 1px; margin: var(--s3) calc(var(--s3) * -1); }
.ticket-lg .perf { margin-inline: calc(var(--s4) * -1); }
.perf::before {
  content: ""; position: absolute; inset-inline: 14px; top: 0; height: 1px;
  background-image: linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
  background-size: 12px 1px;
}
.perf i {
  position: absolute; top: -9px; width: 18px; height: 18px; border-radius: var(--r-pill);
  background: var(--ink); border: 1px solid var(--line);
}
.perf i:first-child { left: -10px; }
.perf i:last-child  { right: -10px; }

/* --- Hero ----------------------------------------------------------------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0; }
.hero-lead { padding: var(--s6) var(--s5) var(--s6) 0; border-right: 1px solid var(--line); }
.hero-side { padding: var(--s6) 0 var(--s6) var(--s5); }

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.65rem); letter-spacing: -.038em; max-width: 17ch;
}
.hero h1 em { font-style: normal; color: var(--price); }
.hero .lede { margin-top: var(--s3); font-size: 1.0625rem; }
.hero-acts { margin-top: var(--s4); display: flex; gap: 12px; flex-wrap: wrap; }

.figs { margin-top: var(--s5); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.figs div { padding: var(--s2) var(--s2) 0 0; border-right: 1px solid var(--line); }
.figs div:last-child { border-right: 0; }
.figs b { display: block; font-family: var(--d); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.figs span { font-size: .6875rem; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }

/* --- Race rows ------------------------------------------------------------ */
.rrows { border-top: 1px solid var(--line-bright); }
.rrow {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px;
  align-items: center; padding: 13px 10px 13px 0;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: background .18s var(--ease), padding-left .18s var(--ease);
}
.rrow:hover { background: var(--price-soft); padding-left: 10px; }
.rrow-no { font-family: var(--d); font-weight: 700; font-size: .75rem; color: var(--dim); letter-spacing: .04em; }
.rrow-main { min-width: 0; }
.rrow-name { display: block; font-family: var(--d); font-weight: 600; font-size: .9375rem; letter-spacing: -.01em; }
.rrow-meta { display: block; font-size: .6875rem; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }
.rrow-time { font-family: var(--d); font-weight: 700; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.rrow.is-soon .rrow-time { color: var(--price); }

/* --- Meeting cards -------------------------------------------------------- */
.meetings { display: grid; gap: var(--s3); }
.meeting { scroll-margin-top: 100px; }
.meeting-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.meeting-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.meeting-title h3 { font-size: 1.25rem; letter-spacing: -.02em; text-transform: none; }
.meeting-next {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--d); font-weight: 700; font-size: .875rem; color: var(--price);
  background: var(--price-soft); border: 1px solid rgba(255, 122, 24, .35);
  border-radius: var(--r-pill); padding: 6px 14px; font-variant-numeric: tabular-nums;
}

.racechips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s2); }
.racechip {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 62px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--raised); font-family: var(--d);
}
.racechip b { font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.racechip span { font-size: .6875rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.racechip.is-next { border-color: var(--price); background: var(--price-soft); }
.racechip.is-next b { color: var(--price); }
.racechip.is-done { opacity: .45; }

.field-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  background: none; border: 0; padding: 0 0 10px; cursor: pointer; text-align: left; color: var(--text);
  font-family: var(--d); font-weight: 700; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase;
}
.field-toggle:hover { color: var(--price); }
.field-toggle .ico { color: var(--price); transition: transform .22s var(--ease); }
.field-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }

/* field table */
.field { margin-top: var(--s2); }
.field-head {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 194px; gap: 10px;
  font-family: var(--d); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); padding-bottom: 8px; border-bottom: 1px solid var(--line-strong);
}
.field-head .runner-odds span { text-align: center; }
.runner {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 194px; gap: 10px;
  align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line);
}
/* minmax(0, 1fr), not 1fr: the price buttons have a wide min-content floor,
   which otherwise pushes the tracks past the column and scrolls the page. */
.runner-odds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* In a race field the Win/Place words are already the column headings, so the
   buttons show the price alone. The accessible name still carries the lot. */
.runner-odds .odd { justify-content: center; padding-inline: 10px; }
.runner-odds .odd-name { display: none; }
.runner-no {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line);
  font-family: var(--d); font-weight: 700; font-size: .8125rem; font-variant-numeric: tabular-nums;
}
.runner-name { display: block; font-family: var(--d); font-weight: 600; font-size: .9375rem; }
.runner-person { display: block; font-size: .75rem; color: var(--dim); margin-top: 2px; }
.field-note { margin-top: var(--s2); font-size: .8125rem; color: var(--dim); display: flex; gap: 8px; align-items: flex-start; }

/* --- Odds ----------------------------------------------------------------- */
.odd {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 44px; padding: 9px 13px;
  background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--r-md); cursor: pointer; text-align: left;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.odd:hover { border-color: var(--price); background: var(--price-soft); transform: translateY(-1px); }
.odd.is-picked { border-color: var(--price); background: var(--price-soft); }
.odd-name { min-width: 0; font-size: .8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odd-price { font-family: var(--d); font-weight: 700; font-size: .9375rem; color: var(--price); font-variant-numeric: tabular-nums; }
.odd.is-picked .odd-name { color: var(--text); }

.odds-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.odds-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* --- Event cards ---------------------------------------------------------- */
.events { display: grid; gap: var(--s2); }
.event { }
.event-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; }
.event-name { font-family: var(--d); font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; }
.event-meta { font-size: .8125rem; color: var(--dim); margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.event-start {
  font-family: var(--d); font-weight: 700; font-size: .8125rem; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.event-link { color: inherit; }
.event-link:hover { color: var(--price); }
.event-more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: var(--s2);
  font-family: var(--d); font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--price); padding-bottom: 3px;
  transition: color .18s var(--ease), gap .18s var(--ease);
}
.event-more:hover { color: var(--price); gap: 11px; }

.market { margin-top: var(--s2); }
.market-label {
  font-family: var(--d); font-size: .625rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 7px;
}

/* --- Sport / code tiles --------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s2); }
.tile {
  display: flex; flex-direction: column; gap: 10px;
  padding: var(--s3); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.tile:hover { border-color: var(--price); transform: translateY(-3px); background: var(--raised); }
/* Two classes deep so `.tile span { color: var(--dim) }` below cannot repaint
   the glyph grey — the chip reads as an accent, not as body text. */
.tile .tile-ico {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: grid; place-items: center; color: var(--price);
  background: var(--price-soft); border: 1px solid rgba(255, 122, 24, .3);
}
.tile b { font-family: var(--d); font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em; }
.tile span { font-size: .8125rem; color: var(--dim); }
.tile-go { margin-top: auto; font-family: var(--d); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.tile:hover .tile-go { color: var(--price); }

/* --- Bet slip ------------------------------------------------------------- */
/* The whole sidebar is what sticks, not the slip panel alone. Sticking only
   the slip gave it a travel limit of one sibling's height: past that it
   unpinned and slid up behind the masthead. Pinning the column and capping it
   to the viewport keeps both panels on screen at any number of selections. */
.slip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden;
}
.slip-head {
  display: flex; align-items: center; gap: 10px;
  padding: var(--s2) var(--s3); border-bottom: 1px solid var(--line);
  font-family: var(--d); font-weight: 700; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
}
.slip-count {
  margin-left: auto; min-width: 26px; height: 26px; padding-inline: 8px;
  display: grid; place-items: center; border-radius: var(--r-pill);
  background: var(--price); color: var(--price-ink); font-size: .75rem; font-variant-numeric: tabular-nums;
}
.slip-body { padding: var(--s3); display: grid; gap: 10px; max-height: 46vh; overflow-y: auto; }

/* Sidebar only — below 1080px the aside drops under the content and scrolls
   with the page like anything else. */
@media (min-width: 1081px) {
  .slip-aside {
    position: sticky;
    top: calc(var(--hdr-stuck) + var(--s2));
    max-height: calc(100vh - var(--hdr-stuck) - var(--s4));
    overflow-y: auto;
    /* The ticket notches overhang the panel by 10px. In a scroll container that
       reads as content and raises a horizontal scrollbar, so the column carries
       matching padding (pulled back by a negative margin) and clips the axis. */
    overflow-x: hidden;
    padding-inline: 12px;
    margin-inline: -12px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
  /* One scroll region, not two: the column scrolls, the list inside does not. */
  .slip-body { max-height: none; overflow-y: visible; }
}
.slip-empty { color: var(--dim); font-size: .875rem; text-align: center; padding: var(--s3) 0; }
.slip-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start;
  padding: 12px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-md);
}
.slip-item b { font-family: var(--d); font-size: .875rem; }
.slip-item small { display: block; color: var(--dim); font-size: .75rem; margin-top: 2px; }
.slip-item .price { font-family: var(--d); font-weight: 700; color: var(--price); font-variant-numeric: tabular-nums; }
.slip-item-side { display: grid; gap: 6px; justify-items: end; }
.slip-rm { background: none; border: 0; color: var(--dim); cursor: pointer; padding: 2px; border-radius: var(--r-xs); }
.slip-rm:hover { color: var(--warn); }
.slip-foot { padding: var(--s3); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.slip-row { display: flex; align-items: center; justify-content: space-between; font-size: .875rem; }
.slip-row b { font-family: var(--d); font-variant-numeric: tabular-nums; }
.slip-note { font-size: .75rem; color: var(--dim); display: flex; gap: 8px; align-items: flex-start; }

.slip-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  display: none; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(16, 26, 46, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
/* Only once the slip has dropped out of the sidebar — above 1080px the panel
   is already on screen and the bar would just cover content. */
@media (max-width: 1080px) {
  .slip-bar.is-on { display: flex; }
  /* Reserve the bar's height so the last footer strip is never underneath it. */
  body.has-slip-bar { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}
.slip-bar .t { font-family: var(--d); font-size: .8125rem; font-weight: 600; }
.slip-bar .t span { color: var(--price); font-variant-numeric: tabular-nums; }

/* --- Marquee -------------------------------------------------------------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: var(--sunken); padding-block: 10px;
}
.marquee-track { display: flex; gap: var(--s5); width: max-content; animation: slide 42s linear infinite; }
.marquee span {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--d); font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.marquee span .ico { color: var(--rg); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Tabs ----------------------------------------------------------------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--s3); }
.tabs-sm { margin-bottom: var(--s2); }
.tabs-sm .tab { padding: 7px 14px; min-height: 38px; font-size: .75rem; }
.tab {
  font-family: var(--d); font-weight: 600; font-size: .8125rem;
  padding: 9px 16px; min-height: 40px; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: all .18s var(--ease);
}
.tab:hover { color: var(--text); border-color: var(--line-bright); }
.tab[aria-selected="true"],
.tab.is-on { background: var(--price); border-color: var(--price); color: var(--price-ink); }

/* --- Accordion ------------------------------------------------------------ */
.acc { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.acc + .acc { margin-top: 10px; }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: 16px var(--s3); background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--d); font-weight: 600; font-size: 1rem;
  transition: background .18s var(--ease);
}
.acc-btn:hover { background: var(--raised); }
.acc-btn .ico { color: var(--price); transition: transform .22s var(--ease); }
.acc-btn[aria-expanded="true"] .ico { transform: rotate(180deg); }
.acc-panel { padding: 0 var(--s3) var(--s3); color: var(--muted); font-size: .9375rem; }

/* --- Prose (legal & content pages) ---------------------------------------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.5rem; margin-top: var(--s5); margin-bottom: var(--s2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; margin-top: var(--s3); margin-bottom: 10px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: var(--s2); }
.prose ul, .prose ol { margin: var(--s2) 0; padding-left: 22px; display: grid; gap: 8px; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 2px 6px 6px 6px; background: var(--price); opacity: .85;
}
.prose ol > li::marker { color: var(--price); font-family: var(--d); font-weight: 700; }
.prose a:not(.btn) { color: var(--text); border-bottom: 1px solid var(--price); }
.prose a:not(.btn):hover { color: var(--price); }
.prose strong { color: var(--text); }
.prose dl { display: grid; gap: 10px; margin-top: var(--s2); }
.prose dt { font-family: var(--d); font-weight: 600; color: var(--text); }
.prose dd { color: var(--muted); margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin-top: var(--s2); font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--d); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.prose td { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* --- Callouts ------------------------------------------------------------- */
.note {
  display: flex; gap: 12px; align-items: flex-start;
  padding: var(--s2) var(--s3); border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--raised);
  font-size: .9375rem; color: var(--muted);
}
.note .ico { color: var(--info); margin-top: 3px; }
.note strong { color: var(--text); }
.note-rg { border-color: rgba(47, 178, 137, .4); background: var(--rg-soft); }
.note-rg .ico { color: var(--rg); }
.note-warn { border-color: rgba(245, 185, 63, .4); background: rgba(245, 185, 63, .1); }
.note-warn .ico { color: var(--warn); }

/* --- Crumbs --------------------------------------------------------------- */
.crumbs { margin-bottom: var(--s3); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: .75rem; }
.crumbs li { display: flex; align-items: center; gap: 8px; color: var(--dim); }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--price); }

/* --- Page header ---------------------------------------------------------- */
.phead { padding-block: var(--s4) var(--s3); border-bottom: 1px solid var(--line); margin-bottom: var(--s5); }
.phead h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.035em; }
.phead .lede { margin-top: var(--s2); }
.phead-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s2); }

/* --- Photography ---------------------------------------------------------- */
/* Three slots, one language: a full-bleed plate on the home page, a rounded
   banner under a page header, and an inline editorial figure inside prose.
   Every image carries an explicit height so nothing shifts while it loads. */

.plate,
.pbanner { display: grid; background: var(--sunken); }
.plate > *,
.pbanner > * { grid-area: 1 / 1; min-width: 0; }

.plate { border-block: 1px solid var(--line); }
.pbanner {
  border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden; margin-bottom: var(--s5);
}

/* The picture is a positioned wrapper so its ::after can carry the scrim.
   Height is set here, not by the file, so the crop stays predictable. */
.plate-pic,
.pbanner-pic { position: relative; display: block; overflow: hidden; }
.plate-pic   { height: clamp(240px, 28vw, 400px); }
.pbanner-pic { height: clamp(170px, 21vw, 280px); }
.plate-pic img,
.pbanner-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Narrow screens crop hard into a 2.3:1 frame — bias the crop towards the
   subject instead of the middle of the track. */
@media (max-width: 860px) {
  .plate-pic img,
  .pbanner-pic img { object-position: 38% center; }
}

.plate-pic::after,
.pbanner-pic::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 12, 24, .30) 0%, rgba(7, 12, 24, .58) 46%, rgba(7, 12, 24, .93) 100%),
    linear-gradient(90deg, rgba(7, 12, 24, .72) 0%, rgba(7, 12, 24, .10) 62%);
}

.plate-body,
.pbanner-body { align-self: end; position: relative; padding-block: var(--s3) var(--s4); }
.pbanner-body { padding-inline: var(--s3); }
.plate-body .stripe-rule,
.pbanner-body .stripe-rule { margin-bottom: 12px; }
.plate-cap,
.pbanner-cap {
  font-family: var(--d); font-weight: 600; color: var(--text);
  font-size: clamp(1rem, 1.9vw, 1.375rem); letter-spacing: -.02em; max-width: 34ch;
  text-wrap: balance;
}
.plate-note,
.pbanner-note { margin-top: 6px; font-size: .8125rem; color: var(--muted); max-width: 52ch; }

/* Photo at the head of a tile — bleeds to the tile edge, with the code icon
   sitting half over its bottom corner. */
.tile-pic {
  position: relative; display: block;
  margin: calc(var(--s3) * -1) calc(var(--s3) * -1) 2px;
  border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;
  overflow: hidden;
}
.tile-pic img {
  display: block; width: 100%; height: auto;
  transition: transform .45s var(--ease);
}
.tile-pic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 24, 0) 42%, rgba(7, 12, 24, .78) 100%);
}
.tile-pic .tile-ico {
  position: absolute; left: var(--s2); bottom: var(--s2); z-index: 1;
  background: rgba(10, 16, 32, .84);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.tile:hover .tile-pic img { transform: scale(1.045); }

/* Strip above a sport's markets. */
.sport-pic {
  display: block; margin-bottom: var(--s2);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.sport-pic img { display: block; width: 100%; height: auto; }

/* Inline figure inside prose. */
.figure { margin-block: var(--s4); }
.figure picture { display: block; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.figure img { display: block; width: 100%; height: auto; }
.figure figcaption {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 12px; font-size: .8125rem; color: var(--dim); line-height: 1.55;
}
.figure figcaption::before {
  content: ""; flex: none; width: 28px; height: 6px; margin-top: 6px;
  border-radius: var(--r-pill);
  background: repeating-linear-gradient(115deg, var(--price) 0 6px, transparent 6px 14px);
}

/* --- Forms ---------------------------------------------------------------- */
.form { display: grid; gap: var(--s3); }
.frow { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field-group { display: grid; gap: 7px; }
.field-group > label {
  font-family: var(--d); font-size: .8125rem; font-weight: 600; color: var(--text);
}
.field-group .hint { font-size: .75rem; color: var(--dim); }
.field-group .err { font-size: .75rem; color: var(--warn); display: none; align-items: center; gap: 6px; }
.field-group.is-invalid .err { display: flex; }
.field-group.is-invalid input,
.field-group.is-invalid select { border-color: var(--warn); }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="date"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--raised); border: 1px solid var(--line-strong);
  border-radius: var(--r-md); color: var(--text);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--dim); }
/* The border tint alone is a 1.23:1 change between states — nowhere near the
   3:1 a focus indicator needs. Keep the tint as reinforcement and let the
   global :focus-visible ring do the actual work. */
input:focus, select:focus, textarea:focus { border-color: var(--price); background: var(--surface); }
select { appearance: none; background-image: none; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap .ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--dim); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--muted); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--price); flex: none; cursor: pointer; }
.check a { color: var(--text); border-bottom: 1px solid var(--price); }

.steps { display: flex; gap: 6px; margin-bottom: var(--s3); flex-wrap: wrap; }
.step {
  display: flex; align-items: center; gap: 8px; flex: 1 1 130px;
  padding: 10px 12px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--raised);
  font-family: var(--d); font-size: .75rem; font-weight: 600; color: var(--dim);
}
.step b {
  width: 22px; height: 22px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); font-size: .6875rem;
}
.step.is-on { border-color: var(--price); color: var(--text); background: var(--price-soft); }
.step.is-on b { background: var(--price); color: var(--price-ink); border-color: var(--price); }
.step.is-done { color: var(--rg); border-color: rgba(47, 178, 137, .4); }
.step.is-done b { background: var(--rg); color: #04160F; border-color: var(--rg); }

.form-acts { display: flex; gap: 10px; flex-wrap: wrap; }

.result {
  display: grid; gap: var(--s2); justify-items: center; text-align: center;
  padding: var(--s5) var(--s3);
}
.result .ring {
  width: 68px; height: 68px; border-radius: var(--r-pill); display: grid; place-items: center;
  background: var(--rg-soft); border: 1px solid var(--rg); color: var(--rg);
}
.result h2 { font-size: 1.5rem; }

/* --- Footer --------------------------------------------------------------- */
.foot { background: var(--sunken); border-top: 1px solid var(--line); margin-top: var(--s8); }
.foot-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--s4); padding-block: var(--s6) var(--s4);
}
.foot h2 {
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text);
  margin-bottom: var(--s2);
}
.foot nav { display: grid; gap: 9px; }
.foot nav a, .foot nav button {
  font-size: .875rem; color: var(--muted); background: none; border: 0; padding: 0;
  text-align: left; cursor: pointer; transition: color .16s var(--ease);
}
.foot nav a:hover, .foot nav button:hover { color: var(--price); }
.foot-tel { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }

.rgwarn {
  display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap;
  background: var(--warn); color: var(--warn-ink);
  border-radius: var(--r-xl); padding: var(--s3);
  margin-bottom: var(--s3);
}
.rgwarn .age18 {
  width: 54px; height: 54px; flex: none; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--warn-ink); color: var(--warn);
  font-family: var(--d); font-weight: 800; font-size: 1rem;
}
.rgwarn p { font-size: .9375rem; }
.rgwarn strong { display: block; font-family: var(--d); font-size: 1.0625rem; letter-spacing: -.01em; margin-bottom: 4px; }
.rgwarn a { color: var(--warn-ink); border-bottom: 1px solid rgba(42, 28, 0, .5); font-weight: 600; }

.betstop-band {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  background: #FFFFFF; border-radius: var(--r-lg); padding: var(--s2) var(--s3);
  margin-bottom: var(--s3);
}
.betstop-band img { height: 40px; width: auto; }
.betstop-band p { color: #0A1020; font-size: .8125rem; max-width: 74ch; }
.betstop-band a { color: #0A1020; font-weight: 600; border-bottom: 1px solid #0A1020; }

/* Scheme logos are the light variants, so the chip is a raised dark plate
   rather than a white one — no white-on-white, no repainted brand marks. */
.paymarks { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pay-chip {
  display: grid; place-items: center; width: 66px; height: 42px;
  background: var(--raised); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 9px 11px;
}
.pay-mark { max-width: 100%; max-height: 100%; width: auto; height: auto; }
/* The Mastercard mark is nearly square, so a shared max-height would render it
   half the optical size of the wordmarks beside it. */
.pay-chip.pay-mastercard { padding-block: 5px; }
.paymarks-lg { gap: 12px; margin-block: var(--s3); }
.paymarks-lg .pay-chip { width: 84px; height: 52px; padding: 12px 14px; }
.paymarks-lg .pay-chip.pay-mastercard { padding-block: 6px; }
.paymarks-lg .chip { height: 52px; padding-inline: 18px; font-size: .875rem; }

.legal { padding-block: var(--s3); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.legal p { font-size: .8125rem; color: var(--dim); max-width: 100ch; }
.legal strong { color: var(--muted); }
.legal a { color: var(--muted); border-bottom: 1px solid var(--line-strong); }

.legal-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s2); margin: 0; padding-block: var(--s3); border-top: 1px solid var(--line);
}
.legal-facts div { display: grid; gap: 2px; }
.legal-facts dt { font-family: var(--d); font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.legal-facts dd { margin: 0; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.foot-bottom {
  display: flex; gap: var(--s2) var(--s4); flex-wrap: wrap; align-items: center;
  padding-block: var(--s3) var(--s6); border-top: 1px solid var(--line);
  font-size: .8125rem; color: var(--dim);
}
.foot-bottom .age {
  display: inline-flex; align-items: center; gap: 6px; color: var(--rg);
  border: 1px solid var(--rg); border-radius: var(--r-pill); padding: 2px 10px;
  font-family: var(--d); font-weight: 700; font-size: .6875rem;
}

/* --- Cookie consent ------------------------------------------------------- */
/* The layer is painted with the first frame — waiting for app.js would make the
   banner the LCP element. The head script adds .consented when a choice is
   already stored, so returning visitors never see it flash. The layer itself
   never eats clicks: only the banner is interactive, the page underneath stays
   usable while the choice is open. */
.consent { position: fixed; inset: 0; z-index: 140; display: none; pointer-events: none; }
.js .consent { display: block; }
.js.consented .consent,
.consent.is-off { display: none; }
.consent-banner {
  pointer-events: auto;
  position: absolute; inset-inline: 16px; bottom: 16px;
  display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-xl); padding: var(--s3);
  box-shadow: var(--sh-lg); max-width: calc(var(--wrap) - 32px); margin-inline: auto;
}
.consent-banner p { font-size: .875rem; color: var(--muted); flex: 1 1 380px; }
.consent-banner strong { color: var(--text); }
.consent-banner a { color: var(--text); border-bottom: 1px solid var(--price); }
.consent-acts { display: flex; gap: 8px; flex-wrap: wrap; }

.modal { position: fixed; inset: 0; z-index: 150; display: none; place-items: center; padding: 16px; background: var(--overlay); }
.modal.is-on { display: grid; }
.modal-card {
  width: min(620px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-xl); padding: var(--s4); box-shadow: var(--sh-lg);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); }
.modal-head h2 { font-size: 1.25rem; }
.cat { display: flex; gap: var(--s2); align-items: flex-start; justify-content: space-between;
  padding: var(--s2) 0; border-top: 1px solid var(--line); }
.cat b { font-family: var(--d); font-size: .9375rem; }
.cat p { font-size: .8125rem; color: var(--dim); margin-top: 3px; }
.cat input { width: 22px; height: 22px; accent-color: var(--price); flex: none; margin-top: 4px; }
.modal-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--s3); }

/* --- Toast ---------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  z-index: 160; display: flex; align-items: center; gap: 10px;
  background: var(--raised); border: 1px solid var(--rg); color: var(--text);
  border-radius: var(--r-pill); padding: 11px 20px; font-size: .875rem;
  box-shadow: var(--sh-lg); opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast .ico { color: var(--rg); }

/* --- Scroll to top -------------------------------------------------------- */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: 46px; height: 46px; border-radius: var(--r-pill);
  display: grid; place-items: center; cursor: pointer;
  background: var(--raised); border: 1px solid var(--line-strong); color: var(--text);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), background .18s var(--ease);
}
.totop.is-on { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { background: var(--price); color: var(--price-ink); border-color: var(--price); }

/* --- Reveal animation ------------------------------------------------------
   Only hidden when scripting is available, so content is never lost if the
   observer never fires. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes tick { 0% { transform: translateY(0); } 40% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
.is-ticking { animation: tick .38s var(--ease); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .shell { grid-template-columns: 1fr; }
  .slip { position: static; }
  .slip-aside { order: 2; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-lead { border-right: 0; padding: var(--s5) 0 var(--s3); }
  .hero-side { padding: 0 0 var(--s5); border-top: 1px solid var(--line); padding-top: var(--s4); }
}

@media (max-width: 860px) {
  :root { --s6: 40px; --s7: 48px; --s8: 64px; }
  .rubrics-scroll { display: none; }
  .rubrics { border-top: 0; align-items: center; }
  .rubrics .acts { padding-left: 0; gap: 6px; }
  /* Touch sizing: 44px on every control a thumb has to find. Stated at the
     same specificity as the rules being raised — `.tabs-sm .tab` and friends
     would otherwise keep their desktop heights. Inline links inside prose are
     deliberately left alone; SC 2.5.8 exempts them and padding them out would
     break the line rhythm. */
  .rubrics .acts .btn { padding: 11px 14px; min-height: 44px; font-size: .75rem; }
  .btn-sm { min-height: 44px; }
  .tab, .tabs-sm .tab { min-height: 44px; }
  .crumbs a,
  .shead-link,
  .event-more { display: inline-flex; align-items: center; min-height: 44px; }
  .helpnav a,
  .foot nav a,
  .foot nav button { display: flex; align-items: center; min-height: 44px; }
  .foot nav { gap: 0; }
  .field-toggle { padding-block: 10px; min-height: 44px; }
  .burger {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    padding: 10px 14px; margin-block: 8px;
    background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-pill);
    color: var(--text); font-family: var(--d); font-weight: 600; font-size: .8125rem; cursor: pointer;
  }
  .mast-top { padding-block: var(--s2) 10px; }
  .mast-meta { display: none; }
  .figs { grid-template-columns: 1fr 1fr; }
  .figs div:nth-child(2) { border-right: 0; }
  .field-head, .runner { grid-template-columns: 34px minmax(0, 1fr) 160px; gap: 8px; }
  .runner-odds { gap: 8px; }
  .odds-3 { grid-template-columns: 1fr; }
  .rgwarn { padding: var(--s2); }
  .consent-banner { inset-inline: 10px; bottom: 10px; padding: var(--s2); }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .ticket { padding: var(--s2); border-radius: var(--r-md); }
  .ticket-lg { padding: var(--s3); border-radius: var(--r-lg); }
  .perf { margin-inline: calc(var(--s2) * -1); }
  .ticket-lg .perf { margin-inline: calc(var(--s3) * -1); }
  .figs { grid-template-columns: 1fr; }
  .figs div { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: var(--s2); }
  .figs div:last-child { border-bottom: 0; }
  .field-head { display: none; }
  .runner { grid-template-columns: 34px minmax(0, 1fr); row-gap: 10px; }
  .runner-odds { grid-column: 2 / 3; }
  /* Narrow buttons: stack the selection over the price instead of ellipsising
     a team name into "Penrith P…". The race card also gets its Win/Place
     labels back here, because the column headings are hidden at this width. */
  .odd { flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; }
  .odd-name { white-space: normal; }
  .runner-odds .odd { justify-content: center; align-items: center; }
  .runner-odds .odd-name { display: block; }
  .brand-word { font-size: 2rem; }
  .brand-sub { letter-spacing: .22em; font-size: .5625rem; }
  .totop { right: 12px; bottom: 78px; }
  .shead-kick { flex-wrap: wrap; }
  .hero .shead-kick .shead-rule { display: none; }
  .rgbar .wrap { gap: 6px 14px; font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .rgbar, .rubrics, .slip, .slip-bar, .totop, .consent, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}
