:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --surface: #fff;
  --ink: #151a17;
  --muted: #5f6862;
  --line: #d8ded6;
  --green: #205b41;
  --red: #a32535;
  --blue: #255f86;
}
* { box-sizing: border-box; letter-spacing: 0; }
body.archive-page { margin: 0; padding-bottom: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, select { font: inherit; }
.archive-main a { color: var(--green); text-underline-offset: 3px; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 5; padding: 10px; background: white; }
.skip-link:focus { top: 10px; }
.current-link { white-space: nowrap; font-weight: 600; text-decoration: none; }
.archive-main { max-width: 1328px; margin: auto; padding: 34px 24px 24px; }
.archive-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 750; text-transform: uppercase; margin: 0 0 4px; }
h1 { font-size: 34px; line-height: 1.2; margin: 0; }
.archive-range { color: var(--muted); font-variant-numeric: tabular-nums; }
.filters { display: grid; grid-template-columns: 144px 140px minmax(170px, 1fr) minmax(240px, 1.5fr) auto; align-items: end; gap: 16px; margin: 28px 0 0; padding: 20px 0; border-block: 1px solid var(--line); }
.filters label { min-width: 0; display: grid; gap: 7px; font-size: 12px; font-weight: 700; color: var(--muted); }
select { display: block; width: 100%; min-width: 0; height: 44px; border: 1px solid #bcc7be; border-radius: 4px; padding: 0 30px 0 12px; color: var(--ink); background: var(--surface); font-size: 15px; text-overflow: ellipsis; }
.reset { height: 44px; border: 0; background: transparent; color: var(--muted); font-size: 13px; padding: 0 4px; }
.reset:hover { color: var(--ink); text-decoration: underline; }
.season-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px 0 24px; }
.season-summary div { border-right: 1px solid var(--line); }
.season-summary div:last-child { border: 0; }
.season-summary span { display: block; color: var(--muted); font-size: 12px; }
.season-summary strong { display: block; font-size: 23px; line-height: 1.3; margin-top: 5px; font-variant-numeric: tabular-nums; }
.notice { padding: 12px 16px; background: #fff5e3; color: #684d13; border-left: 3px solid #bc872d; font-size: 13px; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; min-height: 50px; padding: 10px 0; border: 0; background: transparent; font-size: 14px; font-weight: 650; color: var(--muted); }
.tabs button[aria-pressed="true"] { color: var(--green); box-shadow: inset 0 -3px var(--green); }
.section-heading { padding: 24px 0 18px; }
h2 { margin: 0; font-size: 21px; line-height: 1.3; overflow-wrap: anywhere; }
.section-heading > span { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.table-wrap { width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { background: #edf1ed; color: var(--muted); text-align: left; font-weight: 650; font-size: 11px; text-transform: uppercase; white-space: nowrap; }
th, td { border-bottom: 1px solid var(--line); padding: 14px 16px; }
td { vertical-align: middle; }
td.numeric, th.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.team-link { font-weight: 700; text-decoration: none; }
.team-link:hover { text-decoration: underline; }
.team-status { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.competition-kind { display: block; margin-top: 4px; font-size: 11px; font-weight: 650; color: var(--green); }
.league-cell { color: var(--muted); max-width: 400px; }
.is-mtv { background: #eaf5ee; }
.is-selected { background: #e3f3e9; font-weight: 700; color: #205b41; }
.standing-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.club-mark { display: block; width: 32px; height: 32px; object-fit: contain; flex: 0 0 32px; }
.club-name { min-width: 0; overflow-wrap: anywhere; }
.standings-table tbody tr:last-child td { border-bottom: 0; }
.subheading { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.subheading a { white-space: nowrap; }
.match-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.match { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.match-date { color: var(--muted); font-size: 14px; font-weight: 780; font-variant-numeric: tabular-nums; }
.match-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.match-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; }
.match-team.mtv { font-weight: 650; }
.match-guest { justify-content: flex-end; text-align: right; }
.match-score { display: block; min-width: 46px; text-align: center; font-size: 18px; font-weight: 780; font-variant-numeric: tabular-nums; color: var(--green); text-decoration: none; }
a.match-score:hover { text-decoration: underline; }
.match-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; color: var(--muted); font-size: 13px; font-weight: 700; }
.match-meta > span { min-width: 0; overflow-wrap: anywhere; }
.match-meta > span:last-child { text-align: right; }
.match-context { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.profile-matches-table .standing-team + .standing-team { margin-top: 8px; }
.profile-matches-table .fixture-score { color: var(--green); font-weight: 780; }
.empty { color: var(--muted); padding: 40px 0; }
.player-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.player-toolbar p, .player-note { margin: 0; color: var(--muted); font-size: 12px; }
.player-toolbar label { display: grid; gap: 6px; min-width: 170px; color: var(--muted); font-size: 12px; }
.player-note { margin-top: 14px; }
.players-table { min-width: 960px; table-layout: fixed; }
.players-table th:first-child { width: 160px; }
.players-table th.numeric { width: 85px; }
.players-table th:nth-child(2), .players-table th:nth-child(3) { width: 66px; }
.players-table td:first-child { font-weight: 600; overflow-wrap: anywhere; }
.players-table td:last-child { overflow-wrap: anywhere; }
.player-context { display: block; margin: 3px 0; color: var(--muted); font-size: 11px; }
.players-table a { display: inline-block; font-size: 11px; margin-right: 10px; }
.roster-section { margin-top: 28px; }
.roster-section h3 { margin: 0 0 12px; font-size: 16px; }
.roster-section .subheading { flex-wrap: wrap; }
.roster-section .subheading a { white-space: normal; overflow-wrap: anywhere; }
.roster-table { table-layout: fixed; }
.roster-table th:first-child { width: 55%; }
.roster-table th:nth-child(2) { width: 15%; }
.roster-table td { overflow-wrap: anywhere; }
.archive-navigation { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px 24px; margin: 10px 0 0; }
.profile-back { display: inline-block; margin-bottom: 24px; font-size: 13px; }
.profile-heading h1 { overflow-wrap: anywhere; }
.profile-context { margin: 12px 0 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.profile-filters { display: flex; align-items: flex-end; gap: 16px; padding: 20px 0; border-block: 1px solid var(--line); margin: 24px 0; }
.profile-filters label { display: grid; gap: 7px; flex: 1; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 650; }
.profile-filters input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.profile-filters select { min-height: 44px; }
.profile-link, .players-table .profile-link { color: var(--green); font-size: inherit; font-weight: 650; text-underline-offset: 3px; }
.profile-stats-table { min-width: 1100px; table-layout: fixed; }
.profile-stats-table th:first-child { width: 180px; }
.profile-stats-table th.numeric { width: 82px; }
.profile-stats-table th:nth-child(2), .profile-stats-table th:nth-child(3), .profile-stats-table th:nth-child(4) { width: 66px; }
.profile-stats-table td, .profile-directory-table td, .profile-matches-table td, .profile-rosters-table td { overflow-wrap: anywhere; }
.profile-stats-table td:last-child a { display: inline-block; margin-right: 10px; font-size: 11px; }
.profile-matches-table { min-width: 960px; }
.profile-matches-table td:first-child { max-width: 200px; }
.profile-rosters-table { min-width: 800px; }
.profile-rosters-table td:last-child { max-width: 260px; }
.profile-directory-table { table-layout: fixed; }
.profile-directory-table th:first-child { width: 28%; }
.profile-directory-table th:nth-child(2) { width: 22%; }
.profile-directory-table th:nth-child(3) { width: 30%; }
.archive-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 1100px) {
  .filters { grid-template-columns: 140px minmax(0, 1fr); }
  .filters label:nth-child(3) { grid-column: 1 / -1; }
  .filters label:nth-child(4) { grid-column: 1 / -1; }
  .reset { grid-column: 2; height: 24px; justify-self: end; }
  .overview-table .goals, .overview-table .played { display: none; }
  th, td { padding: 12px; }
}
@media (max-width: 900px) {
  .match-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .current-link { font-size: 12px; }
  .archive-main { padding: 25px 18px 20px; }
  h1 { font-size: 28px; }
  .eyebrow { font-size: 10px; }
  .archive-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .archive-range { margin: 3px 0 0; font-size: 13px; }
  .filters { gap: 12px; margin-top: 20px; grid-template-columns: 138px minmax(0, 1fr); }
  .season-summary { gap: 12px; grid-template-columns: repeat(2, 1fr); }
  .season-summary div:nth-child(2) { border: 0; }
  .season-summary strong { font-size: 20px; }
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .tabs button { font-size: 12px; }
  .section-heading { gap: 12px; }
  h2 { font-size: 19px; }
  .section-heading > span { font-size: 11px; }
  .overview-table th, .overview-table td { padding: 13px 8px; }
  .overview-table th:nth-child(2), .overview-table td:nth-child(2) { max-width: 150px; font-size: 11px; }
  .overview-table .points { display: none; }
  .overview-table .team-link { font-size: 12px; }
  .standings-table { table-layout: fixed; }
  .standings-table th, .standings-table td { padding: 12px 6px; font-size: 12px; }
  .standings-table th { font-size: 10px; }
  .standings-table th:first-child { width: 28px; }
  .standings-table th:nth-child(3) { width: 30px; }
  .standings-table th:nth-child(7) { width: 48px; }
  .standings-table th:nth-child(8) { width: 40px; }
  .standings-table th:nth-child(4), .standings-table td:nth-child(4),
  .standings-table th:nth-child(5), .standings-table td:nth-child(5),
  .standings-table th:nth-child(6), .standings-table td:nth-child(6) { display: none; }
  .standing-team { gap: 6px; }
  .club-mark { width: 26px; height: 26px; flex-basis: 26px; }
  .subheading { flex-direction: column; gap: 7px; }
  .match { gap: 12px; padding: 14px 12px; }
  .match-date { font-size: 13px; }
  .match-teams { gap: 8px; }
  .match-team { font-size: 13px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .match-guest { align-items: flex-end; }
  .match-team .club-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .match-score { font-size: 17px; }
  .match-meta, .match-context { font-size: 11px; }
  .archive-footer { flex-direction: column; }
  .player-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .roster-table th:first-child { width: 48%; }
  .roster-table th:nth-child(2) { width: 16%; }
  .roster-table th, .roster-table td { padding: 12px 8px; }
  .archive-navigation { flex-direction: column; align-items: flex-end; gap: 8px; }
  .profile-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #profile-search-label { grid-column: 1 / -1; }
  .profile-filters .reset { grid-column: 1 / -1; }
  .profile-directory-table th, .profile-directory-table td { padding: 12px 8px; }
  .profile-directory-table th:nth-child(3), .profile-directory-table td:nth-child(3) { display: none; }
  .profile-directory-table th:first-child { width: 43%; }
  .profile-directory-table th:nth-child(2) { width: 29%; }
  #profile-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
}
@media (max-width: 380px) {
  .filters { grid-template-columns: minmax(0, 1fr); }
  .filters label:nth-child(3), .filters label:nth-child(4), .reset { grid-column: 1; }
  .tabs { gap: 0 14px; }
  .tabs button { font-size: 11px; }
}
@media print {
  body { background: white; }
  .filters, .tabs, .current-link, .skip-link { display: none; }
  .archive-main { padding: 12px 0; }
  .match, tr { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  .standings-table { min-width: 0; }
}

.archive-page { --mtv-hero-image: url("site-hero.jpg"); }
.archive-page .page-hero .eyebrow,
.archive-page .page-hero .archive-range,
.archive-page .page-hero .profile-context { color: #fff; }
.archive-page .page-hero .archive-heading { flex-wrap: wrap; }

/* Match the site's opaque content cards while keeping its configurable background visible. */
.mtv-page-design .archive-main { padding-top: clamp(30px, 5vw, 58px); }
.mtv-page-design .archive-controls,
.mtv-page-design .season-summary,
.mtv-page-design .archive-results,
.mtv-page-design .archive-footer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(16px, 2vw, 24px);
}
.mtv-page-design .archive-controls .archive-navigation { margin-top: 0; }
.mtv-page-design .archive-controls .filters,
.mtv-page-design .archive-controls .profile-filters {
  margin: 18px 0 0;
  padding: 18px 0 0;
  border-bottom: 0;
}
.mtv-page-design .archive-controls .profile-back { margin: 12px 0 0; }
.mtv-page-design .season-summary { margin: 20px 0; }
.mtv-page-design .archive-results { margin-top: 20px; }
.mtv-page-design .archive-footer { margin-top: 20px; }
