@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #03011e;
  --ink-2: #1d4072;
  --paper: #f7f8fa;
  --white: #fff;
  --line: #dedee5;
  --muted: #606774;
  --cyan: #0ccddf;
  --brand-navy: #1d4072;
  --brand-gray: #d2d0d0;
  --gold: #dfb50c;
  --cream: #f8f5e9;
  --shadow: 0 18px 45px rgba(20, 39, 59, .11);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Work Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
button, input { font: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #ffd166; outline-offset: 2px; }
a { color: inherit; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 3000; padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  height: 84px;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 clamp(22px, 5vw, 76px);
  background: var(--brand-navy);
  color: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-logo { display: block; width: 172px; height: 54px; object-fit: contain; }
.brand-context { padding-left: 17px; border-left: 1px solid rgba(255,255,255,.3); color: #e4eaf2; font-size: 9px; font-weight: 600; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; }

main { overflow: hidden; }
.hero {
  background: var(--brand-gray);
  min-height: 315px;
  display: grid;
  grid-template-columns: 1.4fr .7fr;
  align-items: end;
  gap: 60px;
  padding: 72px clamp(22px, 7vw, 105px) 62px;
  position: relative;
}
.hero::after { content: ""; position: absolute; width: 330px; height: 330px; right: -165px; top: -100px; border: 72px solid rgba(12, 205, 223, .1); border-radius: 50%; }
.eyebrow, .panel-kicker { margin: 0 0 15px; color: var(--brand-navy); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; margin-bottom: 0; font-size: clamp(42px, 5.2vw, 72px); line-height: .96; letter-spacing: -.05em; }
h1 em { color: var(--brand-navy); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-copy { max-width: 465px; margin-bottom: 7px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.hero > * { min-width: 0; }

.analysis-shell { display: grid; grid-template-columns: minmax(300px, 385px) 1fr; max-width: 1380px; margin: 0 auto; padding: 0 clamp(14px, 4vw, 55px); }
.control-panel { padding: 37px 34px 30px; background: var(--brand-navy); color: white; border-radius: var(--radius) 0 0 var(--radius); }
.control-panel .panel-kicker { color: var(--cyan); }
.control-panel h2 { margin-bottom: 8px; font-size: 28px; letter-spacing: -.03em; }
.muted { color: #afbbc4; font-size: 13px; line-height: 1.55; }
.search-form { margin-top: 28px; }
.search-form label { display: block; margin-bottom: 9px; color: #dbe3e7; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.search-row { display: flex; background: white; border: 2px solid transparent; border-radius: 100px; overflow: hidden; }
.search-row:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(223,181,12,.2); }
.search-row input { min-width: 0; width: 100%; padding: 13px 14px; color: var(--ink); border: 0; outline: 0; font-size: 13px; }
.search-row button { width: 47px; flex: 0 0 47px; display: grid; place-items: center; color: var(--ink); background: var(--cyan); border: 0; cursor: pointer; }
.search-row button:hover { background: #70e4ed; }
.search-row svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.search-status { min-height: 18px; margin-top: 7px; color: #c2cedb; font-size: 11px; }
.search-status.error { color: #ffae98; }
.search-results { margin-top: 8px; background: white; color: var(--ink); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.search-result { display: block; width: 100%; padding: 11px 13px; background: white; border: 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; line-height: 1.35; cursor: pointer; }
.search-result:last-child { border: 0; }
.search-result:hover, .search-result:focus { background: #edf8f4; outline: 0; }
.selection-card { display: flex; gap: 12px; margin: 19px 0; padding: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; background: rgba(255,255,255,.045); }
.selection-icon { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--gold); font-size: 20px; font-weight: 300; }
.selection-icon img { width: 19px; height: 22px; object-fit: contain; }
.selection-card div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.selection-card small { color: #c2cedb; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.selection-card strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.selection-card div span { color: #b7c3ca; font-size: 10px; }
.model-callout { display: flex; gap: 12px; margin-top: 20px; padding-top: 19px; border-top: 1px solid rgba(255,255,255,.13); }
.model-icon { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 12px; font-weight: 850; }
.model-callout strong { display: block; font-size: 12px; }
.model-callout p { margin: 5px 0 0; color: #aebbc3; font-size: 10px; line-height: 1.45; }
.model-callout b { color: #e6edf0; }
.recovery-actions { display: grid; gap: 8px; margin-top: 12px; }
.recovery-actions button { padding: 9px 11px; border: 1px solid #9cbbb8; border-radius: 7px; background: #edf7f4; color: #163b35; text-align: left; font: inherit; font-size: 11px; cursor: pointer; }
.recovery-actions button:disabled { opacity: .7; cursor: wait; }
.recovery-actions button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
button:disabled, input:disabled { cursor: not-allowed; }
.map-legend { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 22px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid rgba(255,255,255,.25); min-width: 0; }
.map-legend legend { padding: 0 8px 0 0; color: white; font-size: 12px; font-weight: 750; }
.map-legend > p { color: #d1dfeb; font-size: 10px; line-height: 1.5; margin: 0 0 5px; }
.map-legend button { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 5px 8px; text-align: left; color: #f0f5fa; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.2); border-radius: 5px; font-size: 11px; cursor: pointer; }
.map-legend button::after { content: "Off"; margin-left: auto; font-size: 9px; font-weight: 750; }
.map-legend button[aria-pressed="true"] { background: rgba(12,205,223,.1); border-color: #91c8d9; }
.map-legend button[aria-pressed="true"]::after { content: "On"; color: #96f2fc; }
.map-legend button:disabled { opacity: .55; cursor: default; }
.swatch-logo { background: white; border: 2px solid #b9c8d6; border-radius: 50%; }
.swatch-fields { background: #e8eef6; border: 2px solid white; }
.map-legend span { display: flex; align-items: center; gap: 5px; }
.legend-site { width: 21px; height: 23px; display: grid; place-items: center; background: white; border: 2px solid; line-height: 1; }
.legend-site img { width: 13px; height: 16px; object-fit: contain; }
.legend-baseline { border-color: var(--cyan); border-radius: 4px; }
.legend-candidate { border-color: var(--gold); border-radius: 50%; }
.swatch { width: 16px; height: 9px; border-radius: 2px; }
.swatch-trade { background: rgba(223,181,12,.18); border: 2px solid var(--gold); }
.swatch-baseline-trade { background: rgba(12,205,223,.1); border: 2px dashed var(--cyan); }
.swatch-club { background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 3px, rgba(255,255,255,.2) 3px 6px); border: 1px dashed #c5d2d8; }

.map-wrap { min-height: 585px; position: relative; background: #dce3df; border-radius: 0 var(--radius) var(--radius) 0; overflow: hidden; box-shadow: var(--shadow); }
#map { height: 100%; min-height: 585px; cursor: crosshair; }
.map-label { position: absolute; z-index: 700; top: 19px; left: 58px; display: flex; gap: 9px; align-items: center; padding: 9px 12px; background: rgba(255,255,255,.94); border: 1px solid rgba(20,39,59,.16); border-radius: 9px; box-shadow: 0 6px 18px rgba(20,39,59,.12); font-size: 11px; font-weight: 750; backdrop-filter: blur(10px); }
.map-label span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.map-action { position: absolute; z-index: 700; right: 16px; top: 17px; padding: 10px 13px; color: var(--ink); background: rgba(255,255,255,.92); border: 1px solid rgba(20,39,59,.15); border-radius: 9px; box-shadow: 0 6px 18px rgba(20,39,59,.12); font-size: 10px; font-weight: 800; cursor: pointer; }
.map-action:hover { background: white; }
.field-controls { margin-top: 16px; }
.field-controls button { padding: 8px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 7px; font-size: 11px; font-weight: 750; cursor: pointer; }
.field-controls button.active { background: var(--gold); border-color: var(--gold); }
.field-controls .field-visibility-status { color: #c0ced5; font-size: 10px; }
.club-summary-metrics { display: grid; grid-template-columns: 1fr 1.15fr; gap: 12px; margin: 12px 6px; }
.club-summary-metrics dt { min-height: 28px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.club-summary-metrics dd { margin: 3px 0 0; font-size: 24px; line-height: 1.2; font-weight: 800; }
.club-summary-metrics dd small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.35; }
.team-gender-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; color: var(--muted); font-size: 11px; }
.team-gender-legend span { display: flex; align-items: center; gap: 3px; }
.team-gender-legend span:last-child { margin-left: auto; }
.team-swatch { width: 8px; height: 8px; display: inline-block; border-radius: 2px; }
.team-swatch.boys, .team-age-bar.boys { background: #1769aa; }
.team-swatch.girls, .team-age-bar.girls { background-color: #a23b72; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.42) 0 1px, transparent 1px 3px); }
.team-publication-scope { margin: 6px 0 0; padding: 5px 6px; color: #4f5e66; background: #f2f5f3; border-left: 3px solid #d4a842; font-size: 11px; line-height: 1.5; }
.field-visibility-status { margin: 8px 0; color: var(--muted); font-size: 8px; line-height: 1.35; }
.club-map-list { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.club-list-card { min-width: 0; padding: 10px; background: #fbfcfb; border: 1px solid #dce2de; border-radius: 9px; scroll-margin-top: 100px; }
.club-list-card.selected { border-color: var(--club-color); box-shadow: inset 3px 0 0 var(--club-color); }
.club-list-button { width: 100%; min-height: 42px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 8px; padding: 5px 7px; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 7px; text-align: left; cursor: pointer; }
.club-list-button:hover { background: #f1f4f1; }
.club-list-button.selected { background: color-mix(in srgb, var(--club-color) 13%, white); border-color: var(--club-color); box-shadow: inset 3px 0 0 var(--club-color); }
.club-list-button > span { min-width: 0; display: flex; flex-direction: column; }
.club-list-button strong { overflow: hidden; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.club-list-button small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.team-distribution { padding: 0 6px 5px; }
.team-coverage-status { max-width: 100%; display: inline-block; margin: 1px 0 4px; padding: 2px 5px; border: 1px solid; border-radius: 10px; font-size: 8px; font-weight: 850; line-height: 1.25; letter-spacing: .025em; text-transform: uppercase; }
.team-coverage-status.status-partial, .team-detail-coverage.status-partial { color: #724600; background: #fff3cd; border-color: #d4a842; }
.team-coverage-status.status-exact, .team-detail-coverage.status-exact { color: #075a48; background: #dff5ec; border-color: #65b9a3; }
.team-coverage-status.status-zero, .team-detail-coverage.status-zero { color: #49565d; background: #edf0ee; border-color: #aab4af; }
.team-coverage-status.status-unknown, .team-detail-coverage.status-unknown { color: #6c355d; background: #f5e8f0; border-color: #bc82a6; }
.team-distribution-empty { min-height: 35px; display: flex; align-items: center; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.team-age-histogram { height: 88px; display: grid; grid-template-columns: repeat(10, minmax(22px, 1fr)); gap: 2px; align-items: end; margin: 0; padding: 0; list-style: none; }
.team-age-bin { width: 100%; height: 87px; display: grid; grid-template-rows: 72px 12px; align-items: end; gap: 1px; padding: 0 1px; color: #53636c; background: transparent; border: 0; border-radius: 3px; cursor: pointer; }
.team-age-bin:hover, .team-age-bin:focus-visible, .team-age-bin[aria-expanded="true"] { background: #e7ece9; outline: 2px solid #e2a82c; outline-offset: 1px; }
.team-age-bin:disabled { cursor: default; opacity: 1; }
.team-age-bin:disabled:hover { background: transparent; outline: 0; }
.team-age-bars { height: 70px; display: flex; align-items: end; justify-content: center; gap: 3px; }
.team-age-bar { position: relative; width: 9px; min-height: 0; display: block; border-radius: 2px 2px 0 0; }
.team-age-bin small { font-size: 8px; font-weight: 800; line-height: 1; text-align: center; }
.team-count-tags { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0 0; padding: 0 0 1px; overflow-x: auto; list-style: none; scrollbar-width: none; }
.team-count-tags::-webkit-scrollbar { display: none; }
.team-count-tag { flex: 0 0 auto; padding: 2px 4px; color: #233746; background: #eef1ef; border: 1px solid #cdd5d1; border-radius: 8px; font-size: 8px; font-weight: 800; }
.team-count-tag.boys { border-left: 3px solid #1769aa; }
.team-count-tag.girls { border-left: 3px solid #a23b72; background-image: repeating-linear-gradient(135deg, rgba(162,59,114,.08) 0 2px, transparent 2px 5px); }
.club-map-note { margin: 18px 0 0; padding-top: 12px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; line-height: 1.5; }
.team-age-detail { margin-top: 14px; padding: 14px 4px 4px; color: var(--ink); border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.team-age-detail[hidden] { display: none; }
.team-detail-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.team-detail-header small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.team-detail-header h3 { margin: 3px 0 0; font-size: 16px; }
.team-detail-close { width: 30px; height: 30px; flex: 0 0 auto; padding: 0; color: var(--ink); background: #eef1ef; border: 1px solid #cfd6d2; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; }
.team-detail-coverage { margin: 10px 0; padding: 7px 8px; border: 1px solid; border-radius: 7px; font-size: 11px; line-height: 1.4; }
.team-player-calculations { padding: 9px 10px; background: #f3f6f4; border-radius: 8px; }
.team-player-calculations p { margin: 0; font-size: 11px; line-height: 1.45; }
.team-player-calculations p + p { margin-top: 5px; }
.team-player-total { padding-top: 6px; border-top: 1px solid #d7ddd9; font-weight: 850; }
.team-detail-list-heading { display: block; margin: 13px 0 7px; font-size: 10px; }
.team-detail-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.team-detail-list li { padding: 8px 9px; background: #fafbfa; border: 1px solid #e2e7e4; border-radius: 7px; }
.team-detail-list li > strong { display: block; font-size: 12px; line-height: 1.3; }
.team-detail-list p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.team-source-status a { color: #164d77; font-weight: 800; }
.map-error { position: absolute; z-index: 800; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(420px, calc(100% - 30px)); padding: 11px 14px; background: #fff4ed; border: 1px solid #e7ac91; border-radius: 9px; color: #8e351d; font-size: 11px; text-align: center; }
.mapboxgl-ctrl-attrib { font-size: 9px; }
.mapboxgl-popup-content { padding: 12px 14px; border-radius: 10px; font-family: inherit; font-size: 12px; }
.site-marker { height: 44px; display: flex; align-items: center; gap: 0; padding: 0; background: transparent; border: 0; filter: drop-shadow(0 2px 5px rgba(3,1,30,.3)); white-space: nowrap; cursor: pointer; z-index: 6; }
.site-marker-logo { width: 38px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; background: white; border: 3px solid var(--cyan); border-radius: 6px; }
.site-marker-logo img { width: 24px; height: 29px; object-fit: contain; }
.site-marker b { margin-left: -2px; padding: 5px 8px; color: var(--ink); background: var(--cyan); border: 2px solid white; border-radius: 0 6px 6px 0; font-size: 10px; letter-spacing: .02em; }
.site-marker-candidate .site-marker-logo { border-color: var(--gold); border-radius: 50%; }
.site-marker-candidate b { background: var(--gold); }
.candidate-trade-area { stroke-linecap: round; filter: drop-shadow(0 1px 1px rgba(255,255,255,.95)); }
.club-map-badge { width: 30px; height: 30px; display: grid; place-items: center; padding: 2px; background: white; border: 1px solid rgba(3,1,30,.2); border-radius: 50%; box-shadow: 0 2px 7px rgba(3,1,30,.22); font: inherit; color: var(--ink); cursor: pointer; z-index: 4; }
.club-map-badge:hover, .club-map-badge.reveal-open { border-color: var(--club-color); }
.club-map-badge.selected { box-shadow: 0 0 0 2px white, 0 0 0 4px var(--club-color); }
.club-map-badge.reveal-open { z-index: 30; }
.club-badge-mark { width: 24px; height: 24px; position: relative; display: grid; place-items: center; color: white; background: var(--club-color); border-radius: 0; overflow: visible; }
.club-badge-mark abbr { font-size: 8px; font-weight: 800; text-decoration: none; }
.club-badge-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: white; }
.club-badge-mark img[hidden] { display: none; }
.club-marker-tether { display: none; position: absolute; left: 50%; top: 50%; width: var(--tether-length); height: 1px; background: var(--club-color); transform: rotate(var(--tether-angle)); transform-origin: left center; pointer-events: none; z-index: -1; opacity: .7; }
.marker-displaced .club-marker-tether { display: block; }
.club-marker-reveal { position: absolute; left: calc(100% + 7px); top: calc(50% + var(--reveal-shift, 0px)); width: var(--reveal-width, 204px); padding: 9px 11px; transform: translate(5px, -50%); color: var(--ink); background: white; border: 1px solid #c9ced6; border-left: 3px solid var(--club-color); border-radius: 7px; box-shadow: 0 3px 12px rgba(3,1,30,.16); text-align: left; cursor: pointer; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 120ms ease, transform 120ms ease; }
.club-marker-reveal::before { content: ""; position: absolute; top: 0; bottom: 0; left: -10px; width: 10px; }
.club-marker-reveal > strong { display: block; font-size: 12px; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.club-marker-metrics { display: flex; flex-wrap: wrap; gap: 3px 11px; margin-top: 5px; font-size: 10px; line-height: 1.45; white-space: nowrap; }
.club-marker-metrics b { font-size: 12px; font-weight: 800; }
.club-marker-scope { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.25; }
.club-map-badge.reveal-open .club-marker-reveal { visibility: visible; opacity: 1; pointer-events: none; transform: translate(0, -50%); }
.club-map-badge.reveal-offscreen .club-marker-reveal { visibility: hidden; pointer-events: none; }
.club-map-badge.reveal-left .club-marker-reveal { left: auto; right: calc(100% + 7px); border-left: 1px solid #c9ced6; border-right: 3px solid var(--club-color); }
.club-map-badge.reveal-left .club-marker-reveal::before { left: auto; right: -10px; }
.field-marker { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; background: transparent; border: 0; cursor: pointer; z-index: 2; }
.field-marker i { width: 11px; height: 11px; display: block; background: var(--brand-navy); border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px var(--brand-navy), 0 1px 4px rgba(3,1,30,.25); }
.field-marker-shared i { border-radius: 2px; transform: rotate(45deg); }
.field-label { position: absolute; left: 23px; top: 50%; transform: translateY(-50%); max-width: 135px; width: max-content; color: #172e4c; font-size: 10px; font-weight: 650; line-height: 1.15; text-align: left; text-shadow: -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 1px 1px 0 white, 0 0 4px white, 0 0 4px white; pointer-events: none; }
.map-hint { position: absolute; z-index: 3; left: 50%; bottom: 27px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 85px); margin: 0; padding: 5px 9px; color: #3b4b60; background: rgba(255,255,255,.92); border-radius: 20px; font-size: 9px; text-align: center; pointer-events: none; }


.comparison-section, .data-section { max-width: 1240px; margin: 0 auto; padding: 105px 24px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 31px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(31px, 4vw, 48px); line-height: 1.02; letter-spacing: -.045em; }
.section-heading > p { max-width: 375px; margin-bottom: 4px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.comparison-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.comparison-table { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-row { min-height: 76px; display: grid; grid-template-columns: 1.7fr 1fr 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.table-row:last-child { border: 0; }
.table-row > div { padding: 15px 24px; }
.table-row > div + div { border-left: 1px solid var(--line); }
.table-head { min-height: 51px; color: var(--muted); background: #f9faf8; font-size: 9px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.table-head > div { display: flex; align-items: center; gap: 7px; }
.mini-dot { width: 7px; height: 7px; border-radius: 50%; }
.mini-dot.baseline { background: var(--cyan); }
.mini-dot.candidate { background: var(--gold); }
.table-row [role="rowheader"] strong { display: block; font-size: 13px; }
.table-row [role="rowheader"] small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.table-row [role="cell"] { font-size: 16px; font-weight: 750; }
.unavailable-row { background: #fbfbfa; }
.demographic-row { background: #f8fcfa; }
.club-estimate-row { background: #fffaf7; }
.unavailable, .restricted { display: inline-flex; padding: 5px 8px; border-radius: 5px; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.unavailable { color: #785c49; background: #eee6dc; }
.restricted { color: #6c5270; background: #eee5ef; }
.outside-value, .loading-value { display: inline-flex; color: var(--muted); font-size: 9px; font-weight: 800; line-height: 1.3; text-transform: uppercase; letter-spacing: .045em; }
.modeled-value { display: flex; flex-direction: column; gap: 4px; }
.modeled-value strong { color: var(--ink); font-size: 15px; line-height: 1; }
.modeled-value small { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.estimate-range { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.estimate-range > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.estimate-range small { color: var(--muted); font-size: 7px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.estimate-range strong { font-size: 13px; line-height: 1; }
.club-count-cell { display: flex; flex-direction: column; gap: 3px; }
.club-count-cell strong { font-size: 16px; line-height: 1; }
.club-count-cell small { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.snapshot-note { display: flex; align-items: center; gap: 8px; margin: 7px 0 0; color: #17334a; font-size: 9px; line-height: 1.4; }
.snapshot-note span { width: 7px; height: 7px; flex: 0 0 auto; background: var(--brand-navy); border-radius: 50%; }
.snapshot-note.loaded span { background: #075a48; }
.snapshot-note.warning span { background: #724600; }

.club-evidence { margin-top: 18px; padding: 27px 29px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.club-evidence-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.club-evidence-heading .eyebrow { margin-bottom: 8px; }
.club-evidence-heading h3 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.club-evidence-heading > p { max-width: 455px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.club-evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 22px; }
.club-evidence-grid article { min-width: 0; }
.club-evidence-grid article + article { padding-left: 26px; border-left: 1px solid var(--line); }
.club-evidence-grid h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 7px; font-size: 12px; }
.club-evidence-grid article > p { margin: 0 0 14px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.club-evidence-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.club-evidence-list > li { padding: 11px 12px; background: #f8faf8; border: 1px solid #e4e8e5; border-radius: 8px; }

.club-evidence-list > li > strong { font-size: 11px; }
.club-more > p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.confidence-badge { flex: 0 0 auto; padding: 3px 5px; border-radius: 4px; font-size: 7px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.confidence-high { color: #126c57; background: #ddf5ed; }
.confidence-medium { color: #755116; background: #f7eccd; }
.confidence-limited { color: #785c49; background: #eee6dc; }
.evidence-links a { color: var(--ink-2); font-weight: 750; }
.club-evidence-list .club-overlap-note { color: #755116; }
.overlap-rule { margin: 22px 0 0; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.55; }
.overlap-rule strong { color: var(--ink-2); }

.data-section { padding-top: 100px; }
.section-heading.compact { margin-bottom: 26px; }
.data-cards { display: grid; grid-template-columns: repeat(4, 1fr); background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.data-cards article { min-height: 245px; padding: 27px 24px; border-right: 1px solid var(--line); }
.data-cards article:last-child { border: 0; }
.status-icon { width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 35px; border-radius: 50%; font-weight: 850; }
.status-icon.available { color: #126c57; background: #ddf5ed; }
.status-icon.conditional { color: #b03b1c; background: #fde4da; }
.status-icon.unavailable { color: #715842; background: #eee6dc; }
.status-icon.restricted { color: #65476b; background: #eee5ef; }
.status-label { margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.data-cards h3 { margin-bottom: 9px; font-size: 16px; }
.data-cards article > p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
code { padding: 2px 4px; background: rgba(20,39,59,.06); border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }


footer { min-height: 105px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 25px clamp(22px, 5vw, 76px); color: #aab6be; background: var(--ink); }
footer p { margin: 0; font-size: 9px; }
footer p:last-child { text-align: right; }
footer a { color: inherit; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 25px; align-items: start; }
  .analysis-shell { grid-template-columns: 320px 1fr; }
  .control-panel { padding: 29px 24px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .data-cards { grid-template-columns: repeat(2, 1fr); }
  .data-cards article:nth-child(2) { border-right: 0; }
  .data-cards article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .site-header { height: 70px; padding: 0 18px; }
  .brand-logo { width: 143px; height: 45px; }
  .brand-context { font-size: 8px; padding-left: 12px; }
  .hero { width: 100%; max-width: 100vw; min-height: auto; padding: 52px 22px 44px; }
  .hero-copy { width: 100%; max-width: 100%; font-size: 14px; overflow-wrap: anywhere; }
  .analysis-shell { display: flex; flex-direction: column; width: 100%; max-width: 100vw; padding: 0 12px; overflow: hidden; }
  .control-panel, .map-wrap { width: 100%; min-width: 0; }
  .control-panel { flex: 0 0 auto; border-radius: 15px 15px 0 0; }
  .search-row input { width: 0; flex: 1 1 auto; }
  .map-wrap, #map { min-height: 610px; }
  .map-wrap { border-radius: 0 0 15px 15px; }
  .map-label { display: none; }
  .map-action { top: 12px; right: 12px; }
  .club-map-list { grid-template-columns: minmax(0, 1fr); }
  .club-list-card { scroll-margin-top: 86px; }
  .team-gender-legend span:last-child { width: 100%; margin-left: 0; }
  .field-visibility-status { margin: 6px 0; }
  .club-map-badge { width: 36px; height: 36px; }
  .site-marker b { font-size: 9px; }
  .comparison-section, .data-section { padding-left: 15px; padding-right: 15px; padding-top: 78px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; }
  .table-row { grid-template-columns: 1.5fr .8fr .8fr; }
  .table-row > div { padding: 13px 10px; }
  .table-head { font-size: 8px; }
  .table-row [role="cell"] { font-size: 13px; }
  .estimate-range { grid-template-columns: 1fr; gap: 4px; }
  .estimate-range > span { flex-direction: row; justify-content: space-between; gap: 4px; }
  .estimate-range strong { font-size: 10px; }
  .club-evidence { padding: 22px 17px; }
  .club-evidence-heading { display: block; }
  .club-evidence-heading > p { margin-top: 11px; }
  .club-evidence-grid { grid-template-columns: 1fr; }
  .club-evidence-grid article + article { padding: 22px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .unavailable, .restricted { max-width: 100%; padding: 4px 5px; white-space: normal; overflow-wrap: anywhere; }
  .data-cards { grid-template-columns: 1fr; }
  .data-cards article { min-height: 205px; border-right: 0; border-bottom: 1px solid var(--line); }
  .data-cards article:nth-child(3) { border-bottom: 1px solid var(--line); }
  .status-icon { margin-bottom: 24px; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer p:last-child { text-align: left; }
}

@media (max-width: 390px) {
  .control-panel { padding: 26px 20px; }
  .map-wrap, #map { min-height: 570px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .club-marker-reveal { transition: none; } }

/* Site-specific club evidence and directly labelled histogram bars. */
.club-card-logo { position: relative; width: 36px; height: 36px; display: grid !important; place-items: center; overflow: hidden; border-radius: 5px; color: white; background: var(--club-color); font-size: 10px; font-weight: 800; }
.club-card-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: white; }
.club-card-logo img[hidden], .club-map-badge[hidden], .site-marker[hidden] { display: none; }
.club-more { margin: 14px 4px 2px; border-top: 1px solid var(--line); }
.club-more > summary { padding: 11px 2px; font-size: 12px; font-weight: 750; cursor: pointer; color: var(--brand-navy); }
.club-more > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.club-more > p { font-size: 11px; line-height: 1.55; }
.team-bar-count { position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); color: var(--ink); font-size: 9px; font-weight: 750; font-style: normal; line-height: 1; }
.comparison-status { display: flex; flex-wrap: wrap; gap: 7px 24px; padding: 12px 5px 0; }
.comparison-status .snapshot-note { color: var(--muted); font-size: 10px; }
.table-row [role="cell"] { min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.assessment-row { background: #eef6fa; }
.assessment-row [role="cell"], #baseline-nearest-field, #nearest-field { font-size: 12px; }
.assessment-row [role="cell"] > small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 500; }
.data-section { padding-bottom: 80px; }
@media (max-width: 650px) {
  .club-evidence { padding: 22px 17px; }
  .team-age-histogram { gap: 1px; }
  .team-age-bars { gap: 2px; }
  .team-age-bar { width: 8px; }
  .team-bar-count { font-size: 8px; }
}

/* The regional directory is distinct from the two venue-linked site lists. */
.metro-club-coverage { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.metro-club-coverage > summary { cursor: pointer; font-size: 13px; font-weight: 750; color: var(--brand-navy); }
.metro-club-coverage > summary span { display: block; margin: 5px 0 0 16px; font-size: 10px; font-weight: 500; color: var(--muted); }
.metro-club-coverage > p { font-size: 11px; line-height: 1.55; color: var(--muted); }
.metro-club-roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr)); gap: 12px; padding: 0; list-style: none; }
.metro-club-roster > li { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.metro-club-roster > li > button { padding: 0; color: var(--brand-navy); border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 750; text-align: left; text-decoration: underline; cursor: pointer; }
.metro-club-roster > li > strong { font-size: 12px; }
.metro-club-roster p, .metro-club-roster a { font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.metro-club-roster p { margin: 6px 0; color: var(--muted); }

.metro-club-crest { display: block; width: 42px; height: 42px; object-fit: contain; margin-bottom: 8px; }
.metro-club-crest[hidden] { display: none; }
