.match-count-body { min-height: 100vh; }
.match-count-topbar { min-height: 126px; }
.match-count-topbar h1 { max-width: 760px; }
.match-count-page { width: min(1380px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 72px; }
.match-intro { margin-top: 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .8fr); gap: 30px; align-items: center; }
.match-intro h2 { margin: 4px 0 10px; font-family: Georgia, serif; font-size: clamp(25px, 3vw, 37px); font-weight: 500; line-height: 1.18; }
.match-intro p:last-child { margin: 0; color: var(--muted); }
.match-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.match-summary-card { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #f7f6f1; }
.match-summary-card span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.match-summary-card strong { display: block; margin-top: 3px; font-size: 24px; font-variant-numeric: tabular-nums; }
.match-controls { display: grid; grid-template-columns: minmax(210px, .9fr) minmax(180px, .7fr) minmax(260px, 1.25fr) minmax(170px, .65fr) minmax(170px, .65fr); gap: 12px; position: sticky; top: 0; z-index: 5; background: rgba(255,254,249,.96); backdrop-filter: blur(12px); }
.match-controls label { color: #53605a; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.match-controls select, .match-controls input { width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid #cfd3cc; border-radius: 9px; color: var(--ink); background: white; outline: none; font-size: 13px; text-transform: none; letter-spacing: normal; }
.match-controls select:focus, .match-controls input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,115,74,.1); }
.match-visible-summary { margin: 17px 2px 9px; color: var(--muted); font-size: 13px; }
.match-paper-sections { display: grid; gap: 18px; }
.match-paper-card { padding: 0; overflow: hidden; }
.match-paper-header { padding: 21px 23px; display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; color: white; background: linear-gradient(125deg, #173529, #295943); }
.match-paper-header h2 { margin: 4px 0 5px; font-family: Georgia, serif; font-size: 26px; font-weight: 500; line-height: 1.2; }
.match-paper-header .eyebrow { color: #9fd5bb; }
.match-paper-header p:last-child { margin: 0; color: #c9dcd3; font-size: 12px; }
.match-paper-links { display: flex; gap: 7px; flex: none; }
.match-paper-stat { margin-top: 5px; color: #d7e8df; font-size: 12px; text-align: right; white-space: nowrap; }
.match-issue-list { display: grid; }
.match-issue-row { min-height: 94px; padding: 15px 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 42px minmax(0, 1fr) 148px; gap: 14px; align-items: center; background: white; }
.match-issue-row:first-child { border-top: 0; }
.match-issue-row.covered { background: linear-gradient(90deg, rgba(226,243,233,.66), #fff 38%); }
.match-issue-row.uncovered { background: linear-gradient(90deg, rgba(249,233,229,.72), #fff 38%); }
.match-issue-number { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #65706a; background: #eceeea; font-size: 11px; font-weight: 800; }
.match-issue-row.covered .match-issue-number { color: #0e613c; background: #d8eee2; }
.match-issue-row.uncovered .match-issue-number { color: #8c3a31; background: #f5dfda; }
.match-issue-text h3 { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.45; }
.match-issue-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.match-count { padding: 11px 13px; border-radius: 10px; text-align: right; background: #eff1ed; }
.match-count strong { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.match-count span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.match-count.covered { color: #0e613c; background: var(--green-soft); }
.match-count.uncovered { color: var(--red); background: var(--red-soft); }
.match-no-results { padding: 35px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: var(--card); text-align: center; }

@media (max-width: 980px) {
  .match-count-topbar { align-items: flex-start; flex-direction: column; }
  .site-nav { flex-wrap: wrap; }
  .match-intro { grid-template-columns: 1fr; }
  .match-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .match-count-page { width: min(100% - 18px, 1380px); padding-top: 10px; }
  .match-controls { position: static; grid-template-columns: 1fr; }
  .match-paper-header { display: grid; }
  .match-paper-stat { text-align: left; }
  .match-issue-row { grid-template-columns: 34px minmax(0, 1fr); }
  .match-count { grid-column: 2; text-align: left; }
}
