/* =========================================================
   Legends of Hockey — shared stylesheet
   Theme: dark ice rink — navy/ice-blue/red, bold condensed headlines
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink-navy:      #050b17;
  --rink-navy:     #0a1830;
  --rink-navy-2:   #0f2140;
  --card-navy:     #122747;
  --line-blue:     #1c3a63;
  --ice-blue:      #4cc9f0;
  --ice-blue-dim:  #2a8fb5;
  --frost:         #eaf6ff;
  --frost-dim:     #b9cbdd;
  --red:           #e63946;
  --red-dim:       #b32734;
  --gold:          #f4b942;
  --shadow:        0 10px 30px rgba(0,0,0,0.45);
  --radius:        14px;
  --max-width:     1160px;
  --font-head:     'Oswald', 'Arial Narrow', sans-serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--frost);
  background:
    radial-gradient(1100px 600px at 15% -10%, rgba(76,201,240,0.10), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(230,57,70,0.08), transparent 55%),
    var(--ink-navy);
  min-height: 100vh;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0 0 0.5em;
  color: #fff;
}

p { color: var(--frost-dim); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Ice-rink decorative background ---------- */
.rink-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}
.rink-lines svg { width: 100%; height: 100%; }

/* ---------- Top bar / header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 11, 23, 0.85);
  backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line-blue);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}
.brand-text span {
  color: var(--ice-blue);
}

/* ---------- Tab navigation ---------- */
.tab-nav {
  display: flex;
  gap: 4px;
}

.tab-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--frost-dim);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.tab-nav a:hover {
  color: #fff;
  background: rgba(76, 201, 240, 0.08);
}

.tab-nav a.active {
  color: #fff;
  background: rgba(76, 201, 240, 0.12);
}

.tab-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ice-blue), var(--red));
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-blue);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--frost);
  margin: 4px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 24px 110px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-blue);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(244, 185, 66, 0.1);
  border: 1px solid rgba(244, 185, 66, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 22px 0 14px;
  line-height: 1.02;
}

.hero h1 .accent { color: var(--ice-blue); }

.hero-sub {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: 1.1rem;
  color: var(--frost-dim);
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dim));
  color: #fff;
  box-shadow: 0 8px 22px rgba(230, 57, 70, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(230, 57, 70, 0.45); }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--line-blue);
  color: var(--frost);
}
.btn-ghost:hover { border-color: var(--ice-blue); color: #fff; }

/* ---------- Section headings ---------- */
.section {
  padding: 72px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-head .kicker {
  display: block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice-blue);
  margin-bottom: 10px;
}

.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--card-navy), var(--rink-navy-2));
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--ice-blue-dim);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(76, 201, 240, 0.12);
  color: var(--ice-blue);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { font-size: 0.95rem; margin: 0; }

/* ---------- Legend badge cards ---------- */
.legend-card {
  text-align: center;
}
.legend-badge {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink-navy);
  background: linear-gradient(135deg, var(--ice-blue), var(--frost));
  border: 3px solid rgba(255,255,255,0.15);
}
.legend-card h3 { margin-bottom: 2px; }
.legend-role {
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 auto;
}
.stat {
  text-align: center;
  padding: 22px 10px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
}
.stat .num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--ice-blue);
  display: block;
}
.stat .label {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--frost-dim);
}

/* ---------- Rule blocks ---------- */
.rule-block {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-blue);
}
.rule-block:last-child { border-bottom: none; }

.rule-num {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--ice-blue-dim);
  opacity: 0.8;
}

.rule-block h3 { font-size: 1.2rem; margin-bottom: 6px; }
.rule-block ul { margin: 10px 0 0; padding-left: 20px; color: var(--frost-dim); }
.rule-block li { margin-bottom: 8px; line-height: 1.5; }

/* Numbered rule lists — custom marker with two literal spaces after the
   number, since browsers collapse plain whitespace in generated content. */
.rule-block ol {
  margin: 10px 0 0;
  padding-left: 0;
  color: var(--frost-dim);
  list-style: none;
  counter-reset: rule-counter;
}
.rule-block ol > li {
  counter-increment: rule-counter;
  padding-left: 2.4em;
  position: relative;
}
.rule-block ol > li::before {
  content: counter(rule-counter) ".\00A0\00A0";
  position: absolute;
  left: 0;
  color: var(--ice-blue-dim);
  font-family: var(--font-head);
  font-weight: 600;
}

.penalty-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 8px;
  margin-bottom: 8px;
}
.pill-minor { background: rgba(244,185,66,0.15); color: var(--gold); border: 1px solid rgba(244,185,66,0.4); }
.pill-major { background: rgba(230,57,70,0.15); color: #ff8b93; border: 1px solid rgba(230,57,70,0.4); }
.pill-misconduct { background: rgba(155,109,255,0.15); color: #c6aeff; border: 1px solid rgba(155,109,255,0.4); }

/* ---------- Schedule table ---------- */
.schedule-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.legend-key {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--frost-dim);
}
.legend-key span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-win { background: var(--ice-blue); }
.dot-loss { background: var(--red); }
.dot-upcoming { background: var(--gold); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.015);
}

table.schedule {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

table.schedule th {
  text-align: left;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice-blue);
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-blue);
  background: rgba(76,201,240,0.05);
}

table.schedule td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-blue);
  font-size: 0.95rem;
}

table.schedule tbody tr:last-child td { border-bottom: none; }
table.schedule tbody tr:hover { background: rgba(76,201,240,0.04); }

table.schedule tbody tr.schedule-date-end td {
  border-bottom: 2px solid var(--ice-blue);
}
table.schedule tbody tr.schedule-date-end:last-child td { border-bottom: none; }

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

.box-score-btn {
  flex-shrink: 0;
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-blue);
  background: rgba(255,255,255,0.03);
  color: var(--ice-blue);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.box-score-btn:hover { border-color: var(--ice-blue); color: #fff; }
.box-score-btn[aria-expanded="true"] { border-color: var(--ice-blue); color: #fff; background: rgba(76,201,240,0.1); }

.box-score-row td {
  padding: 0 18px 22px;
  background: rgba(255,255,255,0.015);
}

.box-score-panel {
  max-width: 480px;
  margin: 0 auto;
  padding-top: 6px;
}

.box-score-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  overflow: hidden;
}
.box-score-table th, .box-score-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-blue);
}
.box-score-table tr:last-child th, .box-score-table tr:last-child td { border-bottom: none; }
.box-score-table th {
  text-align: left;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--frost);
}
.box-score-table td {
  text-align: right;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ice-blue);
}

.box-score-subhead {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice-blue);
}

.box-score-scorers {
  list-style: none;
  margin: 0;
  padding: 0;
}
.box-score-scorers li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-blue);
  font-size: 0.9rem;
}
.box-score-scorers li:last-child { border-bottom: none; }
.scorer-name { color: var(--frost); }
.scorer-stats { color: var(--frost-dim); flex-shrink: 0; }

.box-score-empty {
  color: var(--frost-dim);
  font-style: italic;
  font-size: 0.9rem;
  margin: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: var(--font-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.status-win { background: rgba(76,201,240,0.15); color: var(--ice-blue); }
.status-loss { background: rgba(230,57,70,0.15); color: #ff8b93; }
.status-upcoming { background: rgba(244,185,66,0.15); color: var(--gold); }

.home-away {
  font-size: 0.72rem;
  font-family: var(--font-head);
  letter-spacing: 0.05em;
  color: var(--frost-dim);
  margin-right: 6px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
  padding: 60px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(76,201,240,0.12), rgba(230,57,70,0.10));
  border: 1px solid var(--line-blue);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { margin-bottom: 10px; }
.cta-banner p { max-width: 520px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-blue);
  padding: 40px 0 30px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-family: var(--font-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--frost-dim);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  gap: 22px;
  font-size: 0.88rem;
  color: var(--frost-dim);
}
.footer-links a:hover { color: var(--ice-blue); }
.footer-note {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: #5f7692;
  margin-top: 22px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .rule-block { grid-template-columns: 1fr; gap: 6px; }
  .rule-num { font-size: 1.3rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .tab-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5,11,23,0.98);
    border-bottom: 1px solid var(--line-blue);
    padding: 10px;
    gap: 2px;
    display: none;
  }
  .tab-nav.open { display: flex; }
  .tab-nav a { width: 100%; }
  .header-inner { position: relative; }
  .hero { padding: 64px 20px 70px; }
  .schedule-toolbar { flex-direction: column; align-items: flex-start; }
}

/* ---------- Mobile-friendly stacked tables ----------
   Below this width, tables give up horizontal scrolling and instead lay
   each row out as a small bordered card, with every value labeled by its
   column heading (via the data-label attribute set in schedule.js,
   standings.js and stats.js). Desktop keeps the normal wide table. */
@media (max-width: 700px) {
  .table-wrap {
    overflow-x: visible;
    border: none;
    background: none;
  }

  table.schedule,
  table.standings-table,
  table.stats-table {
    min-width: 0;
    width: 100%;
  }

  table.schedule thead { display: none; }

  table.schedule tbody tr {
    display: block;
    margin-bottom: 12px;
    padding: 10px 16px;
    border: 1px solid var(--line-blue);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.015);
  }
  table.schedule tbody tr:last-child { margin-bottom: 0; }

  table.schedule tbody tr.schedule-date-end {
    border-color: var(--ice-blue);
  }

  table.schedule tbody tr.box-score-row {
    display: block;
    padding: 0;
    margin: -10px 0 12px;
    border: none;
    background: none;
  }

  table.schedule td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line-blue);
  }
  table.schedule td:last-child { border-bottom: none; }

  table.schedule td[data-label]::before {
    content: attr(data-label);
    flex-shrink: 0;
    font-family: var(--font-head);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ice-blue);
  }

  /* Loading / empty / error / box-score cells have no data-label — they
     span the full row already (colspan), so let them lay out as plain
     blocks instead of a label+value pair. */
  table.schedule td:not([data-label]) {
    display: block;
    padding: 0;
    border-bottom: none;
  }

  .away-cell { justify-content: flex-start; }
}

/* =========================================================
   Legends page — filterable profile grid
   ========================================================= */

.era-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 44px;
}

.era-filter-btn {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-blue);
  background: rgba(255,255,255,0.02);
  color: var(--frost-dim);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.era-filter-btn:hover { color: #fff; border-color: var(--ice-blue-dim); transform: translateY(-1px); }
.era-filter-btn.active {
  color: var(--ink-navy);
  background: linear-gradient(135deg, var(--ice-blue), var(--frost));
  border-color: transparent;
}

.legend-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.legend-profile {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legend-profile.is-hidden { display: none; }

.legend-profile-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legend-profile .legend-badge {
  margin: 0;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  font-size: 1.2rem;
}

.legend-name-block h3 { font-size: 1.2rem; margin-bottom: 2px; }

.legend-meta {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--frost-dim);
}
.legend-meta .legend-nick { color: var(--gold); }

.legend-profile p.legend-bio {
  font-size: 0.92rem;
  margin: 0;
}

.legend-stats-row {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line-blue);
  border-bottom: 1px solid var(--line-blue);
}
.legend-stats-row .lstat {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.legend-stats-row .lstat .lnum {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--ice-blue);
  white-space: nowrap;
}
.legend-stats-row .lstat .llabel {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--frost-dim);
  margin-top: 2px;
}

.legend-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.achievement-pill {
  font-size: 0.66rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(76,201,240,0.1);
  color: var(--ice-blue);
  border: 1px solid rgba(76,201,240,0.3);
}

.results-empty {
  text-align: center;
  color: var(--frost-dim);
  padding: 40px 0;
  display: none;
}
.results-empty.show { display: block; }

@media (max-width: 860px) {
  .legend-profile-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Rosters page — live team cards
   ========================================================= */

.roster-card h3 { margin-bottom: 16px; text-align: center; text-decoration: underline; font-size: 1.5rem; }

.roster-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.roster-list li {
  font-size: 0.95rem;
  color: var(--frost);
  padding: 10px 0;
  border-bottom: 1px solid var(--line-blue);
}
.roster-list li:last-child { border-bottom: none; }

.roster-list .goalie-suffix {
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 6px;
}

.roster-loading, .roster-empty {
  color: var(--frost-dim);
  font-style: italic;
  border-bottom: none !important;
}

.roster-error {
  color: #ff8b93;
  border-bottom: none !important;
}

.schedule-loading, .schedule-empty {
  color: var(--frost-dim);
  font-style: italic;
  text-align: center;
}

.schedule-error {
  color: #ff8b93;
  text-align: center;
}

.btn-print {
  padding: 10px 20px;
  font-size: 0.8rem;
}
.btn-print svg { width: 18px; height: 18px; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .hero, .nav-toggle,
  .cta-banner, .btn-print, .box-score-btn {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  .container { max-width: 100%; }
  .table-wrap { border: 1px solid #000; background: #fff; }
  table.schedule { min-width: 0; width: 100%; }
  table.schedule th {
    background: #eee;
    color: #000;
    border-bottom: 1px solid #000;
  }
  table.schedule td {
    color: #000;
    border-bottom: 1px solid #ccc;
  }
  table.schedule tbody tr.schedule-date-end td {
    border-bottom: 2px solid #000;
  }
}

/* ---------- Announcement bar ---------- */
.announcement-bar {
  background: linear-gradient(135deg, var(--red), var(--red-dim));
  border-bottom: 1px solid var(--line-blue);
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 24px;
  text-align: center;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.2);
  padding: 4px 10px;
  border-radius: 999px;
}

.announcement-inner p {
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
}

/* ---------- Latest Champions ---------- */
.champions-card {
  max-width: 760px;
  margin: 0 auto;
}

.champions-card .champions-announce {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  letter-spacing: 0.02em;
  color: var(--gold);
  margin: 0 0 22px;
}

.champions-roster {
  margin-bottom: 24px;
}

.champions-col-head {
  margin: 0 0 8px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice-blue);
}

.champions-list li {
  border-bottom: none;
  padding: 3px 0;
}

/* ---------- Contact ---------- */
.contact-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.contact-email {
  margin: 0 0 22px;
}

.contact-email a {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-decoration: none;
}

.contact-email a:hover {
  color: var(--ice-blue);
  text-decoration: underline;
}

.contact-card .contact-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--frost-dim);
  margin: 0 0 14px;
}

.contact-card .contact-body:last-child {
  margin-bottom: 0;
}

.captain-suffix {
  color: var(--ice-blue);
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 6px;
}

.champions-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line-blue);
}

/* =========================================================
   Standings page
   ========================================================= */

table.standings-table {
  min-width: 820px;
}

table.standings-table th:not(:first-child),
table.standings-table td:not(:first-child) {
  text-align: center;
}

.standings-team {
  font-weight: 600;
  color: var(--frost);
}

.standings-pts {
  color: var(--gold);
  font-weight: 700;
}

/* =========================================================
   Stats page
   ========================================================= */

table.stats-table {
  min-width: 560px;
}

table.stats-table th:not(:first-child),
table.stats-table td:not(:first-child) {
  text-align: center;
}
