/* ============================================================
   Missouri Milestones — Public Stylesheet
   Mobile-first. Google Fonts: Inter (body) + Oswald (display).
   ============================================================ */

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg:         #f1f5f9;
  --color-surface:    #ffffff;
  --color-border:     #cbd5e1;
  --color-text:       #0f172a;
  --color-muted:      #64748b;
  --color-primary:    #1d3461;
  --color-primary-h:  #152849;
  --color-accent:     #c9941a;
  --color-accent-h:   #a67814;
  --color-active-row: #fef9e7;
  --font-sans:        'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display:     'Oswald', 'Arial Narrow', sans-serif;
  --radius:           8px;
  --radius-lg:        12px;
  --shadow-sm:        0 1px 2px rgba(0,0,0,0.05);
  --shadow:           0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:        0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:        0 10px 20px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ----- Layout ----- */
.site-main { flex: 1; display: flex; flex-direction: column; }

/* ----- Header & Nav ----- */
.site-header {
  background: #C9A97A;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 96px;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-brand:hover { text-decoration: none; color: var(--color-primary); }
.nav-brand-img { height: 80px; width: auto; display: block; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.2rem;
}

.nav-links a {
  color: rgba(0,0,0,0.7);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover {
  color: #1a1a1a;
  background: rgba(0,0,0,0.08);
  text-decoration: none;
}
.nav-links a.nav-active {
  color: var(--color-primary);
  font-weight: 600;
  background: rgba(0,0,0,0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #1a1a1a;
  padding: 0.25rem;
}

/* Mobile nav */
@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 96px;
    left: 0; right: 0;
    background: #C9A97A;
    border-bottom: none;
    padding: 0.75rem;
    gap: 0.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links a.nav-active {
    border-radius: var(--radius);
  }
}

/* ----- Footer ----- */
.site-footer {
  background: #C9A97A;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
  color: rgba(0,0,0,0.55);
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--color-primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--color-primary-h); color: #fff; box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: #f0f4f8; color: var(--color-text); box-shadow: var(--shadow); }
.btn-large { padding: 0.9rem 2.25rem; font-size: 1.05rem; letter-spacing: 0.02em; }

/* ----- Home Split Layout ----- */
.home-split {
  display: flex;
  flex-direction: column;
  flex: 1;
  background: #171717; /* prevents site-main bg from bleeding through */
}

@media (min-width: 768px) {
  .home-split { flex-direction: row; }
  .home-brand { flex: 1; }
}

.home-brand {
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 3.5rem 2rem;
  min-height: 50vh;
  position: relative;
}

.home-brand--milestones {
  background: #171717;
  color: #fff;
}
.home-brand--college {
  background: #0A1B37;
  color: #fff;
}

@media (min-width: 768px) {
  .home-brand--college { border-left: 1px solid rgba(255,255,255,0.08); }
}

.home-brand-inner {
  max-width: 420px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.home-brand-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 2rem;
}

.home-content-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  background: #ffffff;
  padding: 1rem;
  filter: none;
}

.home-content-body { margin-bottom: 0; }

.home-logo {
  margin: 0 auto 1.5rem;
  width: 180px;
  height: 120px;
  background: rgba(255,255,255,0.07);
  border: 2px dashed rgba(255,255,255,0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.home-logo img { max-height: 110px; width: auto; }

.home-brand-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.college-edition-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.06em;
}

.home-brand-desc {
  color: rgba(255,255,255,0.65);
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.home-tagline {
  text-align: center;
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 2rem;
  padding: 0 0.5rem;
}

/* White CTA buttons on dark home panels */
.home-brand .btn-primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.home-brand .btn-primary:hover {
  background: rgba(255,255,255,0.88);
  color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ----- Content header ----- */
.content-header {
  width: 100%;
  max-width: 1100px;
  margin: 3.5rem auto 1.5rem;
  padding: 0 1rem;
}
.content-header h1 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-primary);
  border-left: 4px solid var(--color-accent);
  padding-left: 0.75rem;
}
.content-sub { color: var(--color-muted); font-size: 0.95rem; }

/* ----- Breadcrumb ----- */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-primary); }

/* ----- Sport grid ----- */
.sport-grid {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.sport-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s, color 0.15s;
}
.sport-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--color-primary);
}
.sport-card-arrow { color: var(--color-accent); font-size: 1.1rem; }

/* ----- Stats Table ----- */
.table-wrap {
  max-width: 1100px;
  margin: 0 auto 1rem;
  padding: 0 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 0.95rem;
  overflow: hidden;
}

.stats-table th,
.stats-table td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.stats-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.stats-table tbody tr:last-child td { border-bottom: none; }
.stats-table tbody tr:nth-child(even) { background: #f8fafc; }
.stats-table tbody tr:hover { background: #eef2f8; }
.stats-table tbody tr.row-active { background: var(--color-active-row); }

.sort-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  white-space: nowrap;
}
.sort-link:hover { color: var(--color-accent); text-decoration: underline; }

.col-rank  { width: 50px; text-align: center; color: var(--color-muted); font-weight: 700; }
.col-stat  { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; color: var(--color-primary); }
.col-class { white-space: nowrap; }

@media (max-width: 600px) {
  .table-wrap { padding: 0; }
  .stats-table { border-radius: 0; box-shadow: none; }
  .stats-table th,
  .stats-table td { padding: 0.55rem 0.6rem; font-size: 0.875rem; }
  .col-rank { width: 36px; }
}

/* ----- Stats legend ----- */
.stats-legend {
  max-width: 1100px;
  margin: 0.5rem auto 2rem;
  padding: 0 1rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}
.stats-legend p { margin-bottom: 0.15rem; }

/* ----- College post list ----- */
.filter-bar {
  max-width: 1100px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-surface);
  transition: all 0.15s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  text-decoration: none;
}

.filter-btn--type { font-weight: 600; }

.filter-divider {
  display: flex;
  align-items: center;
  color: var(--color-border);
  font-size: 1rem;
  padding: 0 0.25rem;
  user-select: none;
}

.post-list {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .post-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .post-list { grid-template-columns: repeat(3, 1fr); }
}

.post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.post-card-img-link { display: block; overflow: hidden; aspect-ratio: 4/3; }
.post-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.post-card:hover .post-card-img { transform: scale(1.05); }

.post-card-body { padding: 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.post-sport-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  background: #e8eef7;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.post-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  background: #e8eef7;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.post-tag:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.post-card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.post-card-title a { color: var(--color-text); text-decoration: none; }
.post-card-title a:hover { color: var(--color-primary); }

.post-card-excerpt { font-size: 0.875rem; color: var(--color-muted); flex: 1; line-height: 1.55; }
.post-card-meta    { font-size: 0.8rem; color: var(--color-muted); }
.post-read-more    { font-size: 0.875rem; font-weight: 600; margin-top: auto; color: var(--color-primary); }
.post-read-more:hover { text-decoration: underline; }

/* ----- Table toolbar (search + per-page) ----- */
.table-toolbar {
  max-width: 1100px;
  margin: 0 auto 1rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.search-wrap input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-wrap input[type="search"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29,52,97,0.15);
}

.clear-search { font-size: 0.875rem; color: var(--color-muted); white-space: nowrap; }
.clear-search:hover { color: var(--color-accent); text-decoration: none; }

.per-page-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.per-page-wrap select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

/* ----- Result count ----- */
.result-count {
  max-width: 1100px;
  margin: 0 auto 0.5rem;
  padding: 0 1rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ----- Pagination ----- */
.pagination {
  max-width: 1100px;
  margin: 0.5rem auto 2rem;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  justify-content: center;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.page-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
}
.page-btn.page-current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  cursor: default;
}
.page-ellipsis { color: var(--color-muted); padding: 0 0.2rem; line-height: 36px; }
.page-info { color: var(--color-muted); font-size: 0.9rem; }

/* ----- Single post ----- */
.post-full {
  max-width: 780px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.post-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--color-primary);
}
.post-meta   { color: var(--color-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }
.post-type-label { font-size: 0.8rem; color: var(--color-muted); margin-left: 0.5rem; }
.post-type-label::before { content: '·'; margin-right: 0.5rem; }

/* Gallery */
.post-gallery { margin-bottom: 1.75rem; }

.gallery-single .gallery-item img { max-height: 480px; object-fit: cover; border-radius: var(--radius); width: 100%; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.gallery-grid .gallery-item img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  width: 100%;
}

.gallery-item figcaption { font-size: 0.8rem; color: var(--color-muted); margin-top: 0.25rem; }

.gallery-zoom img { cursor: zoom-in; }

/* Lightbox modal */
.img-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.img-modal[hidden] { display: none; }
.img-modal-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  object-fit: contain;
}
.img-modal-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
}
.img-modal-close:hover { opacity: 1; }

.post-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.post-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.post-body th,
.post-body td {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
  white-space: nowrap;
}
.post-body thead th {
  background: #f0f4f8;
  font-weight: 700;
}

.post-body img { border-radius: var(--radius); }

.post-nav {
  max-width: 780px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
}

/* ----- Utilities ----- */
.empty-state {
  text-align: center;
  color: var(--color-muted);
  padding: 3rem 1rem;
  font-size: 1rem;
}
.muted { color: var(--color-muted); }

/* ----- Social icons (nav + footer) ----- */
.nav-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

.nav-social a,
.footer-social a {
  display: inline-flex;
  align-items: center;
  color: rgba(0,0,0,0.5);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-social a:hover,
.footer-social a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 600px) {
  .nav-social { display: none; }

  .home-brand {
    min-height: 40vh;
    padding: 2rem 1.25rem;
  }

  .post-title { font-size: 1.6rem; }

  .search-wrap { max-width: 100%; }

  .post-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }

  .post-full {
    display: flex;
    flex-direction: column;
  }
  .post-full .post-gallery {
    order: 1;
    margin-top: 1.5rem;
    margin-bottom: 0;
  }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .gallery-item {
    overflow: hidden;
    border-radius: var(--radius);
  }
  .gallery-grid .gallery-item img {
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }

  .gallery-trio .gallery-item:first-child { grid-row: span 2; }
  .gallery-trio .gallery-item:first-child img {
    aspect-ratio: unset;
    height: 100%;
  }
}

/* ============================================================
   College Edition — Top 10 Lists
   ============================================================ */

/* ----- Breadcrumb extras ----- */
.breadcrumb-sep { margin: 0 0.4rem; color: var(--color-muted); }

.breadcrumb--college {
  max-width: 1100px;
  margin: 0.75rem auto 1.5rem;
  padding: 1rem 1rem;
}

/* ----- Page header with season selector ----- */
.page-header {
  max-width: 1100px;
  margin: 0 auto 0.5rem;
  padding: 2.5rem 1rem 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-primary);
  flex: 1;
}
.page-subtitle { color: var(--color-muted); font-size: 0.95rem; margin-top: 0.25rem; }

.season-selector-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.season-selector-form select {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-size: 0.9rem;
  cursor: pointer;
}

/* ----- Sport season section ----- */
.college-sport-season {
  max-width: 1100px;
  margin: 2.5rem auto 2.5rem;
  padding: 0 1rem;
}
.sport-season-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ----- Tile grid (sport tiles, stat tiles) ----- */
.tile-grid {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  justify-content: center;
  gap: 1rem;
}

/* Sport tiles (index + sport group page) */
.sport-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--color-text);
  text-decoration: none;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  gap: 0.35rem;
}
.sport-tile:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  text-decoration: none;
}
.sport-tile--empty {
  opacity: 0.55;
  pointer-events: none;
}
.sport-tile-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-primary);
}
.sport-tile-count {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Stat tiles (division page) */
.stat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  color: #fff;
  text-decoration: none;
  transition: box-shadow 0.15s, opacity 0.15s, transform 0.15s;
  gap: 0.35rem;
}
.stat-tile:hover {
  opacity: 0.9;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.stat-tile-stat {
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.stat-tile-season {
  font-size: 0.85rem;
  opacity: 0.8;
}
.stat-tile-updated {
  font-size: 0.75rem;
  opacity: 0.65;
}

/* ----- Leaderboard table (tile detail page) ----- */
.leaderboard-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
  max-width: 1100px;
  margin: 0 auto 0.25rem;
  padding: 0 1rem;
}
.season-label {
  max-width: 1100px;
  margin: 0 auto 0;
  padding: 0 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}
.season-label--updated {
  margin-bottom: 1.5rem;
}
.leaderboard-wrap {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  overflow-x: auto;
}
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.leaderboard-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.leaderboard-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}
.leaderboard-table tbody tr:last-child td { border-bottom: none; }
.leaderboard-table .row-even { background: var(--color-surface); }
.leaderboard-table .row-odd  { background: #f8fafc; }
.leaderboard-table .col-rank {
  width: 3rem;
  text-align: center;
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.leaderboard-table .col-stat {
  font-weight: 700;
  text-align: right;
}

/* ----- Empty state for college pages ----- */
.empty-state {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
  color: var(--color-muted);
  text-align: center;
}

@media (max-width: 600px) {
  .tile-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 170px)); }
  .page-title { font-size: 1.5rem; }
  .leaderboard-table thead th,
  .leaderboard-table tbody td { padding: 0.5rem 0.6rem; font-size: 0.85rem; }
  .col-school { display: none; }
}
