
/* Chase Analytics — opening dashboard (matchup hub) */
/* Opening landing — flush to nav, no dead purple scroll space */
body.opening-dashboard.view-opening > .container {
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
}

body.opening-dashboard.view-opening #opening-dashboard,
body.opening-dashboard.view-opening #opening-dashboard.opening-layer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.opening-dashboard.view-opening #section-opening-hero.ca-hero {
  margin-top: 0 !important;
  padding-top: 16px !important;
}

body.opening-dashboard.view-opening .opening-layer .ca-hero,
body.opening-dashboard.view-opening .opening-layer .ca-market,
body.opening-dashboard.view-opening .opening-layer .ca-tools {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.opening-layer .ca-hero__glow {
  display: none !important;
}

html.view-opening,
html.view-opening body.opening-dashboard,
body.view-opening.opening-dashboard {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
}

body.opening-dashboard .ca-page-identity,
body.opening-dashboard .landing-hero-brand,
body.opening-dashboard .freshness-bar {
  display: none !important;
}

/* Premium Opening hero — command center */
.ca-opening-hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 5vw, 58px) clamp(24px, 5vw, 58px);
  margin: 16px 0 48px;
  border-radius: 0;
  border: none;
  background:
    radial-gradient(ellipse 75% 58% at 82% 12%, rgba(124, 77, 255, 0.24), transparent 66%),
    linear-gradient(135deg, #06070D 0%, #111124 46%, #05060B 100%);
  background-size: auto, auto;
  box-shadow: none;
  overflow: hidden;
}

.ca-opening-hero::before {
  content: '' !important;
  display: block !important;
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), transparent 22%),
    linear-gradient(90deg, transparent, rgba(196,176,255,0.16), transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -40px 70px rgba(0,0,0,0.32);
}

.ca-opening-hero::after {
  content: '' !important;
  display: block !important;
  position: absolute;
  right: -8%;
  top: 8%;
  width: 42%;
  height: 78%;
  pointer-events: none;
  background:
    linear-gradient(100deg, transparent 16%, rgba(196,176,255,0.18) 17%, transparent 19%),
    repeating-linear-gradient(90deg, rgba(154,107,255,0.22) 0 4px, transparent 4px 13px);
  opacity: 0.22;
  transform: skewX(-14deg);
}

.ca-hero-brand,
.ca-hero-slate {
  position: relative;
  z-index: 1;
}

.ca-hero-logo-wrap {
  display: inline-block;
  margin-bottom: 16px;
}

.ca-hero-logo {
  height: 64px;
  width: auto;
  min-width: 200px;
  max-width: min(420px, 100%);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 18px rgba(124, 58, 237, 0.80)) drop-shadow(0 16px 18px rgba(0, 0, 0, 0.50));
}

.ca-hero-logo-fallback {
  display: none;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
}

.ca-hero-logo-fallback span {
  color: #a78bfa;
}

.ca-kicker {
  margin: 0 0 8px;
  color: var(--ca-gold, #F0C24A);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font, system-ui);
}

.ca-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.92;
  font-weight: 900;
  color: transparent;
  letter-spacing: 0;
  font-family: var(--font-display, var(--font, system-ui));
  font-variation-settings: 'wdth' 125;
  text-transform: uppercase;
  background: var(--ca-metal-text, linear-gradient(180deg, #fff, #A4A8B6));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,0.58)) drop-shadow(0 18px 26px rgba(0,0,0,0.45));
}

.ca-hero-gradient {
  background: var(--ca-violet-text, linear-gradient(180deg, #D9CCFF, #7C4DFF));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ca-hero-copy p {
  max-width: 480px;
  color: rgba(245, 246, 250, 0.78);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  font-weight: 400;
}

.ca-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.ca-hero-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #B794FF 0%, #7C4DFF 48%, #5426D7 100%);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(196,176,255,0.34), 0 0 24px rgba(124,77,255,0.44);
  transition: filter 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.ca-hero-cta-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.ca-hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  color: #A78BFA;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease;
}

.ca-hero-cta-secondary:hover {
  color: #fff;
}

.ca-hero-slate {
  flex: 0 1 320px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--ca-panel-glass, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--ca-panel-border, rgba(154, 107, 255, 0.42));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 0 28px rgba(124,77,255,0.18);
}

.ca-slate-date {
  font-size: 24px;
  font-weight: 700;
  color: #F9FAFB;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.ca-slate-chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.ca-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: auto;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(196, 176, 255, 0.16);
  color: #9CA3AF;
  font-weight: 600;
  font-size: 12px;
}

.ca-chip-purple,
#openingHeroSlate {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22C55E;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#openingHeroSynced {
  background: transparent;
  border: none;
  padding: 0;
  color: #6B7280;
  font-size: 12px;
  font-weight: 500;
}

.ca-chip-live {
  background: transparent;
  border: none;
  padding: 0;
  color: #22C55E;
  font-size: 12px;
  font-weight: 600;
}

.ca-chip-live .ca-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22C55E;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.ca-chip-warn .ca-dot {
  background: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.ca-chip-live.is-pending .ca-dot {
  background: #71717a;
  box-shadow: none;
}

.ca-chip-live.is-pending {
  color: rgba(255, 255, 255, 0.55);
}

.ca-hero-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.ca-action-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration: none;
  background: var(--ca-panel-glass, rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(154, 107, 255, 0.34);
  color: #fff;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.ca-action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(196,176,255,0.18), 0 0 24px rgba(124,77,255,0.28);
  border-color: rgba(124, 58, 237, 0.55);
  background: rgba(124, 58, 237, 0.1);
}

.ca-action-card strong {
  font-size: 17px;
  font-weight: 900;
  font-family: var(--font-display, var(--font, system-ui));
  font-variation-settings: 'wdth' 120;
}

.ca-action-card span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.35;
}

.ca-action-card em {
  color: #a78bfa;
  font-style: normal;
  font-weight: 800;
  margin-top: 4px;
}

.matchups-section-head {
  margin-bottom: 16px;
}

.matchups-section-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
  color: var(--text, #F5F5F7);
  letter-spacing: -0.015em;
  font-family: var(--font-display, var(--font, system-ui));
  font-variation-settings: 'wdth' 125;
}

.matchups-section-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-2, #a1a1aa);
}

#section-opening-links {
  display: none !important;
}

.hmc-view-full {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: #c084fc;
  text-align: center;
  text-decoration: none;
}
.hmc-view-full:hover { color: #e9d5ff; }

@media (max-width: 900px) {
  .ca-opening-hero {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .ca-hero-logo {
    height: 56px;
    min-width: 160px;
  }

  .ca-hero-slate {
    justify-self: start;
    text-align: left;
  }

  .ca-slate-chips {
    justify-content: flex-start;
  }

  .ca-hero-actions {
    grid-template-columns: 1fr;
  }
}

.landing-hero-brand {
  margin-bottom: 20px;
}
.landing-hero-brand img.ca-logo-hero {
  height: 120px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 8px;
}
.landing-hero-brand .landing-tagline {
  font-size: 13px;
  color: var(--text-2);
  max-width: 520px;
}

.layer-main { margin-bottom: 0; max-width: 1400px; margin-left: auto; margin-right: auto; padding: 0 24px; }
body.opening-dashboard #metricLegendGlobal,
body.opening-dashboard .ca-metric-legend,
body.opening-dashboard .rl-metric-legend--global { display: none !important; }
html.view-opening #section-research-lab,
body.view-opening #section-research-lab { display: none !important; }
html.view-opening #section-matchups-hero,
body.view-opening #section-matchups-hero { display: none !important; }
html.view-matchups #opening-dashboard,
body.view-matchups #opening-dashboard { display: none !important; }
html.view-matchups #section-research-lab,
body.view-matchups #section-research-lab { display: none !important; }
html.view-matchups #section-matchups-hero,
body.view-matchups #section-matchups-hero { display: block !important; }
html.view-research #opening-dashboard,
body.view-research #opening-dashboard { display: none !important; }
html.view-research #section-research-lab,
body.view-research #section-research-lab { display: block !important; }
html.view-research .ca-page-identity,
body.view-research .ca-page-identity { display: none; }
#dashboard-data-templates { display: none !important; }
.hmc-row.hmc-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 10px;
  min-width: 0;
}

.hero-matchup-card .hmc-row.hmc-teams > .hmc-team {
  min-width: 0;
}
#section-research-lab.layer-research-wrap {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.matchups-hero-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.matchups-hero-meta {
  font-size: 13px;
  color: var(--text-2);
  margin-right: auto;
  width: 100%;
}
@media (min-width: 700px) {
  .matchups-hero-meta { width: auto; }
}

.ca-pill-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.ca-pill-bar .ca-pill-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-right: 4px;
}
/* .ca-pill-btn — styled in mlbma_design_system.css (hero CTA context pattern) */

#matchupsHeroGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hero-matchup-card {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
  position: relative;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 18px 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), transparent 30%),
    linear-gradient(180deg, rgba(18,20,31,0.95), rgba(6,7,13,0.98));
  border-color: rgba(154, 107, 255, 0.36);
  box-shadow: 0 0 0 1px rgba(196,176,255,0.06), 0 24px 70px rgba(0,0,0,0.72);
}
.hero-matchup-card:hover {
  border-color: rgba(196, 176, 255, 0.74);
  box-shadow: 0 0 0 1px rgba(196,176,255,0.18), 0 0 34px rgba(124, 58, 237, 0.32), 0 28px 82px rgba(0,0,0,0.82);
  transform: translateY(-1px);
}
.hmc-meta {
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 2px auto 0;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--mono);
  line-height: 1.2;
}
.hmc-meta .hmc-time {
  color: var(--text-1);
  font-weight: 800;
  white-space: nowrap;
  font-size: 13px;
}
.hmc-meta .hmc-stadium {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
}
.hmc-weather-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}
.hmc-weather-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  background: transparent;
  border: 0;
  color: var(--text-2);
  white-space: nowrap;
}
.hmc-weather-chip--temp {
  color: var(--temp-color, var(--text-1));
}
.hmc-weather-chip--temp strong {
  font-family: var(--font-display, var(--font));
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}
.hmc-weather-chip--wind {
  gap: 3px;
  font-family: var(--mono, monospace);
}
.hmc-wind-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--text-2);
}
.hmc-wind--out .hmc-wind-arrow { color: #F87171; }
.hmc-wind--in .hmc-wind-arrow { color: #60A5FA; }
.hmc-wind--lr .hmc-wind-arrow,
.hmc-wind--rl .hmc-wind-arrow { color: #FBBF24; }
.hmc-wind--rl .hmc-wind-arrow { transform: scaleX(-1); }
.hmc-wind-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hmc-wind-mph {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-1);
  margin-left: 1px;
}
.hmc-wind-unit {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hmc-weather-chip--cond {
  font-size: 11px;
  text-transform: capitalize;
  color: var(--text-3);
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hmc-weather-chip--dome {
  color: var(--purple-2, #9A6BFF);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hmc-lineups--always .hmc-lineups-label {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-1);
  margin: 2px 0 9px;
}

/* Flat projected lineup columns inside matchup cards */
.hero-matchup-card .matchup-lineup-col--compact {
  min-width: 0;
}

.hero-matchup-card .matchup-lineup-col-head {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  min-height: 0;
  min-width: 0;
  line-height: 1.2;
}

.hero-matchup-card .matchup-lineup-col-head__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--purple-2, #9A6BFF);
  opacity: 0.9;
}

.hero-matchup-card .matchup-lineup-col-head__icon svg {
  display: block;
}

.hero-matchup-card .matchup-lineup-col-head__team {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-1, #F3F4F6);
  font-family: var(--font-display, var(--font));
  flex: none;
}

.hero-matchup-card .matchup-lineup-col-head__meta {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3, #9CA3AF);
  font-family: var(--mono, monospace);
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Safety: shrink legacy scorecard headers if cached markup still renders */
.hero-matchup-card .lineup-board .ca-section-head {
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.hero-matchup-card .lineup-board .ca-section-head .ca-icon {
  width: 22px;
  height: 22px;
}

.hero-matchup-card .lineup-board .ca-section-head .ca-icon svg {
  width: 12px;
  height: 12px;
}

.hero-matchup-card .lineup-board .ca-section-head .kicker {
  display: none;
}

.hero-matchup-card .lineup-board .ca-section-head__body {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.hero-matchup-card .lineup-board .ca-section-head .title {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-matchup-card .lineup-board .ca-section-head .purpose {
  font-size: 9px;
  margin: 0 0 0 auto;
  white-space: nowrap;
  flex: none;
}

.hmc-pitchers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin: 12px 0;
  min-width: 0;
  align-items: stretch;
}
.mc-sp-block {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  height: 100%;
  padding: 12px 14px 11px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  border: 1px solid rgba(196, 176, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
  box-sizing: border-box;
  overflow: visible;
}
.mc-sp-block--away {
  padding-right: 12px;
}
.mc-sp-block--home {
  grid-template-columns: minmax(0, 1fr) 42px;
  padding: 12px 14px 11px 12px;
}
.mc-sp-block--home .mc-sp-photo {
  grid-column: 2;
  grid-row: 1;
}
.mc-sp-block--home .mc-sp-info {
  grid-column: 1;
  grid-row: 1;
  padding-right: 2px;
  box-sizing: border-box;
}
.mc-sp-info {
  min-width: 0;
  display: grid;
  grid-template-rows: 22px 26px 38px auto;
  gap: 4px;
  align-content: start;
}
.mc-sp-block .mc-sp-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 22px;
  height: auto;
  margin: 0;
  overflow: visible;
  min-width: 0;
  width: 100%;
}
.mc-sp-block--home .mc-sp-top {
  flex-direction: row-reverse;
}
.mc-sp-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  max-width: calc(100% - 44px);
}
.mc-sp-side {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.mc-sp-block--home .mc-sp-name-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}
.mc-sp-block--away .mc-sp-name-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero-matchup-card .pitch-tier {
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-left: 0;
  max-width: none;
  white-space: nowrap;
  overflow: visible;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  padding: 3px 5px;
  border-radius: 6px;
  letter-spacing: 0.01em;
}
.hero-matchup-card .pitch-tier.tier-elite {
  background: rgba(74, 222, 128, 0.18);
  color: #4ADE80;
}
.hero-matchup-card .pitch-tier.tier-solid {
  background: rgba(96, 165, 250, 0.18);
  color: #60A5FA;
}
.hero-matchup-card .pitch-tier.tier-mid {
  background: rgba(251, 191, 36, 0.15);
  color: #FBBF24;
}
.hero-matchup-card .hand-pill {
  flex: 0 0 auto;
  flex-shrink: 0;
  font-size: 10px;
  padding: 3px 5px;
  line-height: 1.1;
}
.mc-sp-name-row {
  margin: 0;
  min-height: 26px;
  height: 26px;
  overflow: hidden;
  /* Grid items default to min-width:auto, which would size this row to the name's full
     intrinsic width and overflow the narrow pitcher column (sliding under the avatar).
     min-width:0 lets it shrink to the column so the name truncates with an ellipsis. */
  min-width: 0;
}
.mc-sp-name-text {
  display: block;
  font-family: var(--font-display, var(--font));
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* As a flex item inside .mc-sp-name-row, min-width:auto would keep the full name
     at intrinsic width and let it slide under the avatar. min-width:0 lets it shrink
     so the ellipsis truncates it inside its own column. */
  min-width: 0;
  max-width: 100%;
}
.mc-sp-name a.mc-sp-name-text {
  text-decoration: none;
  color: inherit;
}
.mc-sp-name a.mc-sp-name-text:hover {
  color: var(--ca-brand, #9A6BFF);
}
.mc-ps-badge--defined {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1px;
  width: 100%;
  min-height: 38px;
  height: 38px;
  margin: 0;
  padding: 1px 2px;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  color: var(--text-1);
  box-shadow: none;
  box-sizing: border-box;
  overflow: hidden;
}
/* Home side mirrors to the right edge; both keep the label stacked over the
   number so the value can never overflow into the gutter between the cards. */
.mc-sp-block--home .mc-ps-badge--defined {
  align-items: flex-end;
  text-align: right;
}
.mc-ps-badge__label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.05;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-ps-badge__val {
  font-family: var(--font-display, var(--font));
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  padding: 0 2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mc-sp-stats--grid {
  display: grid;
  /* minmax(0,1fr) (not 2.75rem) so the three stat columns shrink to fit the narrow
     pitcher column instead of overflowing it and getting clipped by the card edge. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  align-self: end;
  min-height: 52px;
  height: auto;
  align-items: end;
  box-sizing: border-box;
  padding: 0 4px 2px;
  overflow: visible;
  width: 100%;
}
.mc-sp-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 4px 2px;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--text-1);
  min-width: 2.75rem;
  text-align: center;
  box-sizing: border-box;
  overflow: visible;
}
.mc-sp-block--away .mc-sp-stat--k { align-items: flex-start; text-align: left; }
.mc-sp-block--away .mc-sp-stat--bb { align-items: center; text-align: center; }
.mc-sp-block--away .mc-sp-stat--era { align-items: flex-end; text-align: right; }
.mc-sp-block--home .mc-sp-stat--era { align-items: flex-start; text-align: left; }
.mc-sp-block--home .mc-sp-stat--bb { align-items: center; text-align: center; }
.mc-sp-block--home .mc-sp-stat--k { align-items: flex-end; text-align: right; }
.mc-sp-stat em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  overflow: visible;
}
.mc-sp-stat strong {
  font-family: var(--mono, monospace);
  font-size: 15px;
  font-weight: 900;
  color: var(--stat-color, var(--text-1));
  line-height: 1.1;
  text-shadow: 0 0 18px color-mix(in srgb, var(--stat-color, transparent) 35%, transparent);
  font-variant-numeric: tabular-nums;
  padding: 0 1px;
  white-space: nowrap;
  overflow: visible;
}
.hero-matchup-card .pitch-tier.tier-vol {
  background: color-mix(in srgb, #C8201C 24%, transparent);
  color: #F2545B;
  border: 1px solid color-mix(in srgb, #C8201C 48%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, #C8201C 22%, transparent);
}
.mc-sp-photo {
  width: 42px;
  margin-right: 0;
}
/* The shared headshot component (.ca-pitcher-avatar--matchup) is 48px, but the
   pitcher column is only 42px — so the avatar was overflowing its column and sitting
   on top of the (right-aligned) pitcher name on the home side. Pin it to the column
   and clip any overflow so it stays in its own lane. */
.hero-matchup-card .mc-sp-photo {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
}
.hero-matchup-card .mc-sp-photo .ca-pitcher-avatar--matchup {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
}
.opening-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.opening-link-card {
  display: block;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.opening-link-card:hover {
  border-color: var(--ca-brand, #9A6BFF);
}
.opening-link-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #C4B0FF;
  margin-bottom: 4px;
}
.opening-link-desc {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}

.hero-matchup-card .hmc-team a.team-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

/* Force equal-width sides + mirror alignment around the @ divider */
.hero-matchup-card .hmc-row.hmc-teams > .hmc-team a.team-link {
  width: 100%;
  min-width: 0;
}
.hero-matchup-card .team-link--away {
  justify-content: flex-start;
  flex-direction: row;
}
.hero-matchup-card .team-link--home {
  justify-content: flex-end;
  flex-direction: row;
}

.hero-matchup-card .hmc-at {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.hero-matchup-card .hmc-meta {
  grid-column: 1 / -1;
  justify-self: center;
}

.hero-matchup-card .hmc-abbr {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}
.hero-matchup-card .team-link--home .hmc-abbr {
  text-align: left;
}
.hero-matchup-card .hmc-edge-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
  text-align: center;
}
.hero-matchup-card .hmc-osi-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(64px, 2fr) minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  margin-bottom: 6px;
  min-width: 0;
  padding: 0 2px;
  box-sizing: border-box;
}
.hero-matchup-card .hmc-osi-val {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: 100%;
  color: var(--text);
  padding: 0 2px;
  box-sizing: border-box;
}
.hero-matchup-card .hmc-osi-val--away {
  align-items: flex-start;
  justify-self: start;
  text-align: left;
  padding-left: 0;
  padding-right: 4px;
}
.hero-matchup-card .hmc-osi-val--home {
  align-items: flex-end;
  justify-self: end;
  text-align: right;
  padding-right: 0;
  padding-left: 4px;
}
.hero-matchup-card .hmc-osi-team {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.1;
}
.hero-matchup-card .hmc-osi-num {
  display: block;
  font-family: var(--font-display, var(--display));
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  padding: 0 1px;
}
.hero-matchup-card .hmc-osi-num--na {
  color: var(--text-3, #6E7383);
}
.hero-matchup-card .hmc-bar-track {
  height: 11px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.hero-matchup-card .hmc-team a.team-link:hover .hmc-abbr {
  color: var(--ca-brand, #9A6BFF);
}
.hero-matchup-card .pitcher-link {
  color: var(--text);
  text-decoration: none;
}
.hero-matchup-card .pitcher-link:hover {
  color: var(--ca-brand, #9A6BFF);
  text-decoration: underline;
}

.mc-sp-photo {
  flex-shrink: 0;
}
.mc-sp-photo .ca-pitcher-avatar {
  display: block;
}

.hmc-lineups {
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
}
.hmc-lineups--always .matchup-lineup-panel {
  display: block !important;
  max-height: none !important;
  opacity: 1 !important;
  overflow: visible;
  padding-top: 6px;
  margin-top: 0;
}
.hmc-lineups .matchup-lineup-panel {
  display: block;
  max-height: none;
  overflow: visible;
  transition: max-height 0.25s ease, opacity 0.2s ease;
  opacity: 1;
}
.hmc-lineups--always .matchup-lineup-grid {
  gap: 10px;
}

.hero-matchup-card .lineup-row {
  display: grid;
  grid-template-columns: 16px 24px minmax(0, 1fr) auto;
  gap: 4px 7px;
  align-items: center;
  min-height: 22px;
  padding: 2px 0;
  font-size: 12px;
  line-height: 1.25;
}

.hero-matchup-card .lineup-bo {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-3);
  text-align: right;
}

.hero-matchup-card .lineup-pos {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
}

.hero-matchup-card .lineup-name {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.hero-matchup-card .lineup-name-link {
  color: inherit;
  text-decoration: none;
}

.hero-matchup-card .lineup-name-link:hover {
  color: var(--ca-brand, #9A6BFF);
}

.hero-matchup-card .lineup-row--platoon-l .lineup-name {
  color: var(--blue, #60A5FA);
}

.hero-matchup-card .lineup-row--platoon-r .lineup-name {
  color: var(--orange, #FB923C);
}

.hero-matchup-card .bats-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  font-family: var(--mono);
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-4, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.hero-matchup-card .lineup-board--compact {
  box-shadow: none;
}
.hero-matchup-card .lineup-board--compact::before {
  height: 2px;
}
.hero-matchup-card .matchup-lineup-col {
  min-width: 0;
}
.hmc-lineups:not(.is-open) .matchup-lineup-panel {
  max-height: 0;
  opacity: 0;
  padding: 0;
  margin: 0;
}
.hmc-lineup-toggle {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 8px;
  font-family: var(--font);
}
.hmc-lineup-toggle:hover { color: var(--ca-brand, #9A6BFF); }

.matchup-lineup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.matchup-lineup-col--away .matchup-lineup-col-head {
  text-align: left;
}
.matchup-lineup-col--home .matchup-lineup-col-head {
  text-align: right;
}
.matchup-lineup-col--home .lineup-row {
  grid-template-columns: auto minmax(0, 1fr) 24px 16px;
}
.matchup-lineup-col--home .lineup-bo {
  text-align: left;
}
@media (max-width: 520px) {
  .matchup-lineup-grid { grid-template-columns: 1fr; }
  .matchup-lineup-col--home .matchup-lineup-col-head { text-align: left; }
  .matchup-lineup-col--home .lineup-row {
    grid-template-columns: 16px 24px minmax(0, 1fr) auto;
  }
  .matchup-lineup-col--home .lineup-bo { text-align: right; }
}
.lineup-row.lineup-row--platoon-l,
.lineup-row.lineup-row--platoon-r {
  background: rgba(124, 58, 237, 0.1);
  border-radius: 4px;
}
.lineup-name-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.lineup-name-link:hover {
  color: var(--ca-brand, #9A6BFF);
}

.hmc-view-full {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ca-brand, #9A6BFF);
  text-align: right;
  pointer-events: none;
}

.signal-teaser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.signal-teaser-header a.signal-teaser-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--ca-brand, #9A6BFF);
  text-decoration: none;
}
.signal-teaser-header a.signal-teaser-cta:hover {
  text-decoration: underline;
}
#signalChips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.signal-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  cursor: pointer;
  text-align: left;
  min-width: 160px;
  max-width: 280px;
  transition: border-color 0.15s ease;
  font-family: var(--font);
}
.signal-chip:hover {
  border-color: var(--ca-brand, #9A6BFF);
}
.signal-chip .chip-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.signal-chip .chip-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.signal-chip .chip-conf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-2);
}
.conf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.conf-dot.high { background: var(--metric-strong, #4ADE80); }
.conf-dot.mid { background: var(--metric-below, #FBBF24); }
.conf-dot.low { background: var(--metric-neutral, #71717A); }

#section-rankings { display: none !important; }

.hmc-meta .chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
}
.hmc-osi-sparklines {
  display: none;
}
.hmc-spark { display: none; }
.mlbma-sparkline { display: block; }
.mlbma-radar-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 16px auto; }
.mlbma-radar-wrap .mlbma-radar {
  display: block;
  max-width: 100%;
  height: auto;
}
.mlbma-radar-legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; font-size: 12px; color: var(--text-2); }
.mlbma-radar-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.mlbma-radar-legend-item i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.mlbma-radar--interactive .mlbma-radar-axis-hit { cursor: help; outline: none; }
.mlbma-radar--interactive .mlbma-radar-axis-hit:hover .mlbma-radar-axis-label,
.mlbma-radar--interactive .mlbma-radar-axis-hit:focus .mlbma-radar-axis-label { fill: #EDE9FE; }
.mlbma-radar-dot-hit { cursor: help; pointer-events: all; }
.mlbma-radar-tip {
  width: 100%;
  max-width: 340px;
  min-height: 0;
  margin-top: 4px;
  padding: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-2);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.18s ease, max-height 0.22s ease, padding 0.18s ease;
}
.mlbma-radar-tip.is-visible {
  opacity: 1;
  max-height: 220px;
  padding: 10px 12px;
  background: var(--bg-4, #1f1f25);
  border: 1px solid rgba(124, 77, 255, 0.35);
  border-radius: 8px;
}
.mlbma-radar-tip-metric {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}
.mlbma-radar-tip-row { margin: 0 0 6px; }
.mlbma-radar-tip-k {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A78BFA;
  margin-bottom: 2px;
}
.mlbma-radar-tip-row p { margin: 0; }
.mlbma-radar-tip-vals {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.mlbma-radar-tip-sep { margin: 0 6px; color: var(--text-3, #71717A); }
.mc-radar-mount { min-height: 300px; }

/* Platform sections — opening dashboard rhythm */
.platform-section {
  margin-bottom: 48px;
  scroll-margin-top: 76px;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.platform-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ca-purple-light, #C4A8FF);
  margin-bottom: 8px;
  font-family: var(--font, system-ui);
}

.platform-title {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
  color: var(--text, #F5F5F7);
  font-family: var(--font-display, var(--font, system-ui));
  font-variation-settings: 'wdth' 125;
}

.platform-subtitle {
  font-size: 15px;
  color: var(--text-2, #A1A1AA);
  margin: 0 0 24px;
  max-width: 640px;
  line-height: 1.6;
  font-family: var(--font-body, var(--font, system-ui));
}

/* Trend insight cards — home page */
#section-opening-trend-insights {
  margin-bottom: 48px;
}

.ca-trend-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .ca-trend-insight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .ca-trend-insight-grid {
    grid-template-columns: 1fr;
  }

  .platform-section {
    padding: 20px 16px;
  }

  .layer-main {
    padding: 0 12px;
  }

  .ca-opening-hero {
    padding: 28px 20px;
    margin: 8px 0 32px;
  }
}

@media (max-width: 520px) {
  #section-matchups-hero.platform-section {
    padding: 16px 12px;
  }

  #matchupsHeroGrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-matchup-card {
    padding: 14px 12px;
  }

  .hmc-pitchers {
    grid-template-columns: 1fr;
  }

  .hmc-row.hmc-teams,
  .hmc-meta,
  .hmc-weather-group {
    min-width: 0;
  }

  .hmc-meta {
    grid-template-columns: 1fr;
    margin-left: 0;
    width: 100%;
    justify-items: start;
    gap: 5px;
  }

  .hmc-meta .hmc-stadium {
    max-width: none;
    white-space: normal;
    text-align: left;
  }

  .hmc-weather-group {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hmc-osi-bar {
    grid-template-columns: minmax(0, 1fr) minmax(48px, 2fr) minmax(0, 1fr);
    gap: 6px;
    min-width: 0;
  }

  .hero-matchup-card .hmc-osi-val {
    overflow: hidden;
    max-width: 100%;
  }

  .hero-matchup-card .hmc-osi-team {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  .hero-matchup-card .hmc-osi-num {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  .hero-matchup-card {
    overflow: visible;
  }

  .mc-sp-block {
    overflow: visible;
    padding: 11px 12px 10px;
  }

  .mc-sp-block--home {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .mc-sp-top {
    min-height: 24px;
    gap: 5px;
  }

  .mc-sp-badges {
    max-width: calc(100% - 42px);
    gap: 3px;
    flex-shrink: 1;
    min-width: 0;
  }

  .hero-matchup-card .pitch-tier {
    font-size: 9px;
    padding: 2px 5px;
  }

  .hero-matchup-card .hand-pill {
    font-size: 9px;
    padding: 2px 5px;
  }

  .mc-sp-side {
    font-size: 9px;
  }

  .mc-sp-name-text {
    font-size: 14px;
  }

  .mc-sp-stats--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    padding: 0 2px 2px;
  }

  .mc-sp-stat strong {
    font-size: 13px;
  }

  .mc-sp-stat em {
    font-size: 8px;
  }

  .mc-ps-badge--defined {
    min-height: 34px;
    height: auto;
    padding: 3px 2px;
  }

  .mlbma-radar-tip.is-visible {
    max-height: 280px;
    font-size: 11px;
  }

  .mlbma-radar-legend {
    font-size: 11px;
    gap: 8px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .mlbma-radar--interactive .mlbma-radar-axis-hit circle {
    r: 18;
  }

  .mlbma-radar-dot-hit {
    r: 12;
  }
}

@media (max-width: 900px) {
  .ca-opening-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .ca-hero-slate {
    width: 100%;
    flex: 1 1 auto;
  }
}

/* Active opening-dashboard hero path: glossy infographic treatment. */
body.opening-dashboard .opening-layer,
body.opening-dashboard #section-opening-hero {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.opening-dashboard #opening-dashboard.opening-layer,
body.opening-dashboard .opening-layer.layer-main {
  background: transparent;
}

.opening-layer .ca-hero {
  border: none;
  border-radius: 0;
  margin-top: 0 !important;
  min-height: 0 !important;
  padding: 16px clamp(20px, 5vw, 64px) clamp(32px, 4vw, 56px) !important;
  /* Transparent band — full-page stadium lives on body (mlbma_backgrounds.css) */
  background: transparent;
  box-shadow: none;
}

.opening-layer .ca-market {
  background: transparent;
}

.opening-layer .ca-tools {
  background: transparent;
}

.opening-layer .ca-hero::before {
  display: none;
}

.opening-layer .ca-hero__inner,
.opening-layer .ca-hero__glow,
.opening-layer .ca-hero__noise {
  position: relative;
  z-index: 1;
}

.opening-layer .ca-hero__inner {
  align-items: start;
  margin-top: 0 !important;
  min-height: 0 !important;
  transform: none !important;
}

.opening-layer .ca-hero__grid {
  display: none !important;
}

.opening-layer .ca-hero__mark-ring {
  display: none !important;
}

body.opening-dashboard .opening-layer .ca-hero__title {
  font-size: clamp(46px, 7.4vw, 104px) !important;
  line-height: 0.9 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #FFFFFF !important;
  color: #FFFFFF !important;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,0.48)) drop-shadow(0 18px 26px rgba(0,0,0,0.36)) !important;
}

body.opening-dashboard .opening-layer .ca-hero__title-accent {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

.opening-layer .ca-hero__eyebrow,
.opening-layer .ca-tools__eyebrow,
.opening-layer .ca-eyebrow {
  color: var(--ca-gold, #F0C24A);
  letter-spacing: 0.16em;
  text-shadow: 0 0 14px rgba(240, 194, 74, 0.17);
}

.opening-layer .ca-stat,
.opening-layer .ca-market__card,
.opening-layer .ca-tool-card,
.opening-layer .ca-hero__mark-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.039), transparent 30%),
    linear-gradient(180deg, rgba(18,20,31,0.95), rgba(6,7,13,0.98));
  border-color: rgba(154, 107, 255, 0.25);
  box-shadow: 0 0 0 1px rgba(196,176,255,0.04), 0 24px 70px rgba(0,0,0,0.72), inset 0 1px 0 rgba(255,255,255,0.05);
}

.opening-layer .ca-tool-card:hover {
  border-color: rgba(196, 176, 255, 0.52);
  box-shadow: 0 0 0 1px rgba(196,176,255,0.13), 0 0 34px rgba(124, 58, 237, 0.22), 0 28px 82px rgba(0,0,0,0.82);
}

.opening-layer .ca-tool-card__icon {
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 0 22px rgba(124,77,255,0.18);
}

.opening-layer .ca-btn--primary,
.opening-layer .ca-market__toggle.is-active {
  background: linear-gradient(180deg, #B794FF 0%, #7C4DFF 52%, #5B2BE0 100%);
  border-color: rgba(196,176,255,0.36);
  box-shadow: 0 0 0 1px rgba(124,77,255,0.15), 0 0 24px rgba(124,77,255,0.27);
}

/* Mobile contract — 767px (opening dashboard + matchups hero) */
@media (max-width: 767px) {
  body.opening-dashboard.view-opening > .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .layer-main {
    padding: 0 12px;
  }

  .platform-section {
    padding: 16px 12px;
  }

  #matchupsHeroGrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-matchup-card {
    padding: 14px 12px;
  }

  .hmc-pitchers {
    grid-template-columns: 1fr;
  }

  .hmc-meta {
    grid-template-columns: 1fr;
    margin-left: 0;
    width: 100%;
    justify-items: start;
    gap: 5px;
  }

  .hmc-meta .hmc-stadium {
    max-width: none;
    white-space: normal;
    text-align: left;
  }

  .hmc-weather-group {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .matchup-lineup-grid {
    grid-template-columns: 1fr;
  }

  .matchup-lineup-col--home .matchup-lineup-col-head {
    text-align: left;
  }

  .matchup-lineup-col--home .lineup-row {
    grid-template-columns: 16px 24px minmax(0, 1fr) auto;
  }

  .matchup-lineup-col--home .lineup-bo {
    text-align: right;
  }

  .ca-trend-insight-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ca-opening-hero {
    padding: 20px 14px;
    margin: 8px 0 24px;
  }

  #signalChips {
    flex-direction: column;
  }

  .signal-chip {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .opening-layer .ca-tools__grid {
    grid-template-columns: 1fr;
  }

  .opening-layer .ca-features__grid {
    grid-template-columns: 1fr;
  }

  .matchups-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  .layer-main,
  body.opening-dashboard.view-opening > .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-matchup-card .hmc-osi-bar {
    grid-template-columns: minmax(0, 1fr) minmax(44px, 2fr) minmax(0, 1fr);
    gap: 4px;
  }

  .hero-matchup-card .hmc-osi-num {
    font-size: 15px;
  }
}

