:root {
  --um-blue: #00274c;
  --um-blue-2: #0b1f35;
  --um-blue-3: #12345a;
  --um-blue-4: #1e4c7a;
  --um-maize: #ffcb05;
  --um-maize-soft: #ffe082;
  --bg-top: #07172a;
  --bg-bottom: #102945;
  --surface: #0f2238;
  --surface-2: #16304d;
  --surface-3: #1f3e61;
  --card: #f7f9fc;
  --card-2: #ffffff;
  --text-dark: #0f172a;
  --text-mid: #526277;
  --text-light: #f7f9fc;
  --border-soft: #d7e1ef;
  --border-dark: rgba(255, 255, 255, 0.12);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.12);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Geneva, sans-serif;
  background: var(--um-blue);
  color: var(--text-light);
}

/* Same treatment as the main site's pages: the 2014 collage sitting well back
   behind everything, so the two feel like one place. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("./images/2014collage.jpg") no-repeat center top;
  background-size: cover;
  opacity: 0.18;
}

#global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(4,16,31,0.98), rgba(7,23,42,0.96));
  border-bottom: 1px solid rgba(255,203,5,0.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

/* ================= GLOBAL HEADER ================= */
.global-header {
  background: transparent;
  color: #fff;
  padding: 10px 0;
  border-bottom: none;
  width: min(1440px, calc(100% - 24px));
  margin: 0 auto;
}

.global-header-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  text-align: center;
  padding: 18px 0 2px;
}

.global-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 6vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.global-header h2 em {
  font-style: normal;
  color: var(--um-maize);
}

.brand-tag {
  margin: 8px 0 0;
  color: var(--um-maize);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  font-weight: 700;
}

.header-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.nav-links {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #eef3f8;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
}

.nav-links a.site-link {
  color: var(--um-maize);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
  background: rgba(255,203,5,0.12);
  border-color: rgba(255,203,5,0.24);
  color: #fff;
}

.nav-links a.active {
  background: transparent;
  color: var(--um-maize);
  border-bottom-color: var(--um-maize);
}

/* ================= HEADER ACTIONS =================
   The team search box that used to sit here was removed 2026-08-01.
   Teams are still reachable from the "Research Teams" nav link.
   js/autocomplete.js is kept but no longer imported. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= SUB HEADER ================= */
.sub-header {
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(244,248,252,0.97));
  border-bottom: 1px solid rgba(255, 203, 5, 0.28);
  padding: 12px 5%;
  color: var(--text-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.sub-header:empty {
  display: none;
}

.team-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-logo-badge {
  width: 54px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--um-blue), var(--um-blue-3));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,203,5,0.18);
}

.team-logo-badge img {
  max-height: 30px;
  max-width: 44px;
  width: auto;
  height: auto;
}

.team-identity h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--um-blue);
}

.team-subnav {
  margin-top: 8px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.team-subnav a {
  color: #415166;
  text-decoration: none;
  font-weight: 900;
  font-size: 12.5px;
  padding: 7px 10px;
  border-radius: 999px;
  border-bottom: none;
  background: transparent;
}

.team-subnav a:hover {
  color: var(--um-blue);
  background: rgba(0,39,76,0.06);
}

.team-subnav a.active {
  color: var(--um-blue);
  background: rgba(255,203,5,0.24);
  box-shadow: inset 0 0 0 1px rgba(255,203,5,0.35);
}

/* ================= CONTENT ================= */
.content {
  width: min(1440px, calc(100% - 24px));
  margin: 18px auto 32px auto;
  padding: 0;
}

/* ================= FILTER BAR ================= */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px 0;
  padding: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.filter-bar label {
  font-weight: 800;
  font-size: 12.5px;
  color: rgba(255,255,255,0.96);
}

.filter-bar select {
  padding: 8px 10px;
  font-size: 12.5px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.10);
  color: #fff;
}

.filter-bar option {
  color: #111;
}

.filter-bar select:focus {
  outline: none;
  border-color: rgba(255,203,5,0.55);
}

/* ================= WEEK SELECTOR ================= */
.week-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 10px 0 12px 0;
  scroll-snap-type: x mandatory;
}

.week-chip {
  flex: 0 0 auto;
  min-width: 132px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  padding: 9px 11px;
  cursor: pointer;
  scroll-snap-align: start;
  box-shadow: var(--shadow-md);
  color: #fff;
}

.week-chip:hover {
  border-color: rgba(255,203,5,0.35);
}

.week-chip.active {
  border-color: rgba(255,203,5,0.60);
  background: linear-gradient(180deg, rgba(255,203,5,0.22), rgba(255,203,5,0.14));
}

.week-chip .wk {
  font-weight: 900;
  font-size: 12.5px;
  margin: 0;
  line-height: 1.05;
}

.week-chip .range {
  font-weight: 700;
  font-size: 11.5px;
  color: rgba(255,255,255,0.78);
  margin-top: 4px;
}

/* ================= PAGE TITLES ================= */
.page-title {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 12px 0;
  color: #fff;
  letter-spacing: -0.01em;
}

/* ================= TABLES ================= */
table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  font-size: 12.5px;
  table-layout: fixed;
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

th, td {
  border-top: 1px solid #dbe5f2;
  border-bottom: 1px solid #dbe5f2;
  padding: 7px 8px;
  text-align: left;
  vertical-align: top;
  color: var(--text-dark);
}

th {
  background: linear-gradient(180deg, #12345a, #0f2b49);
  color: #fff;
  font-weight: 900;
}

.no-bottom-border tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background-color: #f3f7fb;
}

.table-stack {
  margin-top: 12px;
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.table-title {
  font-weight: 900;
  color: #fff;
}

/* ================= TEAM SCHEDULE LAYOUT ================= */
.schedule-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 14px;
  align-items: start;
}

@media (max-width: 1100px) {
  .schedule-layout { grid-template-columns: 1fr; }
}

.standings-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-md);
}

.standings-card h3 {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

.standings-card table {
  width: 100%;
  font-size: 12px;
  box-shadow: none;
}

/* ================= NEUTRAL LINKS ================= */
a.neutral-link {
  color: inherit;
  text-decoration: none;
  font-weight: 900;
}

a.neutral-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* ================= TEAMS PAGE ================= */
.conference-block {
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow-md);
}

.conference-title {
  font-size: 17px;
  font-weight: 900;
  margin: 0 0 12px 0;
  color: #fff;
  border-bottom: 1px solid rgba(255,203,5,0.22);
  padding-bottom: 8px;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-card {
  background: linear-gradient(180deg, #ffffff, #f6f9fc);
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 6px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.team-card-logo {
  grid-row: 1 / span 2;
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card-logo img {
  max-height: 46px;
  width: auto;
  max-width: 56px;
}

.team-card-name {
  font-weight: 900;
  color: var(--um-blue);
  text-decoration: none;
}

.team-card-name:hover {
  text-decoration: underline;
}

.team-card-links {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  flex-wrap: wrap;
}

.team-card-links a {
  color: #495a70;
  text-decoration: none;
  font-weight: 800;
}

.team-card-links a:hover {
  color: var(--um-blue);
  text-decoration: underline;
}

/* ======== Main Schedule Page ======== */
.date-header {
  margin: 14px 0 8px 0;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
}

.matchup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.matchup .at {
  color: #7f8fa7;
  font-weight: 900;
}

.weather-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stadicon {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.location-text {
  font-size: 12px;
  color: #4f6279;
}

/* ================= GENERIC CARDS ================= */
.card,
.section-card,
.panel-card {
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  border: 1px solid #dbe5f2;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .content {
    width: min(100% - 20px, 1440px);
    margin-top: 14px;
  }

  .input-wrapper {
    width: 200px;
  }

  table {
    font-size: 12px;
  }

  th, td {
    padding: 6px 6px;
  }
}

@media (max-width: 600px) {
  .content {
    width: calc(100% - 16px);
  }

  .filter-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  table {
    font-size: 11px;
  }

  th, td {
    padding: 5px 5px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}