/* Racing — frame 2:579 (1440) / 42:4 (390). */

/* ── hero (2:609 / 42:20) ─────────────────────────────────────────────── */
.rhero { position: relative; overflow: hidden; height: 730px; background: var(--color-bg); color: var(--color-text); }
.rhero__wm { position: absolute; left: 60px; top: -10px; color: var(--color-cream); opacity: .03; font-family: var(--font-display); font-weight: 800; font-size: 200px; line-height: 240px; pointer-events: none; }
.rhero__inner { position: relative; display: flex; align-items: center; gap: 64px; height: 100%; padding: 80px 60px; }
.rhero__left { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; width: 690px; flex: none; }
.rhero__title { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 96px; line-height: 86px; letter-spacing: -2px; }
.rhero__line { display: block; width: 690px; }
.rhero__panel { margin-top: 14px; padding: 4px 16px 4px 0; line-height: 86px; transform: rotate(-2deg); transform-origin: 0 0; }   /* 2:620 */   /* panel at 435 = 323 + 86 + 12 + 14 */
.rhero__lead { width: 560px; font-size: 16px; line-height: 26px; color: var(--color-muted); }
.rhero__ctas { display: flex; gap: 16px; }
.rhero__photo { position: relative; width: 560px; height: 360px; flex: none; margin-top: 10px; transform: rotate(-1deg); transform-origin: 0 0; overflow: hidden; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-lime), 10px 18px 36px -12px rgba(0, 0, 0, .5); }
.rhero__photo picture, .rhero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rhero__label { padding: 8px 12px; font-size: 12px; line-height: 14.4px; }
.rhero__bar { position: absolute; left: 16px; bottom: 16px; width: 260px; height: 4px; background: var(--color-lime); }

/* ── upcoming meetings (15:319 / 42:43) ───────────────────────────────── */
.meetings { display: flex; flex-direction: column; gap: 32px; padding: 60px; background: var(--color-lime); color: var(--color-text-dark); }
.meetings__hint { width: 340px; }
.meetings__grid { display: flex; gap: 24px; width: 1332px; }   /* the frame overruns its container by 12 */
.meeting {
  display: flex; flex-direction: column; gap: 8px; width: 315px; flex: none; padding: 20px;
  background: var(--color-cream); color: var(--color-text-dark); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--color-text-dark); font-family: var(--font-display);
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.meeting:hover { background: var(--color-lime-tint); transform: translateY(-2px); }
.meeting.is-active { background: var(--color-lime); }
.meeting__top { display: flex; justify-content: space-between; align-items: center; }
.meeting__race { padding: 2px 8px; background: var(--color-text-dark); color: var(--color-text); font-weight: 700; font-size: 12px; line-height: 14.4px; }
.meeting__time { font-weight: 700; font-size: 14px; line-height: 17px; }
.meeting__name { font-weight: 700; font-size: 22px; line-height: 26.4px; }
.meeting__code { font-weight: 600; font-size: 12px; line-height: 14.4px; color: var(--color-muted-5); }
.meeting.is-active .meeting__code { color: var(--color-text-dark); }

/* ── race masthead (15:380 / 42:82) ───────────────────────────────────── */
.masthead { padding: 20px 60px; background: var(--color-cream); }
.masthead__card { display: flex; flex-direction: column; gap: 24px; padding: 32px; background: var(--color-bg); color: var(--color-text); box-shadow: inset 0 0 0 2px var(--color-border-2); font-family: var(--font-display); }
.masthead__meta { display: flex; justify-content: space-between; align-items: center; }
.masthead__meta-left { display: flex; align-items: center; gap: 16px; }
.masthead__track { font-weight: 700; font-size: 16px; line-height: 19.2px; color: var(--color-lime); }
.masthead__sep { width: 1px; height: 14px; background: var(--color-muted-cool-2); }
.masthead__info { font-family: var(--font-body); font-size: 14px; line-height: 17px; color: var(--color-muted-cool-2); }
.masthead__row { display: flex; justify-content: space-between; align-items: center; }
.masthead__title { font-weight: 800; font-size: 80px; line-height: 74px; }
.mtabs-wrap { position: relative; height: 0; padding: 0 60px; background: var(--color-cream); }
.mtabs { position: absolute; right: 92px; top: -111.5px; display: flex; gap: 4px; padding: 4px; background: var(--color-border-2); }   /* drawn inside the masthead card; a separate block in the 390 frame */
.mtab { padding: 10px 20px; border: 0; background: transparent; color: var(--color-muted-cool-2); cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 17px; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.mtab:hover { color: var(--color-text); }
.mtab.is-active { background: var(--color-lime); color: var(--color-text-dark); }

/* ── workspace: runners + slip (15:395 / 42:92) ───────────────────────── */
.workspace { display: flex; align-items: flex-start; gap: 32px; padding: 20px 60px 80px; background: var(--color-cream); color: var(--color-text-dark); }
.runners { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--color-cream); box-shadow: inset 0 0 0 1px var(--color-text-dark); font-family: var(--font-display); }
.runners__head { display: flex; align-items: center; gap: 16px; height: 44px; padding: 14px 24px; background: var(--color-bg); color: var(--color-text); font-weight: 700; font-size: 13px; line-height: 16px; letter-spacing: 1px; }
.runners__col--n { width: 48px; flex: none; }
.runners__col--runner { width: 112px; flex: none; }
.runners__col--barrier { width: 100px; flex: none; }
.runners__col--jt { width: 180px; flex: none; }
.runners__col--form { width: 80px; flex: none; }
.runners__col--odds { display: flex; gap: 8px; width: 240px; flex: none; margin-left: auto; }
.runners__col--odds span { width: 116px; }
.runners__multi-note { padding: 12px 24px; background: var(--color-lime-tint); color: var(--color-lime-deep); font-weight: 600; font-size: 13px; line-height: 18px; }
.runners__list { display: flex; flex-direction: column; }
.runner { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--color-cream); box-shadow: inset 0 0 0 1px var(--color-text-dark); transition: background-color var(--dur-fast) var(--ease); }
.runner:last-child { box-shadow: none; }   /* row-4 in the frame is drawn without the stroke */
.runner:hover { background: var(--color-cream-4); }
.runner__n { width: 48px; flex: none; font-weight: 700; font-size: 32px; line-height: 38.4px; color: var(--color-muted); }
.runner:first-child .runner__n { color: var(--color-text-dark); }
.runner__who { display: flex; flex-direction: column; gap: 4px; width: 112px; flex: none; }
.runner__name { font-weight: 700; font-size: 20px; line-height: 24px; }
.runner__silk { font-family: var(--font-body); font-size: 12px; line-height: 14.4px; color: var(--color-muted); }
.runner .odd__label { letter-spacing: 0; }
.runner__barrier { width: 100px; flex: none; }
.runner__cell { display: flex; flex-direction: column; gap: 4px; }
.runner__val { font-weight: 600; font-size: 14px; line-height: 17px; }
.runner__lbl { font-family: var(--font-body); font-size: 11px; line-height: 13.2px; color: var(--color-muted-cool-2); }
.runner__jt { display: flex; flex-direction: column; gap: 2px; width: 180px; flex: none; }
.runner__jockey { font-weight: 600; font-size: 13px; line-height: 16px; }
.runner__trainer { font-family: var(--font-body); font-size: 11px; line-height: 13.2px; color: var(--color-muted); }
.runner__form { width: 80px; flex: none; }   /* one element for both widths; the 390 frame adds the FORM label */
.runner__form .runner__val { font-weight: 700; }
.runner__odds { display: flex; gap: 8px; width: 240px; flex: none; margin-left: auto; }
.odd--race { width: 116px; height: 47px; gap: 2px; padding: 6px 0; border-radius: 0; }
.odd--race .odd__label { color: var(--color-muted); }
.odd--race .odd__val { font-weight: 700; font-size: 18px; line-height: 22px; }
.odd--race[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--color-text-dark); }
.runner__multi { display: flex; align-items: center; gap: 8px; width: 240px; flex: none; margin-left: auto; font-weight: 700; font-size: 13px; letter-spacing: 1px; cursor: pointer; }
.runners[data-market="multi"] .runner__odds { display: none; }
.runners[data-market="multi"] .runner__multi { display: flex; }
.runners[data-market="multi"] .runner__multi[hidden] { display: flex; }

/* racing slip variant (15:474 / 42:193): square, 2px lime border, tighter type */
.slip--racing { gap: 16px; padding: 24px; border-radius: 0; box-shadow: inset 0 0 0 2px var(--color-lime); }
.slip--racing .slip__title { font-weight: 700; font-size: 18px; line-height: 22px; letter-spacing: 1px; }
.slip--racing .slip__count { padding: 2px 10px; border-radius: 0; }
.slip--racing .slip__card { gap: 8px; border-radius: 0; box-shadow: inset 0 0 0 2px var(--color-lime); }
.slip--racing .slip__card--empty { min-height: 111px; }
.slip--racing .slip__event { font-weight: 700; font-size: 15px; line-height: 18px; }
.slip--racing .slip__market { font-weight: 400; color: var(--color-muted); }
.slip--racing .slip__odd { font-weight: 700; font-size: 24px; line-height: 29px; }
.slip--racing .slip__label { color: var(--color-muted); }
.slip--racing .slip__input { height: 48px; border-radius: 0; }
.slip--racing .slip__cur { color: var(--color-muted); }
.slip--racing .slip__amount { font-weight: 700; font-size: 18px; line-height: 22px; }
.slip--racing .slip__q { border-radius: 0; font-size: 13px; line-height: 16px; }
.slip--racing .slip__row dt { font-weight: 400; color: var(--color-muted); }
.slip--racing .slip__row dd { font-weight: 700; font-size: 14px; line-height: 17px; }
.slip--racing .slip__row--return dd { font-size: 22px; line-height: 26.4px; }
.slip--racing .slip__place { height: 52px; border-radius: 0; font-size: 16px; line-height: 19.2px; }

@media (max-width: 1199px) {
  .rhero { height: auto; }
  .rhero__inner { flex-direction: column; align-items: stretch; gap: 24px; padding: 32px 16px; }
  .rhero__left { width: auto; gap: 24px; }
  .rhero__left .eyebrow { gap: 6px; }
  .rhero__title { align-self: stretch; gap: 2px; font-size: 42px; line-height: 38px; letter-spacing: -1px; }
  .rhero__line { width: auto; }
  .rhero__panel { margin-top: 3px; padding: 4px 12px; font-size: 40px; line-height: 38px; }
  .deco-arrow--m60 { font-size: 12px; line-height: 12px; }
  .deco-arrow--m60 i { width: 60px; height: 2px; }
  .rhero__lead { width: auto; font-size: 14px; line-height: 20px; color: var(--color-muted-cool-2); }
  .rhero__ctas { flex-direction: column; align-self: stretch; }
  .rhero__ctas .btn { width: 100%; height: 44px; padding: 0; font-size: 14px; line-height: 17px; letter-spacing: 1px; }
  .rhero__photo { width: 100%; height: 240px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--color-lime); }
  .rhero__label { padding: 6px 10px; font-size: 11px; line-height: 13.2px; letter-spacing: 1px; }
  .rhero__bar { left: 12px; bottom: 12px; width: 120px; }

  .meetings { gap: 0; padding: 32px 16px 32px; }
  .meetings__head { gap: 12px; margin-bottom: 20px; }
  .meetings .markets__head-left { gap: 12px; }
  .meetings .eyebrow--box .eyebrow__box { padding: 2px 6px; font-size: 10px; line-height: 12px; letter-spacing: 1.5px; }
  .meetings .markets__title { gap: 2px; font-size: 36px; line-height: 32px; letter-spacing: -.5px; }
  .meetings .markets__bar { margin-top: 0; }
  .meetings__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: auto; }
  .meeting { width: auto; gap: 6px; padding: 12px; }
  .meeting.is-active { box-shadow: inset 0 0 0 1.5px var(--color-text-dark); }
  .meeting__race { padding: 2px 6px; }
  .meeting.is-active .meeting__race { color: var(--color-lime); }
  .meeting__time { font-size: 12px; line-height: 14.4px; }
  .meeting__name { font-size: 18px; line-height: 22px; }

  .masthead { padding: 32px 16px 16px; }
  .masthead__card { gap: 4px; padding: 0; background: none; color: var(--color-text-dark); box-shadow: none; }
  .masthead__meta-left { flex-direction: column; align-items: flex-start; gap: 4px; }
  .masthead__track { order: 0; font-weight: 800; font-size: 14px; line-height: 17px; letter-spacing: 1px; color: var(--color-text-dark); }
  .masthead__info { order: 2; font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 16px; }
  .masthead__meta { display: contents; }
  .masthead__row { display: contents; }
  .masthead__title { font-size: 56px; line-height: 52px; }
  .masthead__meta-left { display: contents; }
  .masthead__card { display: flex; flex-direction: column; }
  .masthead__track { order: 0; }
  .masthead__title { order: 1; }
  .masthead__info { order: 2; }
  .rhero__photo { margin-top: 0; transform: rotate(-.5deg); }
  .rhero__panel { transform: rotate(-1deg); }   /* 42:28 */
  .mtabs-wrap { height: auto; padding: 0 16px 24px; }
  .mtabs { position: static; gap: 8px; padding: 0; background: none; }
  .mtab { flex: 1; height: 44px; padding: 0; font-size: 13px; line-height: 16px; box-shadow: inset 0 0 0 1px var(--color-muted-cool-2); }
  .mtab.is-active { font-weight: 800; box-shadow: inset 0 0 0 1px var(--color-text-dark); }

  .workspace { flex-direction: column; align-items: stretch; gap: 32px; padding: 0 16px 0; }   /* the 390 frame: runner-list pad-bottom 32, then a full-bleed slip block */
  .runners { background: none; box-shadow: none; }
  .runners__list { gap: 16px; }
  .runners__multi-note { margin-bottom: 16px; }
  .runner { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "who who" "barrier form" "jt jt" "odds odds"; gap: 12px 0; padding: 16px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--color-text-dark); }
  .runner:last-child { box-shadow: inset 0 0 0 1px var(--color-text-dark); }
  .runner__n { grid-area: who; width: 21px; font-weight: 800; font-size: 28px; line-height: 34px; align-self: start; margin-top: 2px; }
  .runner__who { grid-area: who; width: auto; height: 38px; gap: 2px; margin-left: 33px; }
  .runner__name { font-size: 18px; line-height: 22px; }
  .runner__silk { font-size: 12px; line-height: 14.4px; color: var(--color-muted-3-light); }
  .runner__barrier { grid-area: barrier; width: auto; }
  .runner__form { grid-area: form; }
  .runner__val { font-weight: 700; font-size: 13px; line-height: 16px; }
  .runner__jt { grid-area: jt; width: auto; }
  .runner__jockey { font-weight: 700; }
  .runner__trainer { color: var(--color-muted-3-light); }
  .runner__odds { grid-area: odds; width: auto; margin: 0; }
  .runner__multi { grid-area: odds; width: auto; margin: 0; }
  .odd--race { flex: 1; width: auto; height: 46px; padding: 8px 0; }
  .odd--race .odd__val { font-weight: 800; font-size: 16px; line-height: 19.2px; }
  .odd--race .odd__label { font-size: 9px; line-height: 11px; }

  .slip--racing { width: auto; margin: 0 -16px; padding: 16px; border-radius: 0; box-shadow: inset 0 0 0 1px var(--color-lime); }
  .slip--racing .slip__count { padding: 2px 8px; font-size: 10px; line-height: 12px; letter-spacing: 1px; }
  .slip--racing .slip__card { gap: 6px; padding: 12px; box-shadow: none; }
  .slip--racing .slip__card--empty { min-height: 102px; }
  .slip--racing .slip__event { font-size: 14px; line-height: 17px; }
  .slip--racing .slip__market { font-size: 13px; line-height: 16px; }
  .slip--racing .slip__odd { font-size: 22px; line-height: 26.4px; }
  .slip--racing .slip__stake { gap: 6px; }
  .slip--racing .slip__label { font-size: 11px; line-height: 13.2px; letter-spacing: 1px; }
  .slip--racing .slip__input { height: 44px; padding: 0 12px; }
  .slip--racing .slip__cur { font-size: 13px; line-height: 16px; }
  .slip--racing .slip__amount { font-size: 16px; line-height: 19.2px; }
  .slip--racing .slip__quick { gap: 8px; }
  .slip--racing .slip__q { height: 36px; }
  .slip--racing .slip__row dt { font-size: 12px; line-height: 14.4px; }
  .slip--racing .slip__row dd { font-size: 13px; line-height: 16px; }
  .slip--racing .slip__row--return dd { font-size: 18px; line-height: 22px; }
  .slip--racing .slip__place { height: 48px; font-size: 15px; line-height: 18px; letter-spacing: 1px; }
}
