/* Match reports use the lobby's Barlow type and olive/amber palette. */
.match-list { display: grid; gap: 16px; }
.match-card { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.match-card summary { display: flex; align-items: center; gap: 18px; padding: 20px 24px; cursor: pointer; list-style: none; min-height: 88px; }
.match-card summary::-webkit-details-marker { display: none; }
.match-card summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -4px; }
.match-card summary:hover { background: #ffffff04; }
.match-map-image { width: 72px; height: 72px; object-fit: contain; background: var(--navy); border: 1px solid var(--line); border-radius: 3px; flex-shrink: 0; filter: saturate(.45) sepia(.35); }
.match-heading { min-width: 0; flex: 1; }
.match-heading h2 { font: 700 30px/1.2 var(--display); margin: 0 0 5px; overflow-wrap: anywhere; }
.match-heading time, .match-heading p { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin: 0; }
.match-rounds { display: flex; align-items: center; gap: 10px; color: var(--muted); white-space: nowrap; }
.match-rounds span { display: grid; gap: 3px; text-align: center; font-size: 11px; }
.match-rounds strong { font: 700 32px/1 var(--display); color: var(--text); }
.match-rounds span:first-child strong { color: #a9c7d5; }
.match-rounds span:last-child strong { color: #e7bd73; }
.match-toggle { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); transform: rotate(90deg); }
.match-card[open] .match-toggle { transform: rotate(-90deg); }
.match-body { border-top: 1px solid var(--line); padding: 0 24px 18px; }
.match-table { border-collapse: collapse; width: 100%; table-layout: fixed; font-variant-numeric: tabular-nums; }
.match-table th, .match-table td { padding: 13px 8px; border-bottom: 1px solid #ffffff0b; text-align: left; }
.match-table th { font-size: 11px; font-weight: 400; color: var(--muted); }
.match-table th:first-child, .match-table td:first-child { width: 38px; padding-left: 0; color: var(--muted); }
.match-table .match-combat { width: 80px; text-align: right; }
.match-table th:last-child, .match-table td:last-child { padding-right: 0; }
.match-table td.match-combat { font: 700 27px/1 var(--display); color: var(--sand); }
.match-player-name { display: block; font-size: 15px; overflow-wrap: anywhere; }
/* The schedule cards' padded name rule also loads here; in result tables the name lines up with its team line. */
.match-table .match-player-name { padding: 0; }
.match-table .match-player-identity { width: 100%; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.match-table .match-player-identity:disabled { cursor: default; opacity: 1; }
.match-table .match-player-identity:hover:not(:disabled) .match-player-name { color: var(--sand); text-decoration: underline; text-underline-offset: 3px; }
.match-table .match-player-identity:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; border-radius: 2px; }
.match-player-meta { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; line-height: 1.4; }
.match-body .stats-footnote { margin: 14px 0 0; line-height: 1.6; }
.match-mvp-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 7px; padding: 4px 9px; border: 1px solid #69603b; border-radius: 3px; background: var(--sand-light); color: var(--sand); font-size: 12px; line-height: 1.4; }
.match-mvp-chip span { min-width: 0; overflow-wrap: anywhere; }
.match-mvp-chip svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; }
.match-table tr.match-mvp td, .match-table tr.match-mvp th { background: #e9ad450d; }
.match-table td.match-impact { color: var(--text); }
.match-report { margin-top: 22px; }
.match-report-title { margin: 0 0 8px; font: 700 20px/1.2 var(--display); }
.match-report-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.match-report-scroll:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.match-report-table { border-collapse: collapse; width: 100%; min-width: 480px; font-variant-numeric: tabular-nums; font-size: 14px; }
.match-report-table th, .match-report-table td { padding: 10px 8px; border-bottom: 1px solid #ffffff0b; text-align: right; white-space: nowrap; }
.match-report-table thead th { font-size: 11px; font-weight: 400; color: var(--muted); }
.match-report-table th:first-child { text-align: left; padding-left: 0; font-weight: 500; white-space: normal; overflow-wrap: anywhere; min-width: 110px; }
.match-report-table th:last-child, .match-report-table td:last-child { padding-right: 0; }
.matches-pagination { display: flex; justify-content: center; margin: 22px 0; }
/* Keep all six destinations reachable without narrowing touch targets. */
@media (min-width: 701px) and (max-width: 1240px) {
  .public-shell .sidebar { flex-wrap: wrap; gap: 0 18px; padding-top: 14px; }
  .public-shell .sidebar nav { order: 3; width: 100%; height: 60px; justify-content: center; }
  .public-shell .sidebar-bottom { margin-left: auto; }
}
@media (max-width: 700px) {
  .public-shell .sidebar nav { grid-template-columns: repeat(3,minmax(0,1fr)); height: auto; }
  .public-shell .sidebar .nav-button { flex-direction: row; min-height: 48px; padding: 8px 4px; gap: 6px; font-size: 11px; }
  .match-card summary { gap: 10px; padding: 16px; flex-wrap: wrap; }
  .match-map-image { width: 52px; height: 52px; }
  .match-heading { flex-basis: calc(100% - 90px); }
  .match-heading h2 { font-size: 27px; }
  .match-heading time, .match-heading p { font-size: 11px; }
  .match-rounds { margin-left: 62px; gap: 12px; }
  .match-rounds span { display: flex; align-items: baseline; gap: 6px; }
  .match-rounds strong { font-size: 25px; }
  .match-toggle { margin-left: auto; }
  .match-body { padding-inline: 16px; }
  .match-table th:first-child, .match-table td:first-child { width: 26px; }
  .match-table .match-combat { width: 46px; padding-left: 4px; padding-right: 4px; }
  .match-table th.match-combat { font-size: 10px; }
  .match-table td.match-combat { font-size: 22px; }
  .match-report-table { min-width: 0; font-size: 12px; }
  .match-report-table th, .match-report-table td { padding: 9px 3px; white-space: normal; }
  .match-report-table thead th { font-size: 10px; line-height: 1.3; vertical-align: bottom; }
  .match-report-table th:first-child { min-width: 0; width: 34%; }
}
@media (max-width: 420px) {
  .match-table th:first-child, .match-table td:first-child { width: 18px; }
  .match-table .match-combat { width: 38px; padding-left: 2px; padding-right: 2px; }
  .match-table td.match-combat { font-size: 20px; }
  .match-table th.match-combat { font-size: 9px; }
}
