/* Sports page — frames pumt123-sports (1440) and pumt123-sports-mobile (390).
 *
 * The inner-page hero is the same construction on every section page: a text
 * column, a hairline gutter and a photo panel. Only the widths change, so the
 * page sets them and the rest lives here.
 */

/* ── page hero: 1440×640, left 643 / divider / right 780 ──────────────── */
.page-hero { display: flex; min-height: 640px; }

.page-hero__left {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 643px; flex: none; min-height: 640px;
  padding: var(--space-48);
  background: var(--color-bg);
}
.page-hero__intro { display: flex; flex-direction: column; gap: var(--space-24); width: 547px; }
.page-hero__intro .eyebrow { font-size: var(--fs-2xs); line-height: 14px; letter-spacing: .18em; text-transform: uppercase; }
.page-hero__intro .eyebrow--rule::before { width: 20px; }
.page-hero__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: 52px; line-height: 55px; letter-spacing: -.03em;
  color: var(--color-text);
}
.page-hero__lead { color: var(--color-muted); font-size: 15px; line-height: 24px; }

.page-hero__cta { display: flex; align-items: center; gap: var(--space-24); width: 357px; }
.page-hero__cta .btn--primary { padding: 16px 32px; font-size: var(--fs-xs); line-height: 15px; white-space: nowrap; }
.page-hero__cta-alt { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm); line-height: 17px; white-space: nowrap; }

.page-hero__divider { flex: 1; display: flex; align-items: flex-end; }
.page-hero__divider::before { content: ""; width: 100%; height: 1px; background: var(--color-border); }

.page-hero__right {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between;
  width: 780px; flex: none; padding: var(--space-32);
  overflow: hidden;
}
.page-hero__pic { position: absolute; inset: 0; z-index: -2; }
.page-hero__pic img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__right::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gradient-fade-x); }

.page-hero__venue { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-24); }
.page-hero__venue-name {
  color: var(--color-brand);
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-body); line-height: 20px;
}
.page-hero__venue-city { margin-top: var(--space-4); color: var(--color-text); font-size: var(--fs-2xs); line-height: 14.3px; }
.page-hero__badge {
  color: var(--color-text);
  font-family: var(--font-display); font-weight: 900;
  font-size: 40px; line-height: 50px;
  opacity: .15;
}

/* ── code filter strip: 1344×35, gap 8, chips 35 tall ─────────────────── */
.code-filter { display: flex; flex-wrap: wrap; gap: var(--space-8); margin-top: var(--space-40); }
.code-filter__btn {
  min-height: 35px; padding: 10px var(--space-16);
  border: 0; background: var(--color-surface); color: var(--color-muted); cursor: pointer;
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--fs-xs); line-height: 15px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.code-filter__btn:hover { color: var(--color-text); }
.code-filter__btn.is-active { background: var(--color-band); color: var(--color-brand); }

/* ── grouped board ────────────────────────────────────────────────────── */
.markets__topbar { display: flex; flex-direction: column; }
#sports-board { margin-top: var(--space-40); }
#sports-board .markets-list__head span { font-weight: 900; }

/* On 1440 the mockup draws one flat list, so the grouping wrapper must not
   create a box of its own; on 390 each group IS a box, with its own node. */
.market-group { display: contents; }
.market-group__title {
  display: flex; align-items: center; gap: var(--space-8);
  padding-block: var(--space-8);
  color: var(--color-brand);
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--fs-xs); line-height: 15px;
}
.market-group ~ .market-group .market-group__title { padding-top: var(--space-16); }
.market-group__title::before { content: ""; width: 10px; height: 1px; background: var(--color-brand); flex: none; }

/* The sports board carries a second line under the event name. */
.market-row--detailed .market-row__event-wrap { display: flex; flex-direction: column; gap: var(--space-4); }
.market-row__when { color: var(--color-muted); font-size: var(--fs-2xs); line-height: 14.3px; }

/* ── mobile: frame pumt123-sports-mobile (390) ────────────────────────── */
@media (max-width: 1199px) {
  .page-hero { flex-direction: column; gap: var(--space-20); min-height: 0; padding: var(--space-24) var(--container-pad-m); }
  .page-hero__left { width: 100%; min-height: 0; padding: 0; gap: var(--space-20); }
  .page-hero__intro { width: 100%; gap: var(--space-12); }
  .page-hero__intro .eyebrow { font-size: var(--fs-3xs); line-height: 12px; letter-spacing: .1em; }
  .page-hero__intro .eyebrow--rule::before { width: 12px; }
  .page-hero__title { font-size: var(--fs-h3); line-height: 31px; letter-spacing: 0; }
  .page-hero__lead { font-size: var(--fs-sm); line-height: 20px; }

  .page-hero__cta { flex-direction: column; align-items: stretch; gap: var(--space-12); width: 100%; }
  .page-hero__cta .btn--primary { width: 100%; min-height: 38px; padding: 12px var(--space-16); font-size: var(--fs-2xs); line-height: 14px; }
  .page-hero__cta-alt { font-size: var(--fs-xs); line-height: 16px; }

  .page-hero__divider { display: none; }
  .page-hero__right { width: 100%; min-height: 220px; padding: var(--space-16); }
  .page-hero__venue-name { font-size: var(--fs-base); line-height: 18px; }
  .page-hero__venue-city { margin-top: var(--space-2); font-size: var(--fs-3xs); line-height: 13px; }
  .page-hero__badge { font-size: var(--fs-h3); line-height: 35px; }

  /* The 390 frame runs the groups edge to edge, so the container drops its
     side padding here and each block carries its own. */
  .markets { padding-block: 0; }
  .markets .container { padding-inline: 0; }
  .markets__topbar { gap: var(--space-16); padding: var(--space-16); }
  .markets__topbar > .markets__head > div:first-child { display: flex; flex-direction: column; gap: var(--space-6); }
  .markets__head { display: contents; }
  .markets__topbar .eyebrow { margin-bottom: 0; font-size: var(--fs-3xs); line-height: 12px; }
  .markets .section-title { font-size: var(--fs-h4); line-height: 30px; }
  .sport-tabs { flex-wrap: nowrap; padding: 2px; gap: 0; }
  .sport-tabs__btn { flex: 1 1 0; min-height: 26px; padding: 8px 6px; font-size: 8px; line-height: 10px; white-space: nowrap; }
  .sport-tabs { min-height: 30px; }

  .code-filter { gap: var(--space-6); margin-top: 0; }
  .code-filter__btn { min-height: 23px; padding: 6px var(--space-10); font-size: var(--fs-4xs); line-height: 11px; }

  #sports-board { margin-top: 0; gap: 0; }
  .market-group { display: block; }
  .market-group__title {
    min-height: 38px; padding: var(--space-12) var(--container-pad-m);
    font-size: var(--fs-2xs); line-height: 14px;
  }
  .market-group ~ .market-group .market-group__title { padding-top: var(--space-12); }
  .market-group__title::before { width: 12px; }

  /* row 390×159: pad 16, gap 12 — sport + start on one line, then the event,
     then three 48-tall prices, then the extra-markets link. */
  .market-row--detailed {
    grid-template-areas: "sport when" "event event" "odds odds" "more more";
    grid-template-columns: auto 1fr;
    gap: var(--space-12); padding: var(--space-16) var(--container-pad-m);
    box-shadow: none; background: var(--color-bg);
  }
  .market-row--detailed .market-row__sport { font-size: var(--fs-4xs); line-height: 12px; }
  .market-row--detailed .market-row__event-wrap { display: contents; }
  .market-row--detailed .market-row__event { grid-area: event; font-size: var(--fs-sm); line-height: 16px; }
  .market-row--detailed .market-row__when { grid-area: when; justify-self: end; font-size: var(--fs-3xs); line-height: 13px; }
  .market-row--detailed .market-row__odds { grid-area: odds; gap: var(--space-8); }
  .market-row--detailed .odd { min-height: 48px; }
  .market-row--detailed .market-row__more { grid-area: more; justify-self: end; font-size: var(--fs-2xs); line-height: 14px; }
}
