:root {
  font-family: "Open Sans", Arial, sans-serif;
  color: #182236;
  background: #eef3f8;
  font-synthesis: none;
  --navy: #14234b;
  --blue: #2154a3;
  --sky: #64b5e6;
  --teal: #1f8a80;
  --gold: #f0a92e;
  --red: #d55a4b;
  --ink: #182236;
  --muted: #627087;
  --line: #dce3ec;
  --soft: #f4f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background: #eef3f8;
  color: var(--ink);
}

button, input, select { font: inherit; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Domine", Georgia, serif; }
p { line-height: 1.65; }

.site-header { padding: 12px 4vw 18px; background: #1e2d5c; color: #fff; text-align: center; }
.logo-row { display: flex; align-items: center; justify-content: space-around; max-width: 1160px; margin: auto; }
.logo-row img { width: 28%; max-width: 140px; height: 82px; object-fit: contain; }
.site-title { display: inline-block; margin-top: 8px; color: #fff; font-family: "Domine", Georgia, serif; font-size: 1.45rem; font-weight: 700; text-decoration: none; }

.summary-main { width: min(calc(100% - 32px), 1180px); margin: 0 auto; padding: 32px 0 56px; }
.summary-hero { position: relative; overflow: hidden; padding: clamp(32px, 7vw, 68px); border-radius: 24px; background: radial-gradient(circle at 87% 16%, rgba(100,181,230,.35), transparent 27%), linear-gradient(135deg,#14234b 0%,#1e3d72 62%,#2154a3 100%); box-shadow: 0 20px 50px rgba(20,35,75,.18); color: #fff; }
.summary-hero::after { position: absolute; right: -50px; bottom: -80px; width: 260px; height: 260px; border: 40px solid rgba(255,255,255,.07); border-radius: 50%; content: ""; }
.summary-hero > * { position: relative; z-index: 1; }
.summary-kicker, .eyebrow { margin: 0 0 12px; color: #bfe7ff; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.summary-hero h1 { max-width: 780px; margin: 0; color: #fff; font-size: clamp(2.45rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -.045em; }
.summary-hero-copy { max-width: 760px; margin: 18px 0 0; color: #dcecff; font-size: clamp(1rem, 2vw, 1.15rem); }
.summary-freshness { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.09); color: #fff; font-size: .82rem; }
.summary-freshness::before { width: 8px; height: 8px; border-radius: 50%; background: #6fe1a9; box-shadow: 0 0 0 4px rgba(111,225,169,.16); content: ""; }
.summary-source-disclaimer { display: block; width: fit-content; margin: 12px 0 0; padding: 7px 11px; border-radius: 7px; background: rgba(255,255,255,.94); color: var(--navy); font-size: .78rem; font-weight: 800; text-decoration: none; }

.summary-stat-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; width: calc(100% - 56px); margin: -38px auto 0; }
.match-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
.stat-card { min-height: 154px; padding: 24px; border: 1px solid rgba(20,35,75,.1); border-radius: 16px; background: #fff; box-shadow: 0 12px 28px rgba(20,35,75,.08); }
.stat-card strong { display: block; color: var(--navy); font-family: "Domine", Georgia, serif; font-size: clamp(2rem,4vw,3rem); line-height: 1; }
.stat-card span { display: block; margin-top: 12px; font-weight: 800; }
.stat-card small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.45; }

.summary-section { margin-top: 54px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 20px; }
.section-heading h2, .data-panel h2 { margin: 0; color: var(--ink); font-size: clamp(1.85rem,4vw,2.65rem); line-height: 1.15; }
.section-heading p:not(.eyebrow), .data-panel > p { max-width: 760px; margin: 8px 0 0; color: var(--muted); }
.section-heading .eyebrow, .data-panel .eyebrow { color: var(--blue); }

.review-list { display: grid; gap: 20px; }
.game-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(20,35,75,.07); }
.game-card-topline { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 14px 24px; background: var(--navy); color: #fff; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.game-card-topline time { margin-left: auto; color: #dcecff; }
.game-card-body { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 32px; padding: 28px; }
.game-card h3 { margin: 0; font-size: clamp(1.55rem,3vw,2.25rem); }
.game-card p { color: var(--muted); }
.game-card .game-score { color: var(--ink); font-weight: 800; }
.umpire-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.umpire-tags span { padding: 7px 10px; border-radius: 999px; background: #eaf1fb; color: var(--blue); font-weight: 800; }
.game-quick-stats { display: grid; grid-template-columns: repeat(3,1fr); align-self: start; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.game-quick-stats div { padding: 14px 8px; text-align: center; }
.game-quick-stats dt { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.game-quick-stats dd { margin: 5px 0 0; color: var(--navy); font-family: "Domine",Georgia,serif; font-size: 1.7rem; font-weight: 700; }
.primary-link { display: flex; justify-content: center; padding: 15px 22px; background: var(--blue); color: #fff; font-weight: 800; text-decoration: none; }
.primary-link:hover, .primary-link:focus-visible { background: var(--navy); }

.back-link { display: inline-block; margin-bottom: 18px; color: var(--blue); font-weight: 800; text-decoration: none; }
.hero-score { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 0; color: #fff; font-size: clamp(1.15rem,2.4vw,1.7rem); }
.hero-score span { color: #bfe7ff; }
.source-link:hover, .source-link:focus-visible { text-decoration: underline; }
.finding-card, .data-panel { padding: clamp(24px,4vw,38px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(20,35,75,.07); }
.finding-card { border-left: 5px solid var(--blue); }
.finding-card p:first-child { margin-top: 0; }
.finding-card p:last-child { margin-bottom: 0; }
.review-notice { margin: 0 0 20px; padding: 16px 18px; border: 1px solid #e2c36d; border-left: 5px solid var(--gold); border-radius: 12px; background: #fff8e6; color: #5f4a13; line-height: 1.6; }
.identification-disclaimer { position: relative; z-index: 1; width: calc(100% - 56px); margin: 24px auto 0; }

.umpire-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.umpire-card { position: relative; overflow: hidden; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 12px 28px rgba(20,35,75,.07); }
.umpire-card::before { position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--blue); content: ""; }
.umpire-card:nth-child(2)::before { background: var(--teal); }
.umpire-card:nth-child(3)::before { background: var(--gold); }
.umpire-card .eyebrow { color: var(--muted); }
.umpire-card h3 { margin: 0 0 16px; font-size: 1.5rem; }
.large-number { display: block; color: var(--navy); font-family: "Domine",Georgia,serif; font-size: 3.4rem; line-height: 1; }
.metric-label { color: var(--muted); }
.split-bar { display: flex; overflow: hidden; height: 32px; margin-top: 22px; border-radius: 8px; color: #fff; font-weight: 800; }
.split-bar span { display: flex; align-items: center; justify-content: center; min-width: 28px; }
.split-bar .east { background: #c9423f; }.split-bar .werribee { background: #268254; }
.bar-legend { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: .74rem; }
.mini-metrics { display: grid; grid-template-columns: repeat(3,1fr); margin: 22px 0 0; border-top: 1px solid var(--line); }
.mini-metrics div { padding-top: 14px; }
.mini-metrics dt { color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.mini-metrics dd { margin: 4px 0 0; font-weight: 800; }

.two-column-section { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(320px,.65fr); gap: 20px; min-width: 0; }
.data-panel { min-width: 0; }
.data-panel h2 { font-size: 2rem; }
.zone-chart { margin-top: 26px; }
.zone-row { display: grid; grid-template-columns: 68px minmax(0,1fr) 150px; gap: 12px; align-items: center; margin: 13px 0; }
.zone-row > strong { font-size: .86rem; }.zone-row > small { color: var(--muted); text-align: right; }
.zone-bar { display: flex; overflow: hidden; min-width: 0; height: 34px; border-radius: 8px; color: #fff; font-size: .73rem; font-weight: 800; }
.zone-bar span { display: flex; align-items: center; justify-content: center; min-width: 28px; }
.zone-bar .mid { background: #e2a929; }.zone-bar .end { background: #315c93; }
.zone-legend { display: flex; gap: 18px; justify-content: center; margin-top: 16px; color: var(--muted); font-size: .8rem; }
.zone-legend span { display: flex; align-items: center; gap: 6px; }.zone-legend i { width: 10px; height: 10px; border-radius: 2px; }.mid-key { background: #e2a929; }.end-key { background: #315c93; }
.ballup-total { margin-top: 24px; padding: 22px; border-radius: 12px; background: #eaf1fb; text-align: center; }
.ballup-total strong { display: block; color: var(--navy); font-family: "Domine",Georgia,serif; font-size: 3rem; }.ballup-total span { color: var(--muted); font-weight: 700; }

.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(20,35,75,.05); }
.data-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.data-table th { padding: 14px 16px; background: var(--navy); color: #fff; font-size: .72rem; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:nth-child(even) { background: var(--soft); }
.data-table td:not(:first-child) { font-variant-numeric: tabular-nums; }
.compact-table { margin-top: 24px; }.compact-table .data-table { min-width: 440px; }
.decision-table { min-width: 1460px; font-size: .85rem; }.decision-table th:nth-child(9),.decision-table td:nth-child(9) { min-width: 320px; }
.decision-table a { font-weight: 800; }
.law-reference { white-space: nowrap; }
.identity-basis { display: block; width: fit-content; margin-top: 5px; padding: 3px 6px; border-radius: 5px; font-size: .62rem; font-weight: 800; line-height: 1.2; text-transform: uppercase; white-space: nowrap; }
.identity-basis.visual { background: #e0f3e8; color: #17633f; }
.identity-basis.rotation { background: #fff0c9; color: #7a5311; }
.status { display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.status.supported { background: #e0f3e8; color: #17633f; }.status.visioninconclusive { background: #fff0c9; color: #7a5311; }.status.inconclusive { background: #e8edf4; color: #4c5b71; }
.status.unsupported, .status.possiblemissed { background: #f8dfdc; color: #8a2f27; }

.replay-panel h1 { margin: 0; color: var(--ink); font-size: clamp(2rem,5vw,3.5rem); }
.replay-panel { min-width: 0; overflow: hidden; }
.replay-panel video { display: block; width: 100%; max-width: 100%; height: auto; margin-top: 22px; border-radius: 12px; background: #080b10; aspect-ratio: 16 / 9; }

.ledger-controls { display: grid; grid-template-columns: 140px 160px 200px minmax(220px,1fr); gap: 12px; margin-bottom: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ledger-controls label { display: grid; gap: 6px; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.ledger-controls input,.ledger-controls select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #bdc8d7; border-radius: 8px; background: #fff; color: var(--ink); text-transform: none; }
.ledger-controls input:focus,.ledger-controls select:focus { outline: 3px solid rgba(33,84,163,.18); border-color: var(--blue); }
.result-count { margin: 10px 0 12px; color: var(--muted); font-size: .84rem; }
.methodology details { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.methodology summary { padding: 18px 22px; color: var(--navy); font-weight: 800; cursor: pointer; }
.methodology details div { padding: 0 22px 20px; color: var(--muted); }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 26px max(4vw,16px); background: #1e2d5c; color: #fff; }
.site-footer span { color: #dcecff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 920px) {
  .match-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .umpire-card-grid { grid-template-columns: 1fr; }
  .two-column-section { grid-template-columns: 1fr; }
  .game-card-body { grid-template-columns: 1fr; }
  .ledger-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .site-header { padding-top: 8px; }.logo-row img { height: 58px; }.site-title { font-size: 1.15rem; }
  .summary-main { width: min(calc(100% - 22px),1180px); padding-top: 22px; }
  .summary-hero { padding: 30px 24px 58px; border-radius: 18px; }
  .summary-hero h1 { font-size: 2.45rem; }
  .summary-stat-grid,.match-stats { grid-template-columns: 1fr; width: calc(100% - 22px); margin-top: -28px; }
  .stat-card { min-height: 0; padding: 22px; }
  .summary-section { margin-top: 42px; }
  .game-card-topline time { width: 100%; margin-left: 0; }
  .game-card-body { padding: 22px; }.game-quick-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .mini-metrics { gap: 8px; }.mini-metrics dt { font-size: .62rem; }
  .zone-row { grid-template-columns: 60px minmax(0,1fr); }.zone-row > small { grid-column: 2; text-align: left; }
  .ledger-controls { grid-template-columns: 1fr; }
  .hero-score { display: grid; }
  .identification-disclaimer { width: calc(100% - 22px); }
  .site-footer { display: grid; }
}
