/* Day Hub — Today tab on the landing hero. Scoped under .day-hub. */

.day-hub {
  position: relative;
  color: #fff;
  font-family: inherit;
  border-bottom: 1px solid rgba(242, 236, 223, 0.1);
  /* Full-band atmosphere — not only on the cream-card strip (avoids seam/sliver) */
  background-color: #030b16;
  background-image:
    linear-gradient(
      180deg,
      rgba(3, 11, 22, 0.78) 0%,
      rgba(3, 11, 22, 0.55) 42%,
      rgba(3, 11, 22, 0.82) 100%
    ),
    url("../img/day-hub-bg.584f3a1c4ad3.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ── BAND 0 · Intro headline (layout “Today’s Racing”) ───────── */
.day-hub__intro {
  padding: 40px 0 8px;
}
.day-hub__intro-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  box-sizing: border-box;
}
.day-hub__intro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a227;
  margin-bottom: 14px;
}
.day-hub__intro-rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}
.day-hub__intro-title {
  margin: 0 0 12px;
  max-width: 22em;
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
}
.day-hub__intro-accent {
  display: block;
  color: #e8c558;
}
.day-hub__intro-sub {
  margin: 0;
  max-width: 42em;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

/* ── BAND 1 · Status capsule + meeting chips ─────────────────── */
.day-hub__header {
  background: transparent;
  border-bottom: 0;
  padding: 20px 0 8px;
}
.day-hub__header-inner,
.day-hub__status {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: calc(var(--max-w) - 2 * var(--page-gutter));
  margin: 0 auto;
  padding: 10px 14px 10px 16px;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 18, 24, 0.72);
  border: 1px solid rgba(74, 222, 128, 0.45);
  border-radius: 999px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-sizing: border-box;
}
.day-hub__status::-webkit-scrollbar {
  display: none;
}
.day-hub__status-meta {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}
.day-hub__status-cal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  flex-shrink: 0;
}
.day-hub__status-today {
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}
.day-hub__status-today em {
  font-style: normal;
  color: #4ade80;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  margin-right: 4px;
}
.day-hub__status-sep {
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.day-hub__status-counts {
  white-space: nowrap;
}
.day-hub__status-counts em {
  font-style: normal;
  color: #4ade80;
  font-weight: 700;
}

.day-hub__title-block { min-width: 0; }
.day-hub__kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 6px;
}
.day-hub__title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.day-hub__title-sub {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  margin-left: 6px;
}

.day-hub__meetings {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.day-hub__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.day-hub__chip:hover {
  background: rgba(212, 175, 55, 0.10);
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-1px);
}
.day-hub__chip-course { letter-spacing: 0.02em; }
.day-hub__chip-count {
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.22);
  color: var(--c-gold);
}
.day-hub__chip--finished {
  opacity: 0.55;
  filter: grayscale(0.4);
}
.day-hub__chip--finished .day-hub__chip-count {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

/* ── BAND 2 · Dual hero cards ────────────────────────────────── */
.day-hub__hero {
  padding: 20px 0 28px;
}
.day-hub__hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.day-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 20px;
  background-color: #030b16;
  background-image:
    linear-gradient(180deg, rgba(3, 11, 22, 0.72) 0%, rgba(3, 11, 22, 0.92) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
}
.day-card > * {
  position: relative;
  z-index: 1;
}
.day-card--featured {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08);
  /* Photo lives on ::before so it always edge-fills under tip/CTAs */
  background-image: none;
  background-color: #030b16;
  /* Hero-style 3D tilt (JS sets rotateX/Y on pointermove) */
  transform: perspective(760px) rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1);
  will-change: transform;
}
.day-card--featured.is-tilting,
.day-card--next-off.is-tilting {
  transition: transform 0.08s linear;
}
@media (prefers-reduced-motion: reduce) {
  .day-card--featured,
  .day-card--next-off {
    transform: none;
    transition: none;
    will-change: auto;
  }
}
.day-card--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-color: #030b16;
  background-image:
    linear-gradient(
      105deg,
      rgba(3, 11, 22, 0.82) 0%,
      rgba(3, 11, 22, 0.42) 48%,
      rgba(3, 11, 22, 0.28) 100%
    ),
    url("../img/race-of-the-day-bg-bleed.062eb045efc9.webp");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}
.day-card--next-off {
  border-color: rgba(74, 222, 128, 0.38);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.06);
  background-image: none;
  background-color: #030b16;
  transform: perspective(760px) rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1);
  will-change: transform;
}
.day-card--next-off::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-color: #030b16;
  background-image:
    linear-gradient(
      105deg,
      rgba(3, 11, 22, 0.82) 0%,
      rgba(3, 11, 22, 0.42) 48%,
      rgba(3, 11, 22, 0.28) 100%
    ),
    url("../img/next-off-bg.72cc36b27fc0.webp");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.day-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.day-card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.day-card__kicker--live { color: #4ade80; }
.day-card__star {
  color: var(--c-gold);
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.day-card__star svg { display: block; }
.day-card__pulse {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.70);
  animation: day-hub-pulse 1.6s ease-in-out infinite;
}
@keyframes day-hub-pulse {
  0%, 100% { opacity: 1;    transform: scale(1);    }
  50%      { opacity: 0.55; transform: scale(1.30); }
}
.day-card__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 10px 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.80);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.day-card__badge-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.day-card__badge--pinned   { background: rgba(212, 175, 55, 0.18); color: var(--c-gold); }
.day-card__badge--fallback { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.55); font-style: italic; }
.day-card__badge--live     { background: rgba(239, 68, 68, 0.22);  color: #fca5a5; }

.day-card__time-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.day-card__time {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  font-feature-settings: 'tnum';
  line-height: 1;
}
.day-card__course {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}
.day-card__name {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.day-card__facts {
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.day-card__facts > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  min-width: 78px;
}

/* Upper: icon + label · Lower: value (no icon-column indent).
   .day-card__fact-body is the production template's name for this row;
   kept so the stylesheet works before and after the Django port. */
.day-card__fact-body,
.day-card__fact-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.day-card__fact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d8b14a;
  flex-shrink: 0;
  line-height: 0;
}
.day-card__fact-icon svg { width: 16px; height: 16px; display: block; }
.day-card--next-off .day-card__fact-icon {
  color: #d8b14a;
}
.day-card--featured .day-card__facts > div {
  border-color: rgba(212, 175, 55, 0.28);
}
.day-card--next-off .day-card__facts > div {
  border-color: rgba(74, 222, 128, 0.35);
}

.day-card__facts .day-card__fact-body,
.day-card__facts dt {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
}
.day-card__facts dd {
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.day-card__facts-fox dt { color: var(--c-gold); }
.day-card__odds {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.16);
  color: var(--c-gold);
  font-size: 12px;
  font-feature-settings: 'tnum';
}

/* Fox's tip callout — sits between the race facts and the CTA row.
 * Full-width chip so the horse + price read as one prominent line;
 * clickable (routes to the featured-tip page) so tapping the tip
 * itself is the shortest path to "why this pick". */
.day-card__tip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg,
                              rgba(212, 175, 55, 0.14) 0%,
                              rgba(212, 175, 55, 0.08) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.day-card__tip:hover,
.day-card__tip:focus-visible {
  background: linear-gradient(180deg,
                              rgba(212, 175, 55, 0.22) 0%,
                              rgba(212, 175, 55, 0.14) 100%);
  border-color: rgba(212, 175, 55, 0.55);
  transform: translateY(-1px);
  outline: none;
}

/* Fox portrait — circular chip on the left of the tip callout,
 * face-framed so his tweed collar doesn't crop over the face. */
.day-card__tip-portrait {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 4px 12px -6px rgba(212, 175, 55, 0.35);
}
.day-card__tip-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.day-card__tip-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.day-card__tip-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.day-card__tip-fox {
  color: var(--c-gold);
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.day-card__tip-fox svg { display: block; }

.day-card__tip-horse {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-card__tip-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

.day-card__tip-odds {
  flex-shrink: 0;
  padding: 6px 12px;
  background: #06070d;
  color: var(--c-gold);
  border-radius: 6px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(212, 175, 55, 0.4);
}

/* Row of CTAs — primary + optional secondary (Read Why for
 * Race of the Week when a Fox pick is set). Wraps on narrow
 * cards so the ghost button doesn't force horizontal scroll. */
.day-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.day-card__cta {
  align-self: flex-start;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--c-gold);
  color: #06070d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* CTA icon — inline SVG sits before the label. Ghost-variant
 * currentColor works for both filled (dark on gold) and ghost
 * (light on transparent). */
.day-card__cta-icon {
  width: 11px;
  height: 15px;
  flex-shrink: 0;
}

/* Standalone .day-card__cta not inside an .actions wrapper keeps
 * its own top margin so we don't have to touch every other card. */
.day-card > .day-card__cta { margin-top: 8px; }
.day-card--next-off .day-card__cta:not(.day-card__cta--ghost) {
  background: #4ade80;
  color: #06070d;
}
.day-card__cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
/* Ghost CTAs: outline idle → theme liquid fill on hover */
.day-card__cta--ghost {
  --liquid: var(--c-gold);
  --ink: #06070d;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.55);
  transition: color 0.4s, border-color 0.4s;
}
.day-card--featured .day-card__cta--ghost {
  border-color: rgba(212, 175, 55, 0.55);
  color: rgba(255, 255, 255, 0.92);
}
.day-card--next-off .day-card__cta--ghost {
  --liquid: #4ade80;
  border-color: rgba(74, 222, 128, 0.55);
  color: rgba(255, 255, 255, 0.92);
}
.day-card__cta--ghost::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -25%;
  width: 150%;
  height: 200%;
  background: var(--liquid);
  border-radius: 45% 55% 0 0 / 25% 25% 0 0;
  transform: translateY(100%);
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  pointer-events: none;
}
.day-card__cta--ghost:hover::before,
.day-card__cta--ghost:focus-visible::before,
.day-card--next-off .day-card__cta--ghost:hover::before,
.day-card--featured .day-card__cta--ghost:hover::before {
  transform: translateY(5%);
  animation: sat-btn-liquid-wave 2.5s ease-in-out infinite 0.65s;
}
.day-card__cta--ghost:hover,
.day-card--next-off .day-card__cta--ghost:hover,
.day-card--featured .day-card__cta--ghost:hover {
  background: transparent;
  color: var(--ink);
  filter: none;
  transform: none;
}
.day-card--next-off .day-card__cta--ghost:hover {
  border-color: #4ade80;
}
.day-card--featured .day-card__cta--ghost:hover {
  border-color: var(--c-gold);
}
.day-card__cta--ghost:hover .day-card__cta-icon,
.day-card__cta--ghost:focus-visible .day-card__cta-icon {
  filter: brightness(0);
}
.day-card__empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

/* Inline countdown for Next Off card — layout: 00 : 01 : 35 (no hrs/min/sec labels). */
.day-hub-countdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 10px;
  font-feature-settings: 'tnum';
  margin-top: 4px;
  align-self: flex-start;
}
.day-hub-cd__num {
  font-size: 22px;
  font-weight: 800;
  color: #7dffa8;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  min-width: 1.6ch;
  text-align: center;
}
.day-hub-cd__lbl { display: none; }
.day-hub-cd__unit { display: contents; }
.day-hub-cd__sep {
  font-size: 20px;
  font-weight: 700;
  color: #7dffa8;
  opacity: 0.85;
  line-height: 1;
}

/* ── BAND 3 · Race grid — white “Today’s Card” panel (layout) ── */
.day-hub__grid-section {
  padding: 48px 0 56px;
  /* Inherit continuous .day-hub photo — do not restart bg here */
  background: transparent;
}

.day-hub__card {
  /* Match landing hero content rail (fox/picks), not wider than header */
  width: calc(100% - 2 * var(--page-gutter));
  max-width: calc(var(--max-w) - 2 * var(--page-gutter));
  margin: 0 auto;
  background: #f7f4ec;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 28px;
  padding: 28px 28px 32px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

/* Same element as .day-hub__card — keep rail width */
.day-hub__grid-inner.day-hub__card {
  width: calc(100% - 2 * var(--page-gutter));
  max-width: calc(var(--max-w) - 2 * var(--page-gutter));
  margin: 0 auto;
}

.day-hub__grid-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.day-hub__grid-titles {
  min-width: 0;
}

.day-hub__grid-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a227;
  margin-bottom: 6px;
}

.day-hub__grid-title {
  margin: 0;
  font-family: var(--font-display, "Playfair Display", Georgia, serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: #14161f;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.day-hub__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.day-hub__filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #ebe6da;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #3a3f4b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.day-hub__filter:hover {
  background: #e2dccf;
  color: #14161f;
}

.day-hub__filter.is-active {
  background: #14161f;
  border-color: var(--c-gold);
  color: #e8c558;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35), 0 0 18px rgba(212, 175, 55, 0.25);
}

.day-hub__filter-n {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(20, 22, 31, 0.08);
  color: inherit;
}

.day-hub__filter.is-active .day-hub__filter-n {
  background: rgba(212, 175, 55, 0.2);
  color: var(--c-gold-lt);
}

/* Two-column body: courses | races */
.day-hub__card-body {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1px minmax(0, 1fr);
  gap: 0 22px;
  align-items: start;
  min-height: 280px;
}

.day-hub__courses {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.day-hub__card-body::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  width: 1px;
  align-self: stretch;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(212, 175, 55, 0.55) 12%,
    rgba(212, 175, 55, 0.55) 88%,
    transparent 100%
  );
  justify-self: center;
}

.day-hub__races-pane {
  grid-column: 3;
  min-width: 0;
}

.day-hub__course {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #14161f;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.day-hub__course-ico {
  display: none;
  width: 40px;
  height: 27px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.day-hub__course-name {
  font-size: 15px;
  font-weight: 700;
  color: inherit;
}

.day-hub__course-meta {
  font-size: 12px;
  font-weight: 600;
  color: rgba(20, 22, 31, 0.62);
  white-space: nowrap;
}

.day-hub__course:hover {
  background: rgba(20, 22, 31, 0.05);
}

.day-hub__course.is-active {
  grid-template-columns: 40px 1fr auto;
  background: #14161f;
  color: #f5ead5;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
}

.day-hub__course.is-active .day-hub__course-ico {
  display: block;
}

.day-hub__course.is-active .day-hub__course-meta {
  color: var(--c-gold);
}

/* Meeting panels inside white card */
.day-hub__rp-grid {
  margin-top: 0;
}

.day-hub__rp-meeting {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.day-hub__rp-meeting.is-active {
  display: block;
}

.day-hub__rp-meeting.is-hidden {
  display: none !important;
}

.day-hub__rp-meeting .rp-meeting__head {
  display: none;
}

.day-hub__rp-meeting .rp-races {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.day-hub__rp-race {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(20, 22, 31, 0.1);
  border-radius: 12px;
  color: #14161f;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.day-hub__rp-race::before {
  display: none;
}

.day-hub__rp-race:hover,
.day-hub__rp-race:focus-visible {
  border-color: rgba(212, 175, 55, 0.55);
  background: #fffdf6;
  outline: none;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.day-hub__rp-race.rp-race--next,
.day-hub__rp-race.rp-race--featured,
.day-hub__rp-meeting.is-active .day-hub__rp-race:first-child {
  background: #f7efd4;
  border-color: rgba(212, 175, 55, 0.55);
}

.day-hub__rp-race .rp-race__time {
  font-size: 15px;
  font-weight: 800;
  color: #14161f;
  font-variant-numeric: tabular-nums;
}

.day-hub__rp-race .rp-race__name {
  font-size: 14px;
  font-weight: 600;
  color: #1c2030;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.day-hub__rp-race .rp-race__chips {
  display: flex;
  align-items: center;
  gap: 6px;
}

.day-hub__rp-race .rp-race__badge--next {
  background: #17794f;
  color: #fff;
  border: 0;
}

/* The race picker's pale-red LIVE badge is drawn for a dark ground;
   on these light tiles it all but vanished, so LIVE gets the same
   solid treatment as NEXT. */
.day-hub__rp-race .rp-race__badge--live {
  background: #b91c1c;
  color: #fff;
  border: 0;
}

.day-hub__rp-race .rp-star {
  color: var(--c-gold);
}

/* FOX → affordance (layout) */
.day-hub__rp-race::after {
  content: "FOX →";
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #c9a227;
  white-space: nowrap;
}

.day-hub__empty-filter {
  color: rgba(20, 22, 31, 0.55);
  margin: 16px 0 0;
}

@media (max-width: 900px) {
  .day-hub__card {
    padding: 20px 16px 24px;
    border-radius: 20px;
  }

  .day-hub__card-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .day-hub__card-body::before {
    display: none;
  }

  .day-hub__courses {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .day-hub__course,
  .day-hub__course.is-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    max-width: 100%;
    grid-template-columns: unset;
    overflow: hidden;
  }

  .day-hub__course-ico,
  .day-hub__course.is-active .day-hub__course-ico {
    display: none !important;
  }

  .day-hub__races-pane {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  .day-hub__grid-section {
    padding: 28px 0 36px;
  }

  .day-hub__rp-race {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 8px 10px;
  }

  .day-hub__rp-race .rp-race__chips {
    grid-column: 2 / -1;
  }
}

/* Meeting-name link — routes to /races/meeting/<slug>/<date>/full/.
   Subtle by default (inherits the .rp-meeting__name display-serif),
   gold-tinted on hover with a sliding arrow so it reads as clickable. */
.day-hub__meeting-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  transition: color 0.15s;
}
.day-hub__meeting-link:hover { color: var(--c-gold); }
.day-hub__meeting-link:focus-visible {
  color: var(--c-gold);
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: 3px;
}
.day-hub__meeting-link-arrow {
  font-size: 0.7em;
  font-weight: 500;
  color: var(--c-gold);
  opacity: 0.45;
  transform: translateX(0);
  transition: opacity 0.15s, transform 0.15s;
}
.day-hub__meeting-link:hover .day-hub__meeting-link-arrow,
.day-hub__meeting-link:focus-visible .day-hub__meeting-link-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.day-hub__rp-race[hidden] { display: none; }

.rp-race--live {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.06);
}
.rp-race--featured {
  border-color: rgba(212, 175, 55, 0.40);
  background: rgba(212, 175, 55, 0.05);
}
.rp-race__badge--live {
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.40);
}
.rp-race__badge--result {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.rp-race__badge--fox {
  background: rgba(212, 175, 55, 0.18);
  color: var(--c-gold);
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-size: 12px;
  padding: 1px 6px;
  cursor: help;
}

.day-hub__empty-filter {
  text-align: center;
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

/* ── BAND 4 · Movers ──────────────────────────────────────── */
.day-hub__movers { padding: 0 0 16px; }
.day-hub__movers-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  box-sizing: border-box;
}

/* ── Whole-day empty state ────────────────────────────────── */
.day-hub__empty {
  padding: 60px 0 80px;
  text-align: center;
}
.day-hub__empty-inner { max-width: 480px; margin: 0 auto; }
.day-hub__empty-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.day-hub__empty-title {
  margin: 0 0 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  color: var(--c-gold);
}
.day-hub__empty-text { margin: 0; color: rgba(255, 255, 255, 0.65); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 880px) {
  .day-hub__intro { padding: 28px 0 4px; }
  .day-hub__intro-title { max-width: none; }
  .day-hub__header { padding: 16px 0 4px; }
  .day-hub__header-inner,
  .day-hub__status {
    border-radius: 18px;
    align-items: center;
  }
  .day-hub__hero-inner { grid-template-columns: 1fr; }
  .day-row__link {
    grid-template-columns: 56px 1fr 100px;
    grid-template-areas:
      "time course status"
      "time name   name"
      ".    fav    runners";
    row-gap: 4px;
  }
  .day-row__time     { grid-area: time;    font-size: 18px; }
  .day-row__course   { grid-area: course; }
  .day-row__name     { grid-area: name; white-space: normal; }
  .day-row__fav      { grid-area: fav;  font-size: 12px; }
  .day-row__runners  { grid-area: runners; text-align: right; }
  .day-row__status   { grid-area: status; }
}
@media (max-width: 720px) {
  .day-card              { padding: 14px 14px 12px; border-radius: 18px; }

  .day-card__time {
    font-size: 24px;
  }
  .day-card__time-row {
    gap: 8px;
    margin-bottom: 4px;
  }
  .day-card__name {
    margin-top: 2px;
    font-size: 15px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .day-card__facts {
    gap: 6px;
    margin-top: 8px;
  }
  .day-card__facts > div {
    padding: 6px 10px;
    border-radius: 12px;
    min-width: 0;
    flex: 1 1 40%;
  }
  .day-card__actions {
    gap: 8px;
  }
  .day-card__cta {
    border-radius: 999px;
    padding: 11px 14px;
    font-size: 13px;
  }
  .day-card__tip {
    border-radius: 14px;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .day-hub__intro { padding: 24px 0 0; }
  .day-hub__header { padding: 12px 0 0; }
  .day-hub__header-inner,
  .day-hub__status { padding: 12px 14px; border-radius: 16px; }
  .day-hub__hero         { padding: 14px 0 20px; }
  .day-hub__grid-section { padding: 24px 0 32px; }
}

/* ── Mobile-only accordion for the meetings list ─────────────
   Desktop keeps every meeting open by default — the toggle button
   is hidden. On mobile, races collapse under their meeting header
   and the chevron toggles them open. Course-name link still routes
   to /meeting_full/; the chevron is the dedicated expand target. */
.day-hub__meeting-toggle {
  display: none;     /* desktop hides it; mobile media-query unhides */
  margin-left: auto;
  align-self: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  color: var(--c-gold);
  font: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.day-hub__meeting-toggle:hover,
.day-hub__meeting-toggle:focus-visible {
  background: rgba(212, 175, 55, 0.10);
  border-color: var(--c-gold);
  outline: none;
}
.day-hub__meeting-toggle-chev {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}
[aria-expanded="true"] .day-hub__meeting-toggle-chev { transform: rotate(180deg); }

@media (max-width: 720px) {
  /* Show the toggle and make the header lay out cleanly with it. */
  .day-hub__meeting-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;  /* WCAG-compliant tap target */
  }
  .rp-meeting__head {
    flex-wrap: wrap;
    gap: 6px 12px;
    /* Whole header taps to expand on mobile (JS gates it).
       The course-name link still routes to /meeting_full/ — JS
       checks for .day-hub__meeting-link and skips the toggle when
       that's the click target. */
    cursor: pointer;
  }
  /* Meeting sub line takes remaining width, leaves room for the chevron. */
  .rp-meeting__sub { width: auto; flex: 0 0 auto; }

  /* Collapse the races list by default on mobile; expand when the
     parent meeting carries .is-open (toggled by JS). */
  .day-hub__rp-meeting .rp-races {
    display: none;
    margin-top: 10px;
  }
  .day-hub__rp-meeting.is-open .rp-races {
    display: grid;
  }
}

/* ═══════════════════════════════════════════════════════════════
   VARIANT A — Elevated cards UX restyle.

   Solves the dark-on-dark legibility crisis: tile borders were 6%
   white opacity (invisible), meeting backgrounds 1.5% opacity
   (invisible against the page), race names 12.5px (illegible at
   arms length). Everything below is SCOPED to .day-hub__rp-*
   selectors so the mobile picker sheet's compact look is
   unchanged.

   What it does:
     • Bumps tile / meeting contrast (borders 14-16%, backgrounds
       4-8% opacity) so cards visually separate from the page
     • 3px coloured state-band on the left edge of each race tile
       (gold = next-off, red = live, neutral = upcoming, faded =
       resulted, gold-dotted = fox pick) — instant visual hierarchy
     • Larger fonts (race name 14px, time 18px, badges 11px)
     • Hover lift + gold border so cards feel interactive
     • Gold-tinted glow on the "active" meeting that contains the
       next race going off
═══════════════════════════════════════════════════════════════ */

/* Meeting card — elevated background, visible border, breathable padding. */
.day-hub__rp-meeting {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 20px 22px;
  transition: border-color 0.22s ease, background 0.22s ease,
              box-shadow 0.22s ease, transform 0.18s ease;
}
.day-hub__rp-meeting:hover {
  border-color: rgba(212, 175, 55, 0.32);
}

/* "Active" meeting — JS adds .has-next when it contains a .rp-race--next.
   This is the venue whose next race is closest to off, anchoring the eye. */
.day-hub__rp-meeting.has-next {
  border-color: rgba(212, 175, 55, 0.55);
  background:
    linear-gradient(180deg,
      rgba(212, 175, 55, 0.10) 0%,
      rgba(212, 175, 55, 0.03) 100%);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.20) inset,
    0 12px 32px -16px rgba(212, 175, 55, 0.32);
}

/* Meeting header — bigger course name, brighter sub-line. */
.day-hub__rp-meeting .rp-meeting__name {
  font-size: 22px;
  letter-spacing: -0.005em;
  line-height: 1.15;
}
.day-hub__rp-meeting .rp-meeting__sub {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.60);
  letter-spacing: 0.02em;
}

/* Race tile — elevated, more padding, room for the state band. */
.day-hub__rp-race {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 12px 14px 12px 18px;     /* extra left pad for the band */
  overflow: hidden;
  transition: border-color 0.16s ease, background 0.16s ease,
              transform 0.14s ease, box-shadow 0.16s ease;
}

/* 3px coloured state band on the left edge of each tile.
   Default neutral; per-state colours via the rp-race--* modifiers.
   The band IS the visual hierarchy — race state readable at a glance. */
.day-hub__rp-race::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.day-hub__rp-race.rp-race--next::before {
  background: linear-gradient(180deg, #f5e49a 0%, var(--c-gold) 100%);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.55);
}
.day-hub__rp-race.rp-race--live::before {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.55);
}
.day-hub__rp-race.rp-race--result::before {
  background: rgba(255, 255, 255, 0.08);
}

/* Fox-pick tiles get a dotted gold band — but ONLY when the tile
   isn't already next/live (those states win for visual hierarchy). */
.day-hub__rp-race[data-flags*="fox"]::before {
  background:
    repeating-linear-gradient(180deg,
      var(--c-gold) 0,
      var(--c-gold) 5px,
      rgba(212, 175, 55, 0.10) 5px,
      rgba(212, 175, 55, 0.10) 10px);
}
.day-hub__rp-race.rp-race--next[data-flags*="fox"]::before,
.day-hub__rp-race.rp-race--live[data-flags*="fox"]::before {
  background: linear-gradient(180deg, #f5e49a 0%, var(--c-gold) 100%);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.55);
}

/* Hover lift — gold border, subtle glow, 3px nudge right. */
.day-hub__rp-race:hover {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.08);
  transform: translateX(3px);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.20) inset,
    0 6px 18px -10px rgba(212, 175, 55, 0.40);
}

/* Larger text inside the tile for arm's-length readability. */
.day-hub__rp-race .rp-race__time {
  font-size: 18px;
}
.day-hub__rp-race .rp-race__name {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
}

/* Badges — bigger, more readable, more prominent. */
.day-hub__rp-race .rp-race__badge {
  font-size: 11px;
  padding: 3px 9px;
  letter-spacing: 0.08em;
  border-radius: 999px;
}

/* Resulted tiles — fade the content but keep the band subtle. */
.day-hub__rp-race.rp-race--result .rp-race__time,
.day-hub__rp-race.rp-race--result .rp-race__name {
  color: rgba(255, 255, 255, 0.55);
}

/* ── Filter chips — bigger tap targets, gold-solid active state ─ */
.day-hub__filter {
  padding: 9px 16px;
  font-size: 13px;
  transition: background 0.15s ease, border-color 0.15s ease,
              color 0.15s ease, transform 0.12s ease;
}
.day-hub__filter.is-active {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: #18120a;     /* dark text on solid gold — high contrast */
  font-weight: 800;
}
.day-hub__filter.is-active .day-hub__filter-n {
  background: rgba(0, 0, 0, 0.25);
  color: #18120a;
}
.day-hub__filter:active {
  transform: scale(0.96);
}

/* ── Mobile refinements ────────────────────────────────────── */
@media (max-width: 720px) {
  .day-hub__filter {
    min-height: 44px;             /* WCAG tap target */
    padding: 11px 18px;
    font-size: 13px;
  }
  .day-hub__filters { gap: 8px; }

  /* Sticky filter bar — chips stay reachable while scrolling 42 races. */
  .day-hub__grid-head {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 -16px 12px;
    padding: 12px 16px 10px;
    background: linear-gradient(180deg,
      rgba(10, 11, 13, 0.96) 0%,
      rgba(10, 11, 13, 0.88) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* Tighter meeting card padding on mobile. */
  .day-hub__rp-meeting {
    padding: 16px 16px 16px;
    border-radius: 14px;
  }

  /* Bigger course-name on mobile so it dominates the header. */
  .day-hub__rp-meeting .rp-meeting__name {
    font-size: 20px;
  }

  /* Race tile — single column on mobile, more padding for thumbs. */
  .day-hub__rp-meeting .rp-races {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .day-hub__rp-race {
    padding: 14px 14px 14px 20px;
    min-height: 56px;             /* comfortable tap target */
  }
  .day-hub__rp-race .rp-race__time { font-size: 18px; }
  .day-hub__rp-race .rp-race__name { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   WHITE CARD OVERRIDES — win over VARIANT A / accordion dark rules
   when the layout “Today’s Card” panel (.day-hub__card) is present.
═══════════════════════════════════════════════════════════════ */
.day-hub__card .day-hub__rp-meeting {
  display: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transform: none;
}
.day-hub__card .day-hub__rp-meeting:hover {
  border-color: transparent;
  background: transparent;
}
.day-hub__card .day-hub__rp-meeting.has-next {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.day-hub__card .day-hub__rp-meeting.is-active {
  display: block;
}
.day-hub__card .day-hub__rp-meeting.is-hidden {
  display: none !important;
}
.day-hub__card .day-hub__rp-meeting .rp-meeting__head {
  display: none;
}
.day-hub__card .day-hub__rp-meeting .rp-races {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
  grid-template-columns: unset;
}
.day-hub__card .day-hub__rp-race {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px 14px;
  position: relative;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(20, 22, 31, 0.1);
  border-radius: 12px;
  color: #14161f;
  overflow: visible;
  transform: none;
  box-shadow: none;
}
.day-hub__card .day-hub__rp-race::before {
  display: none;
  content: none;
}
.day-hub__card .day-hub__rp-race::after {
  content: "FOX →";
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #c9a227;
  white-space: nowrap;
}
.day-hub__card .day-hub__rp-race:hover,
.day-hub__card .day-hub__rp-race:focus-visible {
  border-color: rgba(212, 175, 55, 0.55);
  background: #fffdf6;
  transform: none;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2);
}
.day-hub__card .day-hub__rp-race.rp-race--next,
.day-hub__card .day-hub__rp-race.rp-race--featured,
.day-hub__card .day-hub__rp-meeting.is-active .day-hub__rp-race:first-child {
  background: #f7efd4;
  border-color: rgba(212, 175, 55, 0.55);
}
.day-hub__card .day-hub__rp-race .rp-race__time {
  font-size: 15px;
  font-weight: 800;
  color: #14161f;
}
.day-hub__card .day-hub__rp-race .rp-race__name {
  font-size: 14px;
  font-weight: 600;
  color: #1c2030;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}
.day-hub__card .day-hub__empty-filter {
  color: rgba(20, 22, 31, 0.55);
}

@media (max-width: 720px) {
  .day-hub__card .day-hub__grid-head {
    position: static;
    margin: 0 0 14px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
    gap: 10px;
  }

  .day-hub__card {
    padding: 12px 10px 14px;
    border-radius: 18px;
  }

  .day-hub__grid-section {
    padding: 20px 0 28px;
  }

  .day-hub__grid-title {
    font-size: 24px;
  }

  .day-hub__grid-kicker {
    font-size: 10px;
  }

  .day-hub__filter {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .day-hub__filters {
    gap: 6px;
  }

  .day-hub__card .day-hub__rp-meeting {
    padding: 0;
    border-radius: 0;
  }

  .day-hub__card .day-hub__rp-race {
    display: block;
    overflow: hidden; /* contain float */
    min-height: 0;
    padding: 10px 12px;
    font-size: 0; /* collapse whitespace text nodes between spans */
  }

  .day-hub__card .day-hub__rp-race .rp-race__time {
    float: left;
    width: 48px;
    margin: 0 8px -10px 0; /* negative bottom so line 2 wraps under time */
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
  }

  .day-hub__card .day-hub__rp-race .rp-race__name {
    /* Flows around floated time — line 2 uses space under time.
       Do NOT set overflow:hidden (BFC kills wrap-around).
       JS clampDayHubRaceTitles() enforces 2 lines + ellipsis. */
    display: block;
    overflow: visible;
    white-space: normal;
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
  }

  .day-hub__card .day-hub__rp-race .rp-race__chips {
    clear: both;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: auto;
    max-width: calc(100% - 72px);
    margin-top: 6px;
    margin-right: 0;
    font-size: 11px;
    vertical-align: middle;
  }

  .day-hub__card .day-hub__rp-race::after {
    content: "FOX →";
    display: inline-flex;
    align-items: center;
    clear: none;
    margin-top: 6px;
    margin-left: 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #c9a227;
    vertical-align: middle;
  }

  .day-hub__card .day-hub__meeting-toggle {
    display: none;
  }

  .day-hub__card-body {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .day-hub__card-body::before {
    display: none;
  }

  .day-hub__courses {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-right: 0;
  }

  .day-hub__course,
  .day-hub__course.is-active {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: auto;
    max-width: calc(50% - 3px);
    grid-template-columns: unset;
    padding: 6px 9px;
    border-radius: 999px;
    background: #ebe6da;
    box-sizing: border-box;
    overflow: hidden;
  }

  .day-hub__course.is-active {
    background: #14161f;
    color: #e8c558;
  }

  .day-hub__course-ico,
  .day-hub__course.is-active .day-hub__course-ico {
    display: none !important;
  }

  .day-hub__course-name {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
  }

  .day-hub__course-meta {
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    flex: 0 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .day-hub__races-pane {
    grid-column: 1;
    min-width: 0;
  }

  .day-hub__filter {
    border-radius: 999px;
  }

  .day-hub__card .day-hub__rp-race {
    border-radius: 14px;
  }
}

/* A meeting whose racing is over reads as done rather than upcoming.
   Production's day hub template still sets this class. */
.day-hub__rp-meeting.is-finished {
  opacity: 0.72;
}

/* ── Filters and Fox markers, on a real card ──────────────────────────
   day_hub.js filters by setting the hidden attribute on each tile, but
   the tile's own display: grid outranks the browser's [hidden] rule, so
   filtered races stayed on screen. */
.day-hub .day-hub__rp-race[hidden] {
  display: none;
}

/* "FOX →" marks a race Mr Fox has picked. The design put it on every
   tile - its sample card had a pick in all 26 races - which on a real
   card claims picks that do not exist. Only tiles flagged fox keep it. */
.day-hub .day-hub__rp-race:not([data-flags~="fox"])::after {
  content: none;
}
