.styles-module__container--MG1gy {
  width: 100%;
  /*
   * border-box so the padding below is absorbed within the 100% width instead of
   * widening the bar and forcing an 8px horizontal overflow past the carousel
   * bleed.
   */
  box-sizing: border-box;
  background: #05285a; /* themeExtensionComponentAppHeaderBackgroundBase */
  /*
   * XS/S (base) padding per the Figma "Quick Links Carousel / Mobile" node
   * (5270:99991), a 375×193 container: 16px of navy ABOVE the cards (the inner
   * carousel frame sits at y=16), a 16px leading inset before the first card
   * (first card x=16 — the same 16px as the inter-card gap), and 16px below
   * (previously provided by the <ul> scroll container's padding-bottom; the
   * FormationCarousel now owns the scroll container). Right stays 0 so the bar
   * bleeds off-screen; only the dark bar shows in the gutter. M+ overrides the
   * top/left insets to 0 below.
   */
  padding: 16px 0 16px 16px;
}

/*
 * M/L/XL per the Figma "Quick Links Carousel / Desktop" node (5275:134370), a
 * 928×177 container whose inner carousel sits at x=0/y=0: the first card is flush
 * (no top or left inset) so the promo carousel left-aligns with the Top Races
 * module box (both sit at the content-column left edge). Only the 16px bottom
 * space is kept.
 */
@media (min-width: 960px) {
  .styles-module__container--MG1gy {
    padding-top: 0;
    padding-left: 0;
  }
}

.styles-module__image--_jZNa {
  /*
   * FDR promo cards are a single Content-Ops image (the CTA button is baked into
   * the image, the whole card is clickable — see TC-1187), so the image IS the
   * full card: 292×161 per the Figma "Quick Link Card" (same size at XS/S/M/L/XL).
   * Previously 111px tall (the Figma's image-only sub-region), which dropped the
   * ~50px embedded-button area and made the cards look too short.
   */
  height: 161px;
  width: 292px;
  display: block;
  object-fit: cover;
  border-radius: 4px;
}

.styles-module__hasBottomDivider--Hjg3z::after {
  content: "";
  height: 1px;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80%;
  background-color: var(--fd-colors-border-subtle);
}

.styles-module__oddsClickable--frwIo {
  background: var(--fd-colors-component-button-tertiary-background-base);
}

.styles-module__oddsClickable--frwIo:hover,
.styles-module__oddsClickable--frwIo:focus-visible {
  background: var(--fd-colors-component-button-tertiary-background-hover);
}

.styles-module__oddsClickable--frwIo:active {
  background: var(--fd-colors-component-button-tertiary-background-active);
}

.styles-module__oddsClickable--frwIo:focus-visible {
  outline: 1px solid var(--fd-colors-component-button-tertiary-border-active);
}

.styles-module__oddsClickable--frwIo:active * {
  color: var(--fd-colors-component-button-tertiary-content-active);
}

.styles-module__oddsClickableFav--AakNn {
  position: relative;
  padding-top: 5px;
  min-width: 55px;
}

.styles-module__oddsClickableFav--AakNn > :first-child {
  position: absolute;
  top: 0;
}

@media screen and (max-width: 767px) {
  .styles-module__containerMobilePadding--MGE5J {
    padding-left: 8px;
  }

  .styles-module__oddsClickableFav--AakNn {
    padding-top: 10px;
  }
}

.styles-module__icons--IFdLD {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  color: var(--fd-colors-content-subtle, #6a6f73);
}

.styles-module__iconsOnDark--8Z_BY {
  color: var(--fd-colors-content-on-dark, #ffffff);
}

.styles-module__header--X13s9 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--fd-colors-background-surface, #ffffff);
  border-bottom: 1px solid var(--fd-colors-border-subtle, #c6d3e1);
}

.styles-module__headerHighlighted--g8sGI {
  background: var(--fd-colors-background-promotional, #011638);
}

/* Row 1: MTP + track name (left), featured tag (right) */
.styles-module__raceInfoRow--Yai_9 {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.styles-module__mtpRaceInfo--TKW5k {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.styles-module__mtp--rEPgr {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
}

.styles-module__mtpRed--qx3po {
  color: var(--fd-colors-system-component-mtp-less-than-six-minutes, #d22839);
}

.styles-module__mtpBlue--SlGAS {
  color: var(--fd-colors-system-component-mtp-more-than-six-minutes, #184c8b);
}

.styles-module__mtpOnDark--PBUp5 {
  /*
   * Non-red MTP on a highlighted (dark) header: muted light-navy, matching the
   * legacy Popular Races card (which sets the highlighted MTP text to
   * core-navy-l-3), NOT white. The `mtp-content-on-dark-default` var isn't
   * registered app-wide, so the previous #ffffff fallback rendered as white —
   * hence the hex fallback here is core-navy-l-3 (#9cb1cb).
   */
  color: var(--fd-colors-core-navy-l-3, #9cb1cb);
}

.styles-module__mtpRedOnDark--UPLVk {
  color: var(
    --fd-colors-theme-extension-component-mtp-content-on-dark-0to5m,
    #f198a1
  );
}

.styles-module__trackName--zOOoY {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--fd-colors-content-default, #1c1d1d);
  margin: 0;
}

.styles-module__trackNameOnDark--V6aks {
  color: var(--fd-colors-content-on-dark, #ffffff);
}

/* Featured "Race of the Day" tag */
.styles-module__featuredTag--q6kKC {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 1px 8px;
  border-radius: 12px;
  background: var(--fd-colors-system-alert-background-default, #ffdc2e);
  color: var(--fd-colors-system-alert-content-on-default, #05285a);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Row 2: flag + location (left), icons (right) */
.styles-module__locationRow--R_0ig {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.styles-module__location--dUlnG {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.styles-module__locationLabel--jKU6Y {
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--fd-colors-content-subtle, #6a6f73);
}

.styles-module__locationLabelOnDark--qgpxw {
  color: var(--fd-colors-content-on-dark, #ffffff);
}

.styles-module__container--GXBgX {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 67px;
  padding: 4px 16px;
}

.styles-module__hasBottomDivider--JGFCT::after {
  content: "";
  height: 1px;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80%;
  background-color: var(--fd-colors-border-subtle, #e0e3e6);
}

.styles-module__silkWrapper--ZgUqF {
  flex-shrink: 0;
}

.styles-module__runnerDetails--yHlgS {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0 8px;
  align-items: flex-start;
  overflow: hidden;
  justify-content: center;
}

.styles-module__horseName--iWG8K {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--fd-colors-content-strong, #05285a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  margin: 0;
}

.styles-module__jockeyTrainer--CdWpd {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.styles-module__runnerLabel--o2VrR {
  font-size: 12px;
  line-height: 16px;
  color: var(--fd-colors-content-subtle, #6c737a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 1px 0;
}

.styles-module__oddsContainer--tuHGQ {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.styles-module__oddsClickableFav--T9IYA {
  position: relative;
  padding-top: 5px;
  min-width: 55px;
}

.styles-module__oddsClickableFav--T9IYA > :first-child {
  position: absolute;
  top: 0;
}

.styles-module__favTagWrapper--r81xk {
  display: flex;
  justify-content: flex-end;
  padding-right: 4px;
  width: 100%;
}

.styles-module__oddsClickable--RqJ0Y {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px;
  min-width: 55px;
  /*
   * Odds chip border matches the Figma "Popular Race Card" odds tag:
   * component/selectionControl/border/active (#0070eb) — the same blue as the
   * odds text — not a neutral gray.
   */
  border: 1px solid
    var(--fd-colors-component-selection-control-border-active, #0070eb);
  border-radius: 4px;
  cursor: pointer;
}

.styles-module__oddsClickable--RqJ0Y:hover {
  background: var(--fd-colors-component-button-tertiary-background-hover, #f0f4f8);
}

.styles-module__currentOdds--J6urU {
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  color: var(--fd-colors-content-default, #0a0a0a);
  margin: 0;
}

.styles-module__morningLineOdds--bAM9c {
  font-size: 12px;
  line-height: 16px;
  color: var(--fd-colors-content-subtle, #6c737a);
  margin: 0;
}

.styles-module__oddsClickable--RqJ0Y .styles-module__currentOdds--J6urU,
.styles-module__oddsClickable--RqJ0Y .styles-module__morningLineOdds--bAM9c {
  color: var(
    --fd-colors-component-selection-control-foreground-active,
    #0070eb
  );
}

@media screen and (max-width: 767px) {
  .styles-module__container--GXBgX {
    padding-left: 8px;
  }

  .styles-module__jockeyTrainer--CdWpd {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .styles-module__oddsClickableFav--T9IYA {
    padding-top: 10px;
  }
}

.styles-module__card--hs8oD {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border: 1px solid var(--fd-colors-border-default, #b0b7bf);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.styles-module__card--hs8oD:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

@keyframes styles-module__shimmer--LEPg5 {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

.styles-module__skeleton--S_WQg {
  width: 100%;
  height: 100%;
  min-height: 290px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.styles-module__shimmerBase--yg_X7 {
  background: linear-gradient(
    90deg,
    #e8ecef 25%,
    #f4f6f7 50%,
    #e8ecef 75%
  );
  background-size: 800px 100%;
  animation: styles-module__shimmer--LEPg5 1.5s infinite linear;
}

.styles-module__headerBar--NwLoB {
  height: 52px;
  margin: 0;
}

.styles-module__runnerRow--DSVUJ {
  height: 67px;
  margin-top: 1px;
}

.styles-module__footerBar--TkT01 {
  height: 36px;
  margin-top: auto;
}

/*
 * FDTV Picks card. Structural layout + surfaces live here (CSS modules, no
 * styled-components per the Formation initiative); text, buttons, avatar, MTP
 * and saddlecloths are Formation components. Colors use Formation token vars
 * with Figma-hex fallbacks because --fd-colors-* are not registered app-wide.
 * Values from Figma node 5275:122070 (FDTV Picks Module / Desktop).
 */
.styles-module__card--LY47b {
  display: flex;
  flex-direction: column;
  height: 282px;
  box-sizing: border-box;
  background: var(--fd-colors-background-surface, #ffffff);
  border: 1px solid var(--fd-colors-border-default, #b0b7bf);
  border-radius: 4px;
  overflow: hidden;
}

.styles-module__header--maLoI {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  cursor: pointer;
  background: var(--fd-colors-background-layer, #f7fbff);
  border-bottom: 1px solid var(--fd-colors-border-subtle, #c6d3e1);
}

.styles-module__avatar--ka6xe {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--fd-colors-border-subtle, #c6d3e1);
}

.styles-module__headerText--tBe7b {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
}

.styles-module__betInfo--laOBn {
  display: flex;
  align-items: center;
  gap: 4px;
}

.styles-module__divider--RdwTN {
  flex-shrink: 0;
  width: 1px;
  height: 14px;
  background: var(--fd-colors-border-default, #b0b7bf);
}

.styles-module__body--hqtL0 {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

.styles-module__raceInfo--h7uGV {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.styles-module__pickList--u43VJ {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.styles-module__footer--a2rHr {
  display: flex;
  gap: 8px;
  padding: 12px;
}

.styles-module__footerButton--nQYCt {
  flex: 1 1 0;
  min-width: 0;
}

.styles-module__card--eJYb8 {
  display: flex;
  flex-direction: column;
  height: 282px;
  box-sizing: border-box;
  background: var(--fd-colors-background-surface, #ffffff);
  border: 1px solid var(--fd-colors-border-default, #b0b7bf);
  border-radius: 4px;
  overflow: hidden;
}

.styles-module__header--zB4rQ {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--fd-colors-background-layer, #f7fbff);
  border-bottom: 1px solid var(--fd-colors-border-subtle, #c6d3e1);
}

.styles-module__headerText--l8w_3 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 0;
}

.styles-module__body--Lkpa3 {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

.styles-module__footer--JuQuo {
  display: flex;
  gap: 8px;
  padding: 12px;
}

.styles-module__bar--LJaQa {
  display: block;
  border-radius: 2px;
  background: var(--fd-colors-background-base, #eaf0f6);
  animation: styles-module__fdtvPicksPulse--bCBf6 1.2s ease-in-out infinite;
}

.styles-module__avatarBar--yqHRC {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.styles-module__nameBar--Xykh2 {
  width: 60%;
  height: 14px;
}

.styles-module__infoBar--G6FNF {
  width: 80%;
  height: 12px;
}

.styles-module__raceBar--BKykh {
  width: 70%;
  height: 14px;
}

.styles-module__pickBar--dYvef {
  width: 40%;
  height: 20px;
}

.styles-module__buttonBar--g14N9 {
  flex: 1 1 0;
  height: 44px;
  border-radius: 4px;
}

@keyframes styles-module__fdtvPicksPulse--bCBf6 {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/*
 * FDTV Picks module container.
 * XS/S (base): full-bleed surface per the Figma mobile node 5270:99993 —
 * top/bottom borders only, no radius, full content width like Top Races.
 * M+ (media query) restores the bordered, rounded card per Figma desktop node
 * 5275:122070. The header (title + "See all") is 48px on mobile / 64px on
 * desktop; the carousel keeps a 16px horizontal inset + 16px bottom padding.
 * Colors use Formation token vars with Figma-hex fallbacks.
 */
.styles-module__container--zGFpb {
  width: 100%;
  min-width: 0; /* shrink within the stacked grid column (XS/S) so the carousel scrolls instead of bleeding the page */
  box-sizing: border-box;
  background: var(--fd-colors-background-surface, #ffffff);
  border-top: 1px solid var(--fd-colors-border-default, #b0b7bf);
  border-bottom: 1px solid var(--fd-colors-border-default, #b0b7bf);
  overflow: hidden;
}

.styles-module__header--PTiOS {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  box-sizing: border-box;
  padding: 0 16px;
}

@media (min-width: 960px) {
  .styles-module__container--zGFpb {
    border: 1px solid var(--fd-colors-border-default, #b0b7bf);
    border-radius: 4px;
  }

  .styles-module__header--PTiOS {
    height: 64px;
  }
}

.styles-module__seeAll--AFhVq {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.styles-module__carouselWrapper--sTNJN {
  padding: 0 16px 16px;
}

/*
 * Loading-state row does not use FormationCarousel, so it lays the skeleton
 * cards out in the same horizontal row (matching the 8px gap + .carouselItem
 * responsive widths below).
 */
.styles-module__skeletonList--WqkXg {
  display: flex;
  gap: 8px;
  overflow: hidden;
  padding: 0 16px 16px;
}

/*
 * Per-item width is supplied from JS via useFdtvPicksCarousel as a CSS custom
 * property so card width stays a single source of truth between JS and CSS.
 * FDTV Picks uses a fixed 340px card at all breakpoints (per Figma).
 */
.styles-module__carouselItem--ijFFo {
  width: var(--fdtv-picks-card-width, 340px);
  flex-shrink: 0;
}

/*
 * Previous Winner card shell — structural styles only. Content (text, MTP,
 * chevron) is Formation. Two shells: a fixed-width bordered card for the XS/S
 * carousel (Figma 5270:99997, 325px) and a full-width divided row for the
 * M/L/XL list (Figma 5275:134375). Colours use Formation token vars with the
 * Figma hex fallback (--fd-colors-* aren't registered app-wide).
 */
.styles-module__card--e9rv0,
.styles-module__listItem--ff3K0 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  padding: 16px;
  text-align: left;
  background: var(--fd-colors-background-surface, #ffffff);
  border: none;
  cursor: pointer;
}

/* Carousel card (XS/S): fixed 325px, bordered, rounded. */
.styles-module__card--e9rv0 {
  width: 325px;
  flex-shrink: 0;
  border: 1px solid var(--fd-colors-border-default, #b0b7bf);
  border-radius: 4px;
  overflow: hidden;
}

/* List row (M/L/XL): full width, subtle bottom divider between rows. */
.styles-module__listItem--ff3K0 {
  width: 100%;
  border-bottom: 1px solid var(--fd-colors-border-subtle, #c6d3e1);
}

.styles-module__listItemLast--wAbI9 {
  border-bottom: none;
}

.styles-module__betInfo--_PI5W {
  text-transform: uppercase;
}

/* Next-race track name truncates so the row stays single-line. */
.styles-module__trackName--kHmie {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*
 * Your Previous Winners module. Sidebar surface matching the other Formation
 * homepage modules. XS/S (base): full-bleed — top/bottom borders only, no
 * radius (Figma mobile node 5270:99997); M+ (media query): bordered, rounded
 * card (desktop node 5275:134375). Colours use Formation token vars with the
 * Figma hex fallback (--fd-colors-* aren't registered app-wide).
 */
.styles-module__container--C2kpE {
  width: 100%;
  min-width: 0; /* shrink within the stacked grid column (XS/S) so the carousel scrolls instead of bleeding the page */
  box-sizing: border-box;
  background: var(--fd-colors-background-surface, #ffffff);
  border-top: 1px solid var(--fd-colors-border-default, #b0b7bf);
  border-bottom: 1px solid var(--fd-colors-border-default, #b0b7bf);
  overflow: hidden;
}

@media (min-width: 960px) {
  .styles-module__container--C2kpE {
    border: 1px solid var(--fd-colors-border-default, #b0b7bf);
    border-radius: 4px;
  }
}

/* XS/S carousel wrapper: bottom + horizontal inset around the scrolling cards. */
.styles-module__carouselWrapper--LQL1H {
  padding: 0 16px 16px;
}

/*
 * Shimmer bars for the Your Previous Winners loading state. The container +
 * row geometry are shared from the module and card modules (see index.tsx); this
 * file only carries the animated bars.
 */
.styles-module__bar--S0yjB {
  display: block;
  border-radius: 2px;
  background: var(--fd-colors-background-base, #eaf0f6);
  animation: styles-module__previousWinnersPulse--sEJq8 1.2s ease-in-out infinite;
}

.styles-module__titleBar--k4FuI {
  width: 140px;
  height: 18px;
}

.styles-module__nameBar--mxP34 {
  width: 60%;
  height: 16px;
}

.styles-module__betInfoBar--ZC6pj {
  width: 80%;
  height: 12px;
}

.styles-module__amountBar--YKiFa {
  width: 64px;
  height: 20px;
  flex-shrink: 0;
}

.styles-module__mtpBar--Rk5GZ {
  width: 52px;
  height: 14px;
  flex-shrink: 0;
}

.styles-module__raceBar--hC8B3 {
  width: 70%;
  height: 14px;
}

@keyframes styles-module__previousWinnersPulse--sEJq8 {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/*
 * "101 Card" per Figma (node 5275:125964).
 * Colours use Formation token vars with the Figma hex as a fallback (matching
 * urp-comp-top-pools-formation), so theming applies where --fd-colors-* are
 * registered and the exact hex is used otherwise.
 */
.styles-module__card--yHq_2 {
  display: flex;
  flex-direction: column;
  /* Fill the carousel item wrapper, which owns the responsive width (182px at
     M+, percentage-based at XS/S). A fixed 182px here would leave blank space
     inside the wider XS/S wrappers. */
  width: 100%;
  height: 100%;
  text-align: left;
  padding: 0;
  background: var(--fd-colors-background-surface, #ffffff); /* background/surface */
  border: 1px solid var(--fd-colors-border-default, #b0b7bf); /* border/default */
  border-radius: 4px; /* borderRadius020 */
  overflow: hidden;
  cursor: pointer;
}

/* The card is a role="button" Box (div), so provide a visible keyboard focus
   indicator. Inset offset keeps it inside the card's clipped corners. */
.styles-module__card--yHq_2:focus-visible {
  outline: 2px solid var(--fd-colors-core-blue, #0070eb); /* link/default/base */
  outline-offset: -2px;
}

/*
 * Content area: min/max-height 138px, padding space4 (16px), gap space2 (8px).
 */
.styles-module__content--VIRRA {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 138px;
  padding: 16px;
}

.styles-module__icon--e9g60 {
  display: flex;
}

/*
 * Title: heading/medium — fontSize/050 (16px), Bold (700), content/strong.
 * Note: legacy ArticleItem used 14px; Figma specifies 16px.
 */
.styles-module__title--Kmeb8 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--fd-colors-content-strong, #05285a); /* content/strong */
}

/*
 * Description: body/medium — fontSize/040 (14px), Regular (400), content/default.
 */
.styles-module__description--p6H3x {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--fd-colors-content-default, #1c1d1d); /* content/default */
}

/*
 * Footer: background/layer (#F7FBFF), top divider border/subtle (#C6D3E1),
 * padding space3 16px (12px vertical / 16px horizontal), gap space2 (8px).
 */
.styles-module__footer--NtBbu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding: 12px 16px;
  background: var(--fd-colors-background-layer, #f7fbff); /* background/layer */
  border-top: 1px solid var(--fd-colors-border-subtle, #c6d3e1); /* border/subtle */
}

/*
 * "Learn more": fontSize/040 (14px), link/default/base (#0070EB).
 */
.styles-module__learnMore--NG1_d {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--fd-colors-link-default-base, #0070eb); /* link/default/base */
}

.styles-module__chevron--KZDP5 {
  display: flex;
  flex-shrink: 0;
  color: var(--fd-colors-link-default-base, #0070eb); /* link/default/base */
}

.styles-module__chevron--KZDP5 svg {
  width: 16px;
  height: 16px;
}

.styles-module__navContainer--X4yyO {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px; /* space5 */
}

.styles-module__navDots--j2hT1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px; /* space1 */
}

.styles-module__pageDot--AL7jY {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: var(--fd-colors-background-layer, #f7fbff); /* background/layer */
  cursor: pointer;
  transition: background-color 0.3s linear;
}

/* Global reset removes the native button outline — restore a focus indicator. */
.styles-module__pageDot--AL7jY:focus-visible {
  outline: 2px solid var(--fd-colors-core-blue, #0070eb); /* link/default/base */
  outline-offset: 2px;
}

.styles-module__pageDotActive--dE559 {
  background-color: var(--fd-colors-content-subtle, #6a6f73); /* content/subtle */
}

.styles-module__image--V7DUc {
  height: 300px;
  width: 100%;
  object-fit: contain;
}

.styles-module__pageWrapper--o3xgP {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.styles-module__pageContent--aDXH7 {
  text-align: center;
}

.styles-module__pageTitle--Q9chQ {
  margin: 16px 0;
  padding: 16px 0;
}

.styles-module__pageDescription--OGT6F {
  margin: 0;
}

@media (max-width: 639px) {
  .styles-module__pageWrapper--o3xgP {
    flex-grow: 1;
  }

  .styles-module__pageScroll--yxygG {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
  }
}

/* Loading skeleton */
@keyframes styles-module__pulse--dh2qb {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.styles-module__loadingContainer--sgxrB {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  background: var(--fd-colors-background-surface, #ffffff); /* background/surface */
}

.styles-module__loadingBase--SQ0Ge {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.styles-module__loadingSvg--soIfL {
  display: flex;
  flex-direction: column;
  animation: styles-module__pulse--dh2qb 1.25s infinite;
}

/* Respect reduced-motion: drop the skeleton pulse and the dot color transition. */
@media (prefers-reduced-motion: reduce) {
  .styles-module__loadingSvg--soIfL {
    animation: none;
  }

  .styles-module__pageDot--AL7jY {
    transition: none;
  }
}

.styles-module__loadingRect--cq2w6 {
  fill: var(--fd-colors-border-subtle, #c6d3e1); /* border/subtle */
}

.styles-module__loadingCircle--R5nBb {
  fill: var(--fd-colors-border-subtle, #c6d3e1); /* border/subtle */
}

.styles-module__container--QSMzt {
  /*
   * FormationHomepage scopes its carousel bleed to the Quick Links slot, so the
   * central column has its natural content-column width. Fill it (100%) and let
   * box-sizing keep the 16px padding within that width — same convention as the
   * sibling TopPoolsFormation. Rounded corners + border per Figma (white surface).
   */
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  background: var(--fd-colors-background-surface, #ffffff); /* background/surface */
  border: 1px solid var(--fd-colors-border-default, #b0b7bf); /* border/default — module border per Figma */
  border-radius: 4px; /* borderRadius020 */
}

.styles-module__sectionHeader--Q8hJT {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.styles-module__sectionTitle--IqJ1F {
  /*
   * Breakpoint-dependent per Figma: fontSize/050 = 16px at XS/S, fontSize/060 =
   * 18px from M (960px) up — flipping at the same md boundary as the title text.
   * Bold (700), lineHeight 1.25, color content/strong = #05285A.
   */
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--fd-colors-content-strong, #05285a); /* content/strong */
  margin: 0;
}

@media (min-width: 960px) {
  .styles-module__sectionTitle--IqJ1F {
    font-size: 18px;
  }
}

.styles-module__carouselList--ZgpWX {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 8px; /* space2 */
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  .styles-module__carouselList--ZgpWX {
    scroll-behavior: auto;
  }
}

.styles-module__carouselList--ZgpWX::-webkit-scrollbar {
  display: none;
}

/*
 * Fixed 182px cards (per Figma) at every breakpoint, in a horizontal scroll
 * carousel. The wrapper owns the width explicitly — not min-width — so every card
 * is the same size regardless of description length. flex-shrink: 0 (and the
 * default flex-grow: 0) keep the size locked and let the text wrap inside. The
 * number of cards visible per breakpoint (XS 1–2, S 2–3, M/L/XL 3) is emergent
 * from the column width plus overflow-x: auto — not a responsive card width.
 */
.styles-module__carouselItem--suapv {
  flex-shrink: 0;
  width: 182px;
}

/*
 * Carousel bleed — scoped to the Quick Links carousel slot only.
 *
 * The carousel renders flush with the top and right edges of the content column
 * (Figma: "without lateral and top margin"). The +8px (= the LayoutGrid.Item
 * right gutter, space4 / 2) extends the carousel past the content column's right
 * edge, and the matching -8px right margin keeps it from reserving extra width
 * in the flow (so the rest of the page is unaffected and there's no page-level
 * scroll). The left gutter is intentionally preserved as the LHN separator.
 *
 * Keeping the bleed here means the root wrapper and .gridLayout below can use
 * their natural content-column width — no coupled correction needed.
 */
.styles-module__carouselBleed--vZr2F {
  width: calc(100% + 8px);
  margin-right: -8px;
}

/*
 * The Central + Sidebar layout is composed with Formation <Flex>/<Box> in
 * index.tsx (display/align and the flex weights are passed as props; the gap
 * between the central column and the sidebar is space4 = 16px). The row's
 * padding lives here because it is breakpoint-dependent, which Formation's
 * single-token spacing props can't express:
 *   - XS/S (< md): the row is full-bleed — it spans the full screen width with
 *     no side margin (Figma mobile: content runs edge to edge).
 *   - M/L/XL (>= md): space4 (16px) all around — top, right, bottom, left — so
 *     the components in the grid (central column + sidebar) have uniform 16px
 *     spacing, matching the Figma "Central + Sidebar" 16px insets and the 16px
 *     gap between the Central Module and Aux Modules.
 * The class also carries the bits that have no clean Formation prop equivalent:
 * the top border separator and the page background fill.
 *
 * background matches --fd-colors-background-base (core-grey-l-4, #EAF0F6) — the
 * racing-theme page background used on body, so the empty central column area
 * and the space around the sidebar card blend into the page correctly.
 */
/*
 * Central column stacks multiple Formation modules vertically (Top Tracks,
 * FDTV Picks, and more to come). Give them a consistent gap — matching the
 * grid's horizontal column gap (space3 / 12px) — so adjacent bordered module
 * cards don't sit flush against each other.
 *
 * The column's flex weight + `min-width: 0` live here (not as Formation Box
 * props) because styled-system layout props are unreliable on Formation Box —
 * they can be swallowed when the element also carries other styling, leaving
 * the column unconstrained so nested carousels grow to content width and never
 * scroll. `min-width: 0` is what lets a flex child shrink below its content so
 * the carousel's `overflow-x: auto` can trigger. XS/S: full-width stacked
 * column. M+ (>= md / 960px): flex weight 2 in the two-column row.
 */
.styles-module__centralColumn--uPZpk {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

/*
 * Sidebar column stacks Previous Winners above Top Pools — same 12px gap as the
 * central column so the two bordered module cards don't sit flush. Same flex /
 * min-width rationale as `.centralColumn` above: flex weight 1 (no shrink) at
 * M+, full-width stacked at XS/S.
 */
.styles-module__sidebarColumn--IElQ7 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

@media (min-width: 960px) {
  .styles-module__centralColumn--uPZpk {
    flex: 2 1 0%;
    width: auto;
  }

  .styles-module__sidebarColumn--IElQ7 {
    flex: 1 0 0%;
    width: auto;
  }
}

/*
 * The whole Formation homepage content area sits on the light-gray racing page
 * background (matching the Figma page + the .gridLayout below). Without this the
 * modules above .gridLayout (Top Races, and the XS/S Upcoming Races) render on
 * the MainLayout body background, which is dark navy in FDR
 * (--fd-colors-racing-background-default) — so any gap between them, and Top
 * Races' rounded top corners, show as dark slivers instead of the gray page.
 */
.styles-module__page--s0bfD {
  background: var(--fd-colors-background-base, #eaf0f6);
}

/*
 * M/L/XL: gray space at the bottom of the homepage before the standalone desktop
 * footer (rendered by FormationMainLayout, immediately after this page). Matches
 * the Figma desktop frame's 16px gap between the grid content and the footer. No
 * footer renders at XS/S, so this is desktop-only.
 */
@media (min-width: 960px) {
  .styles-module__page--s0bfD {
    padding-bottom: 16px;
  }
}

/*
 * Upcoming Races ("Races starting soon") is an XS/S-only full-bleed module that
 * sits above Today's Popular Races, outside the grid. Give it a 16px bottom
 * margin so the gray page background shows as the module separator (Figma: 16px
 * gap between every stacked mobile module). Without it the two white module
 * strips render flush.
 */
.styles-module__upcomingRacesSlot--VHEpZ {
  margin-bottom: 16px;
}

/*
 * M+: navy backing directly behind Top Races so its rounded top corners round
 * against navy (the racing page's top zone), matching the Figma. The white Top
 * Races module fills this slot, so the navy shows ONLY through the 8px rounded
 * top-corner notches — everywhere else the module covers it, and the gridLayout
 * below keeps its own gray background. XS/S: no radius on Top Races (full-bleed
 * strip), so no notch and no navy needed — hence M+ only.
 */
@media (min-width: 960px) {
  .styles-module__topRacesSlot--Q2dAI {
    background: var(--fd-colors-racing-background-default, #1f375b);
  }
}

/*
 * XS/S-only SEO slot below the stacked grid. 16px top margin so the gray page
 * background shows as the module separator above it (Figma: 16px gap between
 * stacked mobile modules), matching the other mobile module gaps.
 */
.styles-module__seoMobileSlot--ZBXPa {
  margin-top: 16px;
}

.styles-module__gridLayout--B82x_ {
  box-sizing: border-box;
  /*
   * XS/S (base): no horizontal inset, so the stacked modules span the full
   * content-column width like Top Races (which sits outside this wrapper). The
   * LHN gutter is a desktop concern only — there is no LHN at XS/S.
   */
  padding: 16px 0 0; /* XS/S: top inset only, full-bleed sides */
  border-top: 1px solid var(--fd-colors-border-default, #b0b7bf); /* separates white section above from gray area */
  background: var(--fd-colors-background-base, #eaf0f6);
}

/*
 * M+ restores the horizontal padding: it reinstates the LHN gutter the legacy
 * DesktopHomepage had via SectionsWrapper's all-sides padding; without it the
 * two-column grid (central + sidebar) hugs the left-hand nav. The carousel/Top
 * Races above stay flush (they own their bleed), matching the legacy layout
 * where only the grid section is inset.
 */
@media (min-width: 960px) {
  .styles-module__gridLayout--B82x_ {
    padding-left: 16px;
    padding-right: 16px;
  }
}

