:root {
  /* Standard spacing rule: every container gets one 24px content inset. */
  --container-inset: 24px;
  --site-content-inset: var(--container-inset);
  color-scheme: dark;
  --yankees-silver: #c7ccd0;
  --swatch-mid: #5d656b;
  --bs-body-color: #d7dde1;
  --bs-body-bg: #000;
  --ink: #d7dde1;
  --muted: #aeb6bb;
  --quiet: #858e94;
  --line: rgba(205, 211, 215, 0.17);
  --line-bright: rgba(205, 211, 215, 0.42);
  --card-bg: #0e1419;
  --card-bg-strong: #0e1419;
  --inner-card-bg: #0a1015;
  --control-active-bg: #3b4650;
  --control-active-border: #697680;
  --control-active-ink: #f2f5f7;
  --control-arrow-hover-bg: rgba(196, 206, 211, 0.12);
  --game-detail-columns: minmax(0, 1.46fr) minmax(280px, 1fr);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --text-normal: 0.8125rem;
  --text-small: 0.8125rem;
  --stat-number-size: 0.8125rem;
}

a,
a:hover,
a:focus,
a:focus-visible {
  text-decoration: none !important;
}

/* Reusable inset for an inner container placed directly inside an outer container. */
.inner-container {
  margin: var(--container-inset);
}

/* Shared segmented-control language used across Yankees pages. */
:is(
  .month-controls,
  .stats-toggle,
  .stats-scope-toggle,
  .game-player-team-switcher,
  .roster-tabs,
  .leaderboard-toggle,
  .quick-season-toggle,
  .detail-split-controls,
  .detail-tab-controls,
  .pagination-controls,
  .stats-pagination
) {
  gap: 4px !important;
  border-radius: 999px !important;
  background: #1b222d !important;
  padding: 4px !important;
}

:is(
  .btn-control,
  .stats-toggle-button,
  .stats-scope-button,
  .game-player-team-button,
  .roster-tab,
  .standings-option,
  .quick-season-button,
  .detail-toggle,
  .detail-tab,
  .pagination-button,
  .page-button,
  .mobile-stat-category,
  .sort-button
) {
  border: 0 !important;
  border-radius: 999px !important;
  color: #aebfe5 !important;
  background: transparent !important;
  box-shadow: none !important;
}

:is(
  .btn-control,
  .stats-toggle-button,
  .stats-scope-button,
  .game-player-team-button,
  .roster-tab,
  .standings-option,
  .quick-season-button,
  .detail-toggle,
  .detail-tab,
  .pagination-button,
  .page-button,
  .mobile-stat-category,
  .sort-button
):is(:hover, :focus-visible) {
  color: #fff !important;
  background: rgba(10, 15, 22, 0.55) !important;
}

:is(
  .btn-control,
  .stats-toggle-button,
  .stats-scope-button,
  .game-player-team-button,
  .roster-tab,
  .standings-option,
  .quick-season-button,
  .detail-toggle,
  .detail-tab,
  .pagination-button,
  .page-button,
  .mobile-stat-category,
  .sort-button
).active,
.roster-tab[aria-selected="true"] {
  color: #fff !important;
  background: #101720 !important;
  box-shadow: inset 0 0 0 1px rgba(196, 206, 211, 0.08) !important;
  font-weight: 800;
}

:is(.pagination-button, .page-button):disabled {
  color: #4f5a6c !important;
  background: transparent !important;
  cursor: default;
  opacity: 0.55;
}

:is(
  .scores-date-arrow,
  .month-arrow,
  .standings-season-arrow,
  .pagination-controls .pagination-button,
  .stats-pagination .page-button
):is(:hover, :focus-visible):not(:disabled) {
  color: #fff !important;
  background: var(--control-arrow-hover-bg) !important;
}

.pagination-summary {
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff;
  background: #101720 !important;
}

.btn-yankees,
#search-button {
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: #101720 !important;
  box-shadow: inset 0 0 0 1px rgba(196, 206, 211, 0.12);
}

.btn-yankees:is(:hover, :focus-visible),
#search-button:is(:hover, :focus-visible) {
  background: #1b2633 !important;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: #000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--text-normal);
  font-weight: 400;
  line-height: 1.5;
}

/* Shared site footer. */
.site-footer {
  position: relative;
  min-height: 64px;
  margin-top: 24px;
  border-radius: 8px;
  color: #81909e;
  background: var(--card-bg-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
}

.site-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 0;
}

.site-footer-item {
  color: #81909e;
  font-size: var(--text-small);
  font-weight: 500;
}

.site-footer-item + .site-footer-item::before {
  content: "·";
  display: inline-block;
  margin: 0 10px;
  color: #596775;
  text-decoration: none;
}

.site-footer-link {
  color: #81909e;
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: none;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  color: #b5c0ca;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
  border-radius: 2px;
}

.legal-disclaimer-card {
  width: 100%;
  max-width: none;
  margin: 14px 0 0;
  padding: clamp(22px, 4vw, 38px);
  border: 0;
  border-radius: 8px;
  background: var(--card-bg);
}

.legal-disclaimer-card h3 {
  margin: 1.75rem 0 0.5rem;
  color: #e4e8eb;
  font-size: 1rem;
  font-weight: 700;
}

.legal-disclaimer-card h3:first-child {
  margin-top: 0;
}

.legal-disclaimer-card p {
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.legal-disclaimer-card p:last-child {
  margin-bottom: 0;
}

.contact-card {
  width: 100%;
  margin: 14px 0 0;
  padding: clamp(22px, 4vw, 38px);
  border: 0;
  border-radius: 8px;
  background: var(--card-bg);
}

.contact-form {
  max-width: 860px;
  margin-inline: auto;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-field {
  display: grid;
  gap: 7px;
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-field label {
  color: #e3e7ea;
  font-weight: 700;
}

.contact-field .form-control {
  min-height: 44px;
  border-radius: 6px;
  padding: 10px 12px;
}

.contact-field textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

.contact-help {
  margin: 6px 0 0;
  color: var(--muted);
}

.contact-submit {
  min-width: 150px;
  min-height: 44px;
  margin-top: 20px;
}

.contact-alert {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.contact-alert-success {
  border-color: rgba(65, 193, 118, 0.45);
  color: #b9f3cf;
  background: rgba(28, 116, 67, 0.18);
}

.contact-alert-error {
  border-color: rgba(224, 80, 80, 0.45);
  color: #ffc6c6;
  background: rgba(143, 38, 38, 0.18);
}

.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

/* Repeated content cards remain borderless; internal dividers and colored
   left accents remain available as structural visual identifiers. */
:is(
  .score-card,
  .game-card,
  .leader-stat-card,
  .detail-stat-card,
  .detail-log-row,
  .result-button,
  .metric-row,
  .roster-link,
  .game-notes-groups section
) {
  border: 0 !important;
}

:is(.hot-item, .feed article, .scoring-play) {
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
}

@media (max-width: 767.98px) {
  :is(.day-cell, .player-stats-table tbody tr, .game-player-table tr, .detail-table tr, .detail-quick-table tr) {
    border: 0 !important;
  }
}

[hidden] {
  display: none !important;
}

strong,
b {
  color: #e3e7ea;
  font-weight: 700;
}

.site-shell,
.app-shell {
  max-width: 1440px;
  padding: 18px;
}

.hero-panel {
  border: 0 !important;
  background: transparent !important;
}

.topbar {
  position: relative;
  z-index: 3;
  top: 0;
  left: 0;
  isolation: isolate;
  width: 100%;
  min-height: 150px;
  overflow: hidden;
  padding: 28px clamp(24px, 4vw, 54px);
  border-bottom: 0;
  border-radius: 8px;
  background: var(--card-bg);
}

.topbar {
  background-image: linear-gradient(90deg, rgba(3, 9, 16, 0.7568), rgba(3, 9, 16, 0.6288)), url("./assets/yankees-header-background.webp");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.brand-lockup {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.header-team-stats {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: repeat(3, minmax(76px, 1fr));
  width: min(100%, 330px);
  margin-left: auto;
  border: 1px solid rgba(205, 216, 228, 0.13);
  border-radius: 8px;
  background: rgba(7, 12, 17, 0.38);
  backdrop-filter: blur(3px);
}

.header-team-stat {
  display: grid;
  min-width: 0;
  padding: 10px 16px;
  text-align: center;
}

.header-team-stat + .header-team-stat {
  border-left: 1px solid rgba(205, 216, 228, 0.13);
}

.header-team-stat-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.header-team-stat strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.header-team-stat strong.is-win {
  color: #69e9ad;
}

.header-team-stat strong.is-loss {
  color: #ff858d;
}

.brand-lockup > div {
  min-width: 0;
  display: grid;
  align-items: center;
}

.topbar .brand-kicker {
  display: none;
}

.topbar .brand-title {
  max-width: none;
  font-size: clamp(1.65rem, 3.3vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  white-space: normal;
}

.brand-logo {
  width: auto;
  height: 90px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  object-fit: contain;
  border: 0;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.28));
}

.team-logo {
  display: block;
  flex: 0 0 auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
}

.site-nav {
  position: relative;
  display: none;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  margin-top: 14px;
  background: var(--card-bg);
}

.site-nav summary {
  min-height: 50px;
  padding: 0 clamp(20px, 4vw, 54px);
  color: var(--ink);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-normal);
  font-weight: 600;
}

.site-nav summary::-webkit-details-marker {
  display: none;
}

.site-nav-icon,
.site-nav-icon::before,
.site-nav-icon::after {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--yankees-silver);
  display: block;
}

.site-nav-icon {
  position: relative;
}

.site-nav-icon::before,
.site-nav-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-nav-icon::before {
  top: -7px;
}

.site-nav-icon::after {
  top: 7px;
}

.site-nav-links {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.site-nav-link {
  position: relative;
  min-height: 52px;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  color: #dfe4f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: var(--text-normal);
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav-link:hover,
.site-nav-link:focus,
.site-nav-link.active {
  color: #e8ebed;
}

.site-nav-link:hover,
.site-nav-link:focus {
  background: rgba(37, 99, 235, 0.07);
}

.site-nav-link.active {
  color: #fff;
  background: rgba(12, 35, 64, 0.4);
}

.desktop-site-nav {
  min-height: 68px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  margin-top: 14px;
  background: var(--card-bg);
  padding: 0 0 4px;
}

.site-nav.is-stuck,
.desktop-site-nav.is-stuck {
  position: fixed !important;
  top: 0 !important;
  right: auto;
  left: 50%;
  z-index: 30;
  width: var(--sticky-site-content-width, calc(100% - 36px));
  margin: 0;
  border-radius: 0;
  background: rgba(14, 20, 25, 0.95);
  transform: translateX(-50%);
}

.site-nav-sticky-placeholder {
  display: none;
}

.site-nav-sticky-placeholder.active {
  display: block;
}

.desktop-site-nav::after,
.site-nav::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #0c2340 0%, #1d4f78 30%, #6f879d 52%, #c4ced4 68%, #234f78 84%, #0c2340 100%);
}

.desktop-site-nav .navbar-nav {
  align-self: stretch;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
}

.desktop-site-nav .nav-link {
  position: relative;
  flex: 1 1 0;
  min-width: 9rem;
  min-height: 64px;
  border: 0;
  border-right: 0;
  border-radius: 0;
  color: #dfe4f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: var(--text-normal);
  font-weight: 600;
  transition: color 160ms ease, background-color 160ms ease;
}

.desktop-site-nav .nav-link:last-child {
  border-right: 0;
}

.desktop-site-nav .nav-link:hover,
.desktop-site-nav .nav-link:focus,
.desktop-site-nav .nav-link.active {
  color: #e8ebed;
}

.desktop-site-nav .nav-link:hover,
.desktop-site-nav .nav-link:focus {
  background: rgba(37, 99, 235, 0.07);
}

.desktop-site-nav .nav-link.active {
  color: #fff;
  background: rgba(12, 35, 64, 0.4);
  box-shadow: none;
}

.desktop-site-nav .nav-link::before,
.site-nav-link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.85);
  opacity: 0;
  transform: translateX(-50%);
  transition: width 180ms ease, opacity 180ms ease;
}

.desktop-site-nav .nav-link:hover::before,
.desktop-site-nav .nav-link:focus::before,
.site-nav-link:hover::before,
.site-nav-link:focus::before {
  width: 32px;
  opacity: 0.55;
}

.desktop-site-nav .nav-link.active::before,
.site-nav-link.active::before {
  width: 52px;
  opacity: 1;
}

.desktop-site-nav .nav-link:focus-visible,
.site-nav-link:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.72);
  outline-offset: -4px;
}

.display-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}

.page-intro-card {
  margin: 14px 0;
  padding: 20px 22px;
  border: 0;
  border-radius: 8px;
  background: var(--card-bg-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.page-intro-with-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-intro-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.page-intro-status {
  display: none !important;
  flex: 0 0 auto;
  min-width: 190px;
  justify-content: center;
  text-align: center;
}

.page-intro-card .page-heading {
  margin: 0;
  padding-right: 18px;
  border-right: 1px solid var(--line-bright);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.page-intro-description {
  max-width: 58rem;
  margin: 0;
  color: var(--yankees-silver);
  font-size: var(--text-normal);
  line-height: 1.5;
}

.selected-recap-section,
.schedule-body,
.overview-body,
.player-stats-body {
  padding-top: 0;
}

.page-heading,
.panel-heading,
.month-title,
.team-name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.standing-line,
.matchup {
  font-size: 1.25rem;
  font-weight: 600;
}

.kicker,
.status-pill,
.result-button small,
.roster-link small,
.feed small,
.metric-badge,
.metric-row strong,
.metric-value small,
.game-status,
.weekday-row span,
.day-number,
#roster-count,
#transaction-window,
.roster-tab,
.pagination-summary,
.pagination-button,
.transaction-badge,
.recent-game-date,
.recent-game-result,
.recap-column h3,
.metric-feature span,
.metric-feature em {
  font-size: var(--text-small);
  font-weight: 600;
}

.kicker {
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-pill {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--yankees-silver);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  white-space: nowrap;
}

.btn-control {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 14px;
}

.btn-control.active,
.btn-control:hover,
.btn-control:focus {
  border-color: var(--line-bright);
  color: #fff;
  background: rgba(196, 206, 211, 0.16);
}

.btn-yankees {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--ink);
  background: #35424b;
}

.btn-yankees:hover,
.btn-yankees:focus {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  background: #46545e;
}

.form-control {
  border-color: var(--line);
  color: var(--ink);
  background-color: #0d1216;
}

.form-control:focus {
  border-color: var(--line-bright);
  color: var(--ink);
  background-color: rgba(3, 6, 20, 0.92);
  box-shadow: 0 0 0 0.25rem rgba(196, 206, 211, 0.18);
}

.form-control::placeholder {
  color: #7d8498;
}

.result-button span,
.game-decisions p,
.recap-column h3,
.metric-feature strong,
.metric-feature strong small {
  font-weight: 700;
}

.month-summary,
.empty-day,
.result-button span,
.form-control,
.feed p,
.roster-link span,
.game-decisions p {
  font-size: var(--text-normal);
}

.month-summary,
.empty-day,
.form-control,
.feed p,
.roster-link span {
  font-weight: 400;
}

.btn-control,
.btn-yankees {
  font-size: var(--text-normal);
  font-weight: 700;
}

.recent-game-matchup strong,
.recent-game-matchup i {
  font-size: var(--text-normal);
  font-weight: 700;
}

.stat-number {
  font-size: var(--stat-number-size);
  font-weight: 800;
  line-height: 1;
}

.stat-number small {
  font-size: var(--text-small);
}

.brand-title {
  color: #fff;
  font-size: clamp(1.65rem, 3.3vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: none;
  white-space: nowrap;
}

.brand-kicker {
  margin-bottom: 0 !important;
  color: #fff;
  font-size: clamp(1.65rem, 3.3vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: none;
  white-space: nowrap;
}

.brand-record {
  margin-top: 7px;
  color: #aeb9c3;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

@media (max-width: 991.98px) {
  .topbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .topbar .brand-lockup {
    width: 100%;
    justify-content: center;
  }

  .header-team-stats {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .page-intro-copy {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }

  .page-intro-card .page-heading {
    padding-right: 0;
    border-right: 0;
    font-size: 1.4rem;
  }

  .page-intro-with-status {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .page-intro-status {
    width: 100%;
  }

  .site-shell,
  .app-shell {
    padding: 10px;
  }

  .topbar {
    width: 100%;
    min-height: 112px;
    padding: 22px 16px;
  }

  .brand-lockup {
    width: 100%;
    align-items: center !important;
    justify-content: center;
  }

  .header-team-stats {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .header-team-stat {
    padding: 9px 8px;
  }

  .brand-logo {
    height: 58px;
  }

  .topbar .brand-title {
    font-size: clamp(1.25rem, 5vw, 1.65rem);
  }

  .brand-record {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .brand-title {
    max-width: calc(100vw - 112px);
    font-size: clamp(1rem, 5vw, 1.3rem);
    line-height: 0.95;
  }

  .brand-kicker {
    font-size: clamp(1rem, 5vw, 1.3rem);
    line-height: 0.95;
  }

  .site-nav {
    display: block;
    margin-inline: 0;
    min-height: 76px;
    padding-bottom: 4px;
  }

  .site-nav summary {
    display: flex;
    min-height: 72px;
    padding: 0 24px;
    border-top: 0;
    background: var(--card-bg);
    justify-content: space-between;
    gap: 12px;
  }

  .site-nav-links {
    display: none;
    padding: 4px 0 0;
  }

  .site-nav[open] .site-nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    background: #000;
  }

  .site-nav-link {
    width: 100%;
    min-height: 70px;
    border-bottom: 0;
    justify-content: flex-start;
    padding-inline: 28px;
    background: var(--card-bg);
    font-size: 1rem;
    text-align: left;
  }

  .site-nav-link::before {
    left: 28px;
    bottom: 13px;
    transform: none;
  }

  .site-nav[open] .site-nav-icon {
    background: transparent;
  }

  .site-nav[open] .site-nav-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .site-nav[open] .site-nav-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .site-nav-link:last-child {
    border-bottom: 0;
  }

  .desktop-site-nav {
    display: none;
  }

  .header-actions,
  .status-pill {
    width: 100%;
  }

  .site-footer {
    min-height: 60px;
    margin-top: 20px;
    padding: 14px 18px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Neutral MLB Gameday-inspired surface theme. */
.recent-game-button,
.last-game-card,
.transaction-card,
.detail-card,
.detail-quick-table-shell,
.stats-card {
  border-color: var(--line) !important;
  background-color: var(--card-bg) !important;
}

.recent-game-button,
.recap-column,
.transaction-card {
  background-image: none !important;
}

.detail-quick-table th {
  background-color: #171e24 !important;
}

.desktop-site-nav.is-stuck .navbar-nav {
  width: 100%;
}

.game-linescore-box,
.game-scoreboard-top,
.game-scoreboard-lower .game-linescore-box,
.game-player-column h3 {
  border-color: var(--line) !important;
}

.last-game-card {
  background: var(--card-bg) !important;
}

.game-player-table thead th,
.player-stats-table thead tr,
.player-stats-table thead th,
.player-stats-table thead th:first-child {
  background: #0d1216 !important;
}

.brand-title,
.page-heading,
.display-title,
.panel-heading,
.month-title,
.team-name,
.stats-view-title,
.scoreboard-state,
.scoreboard-score,
.scoreboard-mobile-score,
.scoreboard-team-copy strong,
.game-player-column h3,
.detail-player-name,
.detail-number,
.mobile-player-identity strong,
.mobile-stat-value {
  color: #e4e8eb !important;
}

.site-nav-link,
.desktop-site-nav .nav-link,
.player-stats-table td,
.game-player-table td,
.detail-table,
.detail-quick-table {
  color: #cbd1d5;
}

.scoreboard-team-copy small,
.stats-summary,
.page-intro-description,
.team-code,
.mobile-player-identity small {
  color: #aeb6bb !important;
}

.linescore-table th,
.linescore-table td,
.game-player-table th,
.game-player-table td,
.player-stats-table th,
.player-stats-table td,
.standings-table th,
.standings-table td,
.detail-table th,
.detail-table td,
.detail-quick-table th,
.detail-quick-table td,
.metric-feature,
button,
input,
select,
textarea,
small {
  font-size: var(--text-normal);
}

.game-player-table small,
.game-player-table tbody th,
.game-player-table tbody td {
  font-size: var(--text-normal);
}

@media (max-width: 575.98px) {
  .linescore-table th,
  .linescore-table td,
  .game-player-table td::before,
  .player-stats-table tbody td:nth-child(n + 3)::before,
  .detail-quick-table td::before,
  .detail-tab-panel .detail-table td::before,
  .mobile-stat-category,
  .mobile-stat-rank,
  .mobile-player-identity small {
    font-size: var(--text-normal) !important;
  }
}

.schedule-panel .month-summary,
.schedule-panel .empty-day,
.schedule-panel .btn-control,
.schedule-panel .matchup {
  font-size: var(--text-normal);
}

.schedule-panel .weekday-row span,
.schedule-panel .day-number,
.schedule-panel .game-status {
  font-size: var(--text-small);
}

@media (max-width: 575.98px) {
  .schedule-panel .month-controls {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 180px) 36px;
    justify-content: center;
    gap: 4px !important;
    width: 100%;
  }

  .schedule-panel .month-controls .btn-control {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding-inline: 6px;
    line-height: 1.1;
    white-space: normal;
  }

  .schedule-panel .day-number {
    font-size: 0;
  }

  .schedule-panel .day-number::before {
    font-size: var(--text-small);
  }

}

/* Main panel edges share one inset across every Yankees route and breakpoint.
   Compact controls and nested cards retain their own internal spacing. */
:is(.site-shell, .app-shell) :is(
  .topbar,
  .page-intro-card,
  .site-footer,
  .legal-disclaimer-card,
  .contact-card,
  .schedule-toolbar,
  .stats-toolbar,
  .league-panel,
  .detail-profile-card,
  .detail-card,
  .player-search-panel,
  .team-card
),
.overview-body .panel {
  padding-inline: var(--site-content-inset);
}

:is(.site-shell, .app-shell) .contact-form {
  max-width: none;
}

:is(.site-shell, .app-shell) .mobile-stat-list {
  padding-inline: var(--site-content-inset);
}

@media (min-width: 768px) {
  :is(.site-shell, .app-shell) .player-stats-table tr > :first-child {
    padding-left: var(--site-content-inset);
  }

  :is(.site-shell, .app-shell) .player-stats-table tr > :last-child {
    padding-right: var(--site-content-inset);
  }
}

@media (max-width: 767.98px) {
  :is(.site-shell, .app-shell) .detail-profile-card .detail-header {
    padding-inline: 0;
  }
}
