/* Final shared accessibility layer. Loaded after the visual theme stylesheet. */
:root {
  --gr-gold-ink: #72501c;
  --gr-muted-text: #596160;
  --gr-focus-ring: #111;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.screen-reader-text:focus {
  clip: auto;
  clip-path: none;
  display: block;
  height: auto;
  left: 1rem;
  top: 1rem;
  width: auto;
  z-index: 100;
}

/* One archive panel is rendered by template-parts/archive-navigation.php. */
.gr-news-single__sidebar {
  background: transparent;
  border-top: 0;
  padding: 0;
}

.gr-news-single__sidebar .gr-news-single__sidebar-section {
  background: var(--gr-cream);
  border-top: 4px solid var(--gr-gold);
  margin-top: 24px;
  padding: 22px 24px 24px;
}

.gr-archive-panel {
  background: var(--gr-cream);
  border-top: 4px solid var(--gr-gold);
  border-radius: var(--gr-radius);
  overflow: hidden;
  padding: 22px 24px 24px;
  width: 100%;
}

.gr-archive-panel h2 {
  color: var(--gr-burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 12px;
}

.gr-archive-navigation__year {
  border-bottom-color: rgba(58, 51, 51, 0.14);
}

.gr-archive-navigation__toggle {
  min-height: 46px;
  padding-block: 11px;
}

.gr-archive-navigation__months {
  padding: 2px 0 10px 16px;
}

.gr-archive-navigation__months a {
  align-items: center;
  min-height: 42px;
  padding-block: 8px;
}

.gr-archive-navigation__months a[aria-current="page"] {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Preserve the visual hero labels while leaving one document H1. */
.gr-news-single__hero-label {
  color: #fff;
  font-size: 60px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  order: 1;
}

.gr-news-archive__hero-label {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.25;
  margin: clamp(250px, 24.5vw, 353px) 0 0;
  padding: 0;
  position: relative;
  width: calc(100% - 40px);
}

.gr-news-archive__hero-label::after {
  border-top: 5px solid var(--gr-red);
  bottom: -30px;
  content: "";
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: min(calc(100% + 80px), 600px);
}

/* Text pairs that previously fell below AA. */
.gr-news-archive-card__date {
  background: rgba(192, 154, 93, 0.96);
  color: var(--gr-burgundy);
}

.gr-news-card__date,
.gr-live-source-page .gr-news-card__date {
  background: rgba(192, 154, 93, 0.96);
  color: var(--gr-burgundy);
}

.gr-news-archive-card__excerpt {
  color: var(--gr-muted-text);
}

.gr-news-single__date {
  color: var(--gr-gold-ink);
}

/* Historic editorial imports include this light-red inline colour on white. */
.gr-news-single__content span[style*="color: #ed5c57" i] {
  color: var(--gr-burgundy) !important;
}

/* Keep the fallback 404 heading clear of the overhanging desktop logo. */
.gr-404 {
  padding-block: clamp(96px, 10vw, 144px);
  text-align: center;
}

.gr-404 h1 {
  margin: 0 0 16px;
}

.gr-404 p {
  margin: 0 auto 24px;
  max-width: 60ch;
}

.gr-404 .gr-button {
  display: inline-flex;
}

/* Mobile race cards use the gold time strip; burgundy ink restores AA contrast. */
@media (max-width: 760px) {
  .gr-race-date-card__time {
    color: var(--gr-burgundy);
  }
}

.gr-lf-form__date {
  border: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  min-inline-size: 0;
  padding: 0;
}

.gr-lf-form__date legend {
  color: var(--gr-burgundy);
  font-weight: 700;
  padding: 0;
}

.gr-lf-form__date legend em {
  color: var(--gr-red);
  font-style: normal;
}

.gr-image-carousel__toggle {
  background: #fff;
  border: 1px solid var(--gr-burgundy);
  border-radius: 999px;
  color: var(--gr-burgundy);
  display: block;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  margin: 16px auto 0;
  min-height: 44px;
  padding: 9px 18px;
}

.gr-gravity-form {
  padding-block: clamp(48px, 7vw, 88px);
}

.gr-gravity-form__inner {
  background: var(--gr-cream);
  border-top: 4px solid var(--gr-gold);
  border-radius: var(--gr-radius);
  margin-inline: auto;
  max-width: 900px;
  padding: clamp(24px, 4vw, 42px);
}

.gr-gravity-form__inner h2 {
  color: var(--gr-burgundy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  margin: 0 0 24px;
}

/* A consistent, high-contrast keyboard indicator for every native control. */
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--gr-focus-ring) !important;
  outline: 3px solid var(--gr-focus-ring) !important;
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .gr-news-single__sidebar {
    border: 0;
    padding: 0;
  }

  .gr-news-single__sidebar .gr-news-single__sidebar-section,
  .gr-archive-panel {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .gr-news-single__sidebar .gr-news-single__sidebar-section,
  .gr-archive-panel {
    padding: 18px 16px;
  }

  .gr-news-single__hero-label {
    font-size: clamp(38px, 12vw, 54px);
  }

  .gr-news-archive__hero-label {
    margin-top: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Editorial archive/article refinement for tablet and foldable widths. Keep
 * the sidebar in the reading composition while there is enough room for it,
 * and reduce the inherited live-source hero height so it does not dominate
 * the page at intermediate widths. */
@media (min-width: 761px) and (max-width: 1100px) {
  .gr-news-single__layout,
  .gr-news-archive__layout {
    column-gap: clamp(28px, 4vw, 48px);
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  }

  .gr-live-source-page .gr-inner-hero.gr-news-single__hero,
  .gr-news-archive__hero {
    height: clamp(400px, 42vw, 460px);
    min-height: clamp(400px, 42vw, 460px);
  }

  .gr-news-archive__hero-label {
    margin-top: clamp(230px, 30vw, 285px);
  }

  .gr-news-single__sidebar,
  .gr-news-archive__sidebar {
    align-self: start;
    padding-top: 0;
  }

  .gr-news-single__sidebar {
    position: sticky;
    top: 144px;
  }

  .gr-news-single__sidebar .gr-news-single__sidebar-section,
  .gr-archive-panel {
    padding-inline: clamp(16px, 2.2vw, 24px);
  }

  .gr-news-archive__title {
    font-size: clamp(30px, 4vw, 42px);
    padding-top: clamp(24px, 3vw, 34px);
  }

  .gr-news-archive__grid {
    gap: 32px 0;
    margin-inline: 0;
    padding-top: clamp(34px, 4vw, 52px);
    width: 100%;
  }

  .gr-news-single__featured-image {
    margin-bottom: clamp(32px, 4vw, 52px);
  }
}

/* A single wider card reads better than two compressed cards when the
 * archive results column is sharing the viewport with its sidebar. */
@media (min-width: 761px) and (max-width: 959px) {
  .gr-news-archive__grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .gr-race-date-card {
    --gr-race-date-column: clamp(120px, 15.5vw, 150px);
    --gr-race-ticket-column: clamp(140px, 17vw, 170px);
    gap: clamp(18px, 3.3vw, 28px);
    grid-template-columns: var(--gr-race-date-column) minmax(0, 1fr) var(--gr-race-ticket-column);
    padding-left: clamp(12px, 1.5vw, 15px);
  }

  .gr-race-date-card__date,
  .gr-race-date-card__time {
    width: var(--gr-race-date-column);
  }

  .gr-race-date-card__time {
    left: clamp(12px, 1.5vw, 15px);
  }

  .gr-race-date-card__tickets {
    width: var(--gr-race-ticket-column);
  }
}

/* At foldable/tablet widths, preserve a readable editorial measure and move
 * the archive panel below the article/results instead of creating two narrow
 * competing columns. The full two-column layout resumes at 960px. */
@media (min-width: 761px) and (max-width: 959px) {
  .gr-news-single__layout,
  .gr-news-archive__layout {
    column-gap: 0;
    grid-template-columns: 1fr;
    row-gap: clamp(36px, 5vw, 56px);
  }

  .gr-news-single__sidebar {
    position: static;
  }
}

/* Deliberate tablet compositions. The desktop versions of these components
 * use fixed Figma proportions; give the tablet state its own composition
 * without collapsing the shared burgundy masked feature into a tall stack. */
@media (min-width: 761px) and (max-width: 1100px) {
  /* Shared burgundy masked features keep copy and media in one composed row.
   * The text column stays readable while the shaped image remains substantial
   * but bounded. */
  body.page-id-154 .gr-fifty--burgundy .gr-fifty__inner,
  body.page-id-154 .gr-fifty--burgundy.gr-fifty--reverse .gr-fifty__inner {
    align-items: center;
    display: grid;
    gap: clamp(28px, 4vw, 56px);
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    min-height: 0;
  }

  body.page-id-154 .gr-fifty--burgundy.gr-fifty--reverse .gr-fifty__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .gr-fifty--burgundy .gr-fifty__copy {
    align-self: center;
    max-width: 100%;
    order: 1;
    padding-block: clamp(32px, 4vw, 56px);
    padding-inline: 0;
    width: 100%;
  }

  .gr-fifty--burgundy.gr-fifty--reverse .gr-fifty__copy {
    order: 2;
  }

  .gr-fifty--burgundy .gr-fifty__copy h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    margin-bottom: clamp(14px, 2vw, 22px);
    max-width: 18ch;
  }

  .gr-fifty--burgundy .gr-fifty__copy p {
    font-size: clamp(15px, 1.45vw, 17px);
    line-height: 1.62;
    margin-bottom: clamp(16px, 2vw, 24px);
    max-width: 62ch;
  }

  .gr-fifty--burgundy .gr-fifty__copy .gr-button-row {
    gap: 14px;
    margin-top: 4px;
  }

  .gr-fifty--burgundy .gr-fifty__media {
    align-self: center;
    aspect-ratio: 730 / 600;
    height: auto;
    max-height: 500px;
    max-width: 600px;
    order: 2;
    width: 100%;
  }

  .gr-fifty--burgundy.gr-fifty--reverse .gr-fifty__media {
    order: 1;
  }

  .gr-fifty--burgundy .gr-fifty__svg {
    height: 100%;
    max-height: 100%;
    width: 100%;
  }

  .gr-fifty--burgundy .gr-fifty__copy .gr-button {
    font-size: 15px;
    min-height: 48px;
    padding: 13px 22px;
  }

  /* Retain a sensible reading measure when the two columns are near their
   * minimum width, without reintroducing the desktop canvas overflow. */
  .gr-fifty--burgundy .gr-fifty__copy > * {
    max-width: 100%;
  }

  .gr-fifty--burgundy .gr-fifty__copy > p {
    max-width: 62ch;
  }

  /* Keep the copy/media order explicit for future shared reverse variants. */
  .gr-fifty--burgundy.gr-fifty--reverse .gr-fifty__copy,
  .gr-fifty--burgundy.gr-fifty--reverse .gr-fifty__media {
    position: relative;
  }

  /* The compact hospitality banner gets a two-row asymmetric composition:
   * copy occupies the comfortable reading column while the shaped photo is
   * a substantial, stable visual column. */
  .gr-promo.gr-container,
  body.home .gr-promo.gr-container {
    align-items: stretch;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
    height: auto;
    min-height: 280px;
    padding: 0;
    width: min(calc(100% - 48px), 960px);
  }

  .gr-promo__copy {
    align-self: end;
    min-width: 0;
    padding: 28px clamp(22px, 4vw, 48px) 8px;
  }

  .gr-promo__title-line--gold,
  .gr-promo__title-line {
    font-size: clamp(32px, 4.5vw, 46px);
    line-height: 1.04;
  }

  .gr-promo__title-line:not(.gr-promo__title-line--gold) {
    font-size: clamp(25px, 3.4vw, 36px);
  }

  .gr-promo__media {
    align-self: stretch;
    grid-column: 2;
    grid-row: 1 / span 2;
    height: auto;
    margin: 0;
    position: relative;
    width: 100%;
  }

  .gr-promo__meta {
    align-items: flex-start;
    align-self: start;
    gap: 12px;
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    padding: 8px clamp(22px, 4vw, 48px) 28px;
    text-align: left;
  }

  .gr-promo__meta p {
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.35;
  }

  /* Racing Dates uses the CTA panel for Hospitality rather than the home
   * promo banner. Stack its copy and image at tablet sizes so the section is
   * not a shrunken 50/50 desktop card. */
  .gr-cta-panel--racing-dates {
    padding-block: 35px 55px;
  }

  .gr-cta-panel--racing-dates .gr-cta-panel__inner {
    grid-template-columns: 1fr;
    max-width: 960px;
    width: min(calc(100% - 48px), 960px);
  }

  .gr-cta-panel--racing-dates .gr-cta-panel__content {
    padding: clamp(34px, 5vw, 58px) clamp(24px, 6vw, 72px);
  }

  .gr-cta-panel--racing-dates h2 {
    font-size: clamp(32px, 4.6vw, 48px);
    line-height: 1.12;
    max-width: 18ch;
  }

  .gr-cta-panel--racing-dates p {
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.65;
    max-width: 62ch;
  }

  .gr-cta-panel--racing-dates img {
    height: clamp(360px, 55vw, 600px);
    object-fit: cover;
  }

  /* Two explicit card rows: date/time at left, title at right on row one;
   * details and the ticket action share row two. No horizontal squeeze of
   * all five pieces of information. */
  .gr-race-date-card {
    --gr-race-date-column: clamp(112px, 13vw, 140px);
    --gr-race-ticket-column: clamp(184px, 21vw, 210px);
    align-items: stretch;
    column-gap: 0;
    display: grid;
    grid-template-columns: var(--gr-race-date-column) minmax(0, 1fr) var(--gr-race-ticket-column);
    grid-template-rows: minmax(72px, 1fr) 48px;
    min-height: 120px;
    padding: 0;
    row-gap: 0;
  }

  .gr-race-date-card__date {
    align-items: center;
    border-radius: var(--gr-radius) 0 0 0;
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1;
    height: auto;
    justify-content: center;
    padding: 7px 8px 0;
    width: auto;
  }

  .gr-race-date-card__date span {
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.2;
  }

  .gr-race-date-card__date strong {
    font-size: clamp(14px, 1.55vw, 16px);
    line-height: 1.35;
  }

  .gr-race-date-card__time {
    border-radius: 0 0 0 var(--gr-radius);
    grid-column: 1;
    grid-row: 2;
    height: auto;
    left: auto;
    font-size: clamp(12px, 1.45vw, 15px);
    line-height: 1.2;
    position: static;
    padding-inline: 4px;
    white-space: nowrap;
    width: auto;
  }

  .gr-race-date-card__content {
    display: contents;
  }

  .gr-race-date-card h3 {
    align-self: center;
    font-size: clamp(18px, 2.1vw, 23px);
    grid-column: 2;
    grid-row: 1;
    line-height: 1.2;
    margin: 0;
    max-width: 28ch;
    padding: 10px clamp(14px, 2.2vw, 24px) 6px;
  }

  .gr-race-date-card__details {
    align-self: center;
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 4px clamp(14px, 2.2vw, 24px) 6px;
    width: fit-content;
  }

  .gr-race-date-card__tickets {
    align-items: center;
    border-left: 1px solid rgba(112, 72, 30, 0.16);
    border-radius: 0 var(--gr-radius) var(--gr-radius) 0;
    flex-direction: row;
    gap: clamp(6px, 1vw, 10px);
    grid-column: 3;
    grid-row: 1 / -1;
    justify-content: center;
    min-width: 0;
    padding: 4px 18px;
    width: auto;
  }

  .gr-race-date-card__ticket-icon {
    flex: 0 0 24px;
    height: 24px;
    width: 24px;
  }

  .gr-race-date-card__tickets .gr-button {
    min-width: 0;
    padding-inline: clamp(10px, 1.8vw, 18px);
    white-space: nowrap;
  }
}

/* Shared premium treatment for the site's Buy Tickets CTAs. The modifier is
 * added by gr_button() from the label, so card, header, footer, and section
 * CTAs remain consistent without duplicating label-specific markup. */
.gr-button--ticket-cta {
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 800;
  letter-spacing: 0.01em;
  min-height: 44px;
  min-width: 124px;
  padding: 12px 20px;
  text-align: center;
  white-space: nowrap;
}

.gr-button--red.gr-button--ticket-cta:hover,
.gr-button--red.gr-button--ticket-cta:focus-visible {
  background: var(--gr-burgundy);
  border-color: var(--gr-burgundy);
  color: #fff;
}

.gr-button--light.gr-button--ticket-cta:hover,
.gr-button--light.gr-button--ticket-cta:focus-visible {
  background: var(--gr-gold);
  border-color: var(--gr-gold);
  color: var(--gr-burgundy);
}

.gr-button--gold.gr-button--ticket-cta:hover,
.gr-button--gold.gr-button--ticket-cta:focus-visible {
  background: #d8b778;
  border-color: #d8b778;
  color: #000;
}

.gr-button--ticket-cta:active {
  box-shadow: 0 5px 12px rgba(40, 0, 6, 0.16);
  transform: translateY(0);
}

.gr-site-header .gr-button--ticket-cta {
  min-height: 40px;
  min-width: 108px;
  padding: 10px 16px;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .gr-race-date-card__tickets .gr-button--ticket-cta {
    font-size: 13px;
    min-height: 38px;
    min-width: 104px;
    padding: 10px 12px;
  }
}

@media (max-width: 760px) {
  .gr-mobile-menu__cta--tickets.gr-button--ticket-cta {
    min-height: 44px;
    padding: 12px 20px;
  }

  .gr-race-date-card__tickets .gr-button--ticket-cta {
    background: var(--gr-red);
    border-color: var(--gr-red);
    color: #fff;
    font-size: 14px;
    min-height: 38px;
    min-width: 110px;
    padding: 10px 15px;
  }
}

/* Intermediate footer composition: give the shared footer its own intentional
 * 761–1280px layout instead of allowing the desktop columns to collapse into
 * narrow navigation and disconnected actions. Mobile keeps its established
 * single-column/footer CTA treatment below 760px. */
@media (min-width: 761px) and (max-width: 1280px) {
  .gr-footer-inner {
    column-gap: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    max-width: 960px;
    row-gap: clamp(30px, 4vw, 46px);
    width: min(calc(100% - 48px), 960px);
  }

  .gr-footer-contact {
    column-gap: clamp(24px, 4vw, 42px);
    grid-area: auto;
    grid-column: 1;
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    min-width: 0;
    padding: clamp(28px, 3.5vw, 40px);
  }

  .gr-footer-map {
    height: 214px;
    min-width: 0;
    width: 100%;
  }

  .gr-footer-inner > nav {
    grid-area: auto;
    grid-column: 1;
    min-width: 0;
    width: 100%;
  }

  .gr-footer-nav {
    column-gap: clamp(32px, 6vw, 72px);
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto);
    row-gap: clamp(4px, 0.8vw, 10px);
    width: 100%;
  }

  .gr-footer-nav li {
    margin-bottom: 0;
    min-width: 0;
  }

  .gr-footer-nav a {
    white-space: nowrap;
  }

  .gr-footer-ctas {
    align-items: stretch;
    display: grid !important;
    gap: clamp(12px, 2vw, 20px);
    grid-area: auto;
    grid-column: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: stretch;
    margin-top: 0;
    width: 100%;
  }

  .gr-footer-ctas .gr-button {
    min-height: 50px;
    padding-inline: clamp(14px, 2vw, 24px);
    width: 100%;
  }
}

/* Final Parade/shared burgundy feature balance. Keep the approved row
 * composition and let the SVG contour, rather than wrapper shrinkage, control
 * the visual footprint of the masked artwork. */
@media (min-width: 761px) and (max-width: 1279px) {
  body.page-id-154 .gr-fifty--burgundy .gr-fifty__inner,
  body.page-id-154 .gr-fifty--burgundy.gr-fifty--reverse .gr-fifty__inner {
    align-items: center;
    display: grid;
    gap: clamp(24px, 3.5vw, 40px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
    min-height: 0;
  }

  body.page-id-154 .gr-fifty--burgundy.gr-fifty--reverse .gr-fifty__inner {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1fr);
  }

  body.page-id-154 .gr-fifty--burgundy .gr-fifty__copy,
  body.page-id-154 .gr-fifty--burgundy.gr-fifty--reverse .gr-fifty__copy {
    align-self: center;
    max-width: 100%;
    padding-block: clamp(28px, 3.5vw, 44px);
  }

  body.page-id-154 .gr-fifty--burgundy .gr-fifty__copy h2 {
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1.1;
    max-width: 18ch;
  }

  body.page-id-154 .gr-fifty--burgundy .gr-fifty__copy p {
    font-size: clamp(15px, 1.35vw, 16px);
    line-height: 1.6;
    max-width: 62ch;
  }

  body.page-id-154 .gr-fifty--burgundy .gr-fifty__media {
    align-self: center;
    aspect-ratio: 730 / 600;
    height: auto;
    justify-self: center;
    max-height: none;
    max-width: none;
    order: 2;
    width: min(100%, clamp(320px, 43vw, 520px), calc(clamp(270px, 35vw, 390px) * 1.2166667));
  }

  body.page-id-154 .gr-fifty--burgundy.gr-fifty--reverse .gr-fifty__media {
    order: 1;
  }

  body.page-id-154 .gr-fifty--burgundy .gr-fifty__svg {
    height: 100%;
    max-height: 100%;
    width: 100%;
  }
}

/* Give the medium-desktop state a little more burgundy breathing room around
 * the full-size wrapper. */
@media (min-width: 1101px) and (max-width: 1279px) {
  body.page-id-154 .gr-fifty--burgundy .gr-fifty__inner {
    padding-block: 16px;
  }

  body.page-id-154 .gr-fifty--burgundy .gr-fifty__media {
    width: min(100%, clamp(320px, 43vw, 520px), calc(390px * 1.2166667));
  }
}

/* On mobile the artwork remains first, but it no longer spans edge to edge or
 * reserves the old oversized vertical offset before the copy begins. */
@media (max-width: 760px) {
  body.page-id-154 .gr-fifty--burgundy .gr-fifty__inner {
    --gr-fifty-media-bottom-gap: clamp(24px, 6vw, 34px);
    --gr-fifty-media-height: min(clamp(210px, 70vw, 360px), calc((100vw - 30px) * 371 / 497));
    --gr-fifty-media-top: 0px;
    --gr-fifty-media-width: min(calc(100% - 30px), 560px);
    --gr-fifty-copy-offset: calc(var(--gr-fifty-media-top) + var(--gr-fifty-media-height) + var(--gr-fifty-media-bottom-gap));
  }

  body.page-id-154 .gr-fifty--burgundy .gr-fifty__media {
    left: 50%;
    transform: translateX(-50%);
    width: var(--gr-fifty-media-width);
  }
}

/* Compact the shared Racing Dates hospitality feature at tablet/foldable
 * widths. The existing inner wrapper already supplies the single rounded,
 * clipped card; these rules reduce the copy/image imbalance inside it. */
@media (min-width: 761px) and (max-width: 1100px) {
  .gr-cta-panel--racing-dates {
    padding-block: 0 clamp(36px, 5vw, 55px);
  }

  .gr-cta-panel--racing-dates .gr-cta-panel__inner {
    align-items: stretch;
    border-radius: 12px;
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: hidden;
  }

  .gr-cta-panel--racing-dates .gr-cta-panel__content {
    background: var(--gr-burgundy);
    min-width: 0;
    padding: clamp(28px, 3.6vw, 42px) clamp(28px, 5vw, 56px) clamp(22px, 3vw, 30px);
    position: relative;
    z-index: 1;
  }

  .gr-cta-panel--racing-dates h2 {
    font-size: clamp(30px, 4.2vw, 40px);
    line-height: 1.08;
    margin-bottom: 12px;
    max-width: 19ch;
  }

  .gr-cta-panel--racing-dates p {
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.55;
    max-width: 68ch;
  }

  .gr-cta-panel--racing-dates .gr-button-row {
    gap: 12px;
    padding-top: 18px;
  }

  .gr-cta-panel--racing-dates img {
    display: block;
    height: clamp(320px, 42vw, 430px);
    object-fit: cover;
    object-position: center center;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .gr-cta-panel--racing-dates .gr-cta-panel__content {
    padding: 28px 24px 24px;
  }

  .gr-cta-panel--racing-dates h2 {
    font-size: clamp(28px, 6.8vw, 34px);
    line-height: 1.08;
    margin-bottom: 12px;
  }

  .gr-cta-panel--racing-dates p {
    font-size: 15px;
    line-height: 1.55;
  }

  .gr-cta-panel--racing-dates .gr-button-row {
    padding-top: 16px;
  }

  .gr-cta-panel--racing-dates img {
    display: block;
    height: clamp(240px, 42vw, 320px);
    object-fit: cover;
    object-position: center center;
    width: 100%;
  }
}

/* Let the major Racing Dates sections breathe without adding space inside
 * the race cards or the Hospitality content itself. */
@media (min-width: 761px) and (max-width: 1100px) {
  .gr-race-dates + .gr-cta-panel--racing-dates {
    margin-top: clamp(28px, 4vw, 44px);
  }

  .gr-cta-panel--racing-dates {
    margin-bottom: clamp(28px, 4vw, 44px);
  }
}

@media (max-width: 760px) {
  .gr-race-dates + .gr-cta-panel--racing-dates {
    margin-top: clamp(20px, 6vw, 30px);
  }

  .gr-cta-panel--racing-dates {
    margin-bottom: clamp(22px, 6vw, 32px);
  }
}

/* Shared live-source editorial composition. These pages use the public-site
 * content model rather than a Figma-specific page frame. Keep the reading
 * measure and hero intentional at tablet and phone widths. */
.gr-live-source-page .gr-wysiwyg--wide .gr-wysiwyg__content h1,
.gr-live-source-page .gr-wysiwyg--wide .gr-wysiwyg__content h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.14;
  margin-block: 0 24px;
}

.gr-live-source-page .gr-wysiwyg--wide .gr-wysiwyg__content h3,
.gr-live-source-page .gr-wysiwyg--wide .gr-wysiwyg__content h4 {
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.25;
  margin-block: 34px 14px;
}

.gr-live-source-page .gr-wysiwyg--wide .gr-wysiwyg__content p,
.gr-live-source-page .gr-wysiwyg--wide .gr-wysiwyg__content li {
  font-size: 18px;
  line-height: 1.75;
}

.gr-live-source-page .gr-wysiwyg--wide .gr-wysiwyg__content p {
  margin-block: 0 22px;
}

.gr-live-source-page .gr-wysiwyg--wide .gr-wysiwyg__content a {
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .gr-live-source-page .gr-inner-hero,
  .gr-live-source-page .gr-inner-hero__content {
    height: clamp(280px, 34vw, 360px);
    min-height: clamp(280px, 34vw, 360px);
  }

  .gr-live-source-page .gr-inner-hero h1 {
    font-size: clamp(40px, 5vw, 54px);
  }

  .gr-live-source-page .gr-wysiwyg--wide {
    max-width: none;
    padding-block: 56px 78px;
    padding-inline: clamp(24px, 5vw, 60px);
    width: 100%;
  }

  .gr-live-source-page .gr-wysiwyg--wide > .gr-wysiwyg__panel {
    margin-inline: auto;
    max-width: 980px;
    width: 100%;
  }

}

@media (max-width: 760px) {
  .gr-live-source-page .gr-inner-hero,
  .gr-live-source-page .gr-inner-hero__content {
    height: clamp(220px, 56vw, 300px);
    min-height: clamp(220px, 56vw, 300px);
  }

  .gr-live-source-page .gr-inner-hero h1 {
    font-size: clamp(32px, 8.5vw, 44px);
    line-height: 1.12;
    padding-inline: 18px;
  }

  .gr-live-source-page .gr-wysiwyg--wide {
    padding-block: 44px 58px;
    padding-inline: 20px;
    width: 100%;
  }

  .gr-live-source-page .gr-wysiwyg--wide > .gr-wysiwyg__panel {
    margin-inline: auto;
    width: 100%;
  }

  .gr-live-source-page .gr-wysiwyg--wide .gr-wysiwyg__content h1,
  .gr-live-source-page .gr-wysiwyg--wide .gr-wysiwyg__content h2 {
    font-size: clamp(30px, 8vw, 38px);
    line-height: 1.16;
    margin-bottom: 24px;
  }

  .gr-live-source-page .gr-wysiwyg--wide .gr-wysiwyg__content h3,
  .gr-live-source-page .gr-wysiwyg--wide .gr-wysiwyg__content h4 {
    font-size: clamp(22px, 6vw, 28px);
    margin-block: 30px 14px;
  }

  .gr-live-source-page .gr-wysiwyg--wide .gr-wysiwyg__content p,
  .gr-live-source-page .gr-wysiwyg--wide .gr-wysiwyg__content li {
    font-size: 17px;
    line-height: 1.72;
  }

  .gr-live-source-page .gr-wysiwyg--wide .gr-wysiwyg__content p {
    margin-bottom: 22px;
  }

}
