:root{
  --navBg: #0b1220;
  --royal: #2563eb;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f4f6fa;
  --card: #ffffff;
}

/* =========================
   Base
========================= */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* =========================
   Shared Logo Watermark
========================= */

.watermarkPage {
  position: relative;
}

.watermarkPage::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("./logo.png") center 55% no-repeat;
  background-size: 1050px;
  opacity: 0.075;
  pointer-events: none;
  z-index: 0;
}

.watermarkPage .wrap {
  position: relative;
  z-index: 1;
}

/* =========================
   Header (Compact)
========================= */

.siteHeader {
  background: linear-gradient(180deg, var(--navBg), #0a1020);
  border-bottom: 3px solid var(--royal);
  padding: 4px 0 8px;
  position: relative;
}

/* Nav */
.nav {
  position: absolute;
  top: 6px;
  right: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.2s ease;
}

.nav a:hover {
  background: rgba(37,99,235,0.25);
  color: white;
}

.nav a.active {
  background: rgba(37,99,235,0.35);
  color: white;
}

/* Brand */
.brandCenter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logoImage {
  width: 90px;
  height: auto;
  margin-bottom: 2px;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.6));
}

.brandCenter h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  color: white;
  letter-spacing: 0.5px;
}

.brandCenter .tagline {
  margin-top: -2px;
  font-size: 9px;
  color: #cbd5e1;
  letter-spacing: 0.3px;
}

/* =========================
   Content Wrapper
========================= */

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 18px 34px;
}

h2 {
  margin-top: 22px;
  margin-bottom: 8px;
}

.muted { color: var(--muted); }
.small { font-size: 12px; }

/* =========================
   Countdown
========================= */

.countdownCard {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.countdownLabel {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
  color: #334155;
}

.countdownValue {
  font-size: 18px;
  font-weight: 900;
  margin: 4px 0;
  color: var(--royal);
}

/* =========================
   Cards / Content
========================= */

.docSection { margin-top: 12px; }

.docSection p {
  margin: 0;
  line-height: 1.55;
  color: #334155;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.cardBody {
  padding: 12px;
}

.bullets {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
  color: #334155;
}

.cols2 {
  columns: 2;
  column-gap: 24px;
}

.subhead {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #0f172a;
}

.link {
  color: var(--royal);
  font-weight: 800;
  text-decoration: none;
}

.link:hover { text-decoration: underline; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

/* =========================
   Buttons / Actions
========================= */

.actionRow{
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btnPrimary, .btnSecondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btnPrimary{
  background: var(--royal);
  color: white;
  border-color: rgba(255,255,255,0.10);
}

.btnPrimary:hover{ transform: translateY(-1px); }

.btnSecondary{
  background: white;
  color: var(--text);
  border-color: var(--border);
}

.btnSecondary:hover{ transform: translateY(-1px); }

/* =========================
   Gallery
========================= */

.featuredTitle{
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #334155;
  margin-bottom: 8px;
}

.videoFrame{
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}

.videoFrame iframe{
  width: 100%;
  height: 100%;
  border: 0;
}

.grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tile{
  display: block;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  transition: transform 0.15s ease, border-color 0.15s ease;
  color: var(--text);
}

.tile:hover{
  transform: translateY(-2px);
  border-color: rgba(37,99,235,0.45);
}

.tileTitle{
  font-weight: 900;
  margin-bottom: 6px;
}

.tileMeta{
  font-size: 12px;
  color: #475569;
  line-height: 1.3;
}

/* =========================
   Tables
========================= */

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: 9px;
  text-align: left;
}

th {
  background: #0f172a;
  color: white;
  font-size: 12px;
}

/* =========================
   Bracket
========================= */

.bracket {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.bracketSection {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.bracketSection h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.bracketGrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.colTitle {
  font-weight: 800;
  margin-bottom: 8px;
  color: #111827;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.col { position: relative; }
.slot { position: relative; margin-bottom: 12px; }

.gameCard {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px;
  background: #f8fafc;
}

.gameMeta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}

.gameTeams {
  font-weight: 900;
  margin-bottom: 5px;
}

.gameStatus {
  font-size: 12px;
  color: #334155;
}

.finalBadge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--royal);
  color: white;
  margin-left: 6px;
  font-weight: 800;
}

/* Connector lines */
.connectorRight::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: #94a3b8;
}

.connectorMid::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: #94a3b8;
}

/* =========================
   Champion Styling
========================= */

.championCard {
  border-color: #f5c542 !important;
  background: linear-gradient(180deg, #fff7d1, #fff) !important;
  box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.35), 0 10px 24px rgba(0,0,0,0.10);
  position: relative;
  animation: championGlow 2.2s ease-in-out infinite;
}

.championBadge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f5c542;
  color: #111827;
  margin-left: 8px;
  font-weight: 900;
  border: 1px solid rgba(0,0,0,0.15);
}

@keyframes championGlow {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.30), 0 10px 22px rgba(0,0,0,0.10);
  }
  50% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.50), 0 12px 28px rgba(0,0,0,0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .championCard { animation: none; }
}

/* =========================
   Responsive
========================= */

@media (max-width: 760px) {
  .cols2 { columns: 1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* iPhone / narrow mobile */
@media (max-width: 520px) {

  .siteHeader {
    padding: 8px 0 10px;
  }

  /* Make nav a normal row and ensure it's clickable */
  .nav {
    position: relative;
    z-index: 10;
    top: auto;
    right: auto;
    justify-content: center;
    padding: 6px 10px 6px;
    gap: 10px;
  }

  .nav a {
    font-size: 12px;
    padding: 8px 10px;
  }

  /* Brand sits below nav and can't block taps */
  .brandCenter {
    position: relative;
    z-index: 1;
    padding: 0 10px;
    margin-top: 6px;
  }

  .logoImage {
    width: 78px;
    margin-bottom: 2px;
  }

  .brandCenter h1 {
    font-size: 22px;
    line-height: 1.05;
  }

  .brandCenter .tagline {
    font-size: 10px;
    margin-top: 1px;
  }

  .wrap {
    padding: 16px 12px 28px;
  }

  /* Bracket: stack columns */
  .bracketGrid {
    grid-template-columns: 1fr !important;
  }

  /* Tables: allow horizontal scroll */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Gallery: single column tiles */
  .grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Teams: roster grid + modal profiles
========================= */

.teamChips{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  font-size: 12px;
}

.chip.active{
  background: rgba(37,99,235,0.15);
  border-color: rgba(37,99,235,0.35);
}

.rosterGrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Button cards (instead of <a>) */
.playerCardBtn{
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.playerCardBtn:hover{
  transform: translateY(-2px);
  border-color: rgba(37,99,235,0.45);
}

.playerCardBtn:active{
  transform: translateY(0);
}

.playerTop{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.playerName{ font-weight: 900; }
.playerNum{ font-weight: 900; color: #334155; }

.playerMeta{
  margin-top: 6px;
  font-size: 12px;
  color: #475569;
}

.playerLink{
  margin-top: 10px;
  font-size: 12px;
  font-weight: 900;
  color: var(--royal);
}

/* Modal */
.noScroll { overflow: hidden; }

.modalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.modalOverlay.open{
  display: flex;
}

.modalCard{
  width: min(760px, 100%);
  background: white;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 18px 60px rgba(0,0,0,0.28);
  padding: 14px;
  position: relative;
  animation: modalIn 180ms ease-out;
}

@keyframes modalIn {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.modalClose{
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 10px;
  font-weight: 900;
  padding: 6px 10px;
  cursor: pointer;
}

.modalClose:hover{
  border-color: rgba(37,99,235,0.35);
}

/* Profile layout inside modal */
.profileHeader{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  align-items: center;
  padding-top: 6px;
}

.profilePhoto{
  width: 140px;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f172a;
}

.profilePhoto img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profilePhotoPlaceholder{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
}

.profileName{
  margin: 0 0 6px;
  font-size: 22px;
}

/* Mobile */
@media (max-width: 760px){
  .rosterGrid{ grid-template-columns: repeat(2, 1fr); }
  .profileHeader{ grid-template-columns: 1fr; }
  .profilePhoto{ width: 100%; height: 220px; }
}

@media (max-width: 520px){
  .rosterGrid{ grid-template-columns: 1fr; }
}

/* =========================
   Teams Directory Page
========================= */

.teamsGrid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.teamTile{
  display: block;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.teamTile:hover{
  transform: translateY(-2px);
  border-color: rgba(37,99,235,0.45);
}

.teamTileTop{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.teamTileName{
  font-weight: 900;
}

.teamTileSeed{
  font-size: 12px;
  font-weight: 900;
  color: #334155;
}

.teamTileMeta{
  margin-top: 8px;
  font-size: 12px;
  font-weight: 900;
  color: var(--royal);
}

@media (max-width: 760px){
  .teamsGrid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px){
  .teamsGrid{ grid-template-columns: 1fr; }
}

/* =========================
   Team Page Header Block
========================= */

.teamHeaderCard{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.teamHeaderLeft{
  display: flex;
  gap: 12px;
  align-items: center;
}

.teamLogo{
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #0f172a;
}

.teamKicker{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.35px;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.teamTitle{
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.teamMetaRow{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.teamPill{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-weight: 900;
  font-size: 12px;
  color: var(--text);
}

.linkPill{
  text-decoration: none;
  color: var(--royal);
  border-color: rgba(37,99,235,0.35);
}

.linkPill:hover{
  border-color: rgba(37,99,235,0.55);
}

.teamHeaderRight{
  display: flex;
  align-items: stretch;
}

.coachCard{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
}

.coachLabel{
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: #475569;
  margin-bottom: 6px;
}

.coachName{
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 10px;
}

.coachLinks{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.coachLink{
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 900;
  font-size: 12px;
  color: var(--royal);
}

.coachLink:hover{
  border-color: rgba(37,99,235,0.45);
}

@media (max-width: 760px){
  .teamHeaderCard{ grid-template-columns: 1fr; }
}

/* =========================
   Player card thumbnails
========================= */

.playerCardWithThumb{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
}

.playerThumb{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: white;
}

.playerCardText{
  min-width: 0;
}

/* =========================
   Gallery
========================= */

.galleryGrid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.galleryCard{
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.galleryMedia img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.galleryMedia iframe{
  width: 100%;
  height: 220px;
}

.galleryContent{
  padding: 12px;
}

.galleryTitle{
  font-weight: 900;
  margin-bottom: 4px;
}

.galleryMeta{
  font-size: 12px;
  color: #475569;
}

.galleryCredit{
  font-size: 11px;
  margin-top: 6px;
  color: #64748b;
}

/* =========================
   Gallery Filters
========================= */

.galleryFilters{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  margin-bottom: 12px;
}

.filterGroup{
  display: grid;
  gap: 6px;
}

.filterGrow{
  flex: 1;
  min-width: 160px;
}

.filterLabel{
  font-size: 12px;
  font-weight: 900;
  color: #334155;
}

.filterSelect{
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  padding: 10px 12px;
  font-weight: 800;
  color: var(--text);
}

.filterHint{
  font-size: 12px;
  color: #475569;
  padding: 10px 0;
}

/* =========================
   Gallery Chip Filters
========================= */

.galleryFilterBar{
  margin-top: 14px;
  margin-bottom: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

.filterRow{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.filterLabelInline{
  font-size: 12px;
  font-weight: 900;
  color: #334155;
  min-width: 42px;
}

.chipRow{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filterChip{
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  font-weight: 900;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.filterChip:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,0.45);
}

.filterChip.active{
  background: rgba(37,99,235,0.18);
  border-color: rgba(37,99,235,0.55);
  color: #0b1220;
}

.filterMetaRow{
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

/* Mobile: reduce chip padding a touch */
@media (max-width: 520px){
  .filterChip{
    padding: 7px 10px;
    font-size: 11px;
  }
  .filterMetaRow{
    justify-content: flex-start;
  }
}

/* =========================
   Stats (GameChanger)
========================= */

.statsTopRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.statsTopBtn{
  display: flex;
  justify-content: flex-end;
}

.statsEmbedHeader{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gcEmbed{
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  padding: 12px;
  overflow: hidden;
}

/* Make sure the GC widget has room */
#gc-scoreboard-widget-yi4k{
  min-height: 520px;
}

/* =========================
   Team page: roster cards tighten + prevent spill
========================= */

.playerCardRow{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.playerCardMain{
  flex: 1;
  min-width: 0;
}

.playerName{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playerMeta{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* MLB logo + favorite team in modal */
.mlbFav{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.mlbLogo{
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: white;
  object-fit: cover;
  flex: 0 0 auto;
}

/* =========================================================
   TEAM PAGE RESTORE PATCH
   (Paste at bottom of styles.css)
========================================================= */

/* Ensure watermark behavior is consistent */
.watermarkPage{
  position: relative;
  background: #f4f6fa;
}

.watermarkPage::before{
  content: "";
  position: fixed;
  inset: 0;
  background: url("./logo.png") no-repeat center;
  background-size: min(900px, 92vw);
  opacity: 0.07;                 /* adjust if watermark feels off */
  pointer-events: none;
  z-index: 0;
}

/* Make sure the page content sits above watermark */
.watermarkPage .siteHeader,
.watermarkPage .wrap{
  position: relative;
  z-index: 1;
}

/* Roster grid should be a clean grid */
.rosterGrid{
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
}

/* Player card button layout restore */
.playerCardBtn{
  width: 100% !important;
  text-align: left !important;
  cursor: pointer !important;
  border: 1px solid var(--border) !important;
  background: #f8fafc !important;
  border-radius: 12px !important;
  padding: 12px !important;
  color: var(--text) !important;
  transition: transform 0.15s ease, border-color 0.15s ease !important;
  overflow: hidden !important;         /* prevents spill */
}

.playerCardBtn:hover{
  transform: translateY(-2px) !important;
  border-color: rgba(37,99,235,0.45) !important;
}

/* Card internal row */
.playerCardRow{
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  min-width: 0 !important;
}

/* Thumbnail */
.playerThumb{
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  border: 1px solid var(--border) !important;
  overflow: hidden !important;
  background: #0f172a !important;
  flex: 0 0 auto !important;
}

.playerThumb img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Main text area */
.playerCardMain{
  flex: 1 !important;
  min-width: 0 !important;  /* critical: prevents text overflow */
}

/* Name + number row */
.playerTop{
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  gap: 10px !important;
}

.playerName{
  font-weight: 900 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.playerNum{
  font-weight: 900 !important;
  color: #334155 !important;
  flex: 0 0 auto !important;
}

.playerMeta{
  margin-top: 6px !important;
  font-size: 12px !important;
  color: #475569 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.playerLink{
  margin-top: 10px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  color: var(--royal) !important;
}

/* Modal profile lines (keep clean) */
.profileLines{ display: grid !important; gap: 8px !important; }

.profileLine{
  display:flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--border) !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}

.profileKey{ color:#64748b !important; font-weight: 700 !important; }
.profileVal{ color:#0f172a !important; text-align:right !important; }

/* Mobile */
@media (max-width: 760px){
  .rosterGrid{ grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 520px){
  .rosterGrid{ grid-template-columns: 1fr !important; }
}

/* =========================================================
   TEAM HEADER RESTORE PATCH
   (Paste at bottom of styles.css)
========================================================= */

.teamHeaderBlock{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;   /* keep side-by-side on desktop */
}

.teamHeaderLeft{
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 320px !important;
}

.teamHeaderRight{
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}

/* Make the team logo sane again */
.teamHeaderLogo{
  width: 72px !important;
  height: 72px !important;
  border-radius: 14px !important;
  border: 1px solid var(--border) !important;
  background: #0f172a !important;
  object-fit: contain !important; /* prevents stretched logos */
  padding: 8px !important;
  box-sizing: border-box !important;
}

/* Coach card sizing */
.coachCard{
  min-width: 260px !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  background: #f8fafc !important;
}

/* Mobile: allow stacking */
@media (max-width: 760px){
  .teamHeaderBlock{
    flex-wrap: wrap !important;
  }
  .teamHeaderRight{
    width: 100% !important;
    justify-content: flex-start !important;
  }
  .coachCard{
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* =========================
   Coach title centered only (keep links as-is)
========================= */

.coachTitleCenter{
  text-align: center;
  margin-bottom: 8px;
}

/* =========================
   Participating Teams Grid
========================= */

.teamsGrid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.teamTile{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-weight: 900;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  text-align: center;
}

.teamTile:hover{
  transform: translateY(-2px);
  border-color: rgba(37,99,235,0.45);
  background: rgba(37,99,235,0.06);
}

/* Mobile */
@media (max-width: 600px){
  .teamsGrid{
    grid-template-columns: 1fr;
  }
}

/* =========================
   Teams Page Tile Layout (fix seed + CTA)
   Applies only on teams.html by using body class
========================= */

/* Add this class to <body> in teams.html: class="teamsPage watermarkPage" */
.teamsPage .teamsGrid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.teamsPage .teamTile{
  position: relative;
  display: block;
  padding: 14px 16px;            /* smaller */
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f8fafc;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}


.teamsPage .teamTile:hover{
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.45);
  background: rgba(37,99,235,0.06);
}

.teamsPage .teamName{
  font-weight: 900;
  font-size: 16px;     /* slightly smaller */
  line-height: 1.15;
  margin: 0;
}

.teamsPage .teamCta{
  font-size: 12px;     /* slightly smaller */
  font-weight: 900;
  color: var(--royal);
  margin-top: 4px;     /* tighter */
}

/* Mobile */
@media (max-width: 600px){
  .teamsPage .teamsGrid{
    grid-template-columns: 1fr;
  }
}
}

/* =========================
   Teams Page Tiles (logos + accent + glow)
========================= */

.teamsPage .teamsGrid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.teamsPage .teamTile{
  position: relative;
  display: block;
  padding: 18px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f8fafc;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-height: 104px;
}

/* subtle royal accent bar on the left */
.teamsPage .teamAccent{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(37,99,235,0.85);
  opacity: 0.55;
}

/* layout */
.teamsPage .teamTileText{
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.teamsPage .teamName{
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
}

.teamsPage .teamCta{
  font-size: 14px;
  font-weight: 900;
  color: var(--royal);
  margin-top: 6px;
}

}

/* logo */
.teamsPage .teamTileLogoWrap{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.teamsPage .teamTileLogo{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}

/* text */
.teamsPage .teamTileText{
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.teamsPage .teamName{
  font-weight: 900;
  font-size: 17px;
  line-height: 1.15;
}

.teamsPage .teamCta{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 900;
  color: var(--royal);
}

/* hover: lift + glow */
.teamsPage .teamTile:hover{
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.45);
  background: rgba(37,99,235,0.05);
  box-shadow: 0 14px 38px rgba(37,99,235,0.16);
}

.teamsPage .teamTile:hover .teamAccent{
  opacity: 0.9;
}

/* Mobile */
@media (max-width: 600px){
  .teamsPage .teamsGrid{ grid-template-columns: 1fr; }
}

/* =========================================================
   TEAMS PAGE – COMPACT, CENTERED TILES (minimal scroll)
   Paste at the VERY BOTTOM of styles.css
========================================================= */

.teamsPage .wrap{
  padding-top: 12px !important;
  padding-bottom: 16px !important;
}

.teamsPage .docSection h2{
  margin-top: 8px !important;
  margin-bottom: 6px !important;
}

.teamsPage .docSection .muted{
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

/* reduce card padding */
.teamsPage .cardBody{
  padding: 12px !important;
}

/* tighter grid */
.teamsPage .teamsGrid{
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

/* tile shell: smaller padding, still roomy */
.teamsPage .teamTile{
  padding: 10px 12px !important;
  border-radius: 12px !important;
  min-height: 0 !important; /* remove any older min-height */
}

/* accent bar thinner */
.teamsPage .teamAccent{
  width: 3px !important;
}

/* CENTER EVERYTHING inside tile */
.teamsPage .teamTileRow{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-align: center !important;
}

/* logo smaller */
.teamsPage .teamTileLogoWrap{
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
}

.teamsPage .teamTileLogo{
  padding: 5px !important;
}

/* text centered and compact */
.teamsPage .teamTileText{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.teamsPage .teamName{
  font-size: 15px !important;
  line-height: 1.12 !important;
  margin: 0 !important;
}

.teamsPage .teamCta{
  font-size: 12px !important;
  margin-top: 2px !important;
}

/* mobile */
@media (max-width: 600px){
  .teamsPage .teamsGrid{
    grid-template-columns: 1fr !important;
  }
}

.mapEmbed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
}

.mapEmbed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Centered Hero */
.centeredHero{
  text-align: center;
}

.centeredGlance{
  justify-content: center;
}

/* =========================
   Schedule polish (ESPN-style)
========================= */

.scheduleHero{
  text-align: center;
  padding: 10px 0 6px;
}

.scheduleHero h2{
  margin: 0 0 6px;
}

.scheduleMeta{
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* Table readability */
.scheduleTableWrap{
  margin-top: 12px;
}

.schedulePage .scheduleTable tbody tr:nth-child(even){
  background: #f8fafc;
}

.schedulePage .scheduleTable tbody tr:hover{
  background: rgba(37,99,235,0.08);
}

/* Stronger score column */
.schedulePage .scheduleTable td:nth-child(5){
  font-weight: 900;
  font-size: 14px;
}

/* Final games pop */
.schedulePage .finalRow{
  background: rgba(34,197,94,0.10) !important;
}

.schedulePage .finalRow td{
  font-weight: 800;
}

/* =========================
   Modern schedule card layout
========================= */

.scheduleCards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.scheduleCard{
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(2,6,23,0.06);
}

.scheduleCardTop{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(15,23,42,0.03);
}

.scheduleCardMeta{
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
}

.scheduleCardStatus{
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
  color: #0f172a;
}

.scheduleCardBody{
  padding: 12px;
}

.scheduleMatchup{
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.scheduleScoreRow{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.scheduleScore{
  font-weight: 900;
  font-size: 16px;
}

.scheduleField{
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

/* Final card pops */
.scheduleCard.final{
  border-color: rgba(34,197,94,0.35);
  box-shadow: 0 14px 40px rgba(34,197,94,0.10);
}

.scheduleCard.final .scheduleCardStatus{
  background: rgba(34,197,94,0.12);
  border-color: rgba(34,197,94,0.25);
}

/* Responsive: Cards on mobile, table on desktop */
@media (max-width: 900px){
  .scheduleCards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  .scheduleCards{ grid-template-columns: 1fr; }

  /* Hide table on phone */
  .scheduleTableWrap{ display: none; }
}

@media (min-width: 641px){
  /* Hide cards on desktop */
  .scheduleCards{ display: none; }
}

/* Inline team links (Schedule) */
.teamLinkInline{
  text-decoration: none;
  font-weight: 900;
  color: var(--royal);
}

.teamLinkInline:hover{
  text-decoration: underline;
}

.vsSep{
  color: var(--muted);
  font-weight: 800;
  margin: 0 6px;
}

/* =========================
   Rules Page Premium Overhaul
========================= */

.rulesHero{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.rulesHero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(37,99,235,0.10), rgba(37,99,235,0));
  pointer-events:none;
}

.rulesHeroTop{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.rulesHeroTitle{
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.rulesHeroNotes{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rulesNote{
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
}

.rulesNoteKicker{
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #0f172a;
  opacity: 0.75;
}

.rulesNoteValue{
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.rulesGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.rulesSection{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  position: relative;
}

.rulesSection::before{
  content:"";
  position:absolute;
  left:0;
  top:12px;
  bottom:12px;
  width: 4px;
  background: var(--royal);
  border-radius: 999px;
  opacity: 0.85;
}

.rulesSectionHeader{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding-left: 10px; /* offset for the accent bar */
}

.rulesSectionIcon{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.18);
  font-size: 16px;
}

.rulesSectionTitle{
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.rulesSectionSub{
  margin-top: 2px;
}

.ruleCard{
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
  margin-left: 10px; /* align with header offset */
  margin-bottom: 10px;
}

.ruleTitle{
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 6px;
  color: #0f172a;
}

.ruleBody{
  font-size: 13px;
  line-height: 1.45;
  color: #0f172a;
}

.ruleImportant{
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.25);
}

.rulesSectionWide{
  grid-column: 1 / -1;
}

.rulesFooterNote{
  margin-left: 10px;
  margin-top: 6px;
}

.rulesFooterLine{
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

/* Mobile: 1 column */
@media (max-width: 820px){
  .rulesHeroNotes{ grid-template-columns: 1fr; }
  .rulesGrid{ grid-template-columns: 1fr; }
}

/* =========================
   Rules Page Elite Accordion
========================= */

.rulesHeroElite{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.rulesHeroElite::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(37,99,235,0.10), rgba(37,99,235,0));
  pointer-events:none;
}

.rulesHeroTitleElite{
  position: relative;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.rulesHeroSubElite{
  position: relative;
  margin-top: 4px;
}

.rulesHeroPills{
  position: relative;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rulesPill{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
}

.rulesPillStrong{
  border-color: rgba(37,99,235,0.28);
  background: rgba(37,99,235,0.10);
}

.rulesAccordions{
  display: grid;
  gap: 12px;
}

.rulesAcc{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.rulesAccSummary{
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 42px 1fr 26px;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-bottom: 1px solid var(--border);
}

.rulesAccSummary::-webkit-details-marker{ display:none; }

.rulesAccIcon{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.18);
  font-size: 16px;
}

.rulesAccTitle{
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #0f172a;
}

.rulesAccSub{
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.rulesAccChevron{
  font-weight: 900;
  color: #0f172a;
  opacity: 0.55;
  transition: transform 0.15s ease;
  text-align: right;
}

.rulesAcc[open] .rulesAccChevron{
  transform: rotate(180deg);
}

.rulesAccBody{
  padding: 12px;
  display: grid;
  gap: 10px;
  position: relative;
}

.rulesAccBody::before{
  content:"";
  position:absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  background: var(--royal);
  border-radius: 999px;
  opacity: 0.85;
}

.ruleCardElite{
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
  margin-left: 10px; /* align with accent bar */
}

.ruleTitleElite{
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 6px;
  color: #0f172a;
}

.ruleBodyElite{
  font-size: 13px;
  line-height: 1.45;
  color: #0f172a;
}

.ruleImportantElite{
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.25);
}

.rulesFooterNoteElite{
  margin-left: 10px;
  margin-top: 6px;
}

.rulesFooterLineElite{
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

/* Mobile polish */
@media (max-width: 520px){
  .rulesAccSummary{
    grid-template-columns: 40px 1fr 22px;
    padding: 11px 11px;
  }
  .rulesAccIcon{ width: 32px; height: 32px; }
}

/* Centered Rules Hero */
.centeredRulesHero{
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.4px;
  padding: 18px 12px;
}

.centeredRulesHero .rulesHeroLine2{
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.3px;
}

/* Contacts page polish */

.contactTeamBlock{
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.contactTeamBlock:last-child{
  border-bottom: none;
}

.contactTeamName{
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 6px;
}

.contactTeamLink{
  text-decoration: none;
  color: var(--royal);
}

.contactTeamLink:hover{
  text-decoration: underline;
}

.contactRow{
  display: flex;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}

.contactLabel{
  font-weight: 900;
  min-width: 95px;
}

.contactLink{
  text-decoration: none;
  color: var(--royal);
}

.contactLink:hover{
  text-decoration: underline;
}

.gcContactLink{
  font-weight: 900;
  text-decoration: none;
  color: var(--royal);
}

.gcContactLink:hover{
  text-decoration: underline;
}

/* =========================
   Contacts: 2-column grid + royal accents
========================= */

.contactsPage .contactsGrid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contactsPage .contactTile{
  position: relative;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.contactsPage .contactTile:hover{
  transform: translateY(-2px);
  border-color: rgba(37,99,235,0.35);
  box-shadow: 0 10px 24px rgba(2,6,23,0.10);
}

.contactsPage .contactAccent{
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  background: var(--royal);
  border-radius: 999px;
  opacity: 0.85;
}

.contactsPage .contactTop{
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px; /* space for accent bar */
}

.contactsPage .contactLogo{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #0f172a;
  flex: 0 0 auto;
}

.contactsPage .contactTopText{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contactsPage .contactTeamLink{
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.15;
}

.contactsPage .contactTeamLink:hover{
  color: var(--royal);
}

.contactsPage .contactBody{
  margin-top: 10px;
  padding-left: 8px; /* align with top */
}

.contactsPage .contactCoachName{
  font-weight: 900;
  margin-bottom: 8px;
}

.contactsPage .contactLinks{
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.contactsPage .contactLink{
  text-decoration: none;
  color: var(--royal);
  font-weight: 800;
  font-size: 13px;
  word-break: break-word;
}

.contactsPage .contactLink:hover{
  text-decoration: underline;
}

.contactsPage .contactGCRow{
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.contactsPage .gcLink{
  display: inline-block;
  text-decoration: none;
  font-weight: 900;
  color: var(--royal);
  font-size: 13px;
}

.contactsPage .gcLink:hover{
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 720px){
  .contactsPage .contactsGrid{ grid-template-columns: 1fr; }
}

/* =========================
   Standings: safe cosmetic polish
========================= */

.standingsHeaderCard{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 14px;
  margin: 12px 0 12px;
  position: relative;
  overflow: hidden;
}

.standingsHeaderCard::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(37,99,235,0.10), rgba(37,99,235,0));
  pointer-events:none;
}

.standingsHeaderTitle{
  position: relative;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.standingsHeaderSub{
  position: relative;
  margin-top: 4px;
  font-size: 13px;
}

.standingsHeaderMeta{
  position: relative;
  margin-top: 8px;
}

/* Mobile-safe table wrapper */
.tableScroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table polish */
.standingsTable tbody tr:nth-child(even){
  background: #f8fafc;
}

@media (hover:hover){
  .standingsTable tbody tr:hover{
    background: rgba(37,99,235,0.06);
  }
}

.standingsTable th.num,
.standingsTable td.num{
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.standingsTable td.rd{
  font-weight: 900;
}

/* Subtle highlights for top rows */
.standingsTop1{
  box-shadow: inset 4px 0 0 rgba(212,175,55,0.95);
}

.standingsTop2{
  box-shadow: inset 4px 0 0 rgba(37,99,235,0.55);
}

/* Team links */
.teamLink{
  color: var(--royal);
  font-weight: 900;
  text-decoration: none;
}
.teamLink:hover{
  text-decoration: underline;
}

/* =========================
   Mobile Hamburger (site-wide, clean)
   Scoped to .hasHamburger so non-upgraded pages are unaffected.
========================= */

/* Always safe: wrapper doesn't change layout */
.hasHamburger .navWrap { position: relative; }

/* Desktop: keep your normal nav behavior; hide hamburger/overlay */
@media (min-width: 821px){
  .hasHamburger .navToggle,
  .hasHamburger .navOverlay{
    display: none !important;
  }
}

/* Mobile hamburger */
@media (max-width: 820px){
  /* Ensure header/brand don't cover the button */
  .hasHamburger .siteHeader{
    position: relative;
    z-index: 10;
  }

  /* Hamburger button stays clickable while scrolling */
  .hasHamburger .navToggle{
    position: fixed;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(15,23,42,0.95);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 2147483646; /* above everything */
    padding: 0;
  }

  .hasHamburger .navToggle span{
    display:block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    margin: 3px 0;
  }

  /* Overlay blocks all interaction with page content behind */
  .hasHamburger .navOverlay{
    position: fixed;
    inset: 0;
    background: #050914;          /* solid overlay prevents bleed-through */
    z-index: 2147483644;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  /* Menu panel */
  .hasHamburger .nav{
    position: fixed;
    top: 70px;
    left: 12px;
    right: 12px;

    display: grid;
    gap: 10px;
    padding: 14px;

    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.14);
    background: #0b1220;          /* solid panel */
    box-shadow: 0 18px 60px rgba(0,0,0,0.60);

    z-index: 2147483645;

    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .hasHamburger .nav a{
    display: block;
    text-align: center;
    font-size: 15px;
    padding: 14px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 800;
  }

  .hasHamburger .nav a.active{
    background: rgba(37,99,235,0.45);
    border-color: rgba(37,99,235,0.75);
    color: #fff;
  }

  /* Open state */
  html.navOpen .hasHamburger .navOverlay{
    opacity: 1;
    pointer-events: auto;
  }
  html.navOpen .hasHamburger .nav{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Lock page scroll behind the overlay/menu */
  body.navOpen{
    overflow: hidden;
    touch-action: none;
  }
}
