:root {
  --bg: #0a0b10;
  --bg-card: #14151c;
  --bg-elevated: #1c1d26;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-subtle: #b8c5d6;
  --cyan: #00e5ff;
  --cyan-hover: #33ebff;
  --orange: #ff6d00;
  --green: #25d366;
  --border: rgba(255, 255, 255, 0.1);
  --divider: rgba(255, 255, 255, 0.05);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.45);
  --max-width: 1100px;
  --header-bg: rgba(10, 11, 16, 0.92);
  --hero-box-bg: rgba(10, 11, 16, 0.88);
  --hero-box-border: rgba(255, 255, 255, 0.12);
  --overlay: rgba(0, 0, 0, 0.72);
  --input-bg: rgba(0, 0, 0, 0.35);
  --input-bg-muted: rgba(0, 0, 0, 0.25);
  --surface-muted: rgba(0, 0, 0, 0.2);
  --surface-faint: rgba(0, 0, 0, 0.15);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-hover-strong: rgba(255, 255, 255, 0.1);
  --surface-inset: rgba(255, 255, 255, 0.04);
  --surface-footer: rgba(255, 255, 255, 0.05);
  --cyan-tint: rgba(0, 229, 255, 0.08);
  --cyan-tint-strong: rgba(0, 229, 255, 0.12);
  --cyan-border: rgba(0, 229, 255, 0.35);
  --cyan-focus: rgba(0, 229, 255, 0.12);
  --link-hover: #66eeff;
  --page-hero-gradient: rgba(0, 229, 255, 0.04);
  --hero-accent-inset: 0;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f6fa;
  --bg-card: #ffffff;
  --bg-elevated: #eef2f7;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #475569;
  --cyan: #2563eb;
  --cyan-hover: #1d4ed8;
  --orange: #ea580c;
  --green: #059669;
  --border: rgba(15, 23, 42, 0.09);
  --divider: rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 4px 8px rgba(15, 23, 42, 0.03), 0 20px 48px rgba(15, 23, 42, 0.08);
  --shadow-modal: 0 24px 64px rgba(15, 23, 42, 0.14);
  --header-bg: rgba(255, 255, 255, 0.88);
  --hero-box-bg: rgba(255, 255, 255, 0.97);
  --hero-box-border: rgba(15, 23, 42, 0.07);
  --overlay: rgba(15, 23, 42, 0.45);
  --input-bg: #ffffff;
  --input-bg-muted: #f8fafc;
  --surface-muted: rgba(15, 23, 42, 0.035);
  --surface-faint: rgba(15, 23, 42, 0.025);
  --surface-hover: rgba(15, 23, 42, 0.04);
  --surface-hover-strong: rgba(15, 23, 42, 0.06);
  --surface-inset: #f8fafc;
  --surface-footer: #f8fafc;
  --cyan-tint: rgba(37, 99, 235, 0.08);
  --cyan-tint-strong: rgba(37, 99, 235, 0.12);
  --cyan-border: rgba(37, 99, 235, 0.28);
  --cyan-focus: rgba(37, 99, 235, 0.14);
  --link-hover: #1d4ed8;
  --page-hero-gradient: rgba(37, 99, 235, 0.07);
  color-scheme: light;
}

[data-theme="light2"] {
  --bg: #f0f7ff;
  --bg-card: #ffffff;
  --bg-elevated: #dbeafe;
  --text: #0f172a;
  --text-muted: #6b7280;
  --text-subtle: #475569;
  --cyan: #2563eb;
  --cyan-hover: #1d4ed8;
  --orange: #f43f5e;
  --green: #10b981;
  --border: rgba(37, 99, 235, 0.14);
  --divider: rgba(37, 99, 235, 0.08);
  --shadow: 0 2px 8px rgba(37, 99, 235, 0.08), 0 12px 32px rgba(37, 99, 235, 0.1);
  --shadow-lg: 0 8px 24px rgba(37, 99, 235, 0.12), 0 24px 56px rgba(37, 99, 235, 0.14);
  --shadow-modal: 0 28px 72px rgba(37, 99, 235, 0.18);
  --header-bg: rgba(255, 255, 255, 0.9);
  --hero-box-bg: rgba(255, 255, 255, 0.96);
  --hero-box-border: rgba(37, 99, 235, 0.2);
  --overlay: rgba(15, 23, 42, 0.5);
  --input-bg: #ffffff;
  --input-bg-muted: #eff6ff;
  --surface-muted: rgba(37, 99, 235, 0.05);
  --surface-faint: rgba(37, 99, 235, 0.035);
  --surface-hover: rgba(37, 99, 235, 0.06);
  --surface-hover-strong: rgba(37, 99, 235, 0.09);
  --surface-inset: #eff6ff;
  --surface-footer: #eff6ff;
  --cyan-tint: rgba(37, 99, 235, 0.1);
  --cyan-tint-strong: rgba(37, 99, 235, 0.14);
  --cyan-border: rgba(37, 99, 235, 0.32);
  --cyan-focus: rgba(37, 99, 235, 0.18);
  --link-hover: #1d4ed8;
  --page-hero-gradient: rgba(37, 99, 235, 0.09);
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--link-hover); }

.container {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: clamp(1.35rem, 5vw, 2rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-block: 0.85rem;
  gap: 1.25rem;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo:hover { color: var(--text); }

.site-header .logo-lines {
  display: inline;
  line-height: 1.1;
}

.site-header .logo-line {
  display: inline;
}

.site-header .logo-line + .logo-line::before {
  content: ' ';
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s;
}

.header-cta-label--short {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
}

.site-nav ul li.nav-auth-slot {
  margin-left: auto;
  flex-shrink: 0;
}

body.is-club-signed-in nav.site-nav li:has(> a[href$="register.html"]) {
  display: none;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.7rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s;
}

.site-nav a.nav-auth-label {
  display: inline-flex !important;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--cyan);
  background: var(--cyan-tint);
}

@media (min-width: 769px) {
  .site-nav ul > li {
    flex-shrink: 0;
  }

  .site-nav a {
    display: inline-block;
    white-space: nowrap;
  }
}

@media (min-width: 769px) and (max-width: 1240px) {
  .site-nav a,
  .site-nav button.nav-signin {
    padding: 0.5rem 0.55rem;
    font-size: 0.84rem;
  }

  .header-cta {
    padding: 0.5rem 0.7rem;
    font-size: 0.84rem;
  }
}

.nav-cta {
  background: var(--cyan) !important;
  color: var(--bg) !important;
  font-weight: 600 !important;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.22);
}

.nav-cta:hover {
  background: var(--cyan-hover) !important;
  color: var(--bg) !important;
  box-shadow: 0 6px 18px rgba(0, 229, 255, 0.32);
  transform: translateY(-2px);
}

.nav-cta:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.08s;
}

.nav-signin {
  display: block;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  background: var(--surface-inset) !important;
  font-weight: 600 !important;
  font-size: 0.88rem;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.nav-signin:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.08s;
}

button.nav-signin {
  width: auto;
  text-align: inherit;
}

.nav-signin:hover,
.nav-signin.active {
  color: var(--cyan) !important;
  border-color: var(--cyan-border) !important;
  background: var(--cyan-tint) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.signin-modal-forgot {
  margin: -0.25rem 0 1rem;
  font-size: 0.85rem;
  text-align: center;
}

.signin-modal-forgot a {
  color: var(--text-muted);
}

.signin-modal-forgot a:hover {
  color: var(--cyan);
}

.signin-modal-register {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-inset);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan-border);
  background: var(--cyan-tint);
  outline: none;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.theme-toggle:active {
  transform: translateY(0) scale(0.96);
  transition-duration: 0.08s;
}

.theme-picker-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  display: none;
}

body.is-admin-signed-in .theme-picker-float {
  display: block;
}

.theme-picker-float .theme-toggle-float {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .theme-picker-float .theme-toggle-float {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
}

.theme-picker-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.65rem);
  min-width: 12.5rem;
  padding: 0.55rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.theme-picker-title {
  margin: 0 0 0.35rem;
  padding: 0.2rem 0.55rem 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.theme-picker-options {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.theme-picker-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.theme-picker-option:hover,
.theme-picker-option:focus-visible {
  background: var(--surface-hover);
  outline: none;
}

.theme-picker-option.is-active {
  background: var(--cyan-tint);
  border-color: var(--cyan-border);
  color: var(--text);
}

.theme-picker-swatch {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.theme-picker-label {
  flex: 1;
}

.theme-picker-check {
  font-size: 0.72rem;
  color: var(--cyan);
  opacity: 0;
  transition: opacity 0.15s;
}

.theme-picker-option.is-active .theme-picker-check {
  opacity: 1;
}

.theme-picker-accent {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.theme-picker-accent[hidden] {
  display: none;
}

.theme-picker-accent-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.35rem;
}

.theme-picker-color-input {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
  flex-shrink: 0;
}

.theme-picker-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.theme-picker-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 5px;
}

.theme-picker-color-input::-moz-color-swatch {
  border: none;
  border-radius: 5px;
}

.theme-picker-accent-value {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Roboto Mono', monospace;
  color: var(--text-muted);
  text-transform: uppercase;
}

.theme-picker-accent-reset {
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-inset);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.theme-picker-accent-reset:hover,
.theme-picker-accent-reset:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan-border);
  background: var(--cyan-tint);
  outline: none;
}

.site-nav ul > li.nav-auth-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0;
}

.site-nav .nav-auth-row {
  display: inline-flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.site-nav .nav-auth-row > .nav-auth-label,
.site-nav .nav-auth-row > .nav-auth-signout {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  max-width: none !important;
  margin: 0;
  flex: 0 0 auto;
}

.nav-auth-label {
  gap: 0.4rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
  transition: all 0.2s;
}

.nav-auth-label--admin {
  border: 1px solid var(--cyan-border);
  background: var(--cyan-tint);
  color: var(--cyan) !important;
}

.nav-auth-label--admin:hover {
  background: var(--cyan-tint-strong);
  color: var(--cyan-hover) !important;
}

.nav-auth-label--club {
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.1);
  color: var(--green) !important;
}

.nav-auth-label--club:hover {
  background: rgba(37, 211, 102, 0.16);
  color: var(--green) !important;
}

.site-nav .nav-auth-row > .nav-auth-signout {
  gap: 0.35rem;
  height: auto;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-inset);
  color: var(--text-muted) !important;
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.site-nav .nav-auth-row > .nav-auth-signout:hover {
  color: var(--cyan) !important;
  border-color: var(--cyan-border);
  background: var(--cyan-tint);
}

.site-nav ul > li.nav-auth-item--club .nav-auth-row > .nav-auth-signout:hover {
  color: var(--green) !important;
  border-color: rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.1);
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(420px, 72vh, 640px);
  display: flex;
  align-items: center;
  overflow: visible;
  margin-bottom: clamp(2.75rem, 5vw, 3.5rem);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 3rem 0 5.5rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-inline: auto;
}

.hero-content-box {
  max-width: 580px;
  padding: 2.25rem 2.5rem;
  background: var(--hero-box-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--hero-box-border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.5px;
}

.hero h1 span { color: var(--cyan); }

.hero p {
  font-size: 1.05rem;
  color: var(--text-subtle);
  margin: 0 0 1.75rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.75rem;
  align-items: stretch;
}

.hero-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.btn > i {
  transition: transform 0.18s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.08s;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--cyan-focus);
}

.btn:hover:not(:disabled) > .fa-arrow-right,
.btn:hover:not(:disabled) > .fa-chevron-right {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 2px 10px rgba(0, 229, 255, 0.22);
}

.btn-primary:hover:not(:disabled) {
  background: var(--cyan-hover);
  color: var(--bg);
  box-shadow: 0 8px 22px rgba(0, 229, 255, 0.34);
}

.btn-secondary {
  background: var(--surface-hover);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-hover-strong);
  color: var(--text);
  border-color: rgba(0, 229, 255, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.btn-delete,
.btn-dialog-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fff;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.22);
}

.btn-delete:hover:not(:disabled),
.btn-dialog-danger:hover:not(:disabled) {
  filter: brightness(1.06);
  color: #fff;
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18), 0 8px 22px rgba(239, 68, 68, 0.28);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 109, 0, 0.28);
}

.btn-orange:hover:not(:disabled) {
  background: #ff8533;
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 109, 0, 0.38);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .nav-cta,
  .nav-signin,
  .pagination-btn,
  .theme-toggle,
  .select-field.is-custom .custom-select-trigger {
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  }

  .btn:hover:not(:disabled),
  .btn:active:not(:disabled),
  .nav-cta:hover,
  .nav-signin:hover,
  .pagination-btn:hover:not(:disabled),
  .theme-toggle:hover,
  .theme-toggle:active,
  .select-field.is-custom .custom-select-trigger:hover:not(:disabled),
  .select-field.is-custom .custom-select-trigger:active:not(:disabled) {
    transform: none;
  }

  .btn:hover:not(:disabled) > .fa-arrow-right,
  .btn:hover:not(:disabled) > .fa-chevron-right {
    transform: none;
  }
}

/* Sections */
section { padding: 4rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: var(--shadow-lg);
}

.card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

/* Race Day promo */
.race-day-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  background: var(--bg);
}

.race-day-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.race-day-media {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid var(--border);
}

.race-day-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.race-day-copy h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin: 0.75rem 0 1rem;
  font-weight: 800;
  line-height: 1.15;
}

.race-day-copy > p {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.race-day-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.race-day-highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 7.5rem;
  padding: 1.35rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.race-day-highlight i {
  color: var(--cyan);
  margin-top: 0.2rem;
  flex-shrink: 0;
  font-size: 1rem;
}

.race-day-highlight strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.race-day-highlight span {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.race-day-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Latest results */
.latest-results-section {
  padding: 2rem 0 4rem;
}

.latest-results-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.latest-results-empty {
  margin: 0;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.latest-results-card-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.latest-results-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.latest-results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.latest-results-header h3 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
}

.latest-results-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.latest-results-distance {
  color: var(--cyan);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.latest-results-card .results-table .dist {
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 600;
}

.latest-results-summary {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 1rem 0 0;
  text-align: center;
}

.latest-results-footer {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.card-body { padding: 1.5rem; }

.card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card-body p {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tag-cyan { background: rgba(0, 229, 255, 0.12); color: var(--cyan); }
.tag-orange { background: rgba(255, 109, 0, 0.12); color: var(--orange); }
.tag-purple { background: rgba(192, 132, 252, 0.12); color: #c084fc; }
.tag-city { background: rgba(96, 165, 250, 0.14); color: #93c5fd; }

/* Feature blocks */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(0, 229, 255, 0.06);
  background: linear-gradient(165deg, rgba(0, 229, 255, 0.05) 0%, var(--bg-card) 55%);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 10px;
  color: var(--cyan);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.feature:hover .feature-icon {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 229, 255, 0.18);
}

.feature h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* Stats bar */
.hero-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  transform: translateY(50%);
}

.hero-stats .stats-bar {
  background: var(--hero-box-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 0;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  text-align: center;
  overflow: hidden;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0 1.1rem;
  border-left: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
}

.hero-stat-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
}

.hero-stat-icon {
  font-size: 1.15rem;
  color: var(--cyan);
  opacity: 0.9;
  line-height: 1;
  flex-shrink: 0;
}

.hero-stat-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm, 8px);
  transition: color 0.15s ease;
}

.hero-stat-item:first-child {
  border-left: none;
}

.hero-stat-link:hover .stat-num,
.hero-stat-link:focus-visible .stat-num {
  color: var(--cyan);
}

.hero-stat-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.hero-stats .stat-num {
  font-family: inherit;
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero-stats .stat-label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.25;
  max-width: 13.5rem;
}

.section-after-hero {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
}

.platform-benefits-section {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

#runner-search,
#latest-results {
  scroll-margin-top: 5.5rem;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm, 8px);
}

.stat-link:hover .stat-num,
.stat-link:focus-visible .stat-num {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.stat-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.stat-num {
  font-family: inherit;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Page header (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--page-hero-gradient) 0%, transparent 100%);
  min-height: clamp(18rem, 28vw, 22rem);
  display: flex;
  align-items: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.page-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    102deg,
    rgba(10, 11, 16, 0.82) 0%,
    rgba(10, 11, 16, 0.48) 34%,
    rgba(10, 11, 16, 0.14) 58%,
    transparent 78%
  );
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(10, 11, 16, 0.35) 0%, transparent 42%),
    linear-gradient(to right, transparent 55%, rgba(10, 11, 16, 0.08) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero:has(.page-hero-bg) .container {
  --hero-line-gap: 1.25rem;
  padding-inline-start: calc(var(--hero-line-inset, 0px) + var(--hero-accent-inset) + 3px + var(--hero-line-gap));
  padding-inline-end: clamp(1.35rem, 5vw, 2rem);
}

.page-hero:has(.page-hero-bg) .container::before {
  content: '';
  position: absolute;
  left: calc(var(--hero-line-inset, 0px) + var(--hero-accent-inset));
  top: 0.2rem;
  bottom: 0.2rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--orange), var(--cyan));
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  font-weight: 800;
  max-width: 720px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.page-hero p {
  color: var(--text-muted);
  margin: 0;
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}

.page-hero:has(.page-hero-bg) h1 {
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.page-hero:has(.page-hero-bg) p {
  margin: 0;
  max-width: 40rem;
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-shadow:
    0 1px 12px rgba(0, 0, 0, 0.42),
    0 2px 4px rgba(0, 0, 0, 0.22);
}

.page-hero:has(.page-hero-bg) p strong {
  font-weight: 700;
  color: #fff;
}

/* Forms */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 600px;
}

.form-group { margin-bottom: 1.25rem; }

.math-captcha-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.math-captcha-hint {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.math-captcha-image-row {
  --captcha-h: 48px;
  --captcha-img-w: 170px;
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.math-captcha-image {
  display: block;
  flex: 0 0 auto;
  width: var(--captcha-img-w);
  height: var(--captcha-h);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.math-captcha-refresh {
  flex: 0 0 var(--captcha-h);
  width: var(--captcha-h);
  height: var(--captcha-h);
  min-width: var(--captcha-h);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.math-captcha-refresh i {
  font-size: 0.95rem;
}

.math-captcha-answer {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: var(--captcha-h);
  padding: 0 0.75rem;
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .math-captcha-image-row {
    flex-wrap: wrap;
  }

  .math-captcha-image {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: calc(100% - var(--captcha-h) - 0.5rem);
  }

  .math-captcha-answer {
    flex: 1 1 100%;
    height: auto;
    min-height: var(--captcha-h);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):not(.time-part),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group .select-field {
  width: 100%;
}

.form-group select {
  padding-right: 2.4rem;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):not(.time-part):focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-focus);
}

.math-captcha.form-group .math-captcha-image-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.math-captcha.form-group .math-captcha-image {
  width: var(--captcha-img-w, 170px);
  height: var(--captcha-h, 48px);
}

.math-captcha.form-group .math-captcha-answer {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  height: var(--captcha-h, 48px);
  padding: 0 0.75rem;
  font-size: 0.9rem;
}

.math-captcha.form-group .math-captcha-refresh {
  width: var(--captcha-h, 48px);
  height: var(--captcha-h, 48px);
  min-width: var(--captcha-h, 48px);
  padding: 0;
  border-radius: 6px;
}

.math-captcha.form-group .math-captcha-refresh:hover:not(:disabled) {
  transform: none;
}

/* Select wrapper — positions the chevron; rounding lives on the select itself */
.select-field {
  display: block;
  position: relative;
  width: 100%;
}

.select-field.is-disabled {
  opacity: 0.65;
}

.filter-bar .select-field,
.runners-directory-filter .select-field {
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.select-field::after {
  content: '';
  position: absolute;
  right: 0.85rem;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2394a3b8' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

[data-theme="light"] .select-field::after,
[data-theme="light2"] .select-field::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2364748b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.select-field.is-custom > select.custom-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.select-field.is-custom .custom-select-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 2.4rem 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1),
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.select-field.is-custom .custom-select-trigger:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.select-field.is-custom .custom-select-trigger:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
  transition-duration: 0.08s;
}

.select-field.is-custom .custom-select-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-field.is-custom.is-open .custom-select-trigger,
.select-field.is-custom .custom-select-trigger:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-focus);
}

.select-field.is-custom.is-disabled .custom-select-trigger {
  cursor: not-allowed;
}

.custom-select-list {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(100vw - 2rem, 22rem);
  z-index: 300;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  max-height: 16rem;
  overflow-y: auto;
}

.custom-select-option {
  padding: 0.55rem 0.7rem;
  border-radius: 7px;
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.custom-select-option:hover {
  background: var(--surface-hover);
}

.custom-select-option.is-selected {
  background: var(--cyan-tint);
  color: var(--text);
  font-weight: 600;
}

.custom-select-option.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Site-wide select styling */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--input-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2394a3b8' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.9rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  color-scheme: dark;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select::-ms-expand {
  display: none;
}

.select-field > select {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--input-bg);
  background-image: none;
  background-clip: padding-box;
  box-shadow: none;
  outline: none;
  -webkit-border-radius: 8px;
}

.select-field > select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-focus);
}

select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-focus);
}

select option {
  background-color: var(--bg-card);
  color: var(--text);
}

[data-theme="light"] select,
[data-theme="light2"] select {
  color-scheme: light;
  background-color: var(--input-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2364748b' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

[data-theme="light"] select option,
[data-theme="light2"] select option {
  background-color: #ffffff;
  color: var(--text);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.time-field {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.time-field .time-part {
  box-sizing: border-box;
  width: 3.5rem;
  min-width: 3.5rem;
  max-width: 3.5rem;
  flex: 0 0 3.5rem;
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.95rem;
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.time-field .time-part:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-focus);
}

.time-sep {
  color: var(--text-muted);
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.time-part.is-invalid,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.form-group .distance-km-input.is-invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.form-field-error {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: #f87171;
  line-height: 1.35;
}

.form-group .label-hint {
  font-weight: 500;
  color: var(--text-muted);
}

.form-field-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-field-hint:has(+ .distances-field) {
  margin-bottom: 0.55rem;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  width: 100%;
  padding-right: 2.85rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}

.password-toggle:hover {
  color: var(--cyan);
  background: var(--cyan-tint);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.distances-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.distances-checkboxes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.distance-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  text-align: center;
}

.distance-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  max-width: 1rem;
  max-height: 1rem;
  padding: 0;
  margin: 0;
  flex: 0 0 1rem;
  aspect-ratio: 1;
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.distance-check input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-focus);
}

.distance-check input[type="checkbox"]:checked {
  background-color: var(--cyan);
  border-color: var(--cyan);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2 6.4 11.1 12.5 5' stroke='%230a0b10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.7rem;
}

[data-theme="light"] .distance-check input[type="checkbox"]:checked,
[data-theme="light2"] .distance-check input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2 6.4 11.1 12.5 5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.distance-check:has(input:checked) {
  border-color: rgba(0, 229, 255, 0.45);
  background: var(--cyan-tint);
}

.distances-input-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
}

.distance-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group .distance-km-input {
  width: 8rem;
  max-width: 8rem;
  flex: 0 0 8rem;
  padding: 0.65rem 0.75rem;
  font-family: 'Roboto Mono', monospace;
}

.form-group .distance-km-input.is-duplicate {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 109, 0, 0.2);
}

.distance-km-label {
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.distance-remove-btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.distance-remove-btn:hover {
  color: var(--orange);
  border-color: rgba(255, 109, 0, 0.35);
}

.distance-add-btn {
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.distance-add-btn.is-pressed {
  transform: scale(0.96);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-focus);
}

.distance-add-btn.is-rejected {
  animation: distance-add-shake 0.35s ease;
  border-color: rgba(255, 109, 0, 0.55);
}

@keyframes distance-add-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row--start-times {
  margin-bottom: 1.25rem;
}

.form-row--start-times .form-group {
  margin-bottom: 0;
}

.form-field-hint--before-times {
  margin: 0.45rem 0 0.55rem;
}

/* Results table */
.results-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.results-table th {
  text-align: left;
  padding: 0.85rem 1.15rem;
  background: var(--surface-muted);
  color: var(--text-subtle);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
}

.results-table td {
  padding: 0.8rem 1.15rem;
  color: var(--text);
  border-bottom: 1px solid var(--divider);
}

.results-table tr:nth-child(even) td {
  background: var(--surface-hover);
}

.results-table tr:last-child td { border-bottom: none; }

.results-table .pos {
  font-family: 'Roboto Mono', monospace;
  color: var(--orange);
  font-weight: 700;
}

.results-table .time {
  font-family: 'Roboto Mono', monospace;
  font-weight: 600;
  color: var(--text);
}

.stats-search-hub {
  margin-bottom: 2rem;
}

.stats-search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stats-search-grid--single {
  grid-template-columns: 1fr;
}

.stats-search-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.stats-search-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.stats-search-card--runner {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.45rem 1.35rem 1.65rem;
  background: linear-gradient(135deg, rgba(255, 109, 0, 0.14) 0%, var(--bg-card) 42%);
  border: 2px solid rgba(255, 109, 0, 0.38);
  box-shadow:
    0 4px 22px rgba(255, 109, 0, 0.16),
    0 2px 8px rgba(0, 0, 0, 0.12);
}

.stats-search-card--runner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--orange), #fbbf24);
  border-radius: var(--radius) 0 0 var(--radius);
}

.stats-search-card--runner:hover {
  border-color: rgba(255, 109, 0, 0.55);
  box-shadow:
    0 8px 32px rgba(255, 109, 0, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

.stats-search-grid--single .stats-search-card--runner {
  padding: 1.5rem 1.65rem 1.5rem 1.85rem;
}

.stats-search-grid--single .stats-search-card--runner .stats-search-card-icon {
  width: 3.75rem;
  height: 3.75rem;
  font-size: 1.55rem;
}

.stats-search-grid--single .stats-search-card--runner .stats-search-card-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.stats-search-card--club {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.45rem 1.35rem 1.65rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.14) 0%, var(--bg-card) 42%);
  border: 2px solid rgba(0, 229, 255, 0.38);
  box-shadow:
    0 4px 22px rgba(0, 229, 255, 0.16),
    0 2px 8px rgba(0, 0, 0, 0.12);
}

.stats-search-card--club::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(to bottom, var(--cyan), #3b82f6);
  border-radius: var(--radius) 0 0 var(--radius);
}

.stats-search-card--club:hover {
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow:
    0 8px 32px rgba(0, 229, 255, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

.stats-search-grid--single .stats-search-card--club {
  padding: 1.5rem 1.65rem 1.5rem 1.85rem;
}

.stats-search-grid--single .stats-search-card--club .stats-search-card-icon {
  width: 3.75rem;
  height: 3.75rem;
  font-size: 1.55rem;
}

.stats-search-grid--single .stats-search-card--club .stats-search-card-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.stats-search-card-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
  font-size: 1.35rem;
}

.stats-search-card--runner .stats-search-card-icon {
  color: var(--orange);
  background: rgba(255, 109, 0, 0.18);
  border: 1px solid rgba(255, 109, 0, 0.35);
  box-shadow: 0 4px 16px rgba(255, 109, 0, 0.18);
}

.stats-search-card--club .stats-search-card-icon {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.18);
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 4px 16px rgba(0, 229, 255, 0.18);
}

.stats-search-card-body {
  flex: 1;
  min-width: 0;
}

.stats-search-card-body h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.stats-search-card-body > p {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.stats-search-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.stats-search-input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  background: var(--input-bg-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.stats-search-card--runner .stats-search-input {
  background: rgba(255, 255, 255, 0.07);
  border-width: 1.5px;
  border-color: rgba(255, 109, 0, 0.32);
  padding: 0.75rem 1rem;
}

.stats-search-card--runner .stats-search-input:focus {
  outline: none;
  border-color: rgba(255, 109, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 109, 0, 0.16);
}

.stats-search-card--club .stats-search-input {
  background: rgba(255, 255, 255, 0.07);
  border-width: 1.5px;
  border-color: rgba(0, 229, 255, 0.32);
  padding: 0.75rem 1rem;
}

.stats-search-card--club .stats-search-input:focus {
  outline: none;
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 0 3px var(--cyan-focus);
}

.stats-search-clear {
  flex-shrink: 0;
  padding: 0.7rem 0.85rem;
  font-size: 0.85rem;
}

.stats-search-hint {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.stats-search-results-zone {
  margin-top: 1rem;
}

[hidden] {
  display: none !important;
}

.runner-profile-results,
.runner-search-expanded,
.club-profile-results,
.club-search-expanded {
  margin-top: 1rem;
}

.runner-profile-results:not([hidden]) {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.runners-directory {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.runners-directory-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}

.runners-directory-head h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.2rem;
}

.runners-directory-head h2 i {
  color: var(--cyan);
  font-size: 1rem;
}

.runners-directory-count {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.runners-directory-toolbar {
  margin-bottom: 1.25rem;
}

.runners-directory-filter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: min(100%, 220px);
}

.runners-directory-filter span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.runners-directory-toolbar .select-field.is-custom .custom-select-trigger {
  min-width: 220px;
  min-height: 2.35rem;
  padding: 0.6rem 2.2rem 0.6rem 0.85rem;
  font-size: 0.88rem;
}

.runners-directory-toolbar .select-field > select,
.runners-directory-toolbar select {
  min-width: 220px;
  padding: 0.6rem 2.2rem 0.6rem 0.85rem;
  font-size: 0.88rem;
}

.runners-directory-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0;
  --runners-directory-cols: minmax(12rem, 1.35fr) 1fr 1fr 3.75rem 4.75rem 6rem 6rem 1.75rem;
}

.runners-directory-grid {
  display: grid;
  grid-template-columns: var(--runners-directory-cols);
  column-gap: 1.5rem;
  align-items: center;
}

.runners-directory-header {
  padding: 0 1rem 0.55rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.runners-directory-header span {
  white-space: nowrap;
}

.runners-directory-header .is-num {
  text-align: right;
  justify-self: end;
}

.runners-directory-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.runners-directory-row:hover,
.runners-directory-row:focus-within {
  border-color: rgba(0, 212, 255, 0.35);
}

.runners-directory-row.is-expanded {
  border-color: var(--border);
}

.runners-directory-row.needs-merge {
  border-color: rgba(168, 85, 247, 0.35);
}

.runners-directory-row-main {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.runners-directory-row.is-expanded .runners-directory-row-main {
  border-bottom: 1px solid var(--border);
}

.runners-directory-row-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  color: var(--cyan);
  font-size: 0.8rem;
}

.runners-directory-row-runner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.runners-directory-row-name {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.runners-directory-row-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.runners-directory-row-location {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.35;
  min-width: 0;
}

.runners-directory-row-stat {
  color: var(--text-muted);
  font-size: 0.84rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.runners-directory-row-stat.is-num {
  text-align: right;
  justify-self: end;
  width: 100%;
}

.runners-directory-row-fastest {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.86rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.runners-directory-row-club {
  color: var(--text-muted);
  font-size: 0.84rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runners-directory-row-merge {
  font-size: 0.72rem;
}

.runners-directory-row-panel {
  padding: 1.5rem 1.75rem 1.75rem;
}

.runners-directory-row-panel .runner-dashboard {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.runners-directory-pagination {
  margin-top: 1.25rem;
}

@media (max-width: 980px) {
  .runners-directory-header {
    display: none;
  }

  .runners-directory-list {
    --runners-directory-cols: 1fr 1.75rem;
  }

  .runners-directory-row-main {
    row-gap: 0.35rem;
    align-items: start;
  }

  .runners-directory-row-runner {
    grid-column: 1;
  }

  .runners-directory-row-location,
  .runners-directory-row-stat,
  .runners-directory-row-club {
    grid-column: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.88rem;
  }

  .runners-directory-row-location::before,
  .runners-directory-row-club::before,
  .runners-directory-row-stat::before {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex: 0 0 auto;
  }

  .runners-directory-row-location::before { content: 'Province'; }
  .runners-directory-row-club::before { content: 'Recently attended'; }
  .runners-directory-row-stat:nth-child(4)::before { content: 'Runs'; }
  .runners-directory-row-stat:nth-child(5)::before { content: 'Distance'; }
  .runners-directory-row-stat:nth-child(6)::before { content: 'Fastest 4km'; }
  .runners-directory-row-stat:nth-child(7)::before { content: 'Fastest 8km'; }

  .runners-directory-row-stat.is-num {
    text-align: left;
    justify-self: start;
  }

  .runners-directory-row-toggle {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    justify-self: end;
    padding-top: 0.15rem;
  }
}

.runner-search-expanded:not([hidden]) {
  display: block !important;
  animation: runner-expand-in 0.25s ease-out;
}

.runner-search-expanded .runner-dashboard {
  margin: 0;
}

@keyframes runner-expand-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.runner-profile-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  padding: 0;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.runner-profile-card-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
  padding: 1.1rem 1.2rem;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: background 0.15s;
}

.runner-profile-card:hover,
.runner-profile-card:focus-within {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.08);
}

.runner-profile-card-main:hover,
.runner-profile-card-main:focus-visible {
  outline: none;
  background: rgba(0, 229, 255, 0.03);
}

.runner-profile-card .runner-suggest-edit-btn {
  margin: 0 1.2rem 1.1rem;
  width: calc(100% - 2.4rem);
  justify-content: center;
  font-size: 0.82rem;
  border-color: rgba(167, 139, 250, 0.45);
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.1);
}

.runner-profile-card .runner-suggest-edit-btn:hover {
  border-color: rgba(167, 139, 250, 0.7);
  background: rgba(167, 139, 250, 0.18);
  color: #ddd6fe;
}

.runner-profile-card.is-active {
  border-color: rgba(255, 109, 0, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 109, 0, 0.15);
}

.runner-profile-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.runner-profile-card-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.runner-profile-typo-tag {
  font-size: 0.68rem !important;
  white-space: nowrap;
}

.runner-profile-card.is-typo-match {
  border-style: dashed;
  border-color: rgba(167, 139, 250, 0.35);
}

.runner-profile-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.runner-profile-province,
.runner-profile-city {
  flex-shrink: 0;
  font-size: 0.75rem !important;
}

.runner-profile-card-province-full {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.runner-profile-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.runner-profile-card-stats strong {
  color: var(--cyan);
}

.runner-profile-card-clubs,
.runner-profile-card-fastest {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.runner-profile-card-clubs i,
.runner-profile-card-fastest i {
  color: var(--cyan);
  font-size: 0.75rem;
}

.runner-profile-card-clubs strong {
  color: var(--text);
  font-weight: 600;
}

.runner-dashboard-most-popular-club {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.runner-dashboard-most-popular-club i {
  color: var(--cyan);
}

.runner-dashboard-most-popular-club strong {
  color: var(--text);
}

.runner-dashboard-most-popular-club-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.runner-merge-results-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.08);
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.runner-merge-results-banner i {
  margin-top: 0.12rem;
  color: #c4b5fd;
}

.runner-merge-results-banner strong {
  color: var(--text);
}

.runner-merge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.06);
}

.runner-merge-bar-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.runner-merge-bar-text {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.runner-merge-bar-hint {
  margin: 0;
  color: #fbbf24;
  font-size: 0.82rem;
}

.runner-profile-merge-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.runner-profile-merge-toggle,
.runner-profile-merge-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-inset);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.runner-profile-merge-toggle:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: var(--text);
}

.runner-profile-merge-toggle-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  font-size: 0.55rem;
  color: transparent;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.runner-profile-merge-toggle.is-selected {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.12);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.15);
}

.runner-profile-merge-toggle.is-selected .runner-profile-merge-toggle-mark {
  border-color: transparent;
  background: var(--cyan);
  color: #041018;
}

.runner-profile-merge-primary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.runner-profile-merge-primary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.runner-profile-merge-primary.is-active {
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2);
}

.runner-profile-merge-primary.is-active:hover {
  border-color: rgba(251, 191, 36, 0.75);
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
}

.runner-profile-card.is-merge-selected {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.runner-profile-card.is-merge-primary {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.18);
}

.runner-profile-card-cta {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.runner-search-results {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.runner-search-hit {
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.runner-search-hit-main {
  margin-bottom: 0.65rem;
}

.runner-search-name-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}

.runner-search-name-btn i {
  font-size: 0.82rem;
  color: var(--cyan);
  opacity: 0.7;
  transition: opacity 0.15s;
}

.runner-search-name-btn:hover,
.runner-search-name-btn:focus-visible {
  color: var(--cyan);
  outline: none;
}

.runner-search-name-btn:hover i,
.runner-search-name-btn:focus-visible i {
  opacity: 1;
}

.runner-search-hit.is-dashboard-runner {
  border-color: rgba(255, 109, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 109, 0, 0.12);
}

.runner-dashboard {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.runner-dashboard section.runner-dash-overview {
  padding: 0;
}

.runner-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0;
}

.runner-dashboard-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.runner-dashboard-merged-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: 8px;
}

.runner-dashboard-merged-note-text {
  flex: 1;
  min-width: 0;
}

.runner-dashboard-merged-note i {
  color: #a78bfa;
  margin-right: 0.35rem;
}

.runner-dashboard-merge-resolve {
  flex-shrink: 0;
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.runner-dashboard-merge-resolve:hover {
  background: rgba(167, 139, 250, 0.22);
  color: #ddd6fe;
}

.runner-run-recorded-as {
  display: block;
  font-size: 0.75rem;
  color: #a78bfa;
  font-style: italic;
}

.runner-dashboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--orange);
  background: rgba(255, 109, 0, 0.1);
  border: 1px solid rgba(255, 109, 0, 0.25);
  border-radius: 999px;
}

.runner-dashboard-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.65rem 0 0.25rem;
}

.runner-dashboard-name {
  margin: 0;
  font-size: 1.65rem;
}

.runner-dashboard-province,
.runner-dashboard-city {
  font-size: 0.82rem !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.runner-dashboard-intro,
.runner-dashboard-description {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 58rem;
}

.runner-dashboard-close {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}

.runner-dashboard-close:hover {
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--text);
}

.runner-dash-overview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0;
}

.runner-dash-hero-stat {
  padding: 1rem 1.1rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  height: 100%;
}

.runner-dash-hero-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: var(--text-muted);
  font-weight: 600;
}

.runner-dash-hero-value {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}

.runner-dash-hero-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.runner-dash-hero-fastest {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.runner-dash-fastest-item em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-right: 0.35rem;
}

.runner-dash-block-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.runner-dash-attendance > .runner-dash-block-title {
  margin-top: 0.75rem;
}

.runner-dash-performance > .runner-dash-block-title,
.runner-dash-activity-block > .runner-dash-block-title {
  margin-top: 1.5rem;
}

.runner-dash-block-title i {
  color: var(--cyan);
}

.runner-dash-attendance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}

.runner-dash-activity-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.runner-dash-card {
  padding: 1rem 1.15rem;
  background: var(--surface-faint);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.runner-dash-card h4,
.runner-dash-section-head h4 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.runner-dash-card h4 i,
.runner-dash-section-head h4 i {
  color: var(--cyan);
}

.runner-dash-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.runner-dash-meta-item.is-wide {
  grid-column: 1 / -1;
}

.runner-dash-meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.runner-dash-meta-value {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.4;
}

.runner-dash-meta-value strong {
  font-weight: 700;
}

.runner-dash-meta-note {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.runner-dash-perf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  flex: 1;
  align-content: start;
}

.runner-dash-perf-grid .runner-dash-hero-stat {
  background: var(--surface-muted);
  height: auto;
}

.runner-dash-club-list,
.runner-dash-recent-list {
  flex: 1;
}

.runner-dash-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.runner-dash-section-head h4 {
  margin-bottom: 0.25rem;
}

.runner-dash-activity {
  padding: 1rem 1.15rem 1.1rem;
  margin: 0;
  background: var(--surface-faint);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.runner-dash-activity .runner-dash-section-head {
  align-items: center;
  margin-bottom: 0.75rem;
}

.runner-dash-activity .runner-dash-section-head h4 {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.runner-dash-activity-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.runner-activity-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: end;
  padding: 0.15rem 0 0.1rem;
}

.runner-activity-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: default;
  font-family: inherit;
  color: var(--text-muted);
}

.runner-activity-bar.has-activity {
  cursor: pointer;
}

.runner-activity-bar.has-activity:hover .runner-activity-bar-fill,
.runner-activity-bar.is-active .runner-activity-bar-fill {
  background: var(--cyan);
}

.runner-activity-bar.is-active .runner-activity-bar-label,
.runner-activity-bar.is-active .runner-activity-bar-count {
  color: var(--cyan);
}

.runner-activity-bar:disabled {
  opacity: 0.55;
}

.runner-activity-bar-count {
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-height: 1rem;
  color: var(--text-muted);
}

.runner-activity-bar-track {
  width: 100%;
  max-width: 2.35rem;
  height: 5rem;
  display: flex;
  align-items: flex-end;
  border-radius: 6px 6px 0 0;
  background: rgba(255, 255, 255, 0.03);
}

.runner-activity-bar:not(.has-activity) .runner-activity-bar-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.runner-activity-bar:not(.has-activity) .runner-activity-bar-fill {
  display: none;
}

.runner-activity-bar:not(.has-activity) .runner-activity-bar-count {
  visibility: hidden;
}

.runner-activity-bar-fill {
  width: 100%;
  height: var(--bar-height, 4%);
  min-height: 3px;
  border-radius: 6px 6px 0 0;
  background: rgba(56, 189, 248, 0.35);
  transition: height 0.2s ease, background 0.15s ease;
}

.runner-activity-bar-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.runner-dash-empty-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.runner-dash-club-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.runner-dash-club-main {
  flex: 1;
  min-width: 10rem;
}

.runner-dash-club-bar {
  display: block;
  height: 4px;
  width: var(--club-width, 0%);
  max-width: 100%;
  margin-top: 0.4rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 109, 0, 0.85), rgba(255, 109, 0, 0.35));
}

.runner-dash-club-row:last-child {
  border-bottom: none;
}

.runner-dash-club-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.runner-dash-club-metrics {
  display: flex;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.runner-dash-club-metrics strong {
  color: var(--orange);
}

.runner-dash-recent-row {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.55fr 0.55fr 0.55fr;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  align-items: center;
}

.runner-dash-recent-row:last-child {
  border-bottom: none;
}

.runner-dash-recent-time {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  color: var(--cyan);
  text-align: right;
}

.runner-dash-recent-club {
  color: var(--text-muted);
}

.runner-dash-recent-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.runner-dash-trials-section,
.runner-dash-runs-section {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--surface-faint);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.runner-dash-trials-section h4,
.runner-dash-runs-section h4 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.runner-dash-trials-section h4 i,
.runner-dash-runs-section h4 i {
  color: var(--cyan);
}

.runner-dash-trials-section .runner-trial-view {
  margin-top: 1rem;
}

.runner-dash-runs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.runner-run-row {
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.runner-run-row.is-trial-open {
  border-color: rgba(0, 229, 255, 0.35);
}

.runner-run-row-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.runner-run-row-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.runner-run-date {
  font-weight: 600;
  font-size: 0.92rem;
}

.runner-run-club {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.runner-run-row-metrics {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.85rem;
}

.runner-run-time {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cyan);
}

.runner-run-pos {
  color: var(--orange);
  font-weight: 600;
}

.runner-dash-runs-count {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.runner-run-row .runner-view-trial-btn {
  font-size: 0.82rem;
  padding: 0.5rem 0.85rem;
}

.runner-search-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-bottom: 0.75rem;
}

.runner-search-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.runner-search-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  font-weight: 600;
}

.runner-search-stat-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.runner-search-time {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--cyan);
}

.runner-view-trial-btn {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  padding: 0.55rem 0.95rem;
}

.runner-search-hit.is-trial-open {
  border-color: rgba(0, 229, 255, 0.35);
}

.runner-trial-detail {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.runner-trial-detail-inner {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

.runner-trial-detail-label {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.runner-trial-detail-club {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.results-table tr.is-runner-highlight td {
  background: var(--cyan-tint-strong);
}

.results-table tr.is-runner-highlight .pos {
  color: var(--cyan);
}

.results-table tr.is-runner-highlight .time {
  color: var(--text);
}

.runner-highlight-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 999px;
  vertical-align: middle;
}

.runner-search-meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
}

.runner-search-details {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.runner-search-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.runner-search-count {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Club search + dashboard */
.club-profile-results:not([hidden]) {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.club-search-expanded:not([hidden]) {
  display: block !important;
  animation: runner-expand-in 0.25s ease-out;
}

.club-search-expanded .club-dashboard {
  margin: 0;
}

.club-profile-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.club-profile-card:hover,
.club-profile-card:focus-within {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.08);
}

.club-profile-card.is-active {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.15);
}

.club-profile-card-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  width: 100%;
  padding: 1.1rem 1.2rem;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: background 0.15s;
}

.club-profile-card-main:hover,
.club-profile-card-main:focus-visible {
  outline: none;
  background: rgba(0, 229, 255, 0.03);
}

.club-profile-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.club-profile-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.club-profile-card-province-full {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.club-profile-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.club-profile-card-stats strong {
  color: var(--cyan);
}

.club-profile-card-latest,
.club-profile-card-field {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.club-profile-card-latest i,
.club-profile-card-field i {
  color: var(--cyan);
  font-size: 0.75rem;
}

.club-profile-card-cta {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.club-search-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.club-search-count {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.club-dashboard {
  margin: 1.25rem 0 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.club-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.club-dashboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 999px;
}

.club-dashboard-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.65rem 0 0.25rem;
}

.club-dashboard-name {
  margin: 0;
  font-size: 1.65rem;
}

.club-dashboard-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.club-dashboard-close {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}

.club-dashboard-close:hover {
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--text);
}

.club-dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.club-dash-stat {
  padding: 0.9rem 1rem;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.club-dash-stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: var(--text-muted);
  font-weight: 600;
}

.club-dash-stat-value {
  font-family: 'Roboto Mono', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.2;
}

.club-dash-stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.club-dash-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.club-dash-panel,
.club-dash-recent-panel {
  padding: 1rem 1.15rem;
  background: var(--surface-faint);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.club-dash-panel h4,
.club-dash-recent-panel h4,
.club-dash-trials-section h4 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.club-dash-panel h4 i,
.club-dash-recent-panel h4 i,
.club-dash-trials-section h4 i {
  color: var(--cyan);
  font-size: 0.85rem;
}

.club-dash-runner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--divider);
  font-size: 0.85rem;
}

.club-dash-runner-row:last-child {
  border-bottom: none;
}

.club-dash-runner-name {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.club-dash-runner-name:hover {
  color: var(--cyan);
}

.club-dash-runner-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  justify-content: flex-end;
}

.club-dash-runner-metrics strong {
  color: var(--cyan);
}

.club-dash-empty-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.club-dash-recent-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--divider);
  font-size: 0.85rem;
}

.club-dash-recent-row:last-child {
  border-bottom: none;
}

.club-dash-recent-date {
  font-weight: 600;
}

.club-dash-recent-field,
.club-dash-recent-dist {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.club-dash-trials-section {
  margin-top: 1rem;
}

.club-trial-row {
  padding: 0.85rem 1rem;
  background: var(--surface-faint);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.65rem;
}

.club-trial-row.is-trial-open {
  border-color: rgba(0, 229, 255, 0.3);
}

.club-trial-row-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.club-trial-row-date {
  font-weight: 600;
  font-size: 0.92rem;
}

.club-trial-row-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.club-trial-row-metrics {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.85rem;
}

.club-trial-row-total {
  color: var(--cyan);
  font-weight: 600;
}

.club-trial-row .club-view-trial-btn {
  font-size: 0.82rem;
  padding: 0.5rem 0.85rem;
}

.club-dash-trials-count {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.club-dashboard-footnote {
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.club-dashboard-footnote i {
  color: var(--cyan);
  margin-right: 0.35rem;
}

.club-results-card {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.club-results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.club-results-title {
  flex: 1;
  min-width: min(100%, 20rem);
}

.club-results-title h3 {
  margin: 0 0 0.2rem;
}

.club-results-location {
  margin: 0 0 0.15rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.club-results-count {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.club-history-toggle {
  flex-shrink: 0;
  white-space: nowrap;
}

.club-results-header-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  max-width: min(100%, 22rem);
  margin-left: auto;
}

.club-results-header-side .club-history-toggle,
.club-results-header-side .trial-edit-request-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
}

.club-history-panel {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.history-calendar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-cal-top {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.history-cal-year-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.history-cal-year-label {
  min-width: 4.5rem;
  text-align: center;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.history-cal-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.history-cal-nav-btn:hover:not(:disabled) {
  border-color: var(--cyan-border);
  color: var(--cyan);
  background: var(--cyan-tint);
}

.history-cal-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.history-cal-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.history-cal-hint i {
  color: var(--cyan);
}

.history-cal-month-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.history-cal-month-cell {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 6.5rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}

.history-cal-month-head {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
}

.history-cal-month-trials {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.history-cal-trial-chip {
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.history-cal-trial-chip:hover {
  border-color: var(--cyan-border);
  background: var(--cyan-tint);
}

.history-cal-trial-chip.is-active {
  border-color: var(--cyan);
  background: var(--cyan-tint-strong);
  color: var(--cyan);
}

.history-cal-month-empty {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.45;
  font-style: italic;
}

.club-trial-view {
  margin-top: 0;
}

.club-trial-tag {
  margin-bottom: 0.65rem;
}

.club-trial-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.results-distances-grid {
  display: grid;
  gap: 1rem;
}

.results-distances-grid.is-split {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.results-distance-col {
  min-width: 0;
}

.results-distance-label {
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 0.75rem;
}

.trial-results-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}

.trial-typo-notice {
  margin: 0;
  padding: 0.75rem 0.95rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.trial-typo-notice i {
  color: var(--cyan);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.trial-edit-request-btn {
  font-size: 0.85rem;
  padding: 0.55rem 0.95rem;
}

/* Site modal — scroll lock handled in JS; avoid overflow:hidden (it removes the scrollbar) */

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: var(--overlay);
  backdrop-filter: blur(4px);
}

.site-modal[hidden] {
  display: none;
}

.site-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-modal);
}

.site-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.site-modal-close:hover {
  color: var(--text);
  border-color: rgba(0, 229, 255, 0.35);
}

.site-modal-dialog h3 {
  margin: 0 2rem 0.35rem 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-modal-dialog h3 i {
  color: var(--cyan);
}

.site-modal-subtitle {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.site-modal-note {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.site-modal-error {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #fc8181;
  background: rgba(252, 129, 129, 0.08);
  border: 1px solid rgba(252, 129, 129, 0.25);
  border-radius: 8px;
}

.site-feedback-dialog {
  text-align: center;
  max-width: 420px;
}

.site-feedback-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
}

.site-feedback-modal.is-success .site-feedback-icon {
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
}

.site-feedback-modal.is-error .site-feedback-icon {
  background: rgba(252, 129, 129, 0.12);
  color: #fc8181;
}

.site-feedback-modal.is-warning .site-feedback-icon,
.site-feedback-modal.is-confirm .site-feedback-icon {
  background: rgba(255, 109, 0, 0.12);
  color: var(--orange);
}

.site-feedback-dialog [data-dialog-message] {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.site-feedback-dialog h3 {
  justify-content: center;
  margin: 0 0 0.65rem;
}

.site-feedback-dialog p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.site-feedback-dialog .site-modal-actions {
  justify-content: center;
  margin-top: 1.25rem;
}

.site-modal-form .form-group {
  margin-bottom: 1rem;
}

.site-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.captcha-group .captcha-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.captcha-question {
  flex: 1;
  padding: 0.65rem 0.85rem;
  background: var(--input-bg-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'Roboto Mono', monospace;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cyan);
}

.captcha-refresh {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}

.captcha-refresh:hover {
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--cyan);
}

.captcha-error {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #fc8181;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

#resultsBrowsePagination {
  margin-top: 1.5rem;
}

.pagination-status {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    background-color 0.18s ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: rgba(0, 229, 255, 0.4);
  color: var(--cyan);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pagination-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.08s;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.filter-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  align-items: center;
}

.filter-bar .select-field {
  min-width: 15rem;
}

.filter-bar .select-field.is-custom .custom-select-trigger {
  min-width: 15rem;
  min-height: 2.35rem;
  padding: 0.6rem 2.2rem 0.6rem 1rem;
  font-size: 0.95rem;
}

.filter-bar .select-field > select,
.filter-bar select {
  min-width: 15rem;
  padding: 0.6rem 2.2rem 0.6rem 1rem;
  background-position: right 0.75rem center;
}

/* App showcase */
.app-benefits-intro {
  padding-bottom: 0;
}

.app-benefits-intro .section-header {
  margin-bottom: 0;
}

.app-showcase-section {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(4.5rem, 7vw, 6.5rem);
}

.app-showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.app-showcase-launch {
  grid-column: 1 / -1;
}

.app-showcase-side {
  display: block;
}

.app-showcase-steps-header {
  text-align: left;
  margin-bottom: 1rem;
}

.app-showcase-steps-header h2 {
  font-size: 1.35rem;
}

.app-showcase-steps-header p {
  margin: 0;
  max-width: none;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.app-race-day-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.app-race-day-grid .feature {
  position: relative;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, rgba(0, 229, 255, 0.03) 100%);
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: none;
}

.app-race-day-grid .feature-step {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--cyan);
  opacity: 0.55;
}

.app-race-day-grid .feature-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-race-day-grid .feature:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.32);
  box-shadow: 0 10px 24px rgba(0, 229, 255, 0.1);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.14) 0%, rgba(0, 229, 255, 0.05) 100%);
}

.app-race-day-grid .feature-icon {
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
  background: transparent;
  background-color: transparent;
  background-image: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.app-race-day-grid .feature:hover .feature-icon {
  background: transparent;
  box-shadow: none;
}

.app-race-day-grid .feature h3 {
  font-size: 0.95rem;
  width: 100%;
}

.app-race-day-grid .feature p {
  font-size: 0.82rem;
  line-height: 1.5;
  width: 100%;
}

.app-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.app-features-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
}

.app-features-list li i {
  color: var(--cyan);
  margin-top: 0.2rem;
}

.launch-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 3rem;
}

.app-showcase .launch-card {
  margin-top: 1.25rem;
}

.launch-card h2 { margin: 0 0 0.75rem; }
.launch-card p { color: var(--text-muted); margin: 0 0 1.5rem; }

.launch-card .btn {
  font-size: 1.1rem;
  padding: 1rem 2rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .launch-card .btn {
    font-size: 0.9rem;
    padding: 0.85rem 1.15rem;
  }
}

/* Sign up CTA */
.signup-section {
  padding: 2rem 0 7.5rem;
}

.signup-cta {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.5rem;
  align-items: stretch;
  padding: 3rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, rgba(0, 229, 255, 0.03) 100%);
  position: relative;
  overflow: hidden;
}

.signup-cta::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--cyan);
  border-radius: 16px 0 0 16px;
}

.signup-cta-main h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0.75rem 0 1rem;
  font-weight: 800;
}

.signup-cta-main > p {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 560px;
}

.signup-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.5rem;
}

.signup-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.signup-perks i {
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.signup-highlight {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 2rem 1.75rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  background:
    linear-gradient(160deg, rgba(0, 229, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
    var(--bg-elevated);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.signup-highlight-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.signup-highlight-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.signup-highlight-amount {
  font-family: inherit;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}

.signup-highlight-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.signup-highlight-trial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 auto 1.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.32);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 600;
}

.signup-highlight-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  text-align: left;
}

.signup-highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.45rem 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.signup-highlight-list i {
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 0.1rem;
  width: 1rem;
  text-align: center;
}

.signup-highlight-btn {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
}

.signup-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0.85rem 0 0;
  line-height: 1.5;
}

/* Contact */
.contact-section {
  padding: 5rem 0;
}

.contact-info-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.contact-panel,
.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form-panel {
  max-width: none;
  display: flex;
  flex-direction: column;
}

.contact-panel-heading {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0;
}

.contact-info-item i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 10px;
  color: var(--cyan);
  flex-shrink: 0;
  font-size: 0.95rem;
  margin-top: 0.05rem;
}

.contact-info-item h4 {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.3;
}

.contact-info-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.contact-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-faq-item {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--divider);
}

.contact-faq-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.contact-faq-q {
  margin: 0 0 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.contact-faq-a {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.contact-form .contact-message-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form .contact-message-group textarea {
  flex: 1;
  min-height: 140px;
}

.contact-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

/* Course detail cards */
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.course-card-header {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
}

.course-thumb {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1 / 1;
  align-self: center;
  box-sizing: border-box;
  border-radius: 8px;
  background-color: #000;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
}

.course-header-text {
  min-width: 0;
}

.course-teaser {
  margin: 0.35rem 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.course-quick-tags {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.course-quick-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.course-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(8rem, 11rem)) minmax(0, 1fr);
  gap: 1rem 1.15rem;
  align-items: stretch;
}

.course-detail {
  min-width: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-sizing: border-box;
  min-height: var(--course-info-tile-min-height, 5.6875rem);
}

.course-detail strong {
  display: block;
  color: var(--text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  margin-bottom: 0.4rem;
}

.course-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.course-card-top h3 { margin: 0; }

.toughness-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}

.toughness-easy {
  background: rgba(74, 222, 128, 0.1);
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.28);
}

.toughness-medium {
  background: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.28);
}

.toughness-hard {
  background: rgba(167, 139, 250, 0.12);
  color: #c4b5fd;
  border-color: rgba(196, 181, 253, 0.3);
}

.course-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-self: center;
  width: 100%;
  max-width: 11rem;
}

.course-card-actions .course-results-btn,
.course-card-actions .course-expand-btn {
  width: 100%;
  align-self: stretch;
}

.course-results-btn {
  font-size: 0.82rem;
  padding: 0.65rem 1rem;
  white-space: nowrap;
  justify-content: center;
}

.course-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  background: var(--cyan-tint);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.course-expand-btn:hover {
  background: rgba(0, 229, 255, 0.14);
  border-color: var(--cyan);
}

.course-expand-icon {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.course-expand-btn[aria-expanded="true"] .course-expand-icon {
  transform: rotate(180deg);
}

.course-expand-panel {
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
  padding: 1.5rem;
}

.course-expand-panel[hidden] {
  display: none;
}

.course-expand-top {
  display: grid;
  grid-template-columns: minmax(300px, 50%) 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

.course-map-frame {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}

.course-map-mock {
  flex: 1;
  min-height: 300px;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  background: #e8e4d9;
  display: grid;
  grid-template-rows: 1fr auto;
}

.course-map-mock svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.course-map-caption {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 0.45rem 0.65rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.course-map-mock--image {
  display: flex;
  flex-direction: column;
}

.course-map-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: contain;
  background: #e8e4d9;
}

.course-map-mock--empty {
  display: grid;
  place-items: center;
  min-height: 280px;
  background: var(--surface-inset);
}

.course-map-placeholder {
  text-align: center;
  color: var(--text-muted);
  padding: 1.5rem;
}

.course-map-placeholder i {
  font-size: 2rem;
  color: var(--cyan);
  margin-bottom: 0.65rem;
}

.course-map-placeholder p {
  margin: 0;
  font-size: 0.9rem;
}

.courses-browse-loading,
.courses-browse-empty {
  margin: 0 0 1rem;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 1rem;
}

.course-safety-empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.course-expand-desc h4 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  color: var(--cyan);
}

.course-expand-desc p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.course-expand-desc {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.course-club-contact {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.course-club-contact h4 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--cyan);
}

.course-contact-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.course-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.course-contact-list li i {
  width: 1.1rem;
  text-align: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.course-contact-list a {
  color: var(--text);
}

.course-contact-list a:hover {
  color: var(--cyan);
}

.course-member-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
  margin-top: 0.25rem;
}

.course-expand-bottom {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
}

.course-expand-bottom-title {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.course-safety-grid {
  display: flex;
  min-width: 0;
}

.course-safety-tile {
  display: flex;
  flex: 1;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  box-sizing: border-box;
  min-height: var(--course-info-tile-min-height, 5.6875rem);
}

.course-safety-tile i {
  color: var(--orange);
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
}

.course-safety-tile strong {
  color: var(--text);
}

.course-card-expandable.is-expanded {
  border-color: rgba(0, 229, 255, 0.25);
}

.course-card-expandable.is-expanded .course-expand-btn {
  background: rgba(0, 229, 255, 0.15);
  border-color: var(--cyan);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.25rem 0 2rem;
  margin-top: auto;
  background: var(--bg-card);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid-expanded {
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr));
  gap: 2.25rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.1rem;
  line-height: 1.65;
  max-width: 340px;
}

.footer-brand .logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.footer-brand .logo:hover,
.footer-logo:hover {
  color: #fff;
}

.footer-logo-icon {
  color: var(--cyan);
  font-size: 1.35rem;
  line-height: 1;
}

.footer-col-title,
.footer-grid h4 {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  color: var(--text);
  font-weight: 700;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li { margin-bottom: 0.55rem; }

.footer-link,
.footer-grid a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-link i,
.footer-grid a i {
  width: 1rem;
  text-align: center;
  color: var(--cyan);
  opacity: 0.72;
  font-size: 0.78rem;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.footer-link:hover,
.footer-grid a:hover {
  color: var(--cyan);
}

.footer-link:hover i,
.footer-grid a:hover i {
  opacity: 1;
}

.footer-link[href$="donate.html"] i {
  color: #f472b6;
  opacity: 1;
}

.footer-link[href$="donate.html"]:hover,
.footer-link[href$="donate.html"]:hover i {
  color: #fb7185;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-copy,
.footer-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-tagline i {
  color: var(--cyan);
  opacity: 0.85;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.two-col-col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.two-col-heading {
  font-size: 1.4rem;
  margin: 0 0 1rem;
  flex-shrink: 0;
}

.two-col .form-card {
  max-width: none;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.two-col .form-card form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.two-col .form-card form .form-group:has(textarea) {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.two-col .form-card form .form-group:has(textarea) textarea {
  flex: 1;
  min-height: 120px;
}

@media (max-width: 900px) {
  .contact-info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .two-col,
  .contact-grid,
  .app-showcase,
  .signup-cta,
  .race-day-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .race-day-media {
    order: -1;
  }

  .site-footer {
    text-align: center;
  }

  .footer-grid,
  .footer-grid-expanded {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    max-width: 32rem;
    margin-inline: auto;
  }

  .footer-brand .logo,
  .footer-logo {
    justify-content: center;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .footer-col {
    width: 100%;
    max-width: 20rem;
  }

  .footer-col ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-link,
  .footer-grid a {
    justify-content: center;
  }

  .footer-bottom {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .footer-copy,
  .footer-tagline {
    justify-content: center;
  }
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --hero-accent-inset: 0.65rem;
  }

  .page-hero:has(.page-hero-bg) .container {
    --hero-line-inset: 0px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .site-nav ul li.nav-auth-slot {
    margin-left: 0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    width: 100%;
  }

  button.nav-signin {
    width: 100%;
    text-align: left;
  }

  .site-nav ul > li.nav-auth-item {
    width: 100%;
    max-width: 100%;
  }

  .site-nav .nav-auth-row {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav .nav-auth-row > .nav-auth-label {
    min-width: 0;
    justify-content: flex-start;
  }

  .site-nav .nav-auth-row > .nav-auth-label > span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-nav .nav-auth-row > .nav-auth-signout {
    flex-shrink: 0;
  }

  .form-row,
  .two-col,
  .contact-grid,
  .app-showcase,
  .course-card-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-section {
    padding: 3rem 0;
  }

  .contact-info-bar,
  .contact-panel,
  .contact-form-panel {
    padding: 1.75rem 1.5rem;
  }

  .contact-info-bar {
    margin-bottom: 1.25rem;
  }

  .course-thumb {
    max-width: 140px;
  }

  .course-card-actions {
    flex-direction: row;
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  .course-card-actions .course-results-btn,
  .course-card-actions .course-expand-btn {
    flex: 1;
    width: auto;
    align-self: stretch;
  }

  .course-expand-top {
    grid-template-columns: 1fr;
  }

  .course-map-frame {
    min-height: 260px;
  }

  .course-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .course-safety-grid {
    grid-column: 1 / -1;
  }

  .course-detail {
    min-width: 0;
  }

  .course-card,
  .race-day-layout,
  .race-day-highlights,
  .signup-cta { grid-template-columns: 1fr; }

  .hero > .container.hero-inner {
    padding-inline: clamp(1.65rem, 6.5vw, 2.25rem);
  }

  .hero-content-box {
    padding: 2rem 1.75rem;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    flex: none;
    width: 100%;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
  }

  .race-day-highlights { grid-template-columns: 1fr; }

  .race-day-actions {
    flex-direction: column;
  }

  .race-day-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .signup-cta { padding: 2rem 1.5rem; }

  .signup-perks { grid-template-columns: 1fr; }

  .signup-highlight { padding: 1.75rem 1.5rem; }

  .latest-results-footer { flex-direction: column; align-items: stretch; }

  .latest-results-footer .btn { justify-content: center; }

  .footer-grid,
  .footer-grid-expanded { grid-template-columns: 1fr; }

  .hero { min-height: 480px; }

  .hero-inner { padding: 2rem 0 6rem; }

  .hero-stats .stats-bar {
    padding: 1.25rem 0;
  }

  .hero-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stat-item {
    gap: 0.2rem;
    padding: 0.9rem 0.85rem 0.15rem;
    border-left: none;
    border-top: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
  }

  .hero-stat-item:nth-child(-n+2) {
    border-top: none;
    padding-top: 0.65rem;
  }

  .hero-stat-item:nth-child(n+3) {
    padding-top: 1.15rem;
  }

  .hero-stat-item:nth-child(odd) {
    border-right: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
  }

  .hero-stats .stat-num {
    font-size: clamp(0.95rem, 3.2vw, 1.15rem);
    white-space: normal;
  }

  .hero-stats .stat-label {
    font-size: 0.82rem;
    max-width: 11rem;
  }

  .runner-dash-attendance-grid,
  .runner-dash-perf-grid,
  .runner-dash-meta-grid {
    grid-template-columns: 1fr;
  }

  .runner-dash-card {
    height: auto;
  }

  .runner-activity-chart {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 0.65rem;
  }

  .runner-dash-recent-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 0.5rem;
  }

  .runner-dash-recent-time { text-align: left; }

  .runner-dashboard-header {
    flex-direction: column;
  }

  .runner-dashboard-header-actions {
    align-self: stretch;
    align-items: stretch;
  }

  .runner-dash-section-head {
    flex-direction: column;
  }

  .stats-search-grid {
    grid-template-columns: 1fr;
  }

  .stats-search-card {
    flex-direction: row;
    align-items: flex-start;
  }

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

  .club-dashboard-header {
    flex-direction: column;
  }

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

  .club-dash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .club-dash-recent-row {
    grid-template-columns: 1fr 1fr;
  }

  .history-cal-month-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .history-cal-month-cell {
    min-height: 5.5rem;
  }

  .club-trial-row-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .club-dash-runner-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .runner-run-row-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .results-distances-grid.is-split {
    grid-template-columns: 1fr;
  }

  .site-modal-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .site-nav button.theme-toggle:not(.theme-toggle-float) {
    width: 100%;
    height: auto;
    padding: 0.5rem 0.7rem;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .site-nav button.theme-toggle:not(.theme-toggle-float)::after {
    content: 'Theme';
    font-size: 0.88rem;
    font-weight: 500;
  }

  html {
    scroll-padding-top: 4.5rem;
  }

  section {
    padding: 2.75rem 0;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.35rem 0.5rem;
  }

  .header-brand {
    display: contents;
  }

  .site-header .logo {
    grid-column: 1;
    justify-self: start;
    align-self: center;
    flex: none;
    min-width: 0;
    font-size: 0.95rem;
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-cta {
    grid-column: 2;
    justify-self: end;
    flex: none;
    width: auto;
    min-width: 0;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    justify-content: center;
    font-size: 0.8rem;
    gap: 0.35rem;
    white-space: nowrap;
  }

  .header-cta i {
    font-size: 0.88rem;
    margin: 0;
  }

  .header-cta-label--full {
    display: none;
  }

  .header-cta-label--short {
    display: inline;
  }

  .nav-toggle {
    grid-column: 3;
    justify-self: end;
    flex: none;
    margin-left: 0;
  }

  .site-nav a,
  .site-nav button.nav-signin {
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
  }

  .page-hero {
    min-height: auto;
    padding: 2.25rem 0 1.75rem;
  }

  .page-hero-bg::before {
    background: linear-gradient(
      165deg,
      rgba(10, 11, 16, 0.92) 0%,
      rgba(10, 11, 16, 0.8) 42%,
      rgba(10, 11, 16, 0.74) 100%
    );
  }

  .page-hero-bg::after {
    background:
      linear-gradient(to top, rgba(10, 11, 16, 0.6) 0%, rgba(10, 11, 16, 0.28) 52%, transparent 100%),
      linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, rgba(255, 109, 0, 0.08) 100%);
  }

  [data-theme="light"] .page-hero-bg::before {
    background: linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.91) 45%,
      rgba(255, 255, 255, 0.84) 100%
    );
  }

  [data-theme="light"] .page-hero-bg::after {
    background:
      linear-gradient(to top, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.38) 55%, transparent 100%);
  }

  [data-theme="light2"] .page-hero-bg::before {
    background: linear-gradient(
      165deg,
      rgba(248, 247, 255, 0.97) 0%,
      rgba(248, 247, 255, 0.91) 45%,
      rgba(248, 247, 255, 0.84) 100%
    );
  }

  [data-theme="light2"] .page-hero-bg::after {
    background:
      linear-gradient(to top, rgba(248, 247, 255, 0.72) 0%, rgba(248, 247, 255, 0.38) 55%, transparent 100%);
  }

  .page-hero:has(.page-hero-bg) h1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.58);
  }

  .page-hero:has(.page-hero-bg) p {
    text-shadow:
      0 1px 14px rgba(0, 0, 0, 0.52),
      0 2px 4px rgba(0, 0, 0, 0.28);
  }

  .page-hero h1 {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }

  .page-hero p {
    font-size: 0.95rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .platform-benefits-section .section-header h2 {
    padding-top: 1.25rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature {
    padding: 1.35rem;
  }

  .app-race-day-grid {
    grid-template-columns: 1fr;
  }

  .app-showcase-steps-header h2 {
    font-size: 1.2rem;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .filter-bar .select-field,
  .filter-bar .select-field.is-custom,
  .filter-bar select {
    width: 100%;
    min-width: 0;
  }

  .filter-bar .select-field.is-custom .custom-select-trigger,
  .filter-bar .select-field > select,
  .filter-bar select {
    width: 100%;
    min-width: 0;
  }

  .runners-directory-toolbar.filter-bar {
    align-items: stretch;
  }

  .runners-directory-filter,
  .runners-directory-toolbar .select-field.is-custom .custom-select-trigger,
  .runners-directory-toolbar .select-field > select,
  .runners-directory-toolbar select {
    width: 100%;
    min-width: 0;
  }

  .runner-merge-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .runner-merge-bar .btn {
    width: 100%;
    justify-content: center;
  }

  .latest-results-card {
    padding: 1.35rem;
  }

  .latest-results-header h3 {
    font-size: 1.15rem;
  }

  .course-details {
    grid-template-columns: 1fr;
  }

  .course-card-actions {
    flex-direction: column;
  }

  .course-card-actions .course-results-btn,
  .course-card-actions .course-expand-btn {
    width: 100%;
  }

  .history-cal-month-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-cal-nav-btn {
    width: 2.75rem;
    height: 2.75rem;
  }

  .site-modal-close {
    width: 2.75rem;
    height: 2.75rem;
  }

  .password-toggle {
    width: 2.75rem;
    height: 2.75rem;
  }

  .pagination-btn {
    min-height: 2.75rem;
    padding: 0.6rem 1rem;
  }

  .distance-check input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
  }

  .donate-card,
  .payfast-status-panel,
  .contact-info-bar,
  .contact-panel,
  .contact-form-panel {
    padding: 1.35rem 1.15rem;
  }

  .signup-highlight-btn {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .results-table {
    min-width: 300px;
  }

  .distances-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .distance-check {
    width: 100%;
  }

  .club-results-header-side {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-inline: auto;
    align-items: center;
  }

  .club-results-header-side .club-history-toggle,
  .club-results-header-side .trial-edit-request-btn {
    width: auto;
    min-width: min(100%, 15rem);
    max-width: 100%;
  }
}

/* Light theme refinements */
[data-theme="light"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -30%, var(--cyan-tint-strong), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(234, 88, 12, 0.05), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  background-attachment: fixed;
}

[data-theme="light"] .site-header {
  border-bottom-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 4px 24px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-primary:hover {
  color: #ffffff;
}

[data-theme="light"] .nav-cta,
[data-theme="light"] .nav-cta:hover {
  color: #ffffff !important;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--cyan) 28%, transparent);
}

[data-theme="light"] .hero-content-box,
[data-theme="light"] .hero-stats .stats-bar {
  box-shadow: var(--shadow-lg);
  border-color: var(--hero-box-border);
}

[data-theme="light"] .hero-badge {
  background: var(--cyan-tint-strong);
  border-color: var(--cyan-border);
  color: var(--cyan-hover);
}

[data-theme="light"] .page-hero {
  background: linear-gradient(180deg, var(--page-hero-gradient) 0%, transparent 100%);
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .page-hero-bg::before {
  background: linear-gradient(
    102deg,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 255, 255, 0.88) 26%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 78%
  );
}

[data-theme="light"] .page-hero-bg::after {
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.55) 0%, transparent 45%),
    linear-gradient(to right, transparent 58%, rgba(255, 255, 255, 0.12) 100%);
}

[data-theme="light"] .page-hero:has(.page-hero-bg) h1 {
  color: var(--text);
  text-shadow: none;
}

[data-theme="light"] .page-hero:has(.page-hero-bg) p {
  color: #334155;
  text-shadow: none;
}

[data-theme="light"] .page-hero:has(.page-hero-bg) p strong {
  color: var(--cyan-hover);
}

[data-theme="light"] .page-hero:not(:has(.page-hero-bg)) h1,
[data-theme="light"] .page-hero:not(:has(.page-hero-bg)) p {
  text-shadow: none;
}

[data-theme="light"] .feature,
[data-theme="light"] .form-card,
[data-theme="light"] .stats-bar,
[data-theme="light"] .runners-directory-row,
[data-theme="light"] .runner-profile-card,
[data-theme="light"] .club-sidebar {
  box-shadow: var(--shadow);
}

[data-theme="light"] .feature:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(165deg, var(--cyan-tint) 0%, var(--bg-card) 55%);
}

[data-theme="light"] .runners-directory-row:hover {
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .feature-icon {
  background: var(--cyan-tint);
  border: 1px solid var(--cyan-border);
}

[data-theme="light"] .app-race-day-grid .feature:hover .feature-icon,
[data-theme="light2"] .app-race-day-grid .feature:hover .feature-icon {
  background: transparent;
  box-shadow: none;
}

[data-theme="light"] .tag-cyan {
  background: var(--cyan-tint);
  color: var(--cyan-hover);
}

[data-theme="light"] .tag-orange {
  background: rgba(234, 88, 12, 0.1);
  color: #c2410c;
}

[data-theme="light"] .tag-purple {
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
}

[data-theme="light"] .tag-city {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

[data-theme="light"] .race-day-highlight,
[data-theme="light"] .signup-cta {
  box-shadow: var(--shadow);
}

[data-theme="light"] .signup-cta {
  background:
    linear-gradient(135deg, var(--cyan-tint) 0%, transparent 45%),
    var(--bg-card);
  border-color: var(--cyan-border);
}

[data-theme="light"] .stats-search-card {
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

[data-theme="light"] .stats-search-card:hover {
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .stats-search-card--runner {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.11) 0%, #fff 44%);
  border-color: rgba(234, 88, 12, 0.4);
  box-shadow:
    0 4px 24px rgba(234, 88, 12, 0.14),
    0 2px 8px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .stats-search-card--runner:hover {
  border-color: rgba(234, 88, 12, 0.52);
  box-shadow:
    0 8px 32px rgba(234, 88, 12, 0.18),
    var(--shadow-lg);
}

[data-theme="light"] .stats-search-card--runner .stats-search-card-icon {
  background: rgba(234, 88, 12, 0.14);
  border-color: rgba(234, 88, 12, 0.32);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.15);
}

[data-theme="light"] .stats-search-card--runner .stats-search-input {
  background: #fff;
  border-color: rgba(234, 88, 12, 0.28);
}

[data-theme="light"] .stats-search-card--club {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.11) 0%, #fff 44%);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow:
    0 4px 24px rgba(37, 99, 235, 0.14),
    0 2px 8px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .stats-search-card--club:hover {
  border-color: rgba(37, 99, 235, 0.52);
  box-shadow:
    0 8px 32px rgba(37, 99, 235, 0.18),
    var(--shadow-lg);
}

[data-theme="light"] .stats-search-card--club .stats-search-card-icon {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .stats-search-card--club .stats-search-input {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.28);
}

[data-theme="light"] .results-table-wrap {
  box-shadow: var(--shadow);
}

[data-theme="light"] .results-table th {
  background: var(--input-bg-muted);
}

[data-theme="light"] .results-table tr:nth-child(even) td {
  background: var(--surface-inset);
}

[data-theme="light"] .results-table tr.is-runner-highlight td {
  background: var(--cyan-tint);
}

[data-theme="light"] .results-table tr.is-runner-highlight .pos {
  color: var(--cyan-hover);
}

[data-theme="light"] .runner-highlight-badge {
  background: var(--cyan-tint);
  border-color: var(--cyan-border);
  color: var(--cyan-hover);
}

[data-theme="light"] .runner-dashboard {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .runners-directory-row-panel .runner-dashboard {
  background: transparent;
  border: none;
  box-shadow: none;
}

[data-theme="light"] .runner-dashboard-badge {
  background: rgba(234, 88, 12, 0.08);
  border-color: rgba(234, 88, 12, 0.22);
  color: #c2410c;
}

[data-theme="light"] .runner-dash-trials-section,
[data-theme="light"] .runner-dash-runs-section,
[data-theme="light"] .runner-dash-activity {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.07);
}

[data-theme="light"] .runner-dashboard-merged-note {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.18);
}

[data-theme="light"] .runner-dashboard-merge-resolve {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.28);
  color: #6d28d9;
}

[data-theme="light"] .runner-profile-card:hover,
[data-theme="light"] .runner-profile-card:focus-within {
  border-color: var(--cyan-border);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--cyan) 12%, transparent);
}

[data-theme="light"] .runner-profile-card-main:hover,
[data-theme="light"] .runner-profile-card-main:focus-visible {
  background: var(--cyan-tint);
}

[data-theme="light"] .runners-directory-row.is-expanded {
  border-color: var(--border);
}

[data-theme="light"] .signup-highlight {
  background:
    linear-gradient(160deg, var(--page-hero-gradient) 0%, rgba(255, 255, 255, 0.9) 100%),
    var(--bg-card);
  border-color: var(--cyan-border);
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .signup-highlight-trial {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.28);
  color: #047857;
}

[data-theme="light"] .club-dashboard,
[data-theme="light"] .course-card-expandable.is-expanded {
  box-shadow: var(--shadow-lg);
}

[data-theme="light"] .site-footer {
  background: #f8fafc;
  border-top-color: rgba(15, 23, 42, 0.07);
}

[data-theme="light"] .site-modal-dialog,
[data-theme="light"] .site-flash {
  box-shadow: var(--shadow-modal);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .stats-search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-focus);
}

[data-theme="light"] .theme-picker-float .theme-toggle-float {
  background: var(--bg-card);
}

[data-theme="light"] .theme-picker-panel {
  box-shadow: var(--shadow-modal);
}

[data-theme="light"] .runner-merge-bar {
  background: var(--cyan-tint);
  border-color: var(--cyan-border);
}

[data-theme="light"] .runner-merge-results-banner {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.18);
}

[data-theme="light"] .runner-merge-results-banner i {
  color: #7c3aed;
}

[data-theme="light"] .course-card-expandable.is-expanded .course-expand-btn {
  background: var(--cyan-tint);
}

/* Light theme 2 — Ocean Blue */
[data-theme="light2"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 55% at 10% -10%, rgba(14, 165, 233, 0.16), transparent 50%),
    radial-gradient(ellipse 60% 45% at 95% 5%, rgba(244, 63, 94, 0.1), transparent 45%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(37, 99, 235, 0.08), transparent 55%),
    linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
  background-attachment: fixed;
}

[data-theme="light2"] .site-header {
  border-bottom: 2px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 32px rgba(37, 99, 235, 0.08);
}

[data-theme="light2"] .logo {
  letter-spacing: -0.02em;
}

[data-theme="light2"] .btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

[data-theme="light2"] .btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.42);
}

[data-theme="light2"] .nav-cta,
[data-theme="light2"] .nav-cta:hover {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

[data-theme="light2"] .hero h1 span {
  color: #f43f5e;
}

[data-theme="light2"] .hero-content-box,
[data-theme="light2"] .hero-stats .stats-bar {
  box-shadow: var(--shadow-lg);
  border-color: var(--hero-box-border);
}

[data-theme="light2"] .hero-badge {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(14, 165, 233, 0.1) 100%);
  border-color: var(--cyan-border);
  color: #1d4ed8;
}

[data-theme="light2"] .stat-num {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light2"] .page-hero {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, transparent 100%);
  border-bottom-color: rgba(37, 99, 235, 0.12);
}

[data-theme="light2"] .page-hero-bg::before {
  background: linear-gradient(
    102deg,
    rgba(248, 247, 255, 0.95) 0%,
    rgba(248, 247, 255, 0.7) 32%,
    rgba(248, 247, 255, 0.22) 56%,
    transparent 78%
  );
}

[data-theme="light2"] .page-hero-bg::after {
  background:
    linear-gradient(to top, rgba(248, 247, 255, 0.5) 0%, transparent 45%),
    linear-gradient(to right, transparent 58%, rgba(139, 92, 246, 0.06) 100%);
}

[data-theme="light2"] .page-hero:has(.page-hero-bg) h1 {
  color: var(--text);
  text-shadow: none;
}

[data-theme="light2"] .page-hero:has(.page-hero-bg) p {
  color: #3730a3;
  text-shadow: none;
}

[data-theme="light2"] .page-hero:has(.page-hero-bg) p strong {
  color: #be123c;
}

[data-theme="light2"] .page-hero:not(:has(.page-hero-bg)) h1,
[data-theme="light2"] .page-hero:not(:has(.page-hero-bg)) p {
  text-shadow: none;
}

[data-theme="light2"] .feature,
[data-theme="light2"] .form-card,
[data-theme="light2"] .stats-bar,
[data-theme="light2"] .runners-directory-row,
[data-theme="light2"] .runner-profile-card,
[data-theme="light2"] .club-sidebar {
  box-shadow: var(--shadow);
  border-color: var(--border);
}

[data-theme="light2"] .feature {
  position: relative;
  overflow: hidden;
}

[data-theme="light2"] .feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #2563eb, #0ea5e9);
  border-radius: var(--radius) 0 0 var(--radius);
  transition: width 0.22s ease;
}

[data-theme="light2"] .feature:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.06) 0%, var(--bg-card) 55%);
}

[data-theme="light2"] .feature:hover::before {
  width: 4px;
}

[data-theme="light2"] .runners-directory-row:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.22);
}

[data-theme="light2"] .feature-icon {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(14, 165, 233, 0.1) 100%);
  border: 1px solid var(--cyan-border);
}

[data-theme="light"] .app-race-day-grid .feature-icon,
[data-theme="light2"] .app-race-day-grid .feature-icon {
  background: transparent;
  border: none;
  box-shadow: none;
}

[data-theme="light2"] .tag-cyan {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

[data-theme="light2"] .tag-orange {
  background: rgba(244, 63, 94, 0.1);
  color: #e11d48;
}

[data-theme="light2"] .tag-purple {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

[data-theme="light2"] .tag-city {
  background: rgba(96, 165, 250, 0.14);
  color: #1d4ed8;
}

[data-theme="light2"] .race-day-highlight,
[data-theme="light2"] .signup-cta {
  box-shadow: var(--shadow);
}

[data-theme="light2"] .signup-cta {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, transparent 45%),
    var(--bg-card);
  border-color: var(--cyan-border);
}

[data-theme="light2"] .stats-search-card {
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

[data-theme="light2"] .stats-search-card:hover {
  box-shadow: var(--shadow-lg);
}

[data-theme="light2"] .stats-search-card--runner {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.1) 0%, #fff 44%);
  border-color: rgba(244, 63, 94, 0.38);
  box-shadow:
    0 4px 24px rgba(244, 63, 94, 0.12),
    0 2px 8px rgba(30, 27, 75, 0.06);
}

[data-theme="light2"] .stats-search-card--runner:hover {
  border-color: rgba(244, 63, 94, 0.5);
  box-shadow:
    0 8px 32px rgba(244, 63, 94, 0.16),
    var(--shadow-lg);
}

[data-theme="light2"] .stats-search-card--runner .stats-search-card-icon {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.32);
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.14);
}

[data-theme="light2"] .stats-search-card--runner .stats-search-input {
  background: #fff;
  border-color: rgba(244, 63, 94, 0.26);
}

[data-theme="light2"] .stats-search-card--club {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, #fff 44%);
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow:
    0 4px 24px rgba(37, 99, 235, 0.12),
    0 2px 8px rgba(30, 27, 75, 0.06);
}

[data-theme="light2"] .stats-search-card--club:hover {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow:
    0 8px 32px rgba(37, 99, 235, 0.16),
    var(--shadow-lg);
}

[data-theme="light2"] .stats-search-card--club .stats-search-card-icon {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.14);
}

[data-theme="light2"] .stats-search-card--club .stats-search-input {
  background: #fff;
  border-color: rgba(37, 99, 235, 0.26);
}

[data-theme="light2"] .results-table-wrap {
  box-shadow: var(--shadow);
}

[data-theme="light2"] .results-table th {
  background: var(--input-bg-muted);
  color: var(--text-muted);
}

[data-theme="light2"] .results-table tr:nth-child(even) td {
  background: var(--surface-inset);
}

[data-theme="light2"] .results-table tr.is-runner-highlight td {
  background: rgba(37, 99, 235, 0.1);
}

[data-theme="light2"] .results-table tr.is-runner-highlight .pos {
  color: #1d4ed8;
}

[data-theme="light2"] .runner-highlight-badge {
  background: var(--cyan-tint);
  border-color: var(--cyan-border);
  color: #1d4ed8;
}

[data-theme="light2"] .runner-dashboard {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
}

[data-theme="light2"] .runners-directory-row-panel .runner-dashboard {
  background: transparent;
  border: none;
  box-shadow: none;
}

[data-theme="light2"] .runner-dashboard-badge {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.24);
  color: #e11d48;
}

[data-theme="light2"] .runner-dash-trials-section,
[data-theme="light2"] .runner-dash-runs-section,
[data-theme="light2"] .runner-dash-activity {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.12);
}

[data-theme="light2"] .runner-dashboard-merged-note {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
}

[data-theme="light2"] .runner-dashboard-merge-resolve {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.32);
  color: #1d4ed8;
}

[data-theme="light2"] .runner-profile-card:hover,
[data-theme="light2"] .runner-profile-card:focus-within {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.14);
}

[data-theme="light2"] .runner-profile-card-main:hover,
[data-theme="light2"] .runner-profile-card-main:focus-visible {
  background: rgba(37, 99, 235, 0.05);
}

[data-theme="light2"] .runners-directory-row.is-expanded {
  border-color: var(--border);
}

[data-theme="light2"] .signup-highlight {
  background:
    linear-gradient(160deg, rgba(37, 99, 235, 0.1) 0%, rgba(14, 165, 233, 0.06) 45%, rgba(255, 255, 255, 0.95) 100%),
    var(--bg-card);
  border-color: var(--cyan-border);
  box-shadow: var(--shadow-lg);
}

[data-theme="light2"] .signup-highlight-trial {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.28);
  color: #059669;
}

[data-theme="light2"] .club-dashboard,
[data-theme="light2"] .course-card-expandable.is-expanded {
  box-shadow: var(--shadow-lg);
}

[data-theme="light2"] .site-footer {
  background: #eff6ff;
  border-top-color: rgba(37, 99, 235, 0.12);
}

[data-theme="light2"] .site-modal-dialog,
[data-theme="light2"] .site-flash {
  box-shadow: var(--shadow-modal);
}

[data-theme="light2"] .form-group input:focus,
[data-theme="light2"] .form-group select:focus,
[data-theme="light2"] .form-group textarea:focus,
[data-theme="light2"] .stats-search-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-focus);
}

[data-theme="light2"] .theme-picker-float .theme-toggle-float {
  background: var(--bg-card);
}

[data-theme="light2"] .theme-picker-panel {
  box-shadow: var(--shadow-modal);
}

[data-theme="light2"] .runner-merge-bar {
  background: rgba(37, 99, 235, 0.07);
  border-color: var(--cyan-border);
}

[data-theme="light2"] .runner-merge-results-banner {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.22);
}

[data-theme="light2"] .runner-merge-results-banner i {
  color: #2563eb;
}

[data-theme="light2"] .course-card-expandable.is-expanded .course-expand-btn {
  background: var(--cyan-tint);
}

[data-theme="light2"] .theme-picker-float .theme-toggle-float {
  box-shadow: var(--shadow-lg);
}

[data-theme="light2"] .section-header h2 {
  letter-spacing: -0.02em;
}

/* Flash toast */
.site-flash {
  position: fixed;
  left: 50%;
  top: calc(5.5rem + env(safe-area-inset-top, 0px));
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: min(92vw, 420px);
  padding: 0.85rem 1rem 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, -140%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  pointer-events: auto;
}

.site-flash.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.site-flash i.fa-circle-check {
  color: var(--green);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.site-flash span {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.site-flash-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.site-flash-close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

/* ── Donate nav link ── */
.site-nav a.nav-donate {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav a.nav-donate i {
  color: #f472b6;
  font-size: 0.78rem;
}

.site-nav a.nav-donate:hover,
.site-nav a.nav-donate.active {
  color: #f472b6;
  background: rgba(244, 114, 182, 0.12);
}

.site-nav a.nav-donate:hover i,
.site-nav a.nav-donate.active i {
  color: #fb7185;
}

/* ── Donate page ── */
.donate-hero .page-hero-bg::before {
  background: linear-gradient(
    102deg,
    rgba(10, 11, 16, 0.9) 0%,
    rgba(10, 11, 16, 0.68) 36%,
    rgba(10, 11, 16, 0.32) 62%,
    transparent 82%
  );
}

.donate-hero .page-hero-bg::after {
  background:
    linear-gradient(to top, rgba(10, 11, 16, 0.55) 0%, transparent 48%),
    linear-gradient(135deg, rgba(244, 114, 182, 0.14) 0%, transparent 58%),
    linear-gradient(to right, transparent 52%, rgba(10, 11, 16, 0.18) 100%);
}

@media (max-width: 768px) {
  .donate-hero .page-hero-bg {
    filter: brightness(0.68);
  }

  .donate-hero .page-hero-bg::before {
    background: linear-gradient(
      165deg,
      rgba(10, 11, 16, 0.78) 0%,
      rgba(88, 28, 66, 0.52) 42%,
      rgba(10, 11, 16, 0.62) 100%
    );
  }

  .donate-hero .page-hero-bg::after {
    background:
      linear-gradient(180deg, rgba(244, 114, 182, 0.24) 0%, rgba(10, 11, 16, 0.34) 55%, rgba(10, 11, 16, 0.46) 100%),
      linear-gradient(135deg, rgba(244, 114, 182, 0.3) 0%, rgba(251, 113, 133, 0.14) 58%, transparent 100%);
  }

  .donate-hero:has(.page-hero-bg) h1 {
    text-shadow:
      0 2px 22px rgba(0, 0, 0, 0.72),
      0 0 36px rgba(88, 28, 66, 0.32);
  }

  .donate-hero:has(.page-hero-bg) p {
    color: #ffffff;
    text-shadow:
      0 1px 16px rgba(0, 0, 0, 0.65),
      0 2px 8px rgba(88, 28, 66, 0.28);
  }

  .donate-hero .donate-hero-badge {
    box-shadow: 0 2px 14px rgba(88, 28, 66, 0.28);
  }
}

.donate-hero .container {
  z-index: 2;
}

@media (min-width: 769px) {
  .page-hero:has(.page-hero-bg) .container {
    --hero-line-inset: 0px;
    --hero-accent-inset: 0px;
  }
}

.donate-hero .donate-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(244, 114, 182, 0.14);
  border: 1px solid rgba(244, 114, 182, 0.35);
  color: #fda4af;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.donate-section {
  padding: 3.5rem 0 2.5rem;
}

@media (max-width: 768px) {
  .donate-section {
    padding: 1.25rem 0 2rem;
  }

  .donate-intro {
    margin-bottom: 2rem;
  }
}

.donate-intro {
  max-width: 720px;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.donate-intro h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.85rem;
}

.donate-intro p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.donate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.donate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(244, 114, 182, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%),
    var(--bg-card);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.donate-card--monthly {
  border-color: var(--border);
  background:
    linear-gradient(160deg, rgba(244, 114, 182, 0.1) 0%, rgba(244, 114, 182, 0.03) 100%),
    var(--bg-card);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.2),
    0 0 32px rgba(244, 114, 182, 0.16);
}

.donate-card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(244, 114, 182, 0.18);
  border: 1px solid rgba(244, 114, 182, 0.35);
  color: #fda4af;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.donate-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(244, 114, 182, 0.14);
  border: 1px solid rgba(244, 114, 182, 0.28);
  color: #f472b6;
  font-size: 1.35rem;
}

.donate-card-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.55px;
  color: var(--cyan);
}

.donate-card--once .donate-card-label,
.donate-card--monthly .donate-card-label {
  color: #fff;
}

.donate-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.donate-card > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.donate-card-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.donate-card-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.donate-card-perks i {
  color: var(--green);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.donate-payfast-slot {
  margin-top: auto;
}

.donate-payfast-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.donate-payfast-amount {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.donate-payfast-amount label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.donate-payfast-amount input[type="number"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-inset);
  color: var(--text);
  font-family: 'Roboto Mono', monospace;
  font-size: 1rem;
}

.donate-payfast-amount input[type="number"]:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-focus);
}

.donate-payfast-submit {
  display: flex;
  justify-content: stretch;
}

.donate-payfast-btn {
  width: 100%;
  justify-content: center;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0, 229, 255, 0.24);
}

.donate-payfast-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 229, 255, 0.34);
}

.donate-payfast-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--cyan-focus), 0 8px 22px rgba(0, 229, 255, 0.24);
}

.donate-payfast-btn i {
  font-size: 1.05rem;
  color: currentColor;
}

.donate-payfast-pending {
  padding: 1rem;
  border-radius: 10px;
  background: var(--surface-inset);
  border: 1px dashed var(--border);
}

.donate-payfast-pending p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.donate-payfast-pending code {
  font-size: 0.78rem;
  color: var(--cyan);
}

.donate-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.donate-trust-item {
  display: flex;
  gap: 0.85rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.donate-trust-item > i {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--cyan-tint);
  color: var(--cyan);
  font-size: 0.95rem;
}

.donate-trust-item h4 {
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.donate-trust-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.donate-faq-section {
  padding: 0 0 4rem;
}

.donate-faq-panel {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.donate-faq-panel h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.donate-faq-panel h2 i {
  color: var(--cyan);
}

.donate-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.donate-faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-inset);
  overflow: hidden;
}

.donate-faq-item summary {
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
}

.donate-faq-item summary::-webkit-details-marker {
  display: none;
}

.donate-faq-item[open] summary {
  border-bottom: 1px solid var(--border);
  color: var(--cyan);
}

.donate-faq-item p {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .donate-grid,
  .donate-trust {
    grid-template-columns: 1fr;
  }
}

[data-theme="light"] .donate-card {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .donate-hero .donate-hero-badge {
  color: #db2777;
  background: rgba(244, 114, 182, 0.12);
}

[data-theme="light"] .donate-hero .page-hero-bg::before {
  background: linear-gradient(
    102deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.92) 30%,
    rgba(255, 255, 255, 0.62) 54%,
    transparent 80%
  );
}

[data-theme="light"] .donate-hero .page-hero-bg::after {
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.65) 0%, transparent 48%),
    linear-gradient(135deg, rgba(244, 114, 182, 0.08) 0%, transparent 58%),
    linear-gradient(to right, transparent 52%, rgba(255, 255, 255, 0.15) 100%);
}

@media (max-width: 768px) {
  [data-theme="light"] .donate-hero .page-hero-bg {
    filter: brightness(0.84);
  }

  [data-theme="light"] .donate-hero .page-hero-bg::before {
    background: linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 228, 240, 0.72) 45%,
      rgba(255, 255, 255, 0.82) 100%
    );
  }

  [data-theme="light"] .donate-hero .page-hero-bg::after {
    background:
      linear-gradient(180deg, rgba(244, 114, 182, 0.2) 0%, rgba(255, 255, 255, 0.5) 100%),
      linear-gradient(135deg, rgba(244, 114, 182, 0.24) 0%, rgba(255, 255, 255, 0.18) 100%);
  }
}

.payfast-status-section {
  padding: 3rem 0 4.5rem;
}

.payfast-status-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.payfast-status-panel--success {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 12px 40px rgba(52, 211, 153, 0.08);
}

.payfast-status-panel--cancel {
  border-color: rgba(251, 191, 36, 0.35);
  box-shadow: 0 12px 40px rgba(251, 191, 36, 0.06);
}

.payfast-status-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.5rem;
}

.payfast-status-panel--success .payfast-status-icon {
  color: var(--green);
  background: rgba(52, 211, 153, 0.12);
}

.payfast-status-panel--cancel .payfast-status-icon {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.payfast-status-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.payfast-status-panel p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.payfast-status-note {
  font-size: 0.85rem;
}

.payfast-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .payfast-status-panel {
    padding: 1.5rem;
  }

  .payfast-status-actions {
    flex-direction: column;
  }

  .payfast-status-actions .btn {
    width: 100%;
    justify-content: center;
  }
}