:root {
  --navy: #003b78;
  --blue: #0756a8;
  --red: #ed1c24;
  --ink: #123565;
  --muted: #62748c;
  --paper: #f5faff;
  --white: #ffffff;
  --line: #d9dee7;
  --gold: #ffd147;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(20px, 5vw, 76px); background: var(--white); border-bottom: 3px solid var(--red); }
.brand { display: flex; align-items: center; gap: 18px; color: var(--navy); text-decoration: none; }
.brand img { display: block; width: clamp(190px, 22vw, 285px); height: 64px; object-fit: contain; object-position: left center; }
.brand small { padding-left: 18px; color: var(--navy); border-left: 1px solid #bdd4ea; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.updated { color: var(--muted); font-size: 14px; }
.hero { position: relative; min-height: 410px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; overflow: hidden; padding: 70px clamp(24px, 8vw, 120px); color: var(--navy); background: radial-gradient(circle at 88% 45%, #dcecf8 0 13%, transparent 13.5%), radial-gradient(circle at 83% 50%, #eef7fd 0 24%, transparent 24.5%), white; }
.hero:before { content: ""; position: absolute; top: 0; left: -3%; width: 42%; height: 18px; background: linear-gradient(165deg, var(--navy) 0 46%, transparent 47%), linear-gradient(172deg, var(--red) 0 64%, transparent 65%); transform: skewX(-28deg); }
.hero:after { content: ""; position: absolute; inset: auto 0 0; height: 9px; background: linear-gradient(90deg, var(--navy) 0 28%, var(--red) 28% 57%, #24aeed 57% 100%); }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { color: var(--red); }
h1, h2 { margin: 0; font-family: Arial, Helvetica, sans-serif; font-weight: 900; letter-spacing: -.045em; }
h1 { max-width: 720px; font-size: clamp(48px, 7vw, 88px); line-height: .96; }
h1 em { color: var(--blue); font-style: normal; }
.hero-copy { max-width: 660px; margin: 28px 0 0; color: #47627f; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.hero-emblem { position: relative; justify-self: center; width: min(27vw, 290px); height: min(26vw, 280px); overflow: hidden; filter: drop-shadow(0 24px 30px #003b7830); }
.hero-emblem img { position: absolute; width: 1420px; max-width: none; left: -62px; top: -112px; }
.snapshot { position: relative; z-index: 2; width: min(1120px, calc(100% - 40px)); margin: -35px auto 60px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border: 1px solid #c7e5f8; border-top: 5px solid var(--red); border-radius: 8px; box-shadow: 0 16px 45px #063b7614; overflow: hidden; }
.snapshot article { padding: 27px 30px; border-right: 1px solid var(--line); }
.snapshot article:last-child { border-right: 0; }
.snapshot span { display: block; color: var(--navy); font-family: Georgia, serif; font-size: clamp(28px, 3vw, 42px); font-weight: 700; }
.snapshot small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.current-season, .explorer { width: min(1180px, calc(100% - 40px)); margin: 0 auto 84px; }
.current-season { padding-top: 56px; }
.explorer { padding-top: 40px; }
.current-page .current-season { padding-top: 24px; margin-bottom: 24px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
h2 { color: var(--navy); font-size: clamp(34px, 5vw, 54px); line-height: 1.04; }
.result-context { max-width: 430px; margin: 0; color: var(--muted); text-align: right; line-height: 1.5; }
.current-season { margin-bottom: 72px; }
.chart-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.chart-card { padding: 22px 20px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 10px 30px #13213b0d; }
.chart-card h3 { margin: 0 0 4px; color: var(--navy); font-family: Arial, Helvetica, sans-serif; font-size: 25px; font-weight: 900; }
.chart-card > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.bar-list { display: grid; gap: 9px; }
.bar-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 3px; color: var(--navy); font-size: 12px; font-weight: 750; }
.bar-name { display: flex; min-width: 0; align-items: baseline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-rank { flex: 0 0 24px; color: #8b95a5; font-size: 10px; font-variant-numeric: tabular-nums; }
.bar-label strong { flex: 0 0 auto; font-size: 11px; font-variant-numeric: tabular-nums; }
.bar-track { height: 7px; overflow: hidden; background: #e9edf3; border-radius: 999px; }
.bar-fill { height: 100%; width: var(--bar-width); min-width: 4px; border-radius: inherit; }
.grade-a { background: #174a91; }.grade-b { background: #c62828; }.grade-c { background: #d59a16; }.grade-d { background: #2b7a5a; }.grade-other { background: #687386; }
.stacked-bar { display: flex; justify-content: flex-start; }
.stacked-bar span { display: block; flex: 0 0 var(--segment-width); height: 100%; }
.dismissal-catches { background: #174a91; }.dismissal-runouts { background: #d97706; }.dismissal-stumpings { background: #7c3aed; }
.chart-legend { display: grid; justify-items: end; gap: 8px; max-width: 590px; }
.legend-group { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; }
.legend-group > strong { color: var(--navy); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.chart-legend i { width: 10px; height: 10px; border-radius: 2px; }
.chart-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.milestone-tracker { margin-top: 46px; padding-top: 38px; border-top: 1px solid #cbd1da; }
.milestone-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.milestone-heading h3 { margin: 0; color: var(--navy); font-family: Arial, Helvetica, sans-serif; font-size: clamp(28px, 3.5vw, 40px); font-weight: 900; letter-spacing: -.035em; }
.milestone-heading > p { max-width: 520px; margin: 0; color: var(--muted); text-align: right; line-height: 1.5; }
.milestone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.milestone-card { padding: 22px 24px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 10px 30px #13213b0d; }
.milestone-card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.milestone-card-title h4 { margin: 0; color: var(--navy); font-family: Arial, Helvetica, sans-serif; font-size: 23px; font-weight: 900; }
.milestone-card-title > span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.milestone-list { display: grid; gap: 15px; max-height: 720px; overflow-y: auto; padding-right: 8px; scrollbar-color: #aeb8c7 #eef0f4; scrollbar-width: thin; }
.milestone-list:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.milestone-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 5px; color: var(--navy); }
.milestone-label strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.milestone-label span { flex: 0 0 auto; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.milestone-progress { width: var(--target-width); height: 11px; overflow: hidden; background: #e5e9f0; border-radius: 999px; }
.milestone-progress span { display: block; width: var(--milestone-width); height: 100%; min-width: 4px; background: var(--milestone-color); border-radius: inherit; }
.milestone-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; text-align: right; }
.milestone-item.achieved { padding: 10px 12px; background: #eef7ef; border: 1px solid #b9d7bd; border-radius: 5px; }
.milestone-item.achieved .milestone-progress { background: #d7e8d9; }
.milestone-item.achieved small { color: #256332; font-weight: 800; }
.milestone-item.achieved small b { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 4px; color: white; background: #2e7d3d; border-radius: 50%; }
.milestone-empty { margin: 0; color: var(--muted); }
.controls { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(100px, .75fr)) minmax(145px, .9fr); gap: 12px; padding: 18px; background: var(--navy); border-radius: 8px 8px 0 0; }
.controls label, .show-count { display: grid; gap: 6px; }
.controls label span, .show-count span { color: #bdd0ec; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
input, select { width: 100%; min-height: 43px; padding: 0 12px; color: var(--ink); background: white; border: 1px solid transparent; border-radius: 4px; }
select:disabled { color: #8993a3; background: #e2e6ec; cursor: not-allowed; }
.controls label.disabled span { color: #8392a8; }
.latest-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 43px; padding: 0 11px; color: var(--navy); background: white; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }
.latest-toggle strong { font-size: 12px; }.latest-toggle small { color: var(--muted); font-weight: 800; }
.latest-toggle[aria-pressed="true"] { color: #342700; background: #f2c157; }
.latest-toggle[aria-pressed="true"] small { color: #5d470e; }
.latest-toggle:disabled { color: #8993a3; background: #e2e6ec; cursor: not-allowed; }
input:focus, select:focus, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tabs { display: flex; overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-top: 0; }
.tab { flex: 1 0 140px; padding: 19px 12px; color: var(--muted); background: transparent; border: 0; border-bottom: 4px solid transparent; font-weight: 800; cursor: pointer; }
.tab.active { color: var(--navy); border-bottom-color: var(--red); }
.section-notice { margin-top: 18px; padding: 14px 16px; color: #263b5c; background: #eaf1fb; border-left: 4px solid var(--blue); border-radius: 0 4px 4px 0; line-height: 1.5; }
.section-notice strong { display: block; color: var(--navy); font-size: 14px; }
.section-notice span { display: block; margin-top: 2px; font-size: 14px; }
.hof-legend { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.hof-legend > span { width: 24px; height: 16px; background: #e8f0fb; border-left: 4px solid #7793bb; border-radius: 2px; }
.hof-legend strong { color: var(--navy); }.hof-legend small { font-size: 12px; }
.metric-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; padding: 20px 0 14px; }
.metric-options { display: grid; gap: 11px; }
.view-tabs { display: inline-flex; width: max-content; overflow: hidden; background: white; border: 1px solid #a9cbe6; border-radius: 5px; }
.view-tabs button { padding: 9px 15px; color: var(--navy); background: white; border: 0; border-right: 1px solid #a9cbe6; font-size: 13px; font-weight: 800; cursor: pointer; }
.view-tabs button:last-child { border-right: 0; }
.view-tabs button.active { color: white; background: var(--navy); box-shadow: inset 0 -3px var(--red); }
.metric-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.metric-pills button { padding: 9px 14px; color: var(--navy); background: transparent; border: 1px solid #b8c2d1; border-radius: 999px; font-size: 13px; font-weight: 750; cursor: pointer; }
.metric-pills button.active { color: white; background: var(--blue); border-color: var(--blue); }
.show-count { grid-template-columns: auto 76px; align-items: center; }
.show-count span { color: var(--muted); }.show-count select { min-height: 38px; border-color: var(--line); }
.qualification { margin-bottom: 12px; padding: 10px 14px; color: #634d12; background: #fff2c7; border-left: 4px solid var(--gold); font-size: 13px; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 30px #13213b0d; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { padding: 14px 16px; color: white; background: linear-gradient(180deg, var(--blue), var(--navy)); border-bottom: 3px solid var(--red); font-size: 11px; letter-spacing: .08em; text-align: right; text-transform: uppercase; }
th:nth-child(2) { text-align: left; }
td { padding: 14px 16px; border-bottom: 1px solid #e7eaf0; text-align: right; font-variant-numeric: tabular-nums; }
td.rank { width: 56px; color: var(--muted); font-weight: 800; }
td.player { text-align: left; color: var(--navy); font-weight: 800; }
tbody tr { cursor: pointer; transition: background .15s; }
tbody tr:hover { background: #edf4ff; }
tbody tr.static-row { cursor: default; }
tbody tr.hall-of-fame { background: #e8f0fb; box-shadow: inset 4px 0 #7793bb; }
tbody tr.hall-of-fame:hover { background: #dae7f8; }
tbody tr.current-player { background: #fff8df; box-shadow: inset 4px 0 var(--gold); }
tbody tr.current-player:hover { background: #fff1bd; }
tbody tr.hall-of-fame.current-player { background: linear-gradient(90deg, #e8f0fb 0%, #fff8df 100%); box-shadow: inset 4px 0 #7793bb; }
.status-badge { display: inline-block; padding: 4px 8px; color: #174620; background: #dcefdc; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.table-note { margin: 11px 0 0; color: var(--muted); font-size: 12px; }
.methodology { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; padding-top: 62px; border-top: 1px solid #cbd1da; }
.history-copy { padding: 28px 32px; background: white; border: 1px solid #c7e5f8; border-top: 5px solid var(--red); border-radius: 7px; box-shadow: 0 12px 34px #063b760f; }
.history-copy p { margin: 0 0 18px; color: #465f7e; font-size: 16px; line-height: 1.68; }
.history-copy p:last-child { margin-bottom: 0; }
.history-copy em { color: var(--navy); font-weight: 800; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px clamp(20px, 5vw, 76px); color: #b9cae2; background: var(--navy); font-size: 13px; }
dialog { width: min(920px, calc(100% - 30px)); max-height: 88vh; padding: 0; border: 0; border-radius: 8px; box-shadow: 0 30px 90px #08142680; }
dialog::backdrop { background: #07152ccc; backdrop-filter: blur(3px); }
.dialog-close { position: sticky; z-index: 2; top: 14px; float: right; margin: 14px 14px 0 0; width: 38px; height: 38px; color: white; background: var(--red); border: 0; border-radius: 50%; font-size: 27px; cursor: pointer; }
.dialog-head { padding: 42px 45px 30px; color: white; background: var(--navy); }.dialog-head h2 { color: white; }.dialog-head p { margin-bottom: 0; color: #cbd9ec; }
.dialog-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }.dialog-stats div { padding: 18px; background: white; }.dialog-stats strong, .dialog-stats small { display: block; }.dialog-stats strong { color: var(--navy); font-size: 25px; }.dialog-stats small { color: var(--muted); }
.dialog-table { padding: 25px 32px 35px; overflow-x: auto; }.dialog-table h3 { color: var(--navy); }.dialog-table th { background: #e9eef6; color: var(--navy); }
.empty { padding: 48px; color: var(--muted); text-align: center; }
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; min-height: 430px; }.hero-emblem { display: none; }
  .snapshot { grid-template-columns: 1fr 1fr; }.snapshot article:nth-child(2) { border-right: 0; }.snapshot article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .controls { grid-template-columns: 1fr 1fr; }.search-field { grid-column: 1 / -1; }
  .section-heading, .metric-bar { align-items: flex-start; flex-direction: column; }.result-context { text-align: left; }
  .chart-grid, .milestone-grid { grid-template-columns: 1fr; }.chart-legend { justify-items: start; }.legend-group { justify-content: flex-start; }
  .milestone-heading { align-items: flex-start; flex-direction: column; }.milestone-heading > p { text-align: left; }
  .milestone-list { max-height: none; overflow: visible; padding-right: 0; }
  .methodology { grid-template-columns: 1fr; gap: 34px; }.dialog-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-header { height: auto; padding-top: 10px; padding-bottom: 10px; }.updated, .brand small { display: none; }.brand img { width: 210px; height: 54px; }
  .hero { padding: 52px 24px 70px; }.snapshot { grid-template-columns: 1fr; margin-top: -24px; }.snapshot article { border-right: 0; border-bottom: 1px solid var(--line); }
  .controls { grid-template-columns: 1fr; }.search-field { grid-column: auto; }.tab { padding: 15px 8px; }
  footer { flex-direction: column; }.dialog-stats { grid-template-columns: 1fr 1fr; }.dialog-head { padding: 40px 24px 24px; }
}
