/* ==========================================================================
   Home — hero
   ========================================================================== */
.hero { display: flex; min-height: 680px; background: var(--c-paper); }
.hero__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px 64px 64px max(var(--pad-x), calc((100vw - 1280px) / 2));
}
.hero__meta { display: flex; flex-direction: column; gap: 16px; }
.hero__eyebrow { color: var(--c-muted); font: 700 11px/14px var(--f-sans); }
.hero__title {
  color: var(--c-ink);
  font: 700 clamp(64px, 6.667vw, 96px)/.9167 var(--f-narrow);
  text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__copy { max-width: 480px; color: var(--c-muted); font: 400 15px/22px var(--f-sans); }
.hero__actions { display: flex; gap: 16px; }
.hero__btn { padding: 15px 23px; }

.hero__media { flex: 0 0 40%; display: flex; flex-direction: column; margin: 0; }
/* flex-basis 0: the photo fills the hero height (680px as in the mockup) instead of dictating it —
   with `auto` the 576×634 image kept its intrinsic ratio on wide screens and stretched the hero. */
.hero__media picture { flex: 1 1 0; min-height: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption {
  padding: 16px 24px 16px 0;
  color: var(--c-muted);
  font: 600 11px/14px var(--f-sans);
  text-align: right;
}

/* ==========================================================================
   Ticker
   ========================================================================== */
.ticker { background: var(--c-ink); }
.ticker__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 44px; }
.ticker__list {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.ticker__list::-webkit-scrollbar { display: none; }
.ticker__list li { display: flex; align-items: center; gap: 32px; flex: none; }
.ticker__list li::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #E5E2DC; }
.ticker__list a { color: #fff; font: 700 14px/19px var(--f-narrow); transition: color .2s var(--ease); }
.ticker__list a:hover { color: var(--c-accent); }
.ticker__next { color: var(--c-accent); font: 700 14px/19px var(--f-narrow); transition: transform .25s var(--ease); }
.ticker__next:hover { transform: translateX(3px); }

/* ==========================================================================
   Sportsbook (popular markets + bet slip)
   ========================================================================== */
.sportsbook__inner { display: flex; align-items: flex-start; gap: 40px; padding-top: 48px; padding-bottom: 64px; }
.sportsbook__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 32px; }

.markets-head { display: flex; flex-direction: column; gap: 16px; }
.markets-head__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: 700 56px/52px var(--f-narrow);
  text-transform: uppercase;
}
.markets-head__sub { color: var(--c-text); font: 400 15px/22px var(--f-sans); }

.tabs { display: flex; gap: 24px; padding-top: 8px; }
.tabs__tab {
  padding-bottom: 8px;
  color: var(--c-text);
  font: 700 13px/17px var(--f-sans);
  transition: color .2s var(--ease), box-shadow .2s var(--ease);
}
.tabs__tab:hover { color: var(--c-ink); }
.tabs__tab.is-active { color: var(--c-ink); box-shadow: inset 0 -2px 0 var(--c-accent); }

.events { box-shadow: inset 0 -1px 0 var(--c-line); }
.event {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 280px 110px;
  align-items: center;
  gap: 24px;
  min-height: 96px;
  padding: 20px 0;
  box-shadow: inset 0 1px 0 var(--c-line);
}
.event__meta { display: flex; flex-direction: column; gap: 4px; color: var(--c-text); }
.event__league { font: 700 11px/14px var(--f-sans); }
.event__time { font: 400 13px/17px var(--f-sans); }
.event__teams { display: flex; flex-direction: column; gap: 4px; }
.event__match { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; font: 700 15px/20px var(--f-sans); }
.event__match span { color: var(--c-text); font: 400 13px/17px var(--f-sans); }
.event__market { color: var(--c-text); font: 400 12px/16px var(--f-sans); }
.event__odds { display: flex; gap: 8px; }
.event__more {
  justify-self: end;
  color: var(--c-text);
  font: 600 13px/17px var(--f-sans);
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.event__more:hover { color: var(--c-accent); }

.odd {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 11px 11px 7px;
  border: 1px solid var(--c-line);
  border-radius: 2px;
  text-align: left;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .15s var(--ease);
}
.odd:hover { border-color: var(--c-accent); }
.odd:active { transform: scale(.98); }
.odd__label { color: var(--c-text); font: 700 10px/13px var(--f-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.odd__price { color: var(--c-accent); font: 800 16px/21px var(--f-sans); }
.odd.is-selected { background: var(--c-accent); border-color: var(--c-accent); }
.odd.is-selected .odd__label,
.odd.is-selected .odd__price { color: #fff; }

/* ==========================================================================
   Racing — next to jump
   ========================================================================== */
.racing { background: var(--c-ink); color: #fff; }
.racing__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "head cta" "list list";
  align-items: end;
  row-gap: 40px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.racing__head { grid-area: head; display: flex; flex-direction: column; gap: 8px; }
.racing__eyebrow { color: var(--c-accent); font: 800 12px/16px var(--f-sans); }
.racing__title { font: 700 64px/60px var(--f-narrow); }
.racing__cta { grid-area: cta; }
.racing__list { grid-area: list; display: flex; gap: 24px; }
.race-card { flex: 1 1 0; min-width: 0; }
.race-card a { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }
.race-card a::after { content: ''; height: 1px; background: var(--c-dark-line); transition: background-color .3s var(--ease); }
.race-card a:hover::after { background: var(--c-accent); }
.race-card__time { display: flex; align-items: baseline; gap: 4px; }
.race-card__mins { font: 700 48px/48px var(--f-narrow); }
.race-card__unit { color: var(--c-gray); font: 700 11px/14px var(--f-sans); }
.race-card__details { display: flex; flex-direction: column; gap: 4px; }
.race-card__venue { font: 700 16px/22px var(--f-narrow); transition: color .2s var(--ease); }
.race-card a:hover .race-card__venue { color: var(--c-accent); }
.race-card__race { color: var(--c-gray); font: 400 13px/17px var(--f-sans); }

/* ==========================================================================
   Find your sport
   ========================================================================== */
.find-sport { padding: 80px 0; }
.find-sport__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 40px;
  font: 700 64px/58px var(--f-narrow);
  text-transform: uppercase;
}
.find-sport__grid { display: flex; flex-wrap: wrap; }
.sport-tile { --reveal-delay: calc(var(--i) * 60ms); flex: 1 1 0; min-width: 0; }
.sport-tile__link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 140px;
  padding: 23px 11px 23px 23px;
  border: 1px solid #D1CCC4;
  border-radius: 2px;
  background: var(--c-paper);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.sport-tile__link:hover { background: #fff; border-color: var(--c-accent); }
.sport-tile__name { font: 700 28px/38px var(--f-narrow); text-transform: uppercase; }
.sport-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; white-space: nowrap; }
.sport-tile__count { color: var(--c-muted); font: 400 14px/18px var(--f-sans); }
.sport-tile__cta { display: inline-flex; align-items: center; gap: 4px; color: var(--c-accent); font: 700 13px/17px var(--f-sans); }
.sport-tile__cta .icon { transition: transform .25s var(--ease); }
.sport-tile__link:hover .sport-tile__cta .icon { transform: translateX(3px); }

/* ==========================================================================
   Feature rows
   ========================================================================== */
.feature { display: flex; height: 400px; background: var(--c-paper); }
.feature__media { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.03); }
.feature__content {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.feature__text { display: flex; flex-direction: column; gap: 12px; }
.feature__eyebrow { color: var(--c-accent); font: 800 12px/16px var(--f-sans); }
.feature__title { font: 700 44px/44px var(--f-narrow); text-transform: uppercase; }
.feature__copy { color: var(--c-muted); font: 400 15px/20px var(--f-sans); }

.feature--afl .feature__content {
  padding: 64px max(var(--pad-x), calc((100vw - 1280px) / 2)) 64px 64px;
  box-shadow: inset 1px 0 0 #E5E2DC, inset 0 1px 0 #E5E2DC, inset 0 -1px 0 #E5E2DC;
}
.feature--brand .feature__content {
  padding: 64px 64px 64px max(var(--pad-x), calc((100vw - 1280px) / 2));
  box-shadow: inset -1px 0 0 #E5E2DC, inset 0 1px 0 #E5E2DC, inset 0 -1px 0 #E5E2DC;
}
.feature--brand .feature__text { gap: 16px; }
.feature--brand .feature__title { display: flex; flex-direction: column; gap: 2px; line-height: 40px; }
.feature--brand .feature__copy { line-height: 22px; }

/* ==========================================================================
   Responsible gambling (light)
   ========================================================================== */
.perspective { padding: 80px 0; box-shadow: inset 0 1px 0 #E5E2DC; }
.perspective__head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 48px; }
.perspective__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font: 700 48px/44px var(--f-narrow);
  text-transform: uppercase;
}
.perspective__copy { color: var(--c-muted); font: 400 15px/20px var(--f-sans); }
.perspective__tools { display: flex; gap: 32px; }
.tool { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; padding-right: 8px; }
.tool__num { color: var(--c-accent); font: 700 32px/43px var(--f-narrow); }
.tool__meta { display: flex; flex-direction: column; gap: 8px; }
.tool__title { font: 700 16px/22px var(--f-narrow); }
.tool__text { color: var(--c-muted); font: 400 14px/20px var(--f-sans); }
.tool__link { align-self: flex-start; color: var(--c-ink); font: 700 13px/17px var(--f-sans); transition: color .2s var(--ease); }
.tool__link:hover { color: var(--c-accent); }

/* ==========================================================================
   Responsible gambling (dark, mobile)
   ========================================================================== */
.rg-dark { padding: 64px 0; background: var(--c-ink); color: #fff; }
.rg-dark__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.rg-dark__eyebrow { color: var(--c-accent); font: 700 11px/14px var(--f-sans); }
.rg-dark__title { font: 700 38px/40px var(--f-narrow); }
.rg-dark__copy { color: var(--c-gray-2); font: 400 14px/20px var(--f-sans); }
.rg-dark__item { display: flex; gap: 16px; padding: 16px 0; box-shadow: inset 0 1px 0 var(--c-dark-line); }
.rg-dark__item:last-child { box-shadow: inset 0 1px 0 var(--c-dark-line), inset 0 -1px 0 var(--c-dark-line); }
.rg-dark__num { flex: 0 0 32px; color: var(--c-accent); font: 700 24px/32px var(--f-narrow); }
.rg-dark__body { display: flex; flex-direction: column; gap: 6px; }
.rg-dark__name { font: 700 14px/19px var(--f-narrow); }
.rg-dark__text { color: var(--c-gray-2); font: 400 13px/18px var(--f-sans); }
.rg-dark__link { align-self: flex-start; color: var(--c-accent); font: 700 13px/17px var(--f-sans); }
.rg-dark__link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1199.98px) {
  .event { grid-template-columns: 130px minmax(0, 1fr) 220px; }
  .event__more { grid-column: 3; margin-top: -12px; }
  .sportsbook .betslip { flex-basis: 320px; }
  .find-sport__grid { gap: 12px; }
  .sport-tile { flex-basis: calc(33.333% - 8px); }
  .feature__title { font-size: 38px; line-height: 40px; }
  .perspective__tools { flex-wrap: wrap; row-gap: 40px; }
  .tool { flex-basis: calc(50% - 16px); }
  .racing__list { overflow-x: auto; scrollbar-width: none; }
  .race-card { flex: 0 0 200px; }
}

@media (max-width: 1023.98px) {
  .sportsbook__inner { flex-direction: column; align-items: stretch; }
  .sportsbook .betslip { position: static; flex-basis: auto; }
  .hero__content { padding-right: 40px; }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 767.98px) {
  .hero { flex-direction: column; min-height: 0; }
  .hero__content { gap: 16px; justify-content: flex-start; padding: 20px 20px 0; }
  .hero__eyebrow { color: var(--c-muted); }
  .hero__title { font-size: 52px; line-height: 48px; }
  .hero__actions { flex-direction: column; gap: 12px; }
  .hero__btn { width: 100%; padding: 11px 15px; }
  .hero__btn--how { padding: 8px 0; border: 0; background: none; }
  .hero__btn--how:hover { background: none; color: var(--c-accent); }
  .hero__media { flex-direction: column-reverse; flex-basis: auto; }
  .hero__media picture { flex: 0 0 auto; }
  .hero__media img { height: 400px; }
  .hero__caption { padding: 16px 20px 20px; text-align: left; }

  .ticker__inner { gap: 16px; }
  .ticker__list { gap: 16px; }
  .ticker__list li { gap: 16px; }
  .ticker__list li::after { width: 3px; height: 3px; background: #DADAD2; }
  .ticker__list li:last-child::after { display: none; }
  .ticker__list a { font-size: 13px; line-height: 18px; }
  .ticker__next { display: none; }

  .sportsbook { box-shadow: inset 0 1px 0 var(--c-line); }
  .sportsbook__inner { gap: 0; padding-top: 0; padding-bottom: 0; }
  .sportsbook__main { gap: 0; }
  .markets-head { padding: 32px 0 8px; }
  .markets-head__title { gap: 0; font-size: 40px; line-height: 38px; }
  .markets-head__sub { display: none; }

  .events { box-shadow: none; }
  .event { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-height: 0; padding: 16px 0; box-shadow: none; }
  .event::after { content: ''; height: 1px; margin-bottom: -1px; background: var(--c-line); }
  .event__meta { flex-direction: row; align-items: center; justify-content: space-between; color: var(--c-muted); }
  .event__time { font-size: 11px; line-height: 14px; }
  .event__match { gap: 0 4px; }
  .event__match span { color: var(--c-ink); font: 400 15px/20px var(--f-sans); }
  .event__market { display: none; }
  .event__more { align-self: flex-end; color: var(--c-accent); font: 700 12px/16px var(--f-sans); }
  .event__more,
  .event__more:hover { margin-top: 0; }
  .odd { align-items: center; padding: 9px; text-align: center; }
  .odd__label { color: var(--c-muted); font-size: 9px; line-height: 12px; }
  .odd__price { font-size: 15px; line-height: 20px; }

  .sportsbook .betslip { margin: 0 calc(var(--pad-x) * -1); }

  .racing__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "list" "cta";
    row-gap: 24px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .racing__head { gap: 4px; }
  .racing__eyebrow { font-size: 11px; line-height: 14px; }
  .racing__title { font-size: 40px; line-height: 54px; }
  .racing__cta { justify-self: start; }
  .racing__list {
    gap: 16px;
    margin-right: calc(var(--pad-x) * -1);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .racing__list::-webkit-scrollbar { display: none; }
  .race-card { flex: 0 0 130px; scroll-snap-align: start; }
  .race-card a { gap: 12px; padding-right: 24px; }
  .race-card__mins { color: var(--c-accent); font-size: 40px; line-height: 54px; }
  .race-card__unit { color: #DADAD2; }
  .race-card__details { gap: 2px; }
  .race-card__venue { font-size: 15px; line-height: 20px; }
  .race-card__race { color: #DADAD2; font-size: 12px; line-height: 16px; }

  .find-sport { padding: 20px 0; }
  .find-sport__title { display: block; margin-bottom: 24px; font-size: 40px; line-height: 54px; }
  .find-sport__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .sport-tile__link { justify-content: flex-start; gap: 24px; height: 103px; padding: 15px; border-color: var(--c-line); }
  .sport-tile__name { font-size: 22px; line-height: 30px; text-transform: none; }
  .sport-tile__count { font-size: 13px; line-height: 17px; }
  .sport-tile__cta { font-size: 12px; line-height: 16px; gap: 0; }

  .feature { flex-direction: column; height: auto; }
  .feature__media { flex: none; height: 220px; }
  .feature__content { flex: none; justify-content: flex-start; gap: 12px; }
  .feature--afl .feature__content,
  .feature--brand .feature__content { padding: 20px; box-shadow: inset 0 0 0 1px var(--c-line); }
  .feature--brand { flex-direction: column; }
  .feature--brand .feature__content { order: -1; box-shadow: none; }
  .feature__eyebrow { font-size: 11px; line-height: 14px; }
  .feature__title { font-size: 30px; line-height: 40px; }
  .feature__copy { font-size: 14px; line-height: 18px; }
  .feature--brand .feature__text { gap: 12px; }
  .feature--brand .feature__title { gap: 0; font-size: 36px; line-height: 48px; }
  .feature--brand .feature__copy { font-size: 15px; line-height: 22px; }
  .feature__cta { padding-top: 8px; }
  .feature--brand .feature__cta { padding-bottom: 16px; }

  .perspective { padding: 20px 0; box-shadow: inset 0 0 0 1px var(--c-line); }
  .perspective__head { gap: 12px; margin-bottom: 24px; }
  .perspective__title { gap: 0; font-size: 32px; line-height: 34px; }
  .perspective__copy { font-size: 14px; line-height: 18px; }
  .perspective__tools { flex-direction: column; gap: 16px; }
  .tool { gap: 12px; padding: 0 0 16px; }
  .tool::after { content: ''; height: 1px; margin-bottom: -1px; background: var(--c-line); }
  .tool__num { font-size: 24px; line-height: 32px; }
  .tool__meta { gap: 6px; }
  .tool__title { color: #111211; font-size: 15px; line-height: 20px; }
  .tool__text { font-size: 13px; line-height: 18px; }
  .tool__link { font-size: 12px; line-height: 16px; }
}
