.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-color: transparent;
  min-height: 210px;
  display: flex;
  align-items: end;
  background:
    linear-gradient(200deg, rgba(16, 18, 20, 0.55) 0%, rgba(20, 22, 24, 0.6) 55%, rgba(14, 16, 18, 0.72) 100%),
    url("/static/img/course-hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero h2 {
  margin: 0;
  font-size: 1.2rem;
}

.hero p {
  margin: 0.35rem 0 0;
  color: rgba(245, 249, 255, 0.95);
  font-size: 0.96rem;
}

.matchup-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.matchup-list li {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.matchup-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  min-height: 46px;
  padding: 0.56rem 0;
  text-decoration: none;
  color: inherit;
}

.matchup-link:hover .home-team,
.matchup-link:hover .away-team {
  text-decoration: underline;
}

.home-team,
.away-team {
  overflow-wrap: anywhere;
}

.away-team {
  text-align: right;
}

.vs-pill {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: #3b3f45;
  border-radius: 999px;
  padding: 0.14rem 0.36rem;
}

.week-chips {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.6rem;
  margin-bottom: 0.4rem;
}

.week-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.week-chip.is-active {
  background: #eceff4;
  border-color: #8d97a3;
}

.schedule-week-panel {
  scroll-margin-top: 110px;
}

.schedule-week-details {
  margin-bottom: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.schedule-week-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 0.85rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-weight: 800;
}

.schedule-week-details > summary::-webkit-details-marker {
  display: none;
}

.schedule-week-title {
  overflow-wrap: anywhere;
}

.schedule-week-state {
  flex-shrink: 0;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
}

.schedule-week-state .when-open {
  display: none;
}

.schedule-week-details[open] .schedule-week-state .when-open {
  display: inline;
}

.schedule-week-details[open] .schedule-week-state .when-closed {
  display: none;
}

.schedule-week-body {
  padding: 0 0.85rem 0.75rem;
}

.headtohead-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.headtohead-list li {
  border-bottom: 1px solid var(--line);
  padding: 0.62rem 0;
}

.h2h-level {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--red);
}

.h2h-side {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.2rem 0;
}

.h2h-name {
  margin: 0;
  overflow-wrap: anywhere;
}

.scheduled-strike {
  text-decoration: line-through;
  color: var(--muted);
}

.sub-arrow {
  margin: 0 0.25rem;
  color: var(--muted);
}

.sub-name {
  color: var(--red);
  font-weight: 700;
}

.h2h-side p {
  margin: 0;
}

.h2h-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.h2h-scoreline {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.h2h-tie-center {
  display: flex;
  justify-content: center;
  margin: 0.1rem 0 0.25rem;
}

.leaderboard-list {
  list-style: decimal;
  margin: 0;
  padding: 0 0 0 1.2rem;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "main metric"
    "sub metric";
  gap: 0.2rem 0.5rem;
  border-bottom: 1px solid var(--line);
  padding: 0.46rem 0;
}

.leader-main {
  grid-area: main;
  overflow-wrap: anywhere;
}

.leader-sub {
  grid-area: sub;
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.leader-metric {
  grid-area: metric;
  align-self: center;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

.weekly-sheet-card {
  padding: 0.55rem;
}

.weekly-sheet-card-list {
  gap: var(--card-stack-gap-mobile);
}

.weekly-sheet-card .info-card-header {
  margin-bottom: 0.18rem;
}

.weekly-sheet-card .info-card-sub {
  margin-bottom: 0.14rem;
}

.weekly-sheet-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.22rem 0.42rem;
}

.weekly-sheet-metrics .metric-label {
  font-size: 0.85rem;
}

.weekly-sheet-metrics .metric-value {
  font-size: 0.94rem;
}

@media (min-width: 700px) {
  .hero {
    min-height: 300px;
    background-position: center;
  }

  .hero h2 {
    font-size: 1.58rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .weekly-sheet-card {
    padding: 0.7rem;
  }

  .weekly-sheet-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.28rem 0.5rem;
  }

  .weekly-sheet-metrics .metric-label {
    font-size: 0.85rem;
  }

  .weekly-sheet-metrics .metric-value {
    font-size: 0.94rem;
  }
}
