:root {
  color-scheme: light;
  --bg: #edf3fb;
  --bg-accent: #f7fbff;
  --ink: #0f1b37;
  --muted: #5b6882;
  --muted-soft: #8090ab;
  --line: #d8e2f0;
  --line-strong: #c1d1e7;
  --panel: rgba(255, 255, 255, 0.97);
  --panel-alt: #f6f9fd;
  --header-bg: #172133;
  --header-line: rgba(255, 255, 255, 0.08);
  --accent: #2f6df6;
  --accent-dark: #1d4fd7;
  --accent-soft: #e8f0ff;
  --accent-strong: #163d95;
  --shadow-soft: 0 22px 50px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 8px 20px rgba(15, 23, 42, 0.06);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fbff 0, #f2f7fd 220px, var(--bg) 100%);
  color: var(--ink);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-dark);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(47, 109, 246, 0.24);
  outline-offset: 2px;
}

code {
  background: #f3f5f7;
  border-radius: 6px;
  padding: 0.14rem 0.36rem;
}

.site-header {
  background: linear-gradient(180deg, #1b263b 0%, var(--header-bg) 100%);
  border-bottom: 1px solid var(--header-line);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  padding: 16px clamp(16px, 4vw, 40px);
  width: 100%;
}

.brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.brand-mark {
  color: #f8fbff;
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: rgba(232, 239, 251, 0.72);
  font-size: 0.88rem;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav__link {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(244, 248, 255, 0.85);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 650;
  min-height: 42px;
  padding: 0 14px;
  text-decoration: none;
}

.site-nav__link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.site-nav__link.is-active {
  background: rgba(47, 109, 246, 0.2);
  border-color: rgba(95, 148, 255, 0.42);
  box-shadow: var(--shadow-card);
  color: #fff;
}

.page {
  margin: 0 auto;
  max-width: 1240px;
  padding: 32px clamp(16px, 4vw, 40px) 72px;
}

@media (min-width: 1440px) {
  .site-header__inner,
  .page {
    max-width: 1600px;
  }

  .page {
    padding-left: clamp(24px, 3vw, 48px);
    padding-right: clamp(24px, 3vw, 48px);
  }
}

.hero {
  padding: 56px 0 24px;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
}

h3 {
  font-size: 1.08rem;
}

p {
  margin: 0 0 1rem;
}

.search-form,
.filter-card {
  display: grid;
  gap: 16px;
}

label {
  color: var(--ink);
  display: block;
  font-weight: 650;
  margin-bottom: 8px;
}

.search-row {
  align-items: center;
  display: flex;
  gap: 12px;
}

input[type="search"],
input:not([type]),
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  flex: 1;
  font: inherit;
  min-height: 46px;
  min-width: 0;
  padding: 11px 14px;
}

input[type="search"]::placeholder,
input:not([type])::placeholder {
  color: var(--muted-soft);
}

input[type="search"]:hover,
input:not([type]):hover,
select:hover {
  border-color: var(--line-strong);
}

input[type="search"]:focus-visible,
input:not([type]):focus-visible,
select:focus-visible {
  border-color: var(--accent);
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.eyebrow-muted {
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.page-intro {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
  max-width: 68ch;
}

.page-note,
.section-lead,
.table-note {
  color: var(--muted);
  margin: 0;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.surface {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.surface--muted {
  background: linear-gradient(180deg, #fff7f8 0%, #ffffff 100%);
}

.v2-shell {
  display: grid;
  gap: 24px;
}

.dashboard-shell {
  gap: 28px;
}

.dashboard-hero {
  gap: 24px;
  overflow: hidden;
  padding: 24px 34px 28px;
}

.dashboard-hero__main {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.9fr) minmax(300px, 0.95fr);
}

.dashboard-hero__content {
  display: grid;
  gap: 16px;
}

.dashboard-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 54ch;
}

.dashboard-search-form {
  background: linear-gradient(180deg, #f8fbff 0%, #f5f9ff 100%);
  border: 1px solid #d7e3f5;
  border-radius: 24px;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.dashboard-search-form__label {
  font-size: 0.92rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.dashboard-search-form__row {
  align-items: center;
  display: flex;
  gap: 14px;
}

.dashboard-search-form__row input[type="search"] {
  border-radius: 16px;
  font-size: 1.12rem;
  min-height: 60px;
  padding: 16px 18px;
}

.dashboard-search-form__row button {
  min-height: 60px;
  min-width: 176px;
  padding: 0 26px;
  white-space: nowrap;
}

.dashboard-search-form__hint,
.dashboard-mini-link span,
.dashboard-link-list__item span,
.dashboard-line-chart__label span {
  color: var(--muted);
}

.dashboard-chip,
.event-type-pill {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid #c9dafe;
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  text-decoration: none;
  white-space: nowrap;
}

.event-type-pill--ironman {
  background: #e8f0ff;
  border-color: #cddcfe;
  color: #2854c8;
}

.event-type-pill--ironman-70-3 {
  background: #edf4ff;
  border-color: #d6e1fb;
  color: #2f6df6;
}

.event-type-pill--aquabike {
  background: #eaf8f7;
  border-color: #caece8;
  color: #13766f;
}

.event-type-pill--5150 {
  background: #fff5e6;
  border-color: #f2dbb2;
  color: #9b6200;
}

.event-type-pill--unknown {
  background: #f3f5f9;
  border-color: #d7dde8;
  color: #5b6882;
}

.status-pill {
  align-items: center;
  background: #f3f5f9;
  border: 1px solid #d7dde8;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 760;
  justify-content: center;
  min-height: 34px;
  min-width: 74px;
  padding: 0 12px;
  white-space: nowrap;
}

.status-pill--finished {
  background: #eaf7ef;
  border-color: #cfe8d8;
  color: #147347;
}

.status-pill--dnf,
.status-pill--dns,
.status-pill--nc,
.status-pill--dsq {
  background: #fff3ed;
  border-color: #f3d1c2;
  color: #b4532a;
}

.dashboard-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.dashboard-hero__action {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
}

.dashboard-hero__action:hover {
  border-color: #c3d3eb;
  box-shadow: var(--shadow-card);
}

.dashboard-hero__aside,
.dashboard-side-stack {
  display: grid;
  gap: 18px;
}

.dashboard-mini-links,
.dashboard-link-list {
  display: grid;
  gap: 12px;
}

.dashboard-mini-link,
.dashboard-link-list__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  text-decoration: none;
}

.dashboard-mini-link:hover,
.dashboard-link-list__item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.dashboard-mini-link strong,
.dashboard-link-list__item strong {
  color: var(--ink);
}

.dashboard-spotlight-card,
.dashboard-quick-actions {
  background: linear-gradient(180deg, #f9fbff 0%, #f5f9ff 100%);
  border: 1px solid #d7e3f5;
  border-radius: 24px;
  display: grid;
  gap: 18px;
  padding: 22px;
}

.dashboard-spotlight-card__header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.dashboard-spotlight-card__header h2 {
  font-size: 1.28rem;
  margin-bottom: 0;
}

.dashboard-spotlight-card__badge {
  background: #eaf2ff;
  border: 1px solid #cfddf8;
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.dashboard-spotlight-grid {
  display: grid;
  gap: 14px;
}

.dashboard-spotlight-stat {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #dce6f5;
  border-radius: 18px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.dashboard-spotlight-stat span,
.dashboard-chart-highlight span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-spotlight-stat strong {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.dashboard-spotlight-stat small {
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-hero__footer {
  border-top: 1px solid #e3eaf3;
  margin-top: 4px;
  padding-top: 18px;
}

.dashboard-metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.dashboard-metric-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.dashboard-metric {
  display: grid;
  border-top: 3px solid transparent;
  gap: 6px;
  min-height: 100%;
  padding: 18px 20px;
}

.dashboard-metric[title] {
  cursor: help;
}

.dashboard-metric--blue {
  border-top-color: #4f86ff;
}

.dashboard-metric--teal {
  border-top-color: #18a5a8;
}

.dashboard-metric--indigo {
  border-top-color: #7b70f0;
}

.dashboard-metric--violet {
  border-top-color: #a980f5;
}

.dashboard-metric--gold {
  border-top-color: #f3b24d;
}

.dashboard-metric__label,
.dashboard-operator-links__label,
.dashboard-panel__eyebrow {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-metric__value {
  font-size: clamp(1.72rem, 2.8vw, 2.15rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.dashboard-main-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, 0.95fr);
}

.dashboard-lower-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
}

.results-v3-insights-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.7fr);
}

.results-v3-top-athletes-list {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow-x: visible;
}

.results-v3-top-athletes-list__header,
.results-v3-top-athletes-list__item {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 24px minmax(0, 1fr) minmax(48px, 64px);
}

.results-v3-top-athletes-list__header {
  color: var(--color-muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.results-v3-top-athletes-list__header span:first-child {
  grid-column: 2;
}

.results-v3-top-athletes-list__header span:last-child,
.results-v3-top-athletes-list__count {
  justify-self: end;
  text-align: right;
}

.results-v3-top-athletes-list__item {
  border-top: 1px solid var(--color-border-soft);
  min-width: 0;
  padding: 8px 0;
}

.results-v3-top-athletes-list__rank {
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.results-v3-top-athletes-list__athlete,
.results-v3-top-athletes-list__athlete .analytics-table__primary-link {
  min-width: 0;
  overflow-wrap: anywhere;
}

.results-v3-top-athletes-list__count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.repeat-analytics-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1.1fr);
}

.dashboard-panel {
  display: grid;
  gap: 18px;
  min-height: 100%;
  padding: 22px;
}

.dashboard-panel--wide {
  min-width: 0;
}

.dashboard-side-column {
  display: grid;
  gap: 24px;
}

.dashboard-panel__header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.dashboard-panel__header h2 {
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  margin-bottom: 8px;
}

.dashboard-panel__action {
  align-items: center;
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  min-height: 40px;
  padding: 0 14px;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dashboard-panel--chart {
  gap: 20px;
}

.dashboard-line-chart {
  display: grid;
  gap: 16px;
}

.dashboard-line-chart__svg {
  height: auto;
  width: 100%;
}

.dashboard-chart-shell {
  display: grid;
  gap: 16px;
}

.dashboard-chart-shell__main {
  min-width: 0;
}

.dashboard-line-chart__grid {
  stroke: #dde7f4;
  stroke-dasharray: 4 6;
}

.dashboard-line-chart__area {
  fill: rgba(47, 109, 246, 0.1);
}

.dashboard-line-chart__path {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}

.dashboard-line-chart__point {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 3;
}

.dashboard-line-chart__tick,
.dashboard-line-chart__xlabel {
  fill: var(--muted-soft);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
}

.dashboard-chart-highlights {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.dashboard-chart-highlight {
  background: var(--panel-alt);
  border: 1px solid #dde7f4;
  border-radius: 16px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.dashboard-chart-highlight strong,
.dashboard-bar-row__value {
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.dashboard-bars {
  display: grid;
  gap: 14px;
}

.dashboard-bar-row {
  align-items: center;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(120px, 1.6fr) minmax(120px, 2fr) auto;
  text-decoration: none;
}

.dashboard-bar-row__meta {
  display: grid;
  gap: 2px;
}

.dashboard-bar-row__track {
  background: #edf3fb;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.dashboard-bar-row__fill {
  background: linear-gradient(90deg, #81aafc 0%, var(--accent) 100%);
  border-radius: 999px;
  display: block;
  height: 100%;
}

.dashboard-table {
  min-width: 100%;
}

.dashboard-table thead th {
  background: #f6f9fd;
}

.dashboard-table tbody td {
  font-size: 0.96rem;
}

.dashboard-rank-list {
  display: grid;
}

.dashboard-rank-list__item {
  align-items: center;
  border-top: 1px solid #e4ebf5;
  color: inherit;
  column-gap: 12px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  padding: 14px 0;
  text-decoration: none;
}

.dashboard-rank-list__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.dashboard-rank-list__rank {
  color: var(--muted-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-rank-list__name {
  color: var(--ink);
  font-weight: 650;
}

.dashboard-rank-list__meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.dashboard-insight-list {
  color: var(--muted);
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.25rem;
}

.dashboard-insight-list li {
  padding-left: 0.1rem;
}

.dashboard-operator-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 18px;
}

.dashboard-operator-link {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.explorer-shell {
  gap: 28px;
}

.explorer-hero {
  display: grid;
  gap: 18px;
  padding: 28px 30px 26px;
}

.explorer-hero__header {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.explorer-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.explorer-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.explorer-filter-chip {
  align-items: center;
  background: #f7fafe;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
}

.explorer-filter-chip strong {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.explorer-context-note {
  color: var(--muted);
  margin: 0;
}

.explorer-hero__footer {
  border-top: 1px solid #e3eaf3;
  padding-top: 18px;
}

.explorer-filter-panel {
  gap: 20px;
}

.explorer-filter-form {
  display: grid;
  gap: 14px;
}

.explorer-filter-row {
  display: grid;
  gap: 14px 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
}

.explorer-filter-row--compact {
  align-items: end;
  grid-template-columns: minmax(180px, 280px) auto;
}

.explorer-filter-actions {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(96px, 140px) auto auto;
  justify-content: end;
  min-width: 0;
}

.explorer-filter-actions--inline {
  grid-template-columns: auto;
  justify-content: start;
}

.explorer-filter-limit {
  min-width: 0;
}

.button-link--muted {
  background: var(--panel-alt);
}

.button-link--muted:hover {
  background: #eef4fb;
}

.explorer-table-panel {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.explorer-table-panel .dashboard-panel__header {
  padding: 22px 24px 0;
}

.explorer-table-scroll {
  padding-top: 12px;
}

.athlete-search-panel,
.athlete-profile-panel {
  gap: 20px;
}

.athlete-search-form {
  display: grid;
  gap: 14px;
}

.athlete-search-form__label,
.athlete-profile-summary__label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.athlete-search-form__row {
  align-items: center;
  display: flex;
  gap: 14px;
}

.athlete-search-form__row input[type="search"] {
  border-radius: 16px;
  flex: 1 1 auto;
  font-size: 1.04rem;
  min-height: 56px;
  padding: 15px 18px;
  width: 100%;
}

.athlete-search-form__row button {
  min-height: 56px;
  min-width: 168px;
  padding: 0 24px;
  white-space: nowrap;
}

.athlete-search-form__row .button-link {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 56px;
  min-width: 112px;
  padding: 0 18px;
}

.athlete-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.athlete-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  color: inherit;
  display: grid;
  gap: 16px;
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.athlete-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
  transform: translateY(-1px);
}

.athlete-card__header {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.athlete-card__header h3 {
  font-size: 1.12rem;
  margin-bottom: 4px;
}

.athlete-card__header p,
.athlete-card__metrics span {
  color: var(--muted);
  margin: 0;
}

.athlete-card__cta {
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 760;
  white-space: nowrap;
}

.athlete-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.athlete-card__metrics strong {
  color: var(--ink);
  font-weight: 760;
}

.explorer-empty-panel {
  background: linear-gradient(180deg, #f9fbff 0%, #f5f9ff 100%);
  border: 1px solid #d7e3f5;
  border-radius: 20px;
  padding: 20px 22px;
}

.explorer-empty-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.explorer-empty-panel p:last-child {
  margin-bottom: 0;
}

.athlete-profile-shell {
  gap: 28px;
}

.athlete-profile-hero__header {
  gap: 24px;
}

.athlete-profile-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.athlete-profile-hero__footer {
  border-top: 1px solid #e3eaf3;
  padding-top: 18px;
}

.athlete-analytics-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.athlete-analytics-card,
.athlete-profile-panel--timeline {
  min-width: 0;
}

.athlete-analytics-card--chart .v2-chart-card__canvas-shell {
  min-height: 280px;
}

.athlete-analytics-card--chart .v2-chart-card__canvas {
  height: 280px !important;
}

.athlete-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.athlete-chip {
  align-items: center;
  background: #f7fafe;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
}

.athlete-chip strong {
  color: var(--accent-dark);
  font-size: 0.88rem;
}

.athlete-status-list {
  align-items: center;
  display: grid;
  gap: 10px 12px;
  grid-template-columns: auto 1fr;
}

.athlete-finish-timeline-table {
  min-width: 0;
  table-layout: auto;
  width: 100%;
}

.athlete-finish-timeline-table th,
.athlete-finish-timeline-table td {
  font-size: 0.9rem;
  padding: 10px 12px;
}

.athlete-finish-timeline-table thead th {
  line-height: 1.2;
  white-space: normal;
}

.athlete-finish-timeline-table th:nth-child(1),
.athlete-finish-timeline-table td:nth-child(1) {
  width: 14%;
}

.athlete-finish-timeline-table th:nth-child(2),
.athlete-finish-timeline-table td:nth-child(2) {
  width: 16%;
}

.athlete-finish-timeline-table th:nth-child(3),
.athlete-finish-timeline-table td:nth-child(3) {
  width: 14%;
}

.athlete-finish-timeline-table th:nth-child(4),
.athlete-finish-timeline-table td:nth-child(4),
.athlete-finish-timeline-table th:nth-child(5),
.athlete-finish-timeline-table td:nth-child(5) {
  width: 28%;
}

.athlete-history-table {
  min-width: 1180px;
}

.club-shell,
.club-profile-shell {
  gap: 28px;
}

.club-search-panel,
.club-profile-panel {
  gap: 20px;
}

.club-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.club-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  color: inherit;
  display: grid;
  gap: 16px;
  padding: 18px 20px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.club-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.09);
  transform: translateY(-1px);
}

.club-card__header {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.club-card__header h3 {
  font-size: 1.12rem;
  margin-bottom: 4px;
}

.club-card__header p,
.club-card__metrics span {
  color: var(--muted);
  margin: 0;
}

.club-card__cta {
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 760;
  white-space: nowrap;
}

.club-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.club-card__metrics strong {
  color: var(--ink);
  font-weight: 760;
}

.club-profile-hero__header {
  gap: 24px;
}

.club-profile-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.club-profile-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
}

.club-profile-panel--wide {
  gap: 14px;
  min-width: 0;
}

.club-profile-side {
  display: grid;
  gap: 24px;
}

.club-top-list {
  display: grid;
  gap: 10px;
}

.club-participation-table {
  min-width: 720px;
}

.analytics-table--club-participation {
  min-width: 620px;
}

.analytics-table--club-first-recorded {
  min-width: 900px;
}

.analytics-table--club-finish-rankings {
  min-width: 720px;
}

.club-results-table {
  min-width: 1040px;
}

.location-browser-table {
  min-width: 820px;
}

.location-profile-legends-shell {
  overflow: hidden;
}

.location-profile-legends-table,
.location-profile-legends-table.data-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.location-profile-legends-table__athlete-column {
  width: auto;
}

.location-profile-legends-table__finishes-column {
  width: 68px;
}

.location-profile-legends-table__athlete-header,
.location-profile-legends-table__athlete-cell {
  padding-right: 2px;
}

.location-profile-legends-table__count-header,
.location-profile-legends-table__count-cell {
  white-space: nowrap;
  width: 68px;
}

.location-profile-legends-table th,
.location-profile-legends-table td {
  padding: 8px 3px;
}

.location-profile-legends-table__count-header,
.location-profile-legends-table__count-cell {
  padding-left: 2px;
  padding-right: 2px;
  text-align: right;
}

.location-profile-legends-table .analytics-table__primary-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-clubs-table {
  min-width: 640px;
}

.location-event-history-table {
  min-width: 860px;
}

.event-results-table {
  min-width: 1360px;
}

.event-detail-breakdown-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(320px, 1.05fr);
}

.event-detail-breakdown-column {
  align-content: start;
  display: grid;
  gap: 24px;
}

.event-detail-breakdown-column--feature {
  grid-template-rows: 1fr;
}

.event-detail-breakdown-panel {
  min-width: 0;
}

.event-detail-breakdown-feature {
  align-self: stretch;
}

.event-detail-result-context {
  margin-top: 2px;
}

.v2-chart-card {
  min-width: 0;
}

.v2-chart-card__definition {
  margin-top: 0;
}

.v2-chart-card__canvas-shell {
  min-height: 320px;
  position: relative;
}

.v2-chart-card__canvas {
  display: block;
  height: 320px !important;
  max-width: 100%;
  width: 100% !important;
}

.results-v3-age-group-panel .v2-chart-card__canvas-shell {
  min-height: 560px;
}

.results-v3-age-group-panel .v2-chart-card__canvas {
  height: 560px !important;
}

.club-detail-age-group-panel .v2-chart-card__canvas-shell {
  min-height: 560px;
}

.club-detail-age-group-panel .v2-chart-card__canvas {
  height: 560px !important;
}

.v2-chart-card--compact .v2-chart-card__canvas-shell {
  min-height: 240px;
}

.v2-chart-card--compact .v2-chart-card__canvas {
  height: 240px !important;
}

.page-header-card {
  display: grid;
  gap: 18px;
}

.hero-split {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.summary-card {
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}

.summary-card p:last-child {
  margin-bottom: 0;
}

.page-grid,
.grid-two,
.chart-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.link-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.link-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  color: inherit;
  display: block;
  min-height: 100%;
  padding: 18px 18px 16px;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.link-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.link-card strong {
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}

.link-card span {
  color: var(--muted);
  display: block;
  font-size: 0.95rem;
}

.secondary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.secondary-link {
  color: var(--muted);
  font-weight: 650;
}

.metric-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.metric {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfc 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}

.metric span {
  color: var(--muted);
  font-size: 0.92rem;
}

.metric strong {
  display: block;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-top: 8px;
}

.filter-grid {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.field {
  min-width: 0;
}

.field input,
.field select {
  width: 100%;
}

.form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.notice {
  background: #fff9f2;
  border: 1px solid #eedcbc;
  border-radius: 16px;
  padding: 18px 20px;
}

.notice p:last-child {
  margin-bottom: 0;
}

.command-box {
  background: #f7fafc;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  overflow-x: auto;
  padding: 16px;
}

.command-box code {
  background: transparent;
  padding: 0;
}

button {
  background: linear-gradient(180deg, #4a84ff 0%, var(--accent) 100%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 46px;
  padding: 0 18px;
}

button:hover {
  filter: brightness(0.97);
}

.button-link {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 650;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  text-decoration: none;
}

.button-link:hover {
  background: var(--panel-alt);
  border-color: var(--line-strong);
}

.result-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.result-count {
  color: var(--muted);
  margin: 0;
}

.result-list li {
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.result-list li span {
  color: var(--muted);
}

.meta-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0;
}

.meta-list div {
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

dd {
  font-size: 1.02rem;
  font-weight: 650;
  margin: 6px 0 0;
}

.subnav-shell {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: space-between;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subnav-link {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  color: var(--ink);
  font-weight: 650;
  min-height: 42px;
  padding: 9px 14px;
  text-decoration: none;
}

.subnav-link:hover {
  background: var(--panel-alt);
  border-color: var(--line-strong);
}

.subnav-link.is-active {
  background: linear-gradient(180deg, #4a84ff 0%, var(--accent) 100%);
  border-color: var(--accent);
  box-shadow: none;
  color: #fff;
}

.subnav-link.is-secondary {
  color: var(--muted);
}

.subnav-link.is-secondary.is-active {
  background: var(--accent-soft);
  border-color: #b9cdfb;
  color: var(--accent-dark);
}

.table-card {
  overflow: hidden;
  padding: 0;
}

.table-card__header {
  padding: 22px 24px 0;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
  width: 100%;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: var(--panel-alt);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table tbody td {
  border-top: 1px solid var(--line);
}

.data-table tbody tr:first-child td {
  border-top: 0;
}

.data-table tbody tr:hover {
  background: #f8fbff;
}

.analytics-table {
  min-width: 980px;
}

.analytics-table thead th {
  background: linear-gradient(180deg, #f8fbff 0%, #f4f8fd 100%);
  border-bottom: 1px solid #dce5f1;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.analytics-table td {
  padding-top: 15px;
  padding-bottom: 15px;
}

.analytics-table tbody td {
  border-top: 1px solid #e6edf6;
}

.analytics-table tbody tr:hover {
  background: #f7fbff;
}

.analytics-table__primary {
  display: grid;
  gap: 4px;
}

.analytics-table__primary-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.analytics-table__primary-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.analytics-table__secondary {
  color: var(--muted);
  font-size: 0.9rem;
}

.analytics-table__meta-row {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.9rem;
}

.analytics-table__meta-row .event-type-pill {
  min-height: 30px;
  padding: 0 11px;
}

.analytics-table--results {
  min-width: 1160px;
}

.repeat-athletes-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.repeat-athletes-table th,
.repeat-athletes-table td {
  padding-left: 6px;
  padding-right: 6px;
}

.repeat-athletes-table th {
  line-height: 1.2;
  white-space: normal;
}

.repeat-athletes-table td {
  white-space: nowrap;
}

.repeat-athletes-table th:first-child,
.repeat-athletes-table td:first-child {
  overflow: hidden;
  padding-left: 16px;
  padding-right: 10px;
  text-overflow: ellipsis;
  width: 32%;
}

.repeat-athletes-table th:not(:first-child),
.repeat-athletes-table td:not(:first-child) {
  width: 13.6%;
}

.repeat-athletes-table .analytics-table__primary-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-legends-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.location-legends-table th,
.location-legends-table td {
  padding-left: 4px;
  padding-right: 4px;
}

.location-legends-table th {
  font-size: 0.76rem;
  line-height: 1.2;
  white-space: normal;
}

.location-legends-table td {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-legends-table th:nth-child(1),
.location-legends-table td:nth-child(1) {
  padding-left: 12px;
  width: 30%;
}

.location-legends-table th:nth-child(2),
.location-legends-table td:nth-child(2) {
  width: 22%;
}

.location-legends-table th:nth-child(3),
.location-legends-table td:nth-child(3) {
  width: 8%;
}

.location-legends-table th:nth-child(4),
.location-legends-table td:nth-child(4),
.location-legends-table th:nth-child(5),
.location-legends-table td:nth-child(5),
.location-legends-table th:nth-child(6),
.location-legends-table td:nth-child(6) {
  width: 13.333%;
}

.location-legends-table .analytics-table__primary-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-legends-table .event-type-pill {
  font-size: 0.78rem;
  min-height: 26px;
  min-width: 0;
  padding-left: 6px;
  padding-right: 6px;
}

.align-right {
  font-variant-numeric: tabular-nums;
  text-align: right !important;
}

.nowrap,
.time-cell {
  white-space: nowrap;
}

.time-cell {
  font-variant-numeric: tabular-nums;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  padding: 18px 24px 24px;
}

.pagination a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 650;
  padding: 9px 14px;
  text-decoration: none;
}

.pagination a:hover {
  background: var(--panel-alt);
  border-color: var(--line-strong);
}

.pagination__current,
.pagination__ellipsis {
  align-items: center;
  color: var(--muted);
  display: inline-flex;
  font-weight: 650;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
}

.pagination__current {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  padding: 9px 14px;
}

.chart-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.bar-list {
  display: grid;
  gap: 0;
}

.bar-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(170px, 2fr) minmax(180px, 4fr) minmax(84px, auto);
  padding: 12px 0;
}

.bar-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.bar-meta strong,
.bar-value {
  display: block;
}

.bar-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.bar-track {
  background: #edf1f4;
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.bar-fill {
  background: linear-gradient(90deg, #df6b52, var(--accent));
  border-radius: 999px;
  display: block;
  height: 100%;
}

.bar-fill-time {
  background: linear-gradient(90deg, #dfa24d, #b9691d);
}

.bar-fill-club {
  background: linear-gradient(90deg, #58a087, #1e6a57);
}

.bar-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

.support-list {
  color: var(--muted);
  margin: 0;
  padding-left: 1.2rem;
}

.support-list li + li {
  margin-top: 0.45rem;
}

.empty-state {
  color: var(--muted);
  margin: 0;
  padding: 24px;
}

@media (max-width: 900px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .subnav-shell {
    flex-direction: column;
  }

  .explorer-hero__header {
    flex-direction: column;
  }

  .explorer-hero__meta {
    justify-content: flex-start;
  }

  .dashboard-hero__main,
  .dashboard-main-grid,
  .dashboard-lower-grid,
  .results-v3-insights-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-search-form__row {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-search-form__row button {
    width: 100%;
  }

  .club-profile-grid {
    grid-template-columns: 1fr;
  }

  .athlete-analytics-grid {
    grid-template-columns: 1fr;
  }

  .event-detail-breakdown-grid {
    grid-template-columns: 1fr;
  }

  .athlete-profile-hero__meta {
    justify-content: flex-start;
  }

  .club-profile-hero__meta {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 24px 16px 56px;
  }

  .surface {
    padding: 20px;
  }

  .search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .explorer-filter-row,
  .explorer-filter-actions {
    grid-template-columns: 1fr;
  }

  .field--wide {
    grid-column: auto;
  }

  .form-actions {
    width: 100%;
  }

  .v2-chart-card__canvas-shell {
    min-height: 260px;
  }

  .v2-chart-card__canvas {
    height: 260px !important;
  }

  button,
  .button-link {
    width: 100%;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .bar-value {
    text-align: left;
  }

  .table-card__header {
    padding: 18px 20px 0;
  }

  .pagination {
    justify-content: flex-start;
    padding: 16px 20px 20px;
  }

  .dashboard-hero,
  .explorer-hero,
  .dashboard-panel,
  .dashboard-spotlight-card,
  .dashboard-quick-actions {
    padding: 20px;
  }

  .explorer-table-panel {
    padding: 0;
  }

  .explorer-table-panel .dashboard-panel__header {
    padding: 20px 20px 0;
  }

  .dashboard-bar-row {
    grid-template-columns: 1fr;
  }

  .dashboard-panel__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-search-form__row button {
    min-width: 0;
  }

  .athlete-search-form__row,
  .athlete-card__header,
  .club-card__header {
    align-items: stretch;
    flex-direction: column;
  }

  .athlete-search-form__row button,
  .athlete-search-form__row .button-link {
    min-width: 0;
    width: 100%;
  }

  .athlete-status-list {
    grid-template-columns: 1fr;
  }
}
