@font-face {
  font-family: 'Barlow Condensed';
  src: url('/static/fonts/BarlowCondensed-BoldItalic.ttf') format('truetype');
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/static/fonts/SpaceGrotesk.ttf') format('truetype');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #182e34;
  --muted: #51676c;
  --line: #d9e4e1;
  --paper: #fff;
  --wash: #f3f6f2;
  --deep: #005d70;
  --blue: #007e91;
  --blue-soft: #ddf3ee;
  --orange: #f4743b;
  --lime: #d6ef79;
  --warning: #914315;
  --sidebar: #102f38;
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--wash); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: var(--deep); text-underline-offset: 3px; }
button, a, input, select { transition: background-color 140ms, color 140ms, border-color 140ms; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
input, select, textarea { min-width: 0; min-height: 36px; padding: 6px 10px; color: var(--ink); background: white; border: 1px solid #b8c9d0; border-radius: 6px; }
input::placeholder { color: #687b83; }
input[type="checkbox"] { width: 17px; height: 17px; min-height: 0; margin: 0; flex-shrink: 0; accent-color: var(--deep); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-family: 'Barlow Condensed', sans-serif; font-size: 36px; font-style: italic; font-weight: 700; letter-spacing: .005em; line-height: 1.15; }
h2 { margin-bottom: 0; font-size: 18px; line-height: 1.35; font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; }
small { font-size: 12px; }
summary { cursor: pointer; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px; background: white; }
.skip-link:focus { top: 8px; }
.app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 240px; overflow-y: auto; padding: 28px 16px; background: var(--sidebar); color: #c0d1d7; }
.brand { display: block; margin: 0 12px 36px; color: #fff; text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-size: 34px; font-weight: 700; font-style: italic; letter-spacing: -.015em; }
.brand span { color: var(--lime); }
.app-sidebar nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; color: #c0d1d7; border-radius: 6px; text-decoration: none; font-weight: 550; }
.app-sidebar nav a:hover { background: #15333e; color: white; }
.app-sidebar nav a[aria-current] { background: var(--lime); color: var(--sidebar); }
.app-sidebar svg { width: 18px; height: 18px; flex: 0 0 auto; }
.app-sidebar :focus-visible { outline-color: #75d0df; }
.nav-group { margin-top: 28px; }
.nav-group p { margin: 0 12px 8px; font-size: 12px; color: #94afb9; }
.app-header { min-height: 60px; margin-left: 240px; padding: 12px 32px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.app-header > span:first-of-type { font-weight: 600; }
.header-sport { margin-left: auto; font-size: 12px; color: var(--muted); }
.menu-toggle { display: none !important; }
.page { margin-left: 240px; padding: 28px 32px 40px; min-width: 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.intro-copy { max-width: 760px; color: var(--muted); margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 12px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; line-height: 1.35; }
.button-primary { color: #291d15; background: var(--orange); border-color: transparent; }
.button-primary:hover:not(:disabled) { background: #ff9259; border-color: #c7521c; }
.button-quiet { color: var(--ink); background: white; border-color: #b8c9d0; }
.button-quiet:hover:not(:disabled) { background: var(--blue-soft); border-color: var(--blue); }
button:disabled { opacity: .5; cursor: default; }
.muted, .directory-note, .profile-note { color: var(--muted); font-size: 13px; }
.quality-banner { display: flex; align-items: baseline; gap: 12px; margin: 0 0 20px; padding: 12px 16px; color: var(--warning); border-left: 3px solid var(--orange); background: #fff0e7; }
.quality-banner p { margin: 0; font-size: 13px; }
.quality-banner strong { margin-right: 5px; }
.explorer, .people-section { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.section-heading p { margin: 0; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.filters label { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 13px; }
.filters input, .filters select { width: 100%; }
.search-field { grid-column: span 2; }
.filter-actions { grid-column: span 2; display: flex; align-items: end; gap: 8px; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 20px; }
.results-toolbar p { margin: 0; color: var(--muted); }
.pagination, .directory-pages { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.table-wrap { overflow: auto; max-height: 72vh; border-radius: 0 0 8px 8px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; font-variant-numeric: tabular-nums; }
th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; background: #edf3f5; border-block: 1px solid var(--line); color: #415963; font-size: 12px; font-weight: 650; white-space: nowrap; }
td { padding: 12px; color: var(--ink); border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f3f9fa; }
.result-row { cursor: pointer; }
.competition-cell { min-width: 170px; max-width: 270px; }
.competition-cell strong, .competition-cell small, .participant-cell strong, .participant-cell small { display: block; }
.competition-cell small, .participant-cell small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.participant-cell { min-width: 180px; }
.athlete-link, .compare-link { padding: 0; color: var(--deep); background: none; border: 0; text-align: left; }
.athlete-link { font-size: 14px; font-weight: 650; }
.compare-link { display: block; margin-top: 6px; font-size: 12px; }
.athlete-link:hover, .compare-link:hover { text-decoration: underline; }
.event-cell { min-width: 190px; }
.rank-cell, .time-cell { text-align: right; font-variant-numeric: tabular-nums; }
.numeric { text-align: right; }
.time-cell { font-weight: 750; white-space: nowrap; color: var(--deep); }
.time-warning { color: var(--warning); }
.inspect-button { min-width: 36px; min-height: 36px; color: var(--deep); background: transparent; border: 1px solid var(--line); border-radius: 6px; font-size: 18px; }
.inspect-button:hover { background: var(--blue-soft); }
.empty-state { padding: 36px 20px; color: var(--muted); text-align: center; }
.review-badge { display: block; margin-top: 4px; color: var(--warning); font-size: 12px; }
.review-badge.reviewed { color: #236c57; }
/* Dialogs keep result context close to the table. */
.detail-dialog { width: min(880px, calc(100vw - 32px)); max-height: 90dvh; padding: 0; overflow: auto; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: white; }
.detail-dialog::backdrop { background: #0b202880; }
.dialog-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); background: white; }
.dialog-head h2 { font-size: 21px; overflow-wrap: anywhere; }
.close-button { min-width: 36px; height: 36px; color: var(--ink); background: #edf3f5; border: 0; border-radius: 6px; font-size: 24px; }
.detail-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding: 8px 24px 24px; }
.detail-item { min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-item span, .detail-item strong { display: block; }
.detail-item span { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.detail-item strong, .detail-item a { overflow-wrap: anywhere; font-weight: 550; }
.detail-source, .raw-section, .detail-review-link { grid-column: 1 / -1; }
.detail-compare, .detail-review-link { width: fit-content; margin-top: 16px; }
.raw-section { padding-top: 20px; }
.raw-section h3 { font-size: 14px; }
.raw-section pre, .ingest-source-text pre { max-height: 280px; overflow: auto; padding: 16px; background: var(--wash); font: 13px/1.6 ui-monospace, monospace; white-space: pre-wrap; }
/* Directories and sports profiles. */
.people-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.5fr); }
.directory-pane { min-width: 0; padding: 20px; }
.directory-pane + .directory-pane { border-left: 1px solid var(--line); }
.directory-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.directory-head h3 { margin: 0; }
.directory-head input { width: min(240px, 100%); }
.directory-note { margin: 12px 0; }
.directory-list { max-height: 65vh; overflow: auto; }
.directory-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding: 12px 8px; color: var(--ink); text-decoration: none; background: white; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.directory-row strong { font-size: 14px; font-weight: 600; }
.directory-row small { color: var(--muted); text-align: right; }
.directory-row:hover { background: var(--wash); }
.directory-row.selected { background: var(--blue-soft); }
.directory-pages { justify-content: flex-end; padding-top: 16px; }
.athlete-dialog { width: min(1000px, calc(100vw - 32px)); }
.athlete-profile { padding: 24px; }
.athlete-profile h3 { margin: 24px 0 12px; }
.athlete-profile select { width: 100%; }
.profile-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.profile-field span, .profile-field strong { display: block; overflow-wrap: anywhere; }
.profile-field span { margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.profile-field strong { font-variant-numeric: tabular-nums; }
.profile-note { margin: 16px 0; }
.trend-chart { min-height: 390px; margin-top: 16px; overflow-x: auto; border-block: 1px solid var(--line); background: #fff; }
.trend-chart svg, .comparison-chart svg { display: block; width: 100%; height: auto; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: var(--blue); stroke: white; stroke-width: 2; cursor: pointer; }
.chart-dot:hover, .chart-dot:focus-visible, .comparison-dot:hover, .comparison-dot:focus-visible { stroke: var(--ink); stroke-width: 3; outline: none; }
.chart-tick { stroke: #89a5a7; stroke-width: 1; }
.chart-axis-title { fill: var(--deep); font-size: 13px; font-weight: 600; }
.chart-instruction { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.chart-label { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.trend-results { max-height: 260px; overflow: auto; border-top: 1px solid var(--line); }
.recent-results { margin-top: 24px; }
/* PDF groups. */
.group-intro { margin: 0; padding: 16px 20px; color: var(--muted); }
.group-suggestions { padding: 0 20px 20px; }
.group-suggestion { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.group-suggestion:last-child { border-bottom: 0; }
.group-suggestion > div { min-width: 0; }
.group-suggestion strong, .group-suggestion small { display: block; }
.group-suggestion small { margin-top: 6px; color: var(--muted); }
.group-suggestion .button { flex-shrink: 0; }
.suggestion-files { display: flex; flex-direction: column; align-items: start; gap: 6px; margin-top: 12px; font-size: 13px; overflow-wrap: anywhere; }
.suggestion-files span { font-weight: 650; }
.confirmed-groups { padding: 20px; border-top: 1px solid var(--line); }
.confirmed-groups summary { font-weight: 650; }
.confirmed-group { padding: 20px 0; }
.comparison-document-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.comparison-document-row a { overflow-wrap: anywhere; }
.comparison-document-row button { flex-shrink: 0; }
/* Comparison chart and synchronized selection. */
.comparison-dialog { width: min(1320px, calc(100vw - 24px)); max-height: 94dvh; }
.comparison-body { padding: 4px 24px 24px; }
.comparison-controls { display: grid; grid-template-columns: 1fr 1.5fr 150px 180px; gap: 16px; align-items: start; }
.comparison-controls fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.comparison-controls legend, .comparison-pool span { font-size: 13px; font-weight: 600; }
.check-list { display: flex; flex-wrap: wrap; gap: 12px; max-height: 140px; overflow: auto; }
.check-list label, .comparison-flags { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.comparison-flags { padding-top: 26px; }
.comparison-pool { display: flex; flex-direction: column; gap: 8px; }
.comparison-plot-wrap { overflow-x: auto; margin-top: 20px; border-block: 1px solid var(--line); }
.comparison-chart { min-height: 390px; }
.comparison-chart svg { display: block; width: 100%; height: auto; }
.comparison-dot { stroke: white; stroke-width: 2; cursor: pointer; }
.comparison-dot.gender-male { fill: #007fa6; }
.comparison-dot.gender-female { fill: #b73571; }
.comparison-dot.gender-other { fill: #7554a8; }
.comparison-dot.gender-unknown { fill: #677b7e; }
.comparison-dot.flagged { stroke-dasharray: 3 2; stroke-width: 3; }
.comparison-dot.selected-a { stroke: var(--orange); stroke-width: 4; }
.comparison-dot.selected-b { stroke: var(--deep); stroke-width: 4; }
.chart-caption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.gender-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.gender-legend li { display: inline-flex; align-items: center; gap: 6px; }
.gender-key { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.gender-male { background-color: #007fa6; }
.gender-female { background-color: #b73571; }
.gender-other { background-color: #7554a8; }
.gender-unknown { background-color: #677b7e; }
.comparison-club { display: block; color: var(--muted); font-size: 12px; }
.comparison-measure { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 5 4; }
.comparison-handle { fill: transparent; stroke-width: 2; cursor: ew-resize; touch-action: none; }
.handle-a { stroke: var(--orange); }
.handle-b { stroke: var(--deep); }
.comparison-handle:focus { stroke-width: 4; outline: none; }
.comparison-marker-label { font-size: 14px; font-weight: 750; }
.label-a { fill: var(--warning); }
.label-b { fill: var(--deep); }
.chart-tooltip { position: fixed; z-index: 5; width: max-content; max-width: min(300px, calc(100vw - 16px)); padding: 12px 16px; background: var(--sidebar); color: white; border-radius: 6px; pointer-events: none; font-size: 13px; }
.chart-tooltip strong, .chart-tooltip span { display: block; }
.chart-tooltip strong { margin-bottom: 6px; }
.comparison-selected { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; }
.comparison-slot { max-width: 100%; padding: 8px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 6px; text-align: left; }
.comparison-slot.active { border-color: var(--deep); background: var(--blue-soft); }
.comparison-gap { font-variant-numeric: tabular-nums; }
.comparison-table-wrap { max-height: 360px; border: 1px solid var(--line); border-radius: 6px; }
.comparison-table-wrap td { white-space: nowrap; }
.comparison-table-wrap td:nth-child(2) { min-width: 180px; white-space: normal; }
.comparison-table-wrap td:nth-child(3) { font-weight: 650; text-align: right; }
.comparison-person { display: flex; align-items: center; gap: 8px; }
.comparison-person .gender-key { flex: 0 0 12px; }
.comparison-table-wrap .comparison-club { margin-left: 20px; }
.comparison-row-selected { background: var(--blue-soft); }
.comparison-pick { min-width: 36px; min-height: 36px; margin-right: 4px; background: white; color: var(--deep); border: 1px solid #b8c9d0; border-radius: 6px; }
.comparison-pick.picked { background: var(--deep); color: white; }
.comparison-documents { margin-top: 20px; }
/* Review one PDF at a time. */
.importer-upload { position: relative; cursor: pointer; overflow: hidden; }
.importer-upload:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.importer-upload input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.ingest-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 480px; }
.ingest-inbox { min-width: 0; padding: 16px; border-right: 1px solid var(--line); }
.ingest-inbox label { display: block; font-size: 13px; }
.ingest-inbox input, .ingest-inbox select { width: 100%; margin: 6px 0 12px; }
.ingest-shortcut { width: 100%; font-size: 12px; }
.ingest-queue { max-height: 68vh; overflow: auto; }
.ingest-queue-item { display: block; width: 100%; padding: 12px 8px; color: var(--ink); background: white; border: 0; border-bottom: 1px solid var(--line); text-align: left; }
.ingest-queue-item:hover { background: var(--wash); }
.ingest-queue-item.active { background: var(--blue-soft); }
.ingest-queue-item:focus-visible { outline-offset: -3px; }
.ingest-queue-item strong, .ingest-queue-item small, .ingest-queue-item span { display: block; overflow-wrap: anywhere; }
.ingest-queue-item strong { font-size: 13px; }
.ingest-queue-item small { margin-top: 4px; color: var(--deep); }
.ingest-queue-item span { margin-top: 4px; font-size: 12px; color: var(--muted); }
.ingest-workspace { min-width: 0; padding: 20px; }
.ingest-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.ingest-head strong, .ingest-head small { display: block; overflow-wrap: anywhere; }
.ingest-head small { margin-top: 4px; color: var(--muted); }
.ingest-head .button { flex-shrink: 0; }
#ingest-message { margin: 12px 0; color: var(--deep); overflow-wrap: anywhere; }
#ingest-message:empty { display: none; }
.ingest-error { color: #a72f25 !important; }
.ingest-steps { display: flex; gap: 16px; overflow-x: auto; margin: 20px 0; border-bottom: 1px solid var(--line); }
.ingest-steps button { padding: 10px 0; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.ingest-steps button[aria-selected="true"] { color: var(--deep); border-bottom-color: var(--deep); font-weight: 650; }
.ingest-document-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 1fr); gap: 20px; }
.ingest-document-grid iframe { width: 100%; min-height: 580px; height: 100%; border: 1px solid var(--line); background: var(--wash); }
.ingest-metadata { min-width: 0; }
.ingest-metadata label { display: block; margin-bottom: 12px; font-size: 13px; }
.ingest-metadata input, .ingest-metadata select { display: block; width: 100%; margin-top: 4px; }
.ingest-date-candidates { display: block; margin-top: 6px; color: var(--warning); font-weight: 400; }
.ingest-block { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
#ingest-undo { margin-bottom: 20px; }
.ingest-block-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.ingest-block-head h3 { margin: 0; }
.ingest-block-head small { font-weight: 400; color: var(--muted); }
.ingest-block-head a { font-size: 13px; }
.ingest-bulk, .ingest-map { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 12px 0; padding: 12px; background: var(--wash); }
.ingest-bulk label { flex: 1 1 150px; font-size: 13px; }
.ingest-bulk input, .ingest-bulk select { display: block; width: 100%; margin-top: 4px; }
.ingest-map label { font-size: 13px; flex: 1 1 140px; }
.ingest-map select { display: block; width: 100%; margin-top: 4px; }
.ingest-table-wrap { max-height: 65vh; overflow: auto; margin: 16px 0; border: 1px solid var(--line); }
.ingest-table { min-width: 1500px; }
.ingest-table th, .ingest-table td { padding: 8px 6px; }
.ingest-table input, .ingest-table select { width: 100%; min-width: 68px; padding: 6px; font-size: 13px; }
.ingest-table td:nth-child(4), .ingest-table td:nth-child(6), .ingest-table td:nth-child(7) { min-width: 170px; }
.ingest-table details { max-width: 200px; margin-top: 6px; font-size: 12px; overflow-wrap: anywhere; }
.ingest-source-text { margin-top: 20px; }
.ingest-review p { color: var(--muted); }
#ingest-verdict { padding: 12px 0; font-weight: 650; border-block: 1px solid var(--line); font-variant-numeric: tabular-nums; }
#ingest-alerts { margin: 16px 0; }
#ingest-alerts p { margin-bottom: 8px; font-weight: 600; }
#ingest-alerts ul { max-height: 240px; overflow: auto; padding-left: 20px; }
.ingest-unmatched { margin: 16px 0; padding: 12px; color: var(--warning); background: #fff0e7; }
.ingest-coverage { display: flex; align-items: start; gap: 8px; margin: 20px 0; }
.ingest-coverage input { margin-top: 3px; }
.ingest-step-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--line); }
/* Compact home, with real coverage and direct routes. */
body[data-page="summary"] .page { max-width: 1420px; }
.home-summary { margin: 0 0 32px; padding: 20px 0; border-block: 1px solid var(--line); }
.home-summary dl { display: flex; flex-wrap: wrap; gap: 24px 48px; margin: 0; }
.home-summary dt { color: var(--muted); font-size: 13px; }
.home-summary dd { margin: 4px 0 0; font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; }
.home-summary p { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.home-section { margin: 28px 0; }
.home-section h2 { margin-bottom: 12px; }
.home-tool { display: grid; grid-template-columns: 220px 1fr 24px; gap: 20px; align-items: baseline; padding: 16px 0; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.home-tool:hover { background: #edf4f6; }
.home-tool strong { font-weight: 600; }
.home-tool span { color: var(--muted); }
.coverage-note { margin-top: 32px; color: var(--muted); font-size: 13px; }
@media (min-width: 1700px) { .filters { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1200px) {
  .page { padding: 24px; }
  .app-header { padding-inline: 24px; }
  .ingest-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .ingest-document-grid { grid-template-columns: 1fr; }
  .ingest-document-grid iframe { min-height: 420px; height: 420px; }
  .people-grid { grid-template-columns: 1fr 1.25fr; }
  .directory-row { flex-direction: column; align-items: start; gap: 4px; }
  .directory-row small { text-align: left; }
  .comparison-controls { grid-template-columns: 1fr 1fr; }
  .group-suggestion { flex-direction: column; gap: 12px; }
}
@media (max-width: 1000px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ingest-layout { grid-template-columns: 1fr; }
  .ingest-inbox { border-right: 0; border-bottom: 1px solid var(--line); }
  .ingest-queue { max-height: 200px; }
  .home-tool { grid-template-columns: 1fr 24px; gap: 4px 16px; }
  .home-tool span:first-of-type { grid-column: 1; }
  .home-tool span:last-of-type { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
@media (max-width: 760px) {
  .app-sidebar { display: none; top: 64px; width: min(280px, 85vw); border-right: 1px solid var(--line); }
  .menu-open .app-sidebar { display: block; }
  .app-header { margin-left: 0; padding: 10px 16px; }
  .menu-toggle { display: inline-flex !important; }
  .header-sport { display: none; }
  .page { margin-left: 0; padding: 24px 16px; }
  .page-heading { align-items: start; flex-direction: column; }
  h1 { font-size: 32px; }
  .button, input, select { min-height: 44px; }
  .section-heading, .filters, .results-toolbar { padding: 16px; }
  .people-grid { grid-template-columns: 1fr; }
  .directory-pane + .directory-pane { border-left: 0; border-top: 1px solid var(--line); }
  .directory-list { max-height: 45vh; }
  .ingest-workspace { padding: 16px; }
  .ingest-head { flex-wrap: wrap; }
  .ingest-head strong { font-size: 13px; }
  .ingest-steps { gap: 12px; font-size: 13px; }
  .comparison-controls { grid-template-columns: 1fr; }
  .comparison-flags { padding-top: 0; }
  .comparison-body, .athlete-profile, .dialog-head { padding: 16px; }
  .detail-content { padding: 4px 16px 16px; grid-template-columns: 1fr; }
  .profile-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .comparison-document-row { flex-wrap: wrap; }
  .home-summary dl { gap: 20px 32px; }
  .home-summary dl > div { min-width: 100px; }
  .pagination { width: 100%; justify-content: space-between; }
}
/* Short press feedback, explicitly requested for the sports interface. */
.button, .inspect-button, .close-button, .comparison-pick, .comparison-slot {
  transition: background-color 150ms, color 150ms, border-color 150ms, transform 120ms ease-out;
}
.button:active:not(:disabled), .inspect-button:active, .close-button:active,
.comparison-pick:active, .comparison-slot:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; transform: none !important; scroll-behavior: auto !important; } }
/* Club directory and profiles. Keep the editorial rhythm used by the result browser. */
.club-page { max-width: 1420px; }
.club-directory { display: grid; grid-template-columns: minmax(240px, 1fr) auto; align-items: end; gap: 16px 24px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.club-search { display: flex; flex-direction: column; gap: 6px; max-width: 620px; font-size: 13px; font-weight: 600; }
.club-search input { width: 100%; }
.club-directory > #club-count { margin: 0 0 8px; text-align: right; font-variant-numeric: tabular-nums; }
.club-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; grid-column: 1 / -1; }
.club-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-width: 0; min-height: 154px; padding: 18px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; }
.club-card:hover { border-color: #8caea9; background: #fbfdfb; }
.club-card-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.club-card-identity img, .club-mark { display: grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px; object-fit: contain; color: white; background: var(--deep); border: 0; border-radius: 6px; }
.club-mark { color: var(--lime); font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-style: italic; font-weight: 700; }
.club-card-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.club-card-text strong { font-size: 15px; line-height: 1.35; }
.club-card-text span, .club-card-stats { color: var(--muted); font-size: 12px; }
.club-card-text span { overflow-wrap: anywhere; }
.club-card-stats { padding-top: 12px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.club-profile { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.club-profile-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 26px 28px; background: #edf4f1; border-bottom: 1px solid var(--line); }
.club-profile-identity { display: flex; align-items: center; gap: 20px; min-width: 0; }
.club-profile-identity > img, .club-profile-mark { flex: 0 0 88px; width: 88px; height: 88px; padding: 8px; object-fit: contain; background: white; border: 1px solid var(--line); border-radius: 7px; }
.club-profile-mark { display: grid; place-items: center; color: var(--lime); background: var(--deep); font-family: 'Barlow Condensed', sans-serif; font-size: 38px; font-style: italic; font-weight: 700; }
.club-profile-identity > div { min-width: 0; }
.club-profile-identity p { max-width: 620px; margin: 9px 0 0; color: var(--muted); }
.club-status { display: inline-block; padding: 4px 7px; color: #31584c; background: white; border: 1px solid #cbdcd3; border-radius: 4px; font-size: 12px; }
.club-stat-line { display: flex; gap: 0; flex-shrink: 0; }
.club-stat-line > div { min-width: 96px; padding: 0 16px; border-left: 1px solid #cbdcd3; }
.club-stat-line strong, .club-stat-line span { display: block; }
.club-stat-line strong { color: var(--deep); font-size: 23px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.club-stat-line span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.club-profile-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 36px; padding: 26px 28px; }
.club-profile-grid h2 { margin-bottom: 12px; font-size: 17px; }
.club-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.club-fact { min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.club-fact > span:first-child { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.club-fact > strong { font-weight: 550; }
.club-fact a { overflow-wrap: anywhere; }
.club-map-section iframe { display: block; width: 100%; height: 270px; margin-bottom: 10px; background: var(--wash); border: 1px solid var(--line); border-radius: 6px; }
.club-source { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 14px 28px; color: var(--muted); background: #fafcfa; border-top: 1px solid var(--line); font-size: 12px; }
.club-admin { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.8fr); overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.club-admin-list { min-width: 0; padding: 20px; background: #f7f9f7; border-right: 1px solid var(--line); }
.club-admin-list label, .club-form label { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; font-size: 13px; font-weight: 550; }
.club-admin-list input { width: 100%; }
.club-admin-list .directory-list { max-height: 72vh; }
.club-admin-list .directory-row { flex-direction: column; align-items: start; gap: 4px; background: transparent; }
.club-admin-list .directory-row:hover { background: white; }
.club-form { min-width: 0; padding: 24px 28px; }
.club-form h2 { margin-bottom: 20px; font-size: 22px; }
.club-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 0 0 18px; padding: 16px 16px 2px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.club-form legend { padding: 0 6px; font-size: 14px; font-weight: 650; }
.club-form textarea { width: 100%; resize: vertical; }
.club-form fieldset label:has(textarea) { grid-column: 1 / -1; }
.form-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-save-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 4px; }
.admin-save-row p { margin: 0; color: var(--muted); }
@media (max-width: 1100px) { .club-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .club-profile-top { align-items: start; flex-direction: column; } .club-admin { grid-template-columns: 1fr; } .club-admin-list { border-right: 0; border-bottom: 1px solid var(--line); } .club-admin-list .directory-list { max-height: 240px; } }
@media (max-width: 760px) { .club-directory { grid-template-columns: 1fr; padding: 16px; } .club-directory > #club-count { text-align: left; margin: 0; } .club-cards, .club-profile-grid, .club-facts, .club-form fieldset { grid-template-columns: 1fr; } .club-card { min-height: 130px; } .club-profile-top { gap: 22px; padding: 20px 16px; } .club-profile-grid { gap: 24px; padding: 20px 16px; } .club-profile-identity { align-items: start; } .club-profile-identity > img, .club-profile-mark { flex-basis: 68px; width: 68px; height: 68px; } .club-stat-line { width: 100%; justify-content: space-between; } .club-stat-line > div { min-width: 0; padding-inline: 12px; } .club-stat-line > div:first-child { padding-left: 0; border-left: 0; } .club-source { padding-inline: 16px; } .club-form { padding: 18px 16px; } }
