/* ==========================================================================
   18ος ΗΜΙΜΑΡΑΘΩΝΙΟΣ «ΜΙΧΑΛΗΣ ΚΟΥΣΗΣ» - ATHLETIC DESIGN SYSTEM (LIGHT THEME)
   Inspired by My IRONMAN, World Athletics & Official Kousis Half Marathon
   Clean, bright, responsive, high-contrast typography, interactive micro-animations
   ========================================================================== */

:root {
  /* Core Clean Athletic Light Theme */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-card-hover: #ffffff;
  --bg-surface: #ffffff;

  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: #0284c7;

  /* Primary High-Contrast Typography */
  --text-main: #0f172a;       /* Deep athletic slate/navy */
  --text-muted: #334155;      /* Slate 700 */
  --text-dim: #64748b;        /* Slate 500 */
  --text-white: #ffffff;

  /* Athletic Brand Palette (Lake Trichonida Blue & Champion Gold) */
  --blue-primary: #0284c7;    /* Sky 600 */
  --blue-dark: #0369a1;       /* Sky 700 */
  --blue-deep: #0f172a;       /* Navy */
  --blue-light: #e0f2fe;      /* Sky 100 */
  --blue-accent: #2563eb;     /* Royal blue */

  --gold-primary: #f59e0b;    /* Amber 500 */
  --gold-dark: #d97706;       /* Amber 600 */
  --gold-light: #fef3c7;      /* Amber 100 */

  --coral-accent: #ef4444;    /* Vibrant red/coral */
  --green-primary: #10b981;   /* Emerald 500 */
  --green-light: #ecfdf5;     /* Emerald 50 */

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 18px -2px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.25);

  /* Fonts */
  --font-heading: 'Outfit', 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-cert: 'Cinzel', serif;

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --tr-fast: 0.15s ease;
  --tr-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-body);
  color: var(--text-main);
  scroll-padding-top: 112px;
  scroll-padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-inline-size: 100%;
  block-size: auto;
}

:where(a, code) {
  overflow-wrap: anywhere;
}

/* Global Typography */
h1, h2, h3, h4, h5, .brand-main {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-main);
}

h1, h2, h3 {
  text-wrap: balance;
}

p, li {
  text-wrap: pretty;
}

/* Touch-friendly target sizing (WCAG 2.5.8 / 2.5.5) */
:root {
  --target-size: 24px;
}

@media (pointer: coarse) {
  :root {
    --target-size: 44px;
  }
  :where(button, select, textarea, input:not([type="checkbox"], [type="radio"]), [role="button"], .main-nav a, .btn, .btn-glass) {
    min-block-size: var(--target-size);
    min-inline-size: var(--target-size);
  }
}

a {
  color: var(--blue-primary);
  text-decoration: none;
  transition: var(--tr-fast);
}

a:hover {
  color: var(--blue-dark);
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--tr-smooth);
  user-select: none;
  white-space: nowrap;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-pill);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
}

.btn-primary {
  background: var(--blue-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-card-subtle);
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

.btn-outline-gold {
  background: #fff;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold-primary);
}

.btn-outline-gold:hover {
  background: var(--gold-light);
  color: var(--gold-dark);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--tr-fast);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  width: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  flex-shrink: 0;
}

.nav-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.dimos-logo {
  background: #fff;
  padding: 2px;
  border: 1px solid var(--border-color);
}

.kousis-logo {
  background: #fff;
  padding: 2px;
  border: 1px solid var(--border-color);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.70rem;
  letter-spacing: 0.10em;
  color: var(--blue-primary);
  font-weight: 700;
  text-transform: uppercase;
}

/* Quick Search in Navbar */
.nav-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 220px;
  flex: 1;
}

.nav-search-wrapper input {
  width: 100%;
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 8px 36px 8px 16px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--tr-fast);
}

.nav-search-wrapper input:focus {
  border-color: var(--blue-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.nav-search-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Main Navigation Items */
.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
  z-index: 10;
}

.nav-item {
  font-size: 0.90rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 4px;
}

.nav-item:hover, .nav-item.active {
  color: var(--blue-primary);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--blue-primary);
  border-radius: 2px;
}

.pulse-cta {
  animation: pulseGold 2.8s infinite;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35); }
  50% { box-shadow: 0 4px 20px rgba(245, 158, 11, 0.65); }
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--tr-fast);
}

/* ==========================================================================
   HERO SECTION (VIBRANT LIGHT ATHLETIC)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 82dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 70px;
  background: linear-gradient(145deg, #f0f9ff 0%, #e0f2fe 45%, #f8fafc 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  container: hero / inline-size;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 85% 15%, rgba(2, 132, 199, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 15% 85%, rgba(245, 158, 11, 0.06) 0%, transparent 40%),
    linear-gradient(rgba(2, 132, 199, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2, 132, 199, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 1040px;
  min-width: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--coral-accent);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 900;
  color: var(--text-main);
  max-width: 900px;
}

.highlight-gold {
  color: var(--blue-primary);
  background: linear-gradient(135deg, #0284c7, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.6;
}

/* Official Race Feature Pills */
.hero-features-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 6px 0;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.feature-pill svg {
  color: var(--blue-primary);
}

/* Countdown Card */
.countdown-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 28px;
  box-shadow: var(--shadow-md);
  margin: 6px 0;
}

.countdown-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--text-dim);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.time-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.time-unit {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.time-separator {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue-primary);
  margin-bottom: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 4px;
}

/* Quick Stats Bar */
.quick-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 12px 30px;
  box-shadow: var(--shadow-sm);
  margin-top: 10px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-value.gold-text {
  color: var(--gold-dark);
}

.stat-desc {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border-color);
}

/* ==========================================================================
   SECTIONS GENERAL STYLING
   ========================================================================== */
section {
  padding: 70px 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 40px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.6;
}

/* Cards Glass / Clean White */
.card-glass {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--tr-smooth);
}

.card-glass:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

/* ==========================================================================
   OFFICIAL RACES & COURSES (21.1k, 5k, 1k)
   ========================================================================== */
.races-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.race-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: var(--tr-smooth);
}

.race-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-primary);
}

.race-card-header {
  padding: 24px;
  background: linear-gradient(135deg, #f0f9ff, #ffffff);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.race-distance-badge {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: var(--blue-primary);
  line-height: 1;
}

.race-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 6px;
}

.race-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.race-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.race-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--bg-card-subtle);
  padding: 14px;
  border-radius: var(--radius-md);
}

.race-spec-item {
  display: flex;
  flex-direction: column;
}

.spec-lbl {
  font-size: 0.70rem;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.spec-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.race-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.race-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.race-highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.race-highlights li::before {
  content: '✓';
  color: var(--green-primary);
  font-weight: bold;
}

/* ==========================================================================
   3-DAY EVENT SCHEDULE (ΠΡΟΓΡΑΜΜΑ ΤΡΙΗΜΕΡΟΥ)
   ========================================================================== */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.schedule-day-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.day-header {
  padding: 20px 24px;
  background: var(--text-main);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.day-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.day-date {
  font-size: 0.80rem;
  color: #38bdf8;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.day-events-list {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-color);
}

.event-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.event-time-badge {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  font-family: var(--font-heading);
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.event-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.event-venue {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   RUNNER GUIDE & EXPO (ΟΔΗΓΟΣ ΔΡΟΜΕΩΝ)
   ========================================================================== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.guide-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--tr-fast);
}

.guide-box:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-md);
}

.guide-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.guide-box h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.guide-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   ATHLETES SEARCH & RESULTS TABLE
   ========================================================================== */
.search-controls-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.search-input-box {
  position: relative;
  flex: 1;
  min-width: min(260px, 100%);
  width: 100%;
}

.search-input-box input {
  width: 100%;
  background: var(--bg-card-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 10px 40px 10px 18px;
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  font-family: var(--font-body);
  transition: var(--tr-fast);
}

.search-input-box input:focus {
  border-color: var(--blue-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.filter-buttons-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tr-fast);
}

.filter-pill:hover, .filter-pill.active {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #fff;
}

/* Runners Grid Cards */
.runners-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.runner-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--tr-smooth);
  cursor: pointer;
}

.runner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-primary);
}

.runner-card.is-female {
  border-color: #f472b6 !important;
  background: linear-gradient(180deg, #ffffff 80%, #fff1f2 100%) !important;
}

.runner-card.is-female:hover {
  border-color: #db2777 !important;
  box-shadow: 0 10px 22px -4px rgba(244, 114, 182, 0.35) !important;
}

.runner-card-top {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-bottom: 1px solid var(--border-color);
}

.runner-thumb-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-card-subtle);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.runner-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.runner-top-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.runner-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.runner-card-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.runner-card-stats {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  background: #ffffff;
}

.runner-stat-col {
  display: flex;
  flex-direction: column;
}

.runner-stat-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.runner-stat-val {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-main);
}

.runner-card-footer {
  padding: 10px 16px;
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.view-profile-link {
  font-weight: 700;
  color: var(--blue-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   ONLINE REGISTRATION FORM (2026)
   ========================================================================== */
.reg-form-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-md);
  max-width: 880px;
  margin: 0 auto;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 0.92rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--tr-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-group .required {
  color: var(--coral-accent);
}

.form-help-text {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   MY IRONMAN ATHLETE PROFILE MODAL & DASHBOARD
   ========================================================================== */
.app-dialog {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--text-main);
  max-width: 960px;
  width: 94%;
  margin: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  overscroll-behavior: contain;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

.app-dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog-content {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--text-main);
}

.dialog-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr-fast);
  z-index: 10;
}

.dialog-close-btn:hover {
  background: var(--border-color);
  color: var(--text-main);
  transform: rotate(90deg);
}

/* My IRONMAN Hero Card in Profile */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 100%);
  color: #fff;
  padding: 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.profile-avatar-wrap {
  width: 100px;
  height: 100px;
  position: relative;
  flex-shrink: 0;
  overflow: visible;
  margin-bottom: 6px;
}

.profile-avatar-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3.5px solid #ffffff;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.profile-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-hero-info {
  flex: 1;
}

.profile-hero-info h2 {
  font-size: 1.7rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
}

.profile-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.profile-meta-tags .badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.badge-category {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.badge-team {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.badge-2026 {
  background: var(--green-primary);
  color: #ffffff;
}

/* My IRONMAN Lifetime Stats Grid */
.ironman-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-chip-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-chip-label {
  font-size: 0.70rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-chip-value {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
}

.stat-chip-value.accent-blue {
  color: var(--blue-primary);
}

.stat-chip-value.accent-gold {
  color: var(--gold-dark);
}

/* Profile Tabs (Single-Row Accessible Tablist) */
.profile-tabs-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 20px;
  overflow-x: auto;
  scroll-snap-type: inline proximity;
  scroll-padding-inline: 2rem;
  scrollbar-width: thin;
}

.profile-tab-btn {
  flex: none;
  scroll-snap-align: start;
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
  transition: color 0.16s ease;
  white-space: nowrap;
}

.profile-tab-btn[hidden] {
  display: none !important;
}

.profile-tab-btn:hover {
  color: var(--blue-primary);
}

.profile-tab-btn:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: -2px;
  border-radius: 6px;
}

.profile-tab-btn[aria-selected="true"] {
  color: var(--blue-primary);
}

.profile-tab-btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -2px;
  border-block-end: 3px solid var(--blue-primary);
}

.profile-tab-pane {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.profile-tab-inner {
  padding-top: 2px;
}

.profile-gear-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.profile-owner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.profile-owner-pill {
  background: rgba(16, 185, 129, 0.24);
  border: 1px solid #34d399;
  color: #ecfdf5;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.profile-hero-action-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, transform 0.16s ease;
}

.profile-hero-action-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.profile-hero-action-btn.gold {
  background: #f59e0b;
  color: #0f172a;
  border-color: #fde68a;
}

.profile-hero-action-btn.gold:hover {
  background: #fbbf24;
}

.profile-hero-action-btn.danger {
  background: rgba(239, 68, 68, 0.22);
  color: #fecaca;
  border-color: rgba(252, 165, 165, 0.45);
}

.profile-hero-action-btn.danger:hover {
  background: rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

.profile-photos-owner-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.profile-photos-owner-bar strong {
  display: block;
  font-size: 0.88rem;
  color: #0f172a;
}

.profile-photos-owner-bar p {
  font-size: 0.79rem;
  color: #475569;
  margin: 3px 0 0;
  line-height: 1.45;
}

.athlete-story-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.existing-story-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0 16px;
}

.athlete-story-form {
  margin-top: 14px;
}

.athlete-story-form select,
.athlete-story-form input[type="text"],
.athlete-story-form textarea {
  width: 100%;
  font: inherit;
  font-size: max(1rem, 0.94rem);
  padding: 10px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--text-main);
  box-sizing: border-box;
}

.athlete-story-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

.athlete-story-form select:focus-visible,
.athlete-story-form input[type="text"]:focus-visible,
.athlete-story-form textarea:focus-visible {
  outline: 2px solid var(--blue-primary);
  background: #ffffff;
}

.story-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.80rem;
  color: #475569;
  cursor: pointer;
  line-height: 1.45;
}

.story-consent-label input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--blue-primary);
  flex-shrink: 0;
}

.privacy-account-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.private-info-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.private-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.private-info-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.private-info-item span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.private-info-item strong {
  display: block;
  font-size: 0.90rem;
  color: #0f172a;
  margin-top: 2px;
  word-break: break-word;
}

.gdpr-controls-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 16px;
}

.gdpr-switch-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.gdpr-switch-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--blue-primary);
  flex-shrink: 0;
}

.gdpr-switch-label strong {
  display: block;
  font-size: 0.86rem;
  color: #0f172a;
}

.gdpr-switch-label small {
  display: block;
  font-size: 0.77rem;
  color: #64748b;
  margin-top: 2px;
}

/* Results History Table in Profile */
.results-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.results-table th {
  background: var(--bg-card-subtle);
  padding: 12px 14px;
  font-weight: 800;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.results-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

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

/* Photo Gallery in Profile */
.photos-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.gallery-photo-thumb {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.gallery-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr-smooth);
}

.gallery-photo-thumb:hover img {
  transform: scale(1.05);
}

.thumb-zoom-icon {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity var(--tr-fast);
}

.gallery-photo-thumb:hover .thumb-zoom-icon {
  opacity: 1;
}

/* Feedback messages */
.feedback-msg {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-top: 10px;
  display: none;
}

.feedback-msg.success {
  background: var(--green-light);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.feedback-msg.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #f8fafc;
  padding: 60px 24px 30px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 800;
}

.footer-col p, .footer-col a {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.7;
}

.footer-col a:hover {
  color: #38bdf8;
}

.footer-bottom {
  max-width: 1320px;
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.80rem;
  color: #64748b;
}

.hotel-card {
  transition: transform var(--tr-smooth), box-shadow var(--tr-smooth), border-color var(--tr-smooth);
}
.hotel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-primary) !important;
}

.official-link-card {
  transition: transform var(--tr-smooth), box-shadow var(--tr-smooth), border-color var(--tr-smooth);
}
.official-link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-primary) !important;
  background: #ffffff !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 1280px) {
  .nav-search-wrapper {
    display: none;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 18px 24px;
    gap: 12px;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    z-index: 999;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav.open .drawer-auth-actions {
    display: flex !important;
  }
  .main-nav .nav-item {
    font-size: 0.95rem;
    padding: 10px 4px;
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }
  .mobile-toggle {
    display: flex;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .profile-hero {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .brand-sub {
    display: none;
  }
  .brand-main {
    font-size: 0.95rem;
  }
  .nav-logo {
    height: 34px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .btn-sm {
    padding: 6px 10px;
    font-size: 0.80rem;
  }
  .site-footer {
    padding: 44px 18px 96px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ==========================================================================
   ALL-TIME RANKINGS & PODIUMS
   ========================================================================== */
.podiums-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.podium-category-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.podium-category-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.podium-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.podium-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  transition: transform var(--tr-fast), box-shadow var(--tr-fast);
  cursor: pointer;
}

.podium-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.podium-item.gold {
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
  border-color: #fde68a;
}
.podium-item.silver {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-color: #cbd5e1;
}
.podium-item.bronze {
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
  border-color: #fed7aa;
}

.podium-medal-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  flex-shrink: 0;
}
.podium-item.gold .podium-medal-badge {
  background: #fef3c7;
  color: #b45309;
}
.podium-item.silver .podium-medal-badge {
  background: #f1f5f9;
  color: #475569;
}
.podium-item.bronze .podium-medal-badge {
  background: #ffedd5;
  color: #c2410c;
}

.podium-info {
  flex: 1;
  min-width: 0;
}
.podium-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.podium-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.podium-time-wrap {
  text-align: right;
}
.podium-time {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--blue-primary);
}
.podium-year {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
}

/* Tester Box */
.tester-account-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #fde68a;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
}

/* Floating Quick Access Auth FAB */
.floating-auth-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.28));
}

.fab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  border: 2px solid #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.fab-btn:hover {
  transform: translateY(-3px) scale(1.04);
}

.fab-login {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.45);
}

.fab-tester {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
}

@media (max-width: 480px) {
  .floating-auth-fab {
    bottom: 16px;
    right: 14px;
    gap: 8px;
  }
  .fab-btn {
    padding: 8px 14px;
    font-size: 0.80rem;
  }
}

/* ==========================================================================
   PRESTIGE SPONSORS SHOWCASE & CREATOR FOOTER (2026 HD EDITION)
   ========================================================================== */
.spn-pill-row {
  display: flex;
  flex-wrap: wrap;
  flex-wrap: balance;
  gap: 10px;
  align-items: safe center;
  justify-content: center;
}

/* Top Prestige Grand Sponsors Strip (in #kousis-hub) */
.spn-top-showcase {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.38);
  border-radius: 16px;
  padding: 16px 18px;
  margin-block-end: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.spn-top-header {
  display: flex;
  flex-wrap: wrap;
  align-items: safe center;
  justify-content: space-between;
  gap: 8px;
  margin-block-end: 12px;
}

.spn-top-eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fbbf24;
  text-transform: uppercase;
}

.spn-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}

.spn-top-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.spn-top-plate:hover {
  transform: translateY(-3px);
  border-color: #f59e0b;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.22);
}

.spn-top-plate img {
  display: block;
  inline-size: 100%;
  block-size: 74px;
  object-fit: contain;
  padding: 4px 8px;
  border-radius: 8px;
}

.spn-top-plate.spn-navy-stage img {
  background: #253268;
  padding: 8px 14px;
}

.spn-top-plate-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  line-height: 1.25;
  text-wrap: balance;
}

/* XXL Grand Sponsor Cards (#grandSponsorsGrid) */
.spn-grand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 22px;
  margin-block-start: 18px;
}

@media (max-width: 520px) {
  .spn-grand-grid {
    grid-template-columns: 1fr;
  }
}

.spn-grand-card {
  grid-row: span 3;
  display: grid;
  grid-template-rows: auto auto 1fr;
  grid-template-rows: subgrid;
  gap: 0;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  overflow: clip;
  text-align: center;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.spn-grand-card:has(a.card-link) {
  position: relative;
}

.spn-grand-card a.card-link {
  color: inherit;
  text-decoration: none;
}

.spn-grand-card a.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.spn-grand-card a.card-link:focus-visible {
  outline: none;
}

.spn-grand-card:has(a.card-link:focus-visible) {
  outline: 3px solid var(--blue-primary);
  outline-offset: 3px;
}

.spn-grand-card:hover,
.spn-grand-card:has(a.card-link:hover) {
  transform: translateY(-4px);
  border-color: #f59e0b;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.spn-grand-card > img {
  display: block;
  inline-size: 100%;
  aspect-ratio: 16 / 7;
  max-block-size: 185px;
  object-fit: contain;
  padding-block: 20px;
  padding-inline: 28px;
  background: #ffffff;
  border-block-end: 1px solid #f1f5f9;
}

.spn-grand-card.spn-navy-stage > img {
  background: #253268;
  border-block-end-color: #1e293b;
}

.spn-grand-card > header {
  padding-inline: 22px;
  padding-block: 14px 6px;
}

.spn-grand-badge {
  display: inline-block;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b45309;
  background: #fef3c7;
  padding: 3px 10px;
  border-radius: 999px;
  margin-block-end: 8px;
}

.spn-grand-card > header h3 {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
}

.spn-grand-card > p {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.5;
  padding-inline: 22px;
  padding-block: 4px 20px;
  margin: 0;
  text-wrap: pretty;
}

/* Official Supporters Logo Grid (#supportersGrid) */
.spn-sup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 16px;
  margin-block-end: 20px;
}

.spn-sup-card {
  grid-row: span 3;
  display: grid;
  grid-template-rows: auto auto 1fr;
  grid-template-rows: subgrid;
  gap: 0;
  background: #f8fafc;
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  overflow: clip;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.spn-sup-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-sm);
}

.spn-sup-card > img {
  display: block;
  inline-size: 100%;
  aspect-ratio: 16 / 8;
  max-block-size: 104px;
  object-fit: contain;
  padding-block: 12px;
  padding-inline: 18px;
  background: #ffffff;
  border-block-end: 1px solid #e2e8f0;
}

.spn-sup-card > h4 {
  font-size: 0.90rem;
  font-weight: 800;
  color: var(--text-main);
  padding-inline: 14px;
  padding-block: 10px 3px;
  margin: 0;
  line-height: 1.3;
  text-wrap: balance;
}

.spn-sup-card > p {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  padding-inline: 14px;
  padding-block: 0 12px;
  margin: 0;
  line-height: 1.4;
  text-wrap: pretty;
}

/* Athlete Profile Modal Sponsor Ribbon */
.modal-sponsors-ribbon {
  margin-block-start: 20px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #fffbeb 100%);
  border: 1.5px solid #fde68a;
  border-radius: 14px;
}

.modal-sponsors-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b45309;
  text-align: center;
  margin-block-end: 10px;
}

.modal-sponsors-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
}

.modal-sponsor-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 10px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.modal-sponsor-chip:hover {
  border-color: #f59e0b;
  transform: translateY(-2px);
}

.modal-sponsor-chip img {
  display: block;
  inline-size: 100%;
  block-size: 46px;
  object-fit: contain;
}

.modal-sponsor-chip.spn-navy-stage {
  background: #253268;
  border-color: #1e293b;
}

/* Official Creator & Developer Footer Card (Innocentric & Ryzon DEV) */
.creator-credit-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
}

.creator-credit-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-end: 10px;
}

.creator-credit-logo {
  display: block;
  inline-size: 52px;
  block-size: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #ffffff;
  padding: 3px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.creator-credit-titles strong {
  display: block;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
}

.creator-credit-titles span {
  display: block;
  color: #38bdf8;
  font-size: 0.80rem;
  font-weight: 700;
  margin-block-start: 2px;
}

.creator-credit-meta {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin: 0;
  text-wrap: pretty;
}

.creator-credit-meta a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
}

.creator-credit-meta a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

/* ==========================================================================
   SIGNED-IN ATHLETE CUSTOM AVATAR UPLOAD & PICKER
   ========================================================================== */
.profile-avatar-wrap {
  position: relative;
}

.avatar-change-overlay-btn {
  position: absolute;
  inset-block-end: -8px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  background: #0f172a;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
  transition: background 0.18s ease, transform 0.18s ease;
}

.avatar-change-overlay-btn:hover {
  background: var(--blue-primary);
  transform: translateX(-50%) translateY(-1px);
}

.avatar-change-overlay-btn:focus-visible {
  outline: 3px solid var(--blue-primary);
  outline-offset: 2px;
}

.avatar-preview-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  margin-block-end: 18px;
}

.avatar-preview-stage img {
  display: block;
  inline-size: 112px;
  block-size: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue-primary);
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.2);
}

.avatar-form-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-block-end: 1.25rem;
}

.avatar-form-field label {
  font-weight: 800;
  font-size: 0.90rem;
  color: var(--text-main);
}

.avatar-form-field input[type="file"] {
  inline-size: 100%;
  font: inherit;
  font-size: max(1rem, 1em);
  min-block-size: 48px;
  padding: 8px 10px;
  border: 1.5px solid #64748b;
  border-radius: 10px;
  background: #ffffff;
  box-sizing: border-box;
  cursor: pointer;
}

.avatar-form-field input[type="file"]:focus-visible {
  outline: 3px solid var(--blue-primary);
  outline-offset: 2px;
}

.avatar-race-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
  margin-block-start: 8px;
}

.avatar-race-choice-btn {
  padding: 0;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  overflow: clip;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.avatar-race-choice-btn:hover {
  transform: translateY(-2px);
  border-color: var(--blue-primary);
}

.avatar-race-choice-btn:focus-visible {
  outline: 3px solid var(--blue-primary);
  outline-offset: 2px;
}

.avatar-race-choice-btn img {
  display: block;
  inline-size: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.thumb-set-avatar-btn {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-start: 8px;
  z-index: 3;
  background: rgba(15, 23, 42, 0.86);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.thumb-set-avatar-btn:hover {
  background: var(--blue-primary);
}

/* ==========================================================================
   ERROR REPORT / FEEDBACK FLOATING ACTION & ACCESSIBLE VALIDATION FORM
   ========================================================================== */
.fab-feedback {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: #fef3c7;
  border-color: rgba(251, 191, 36, 0.85);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.35);
  font-size: 0.8rem;
  padding: 8px 15px;
}

.fab-feedback:hover {
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.feedback-report-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.feedback-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 560px) {
  .feedback-form-row {
    grid-template-columns: 1fr;
  }
}

.feedback-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feedback-form-field label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
}

.feedback-form-field .required {
  color: #dc2626;
}

.fb-hint {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.feedback-form-field input,
.feedback-form-field select,
.feedback-form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  background: #ffffff;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.feedback-form-field textarea {
  resize: vertical;
  min-height: 96px;
}

.feedback-form-field input:focus,
.feedback-form-field select:focus,
.feedback-form-field textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.field-error-msg {
  display: none;
  color: #b91c1c;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 2px;
}

.feedback-report-form :is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.feedback-report-form :is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) + .field-error-msg {
  display: block;
}

.feedback-report-form :is(input, select, textarea):user-valid {
  border-color: #059669;
}

/* ==========================================================================
   BESPOKE 2026 VISUAL IDENTITY OVERHAUL ("KOUSIS 18" CUSTOM DESIGN SYSTEM)
   - Specular Liquid Glass Buttons & Hero Panels (Optical Rim Glints)
   - Swiss Geometric Editorial Race Posters & Hub Tiles (#0B2545 / #0EA5E9)
   - Illustrated Winding Asphalt Road & 5 Tactile Pins Infographic
   - Hard-Offset Neo-Brutalist Speech-Bubble Guide & Community Callouts
   ========================================================================== */

:root {
  --in-oklab: ;
  --in-oklch: ;
  --k18-navy: #0B2545;
  --k18-navy-deep: #061428;
  --k18-cyan: #0EA5E9;
  --k18-ice: #D7EEFC;
  --k18-cobalt: #2952AD;
  --k18-ink: #091322;
}

@supports (background: linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
    --in-oklch: in oklch;
  }
}

/* Natural interaction states: hover, press, and high-contrast keyboard focus */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 3px;
}

.hero-section :where(a, button):focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
}

:where(.btn, .fab-btn, .hub-tile, .road-pin-card) {
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 180ms ease-out,
              background-color 180ms ease-out,
              border-color 180ms ease-out,
              scale 140ms ease-out;
}

:where(.btn, .fab-btn):active {
  scale: 0.97;
}

/* ---- ARCHITECTURAL SITE-WIDE BUTTONS (LIGHT SURFACE) ---- */
.btn {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(180deg var(--in-oklab), #133b6e 0%, #0B2545 100%);
  color: #ffffff;
  border: 1.5px solid #0B2545;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 12px rgba(11, 37, 69, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(180deg var(--in-oklab), #0ea5e9 0%, #0284c7 100%);
  border-color: #0284c7;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 4px 4px 0 #0B2545;
}

.btn-gold {
  background: linear-gradient(180deg var(--in-oklab), #f59e0b 0%, #d97706 100%);
  color: #091322;
  font-weight: 800;
  border: 1.5px solid #b45309;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 4px 12px rgba(217, 119, 6, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(180deg var(--in-oklab), #fbbf24 0%, #f59e0b 100%);
  color: #091322;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 4px 4px 0 #091322;
}

.btn-outline {
  background: #ffffff;
  color: var(--k18-navy);
  border: 1.5px solid #0B2545;
  box-shadow: 0 2px 6px rgba(11, 37, 69, 0.06);
}

.btn-outline:hover {
  background: #f0f9ff;
  border-color: #0EA5E9;
  color: #0B2545;
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 #0B2545;
}

/* ---- SPECULAR LIQUID GLASS BUTTONS & CARDS (CRYSTALLINE RIM GLINTS) ---- */
.btn-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.05) 42%, rgba(255, 255, 255, 0.14) 100%);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  border: 1.5px solid rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.85),
    inset 0 -1.5px 1px rgba(255, 255, 255, 0.35),
    inset 1px 0 6px rgba(255, 255, 255, 0.18),
    0 12px 28px rgba(2, 6, 23, 0.42),
    0 0 16px rgba(125, 211, 252, 0.18);
  overflow: hidden;
}

/* Concentrated top & bottom specular optical glints like liquid glass */
.btn-glass::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(62% 24% at 62% 0%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(48% 22% at 30% 100%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
}

/* Diagonal frosted glass reflection streak */
.btn-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    112deg,
    transparent 15%,
    rgba(255, 255, 255, 0.22) 34%,
    transparent 48%,
    rgba(255, 255, 255, 0.12) 66%,
    transparent 82%
  );
  transform: translateX(-12%);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-glass:hover {
  color: #ffffff;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 1.5px 2px rgba(255, 255, 255, 0.96),
    inset 0 -1.5px 2px rgba(255, 255, 255, 0.55),
    0 16px 34px rgba(2, 6, 23, 0.55),
    0 0 26px rgba(125, 211, 252, 0.35);
}

.btn-glass:hover::after {
  transform: translateX(14%);
}

.btn-glass-gold {
  background: linear-gradient(135deg var(--in-oklab), rgba(245, 158, 11, 0.72) 0%, rgba(217, 119, 6, 0.52) 100%);
  border-color: rgba(254, 240, 138, 0.85);
  color: #ffffff;
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 251, 235, 0.95),
    inset 0 -1.5px 1px rgba(251, 191, 36, 0.55),
    0 12px 30px rgba(217, 119, 6, 0.4),
    0 0 22px rgba(251, 191, 36, 0.28);
}

.btn-glass-gold:hover {
  background: linear-gradient(135deg var(--in-oklab), rgba(251, 191, 36, 0.86) 0%, rgba(217, 119, 6, 0.72) 100%);
  border-color: #fef08a;
  color: #ffffff;
}

.btn-glass-cyan {
  background: linear-gradient(135deg var(--in-oklab), rgba(14, 165, 233, 0.58) 0%, rgba(3, 105, 161, 0.45) 100%);
  border-color: rgba(186, 230, 253, 0.82);
  color: #ffffff;
}

.btn-glass-cyan:hover {
  background: linear-gradient(135deg var(--in-oklab), rgba(56, 189, 248, 0.74) 0%, rgba(2, 132, 199, 0.62) 100%);
  border-color: #e0f2fe;
}

/* ---- DEEP EDITORIAL LIQUID-GLASS HERO STAGE ---- */
.hero-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(14, 165, 233, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 82% 76%, rgba(245, 158, 11, 0.2) 0%, transparent 42%),
    linear-gradient(148deg var(--in-oklab), #051121 0%, #0B2545 52%, #0F3561 100%);
  border-bottom: 4px solid var(--k18-cyan);
  color: #ffffff;
  isolation: isolate;
  padding: 58px 24px 66px;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(5, 17, 33, 0.72) 0%, rgba(11, 37, 69, 0.62) 55%, rgba(5, 17, 33, 0.86) 100%),
    url('/static/images/trixonida.png') center/cover no-repeat;
  opacity: 0.92;
}

/* Bespoke Swiss Geometric Brand Rings inside Hero (inspired by geometric editorial posters) */
.hero-geo-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-geo-art svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 22px rgba(2, 6, 23, 0.3);
  color: #e0f2fe;
}

.hero-title {
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(2, 6, 23, 0.55);
  letter-spacing: -0.025em;
}

.highlight-gold {
  background: linear-gradient(120deg var(--in-oklab), #fef08a 0%, #fbbf24 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: #cbd5e1;
  font-weight: 450;
}

.hero-section .feature-pill {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #f1f5f9;
}

.hero-section .feature-pill svg {
  color: #38bdf8;
}

/* Liquid Glass Countdown Plate */
.countdown-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  border-radius: 22px;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.8),
    inset 0 -1px 1px rgba(255, 255, 255, 0.26),
    0 20px 44px rgba(2, 6, 23, 0.45);
  padding: 20px 34px;
}

.countdown-label {
  color: #bae6fd;
}

.time-number {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(14, 165, 233, 0.35);
}

.time-unit {
  color: #93c5fd;
}

.time-separator {
  color: #fbbf24;
}

/* Liquid Glass Stats Bar */
.quick-stats-bar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.72),
    inset 0 -1px 1px rgba(255, 255, 255, 0.22),
    0 14px 32px rgba(2, 6, 23, 0.35);
}

.quick-stats-bar .stat-value {
  color: #ffffff;
}

.quick-stats-bar .stat-value.gold-text {
  color: #fde047;
}

.quick-stats-bar .stat-desc {
  color: #cbd5e1;
}

.quick-stats-bar .stat-divider {
  background: rgba(255, 255, 255, 0.22);
}

/* ---- SWISS GEOMETRIC 12-TILE HUB NAVIGATION GRID ---- */
.hub-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(225px, 100%), 1fr));
  gap: 12px;
}

.hub-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  text-decoration: none;
  overflow: hidden;
}

.hub-tile::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(225deg, #0EA5E9 50%, transparent 50%);
  opacity: 0.14;
  transition: opacity 180ms ease;
}

.hub-tile:hover {
  border-color: var(--k18-navy);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--k18-navy);
}

.hub-tile:hover::after {
  opacity: 0.85;
}

.hub-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--k18-navy);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(14, 165, 233, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: background-color 180ms ease, color 180ms ease;
}

.hub-tile:hover .hub-tile-icon {
  background: var(--k18-cyan);
  color: #061428;
}

.hub-tile-text {
  min-width: 0;
}

.hub-tile-title {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--k18-navy);
  display: block;
  line-height: 1.25;
}

.hub-tile-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: block;
  margin-top: 1px;
}

/* ---- SWISS GEOMETRIC POSTER RACE CARDS (#races) ---- */
.race-card {
  border: 2px solid var(--k18-navy);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--k18-navy);
  background: #ffffff;
}

.race-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 9px 9px 0 var(--k18-cyan);
  border-color: var(--k18-navy);
}

.race-card-header {
  position: relative;
  padding: 24px 24px 22px;
  background: #ffffff;
  border-bottom: 2px solid var(--k18-navy);
  overflow: hidden;
  min-height: 158px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.race-poster-geo {
  position: absolute;
  top: 0;
  right: 0;
  width: 146px;
  height: 112px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}

.race-card-header .race-tag,
.race-card-header .race-distance-badge {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 130px);
}

.race-card-header .race-title {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.88);
  padding: 2px 0;
}

.race-tag {
  position: relative;
  top: auto;
  right: auto;
  align-self: flex-start;
  display: inline-block;
  margin-bottom: 10px;
  background: var(--k18-navy);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 4px;
}

.race-card.race-5k .race-tag {
  background: var(--k18-cyan);
  color: #061428;
}

.race-card.race-1k .race-tag {
  background: #0d9488;
  color: #ffffff;
}

.race-distance-badge {
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--k18-navy);
}

.race-specs-list {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
}

/* ---- ILLUSTRATED WINDING ASPHALT ROAD & 5 TACTILE PINS (#course) ---- */
.race-road-stage {
  background: linear-gradient(180deg var(--in-oklab), #ffffff 0%, #f1f5f9 100%);
  border: 2px solid var(--k18-navy);
  border-radius: 20px;
  padding: 28px 20px 24px;
  margin-bottom: 28px;
  box-shadow: 6px 6px 0 var(--k18-navy);
  overflow: hidden;
}

.race-road-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 0 8px;
}

.race-road-kicker {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--k18-cyan);
  background: var(--k18-navy);
  padding: 4px 12px;
  border-radius: 4px;
}

.race-road-caption {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.race-road-canvas {
  position: relative;
  width: 100%;
  padding-bottom: 10px;
}

.race-road-pins {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
  padding: 0 12px;
}

.road-pin-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Undulating vertical rhythm matching the road curves (pins 2 & 4 land on upper road plateaus) */
.road-pin-col:nth-child(even) {
  padding-bottom: 58px;
}

.road-pin-col:nth-child(odd) {
  padding-bottom: 0;
}

.road-pin-card {
  position: relative;
  width: 100%;
  max-width: 188px;
  min-height: 148px;
  padding: 15px 12px 14px;
  border-radius: 22px;
  color: #ffffff;
  background: var(--pin-color, #D63E31);
  box-shadow:
    inset 0 0 0 5px var(--pin-rim, rgba(255, 255, 255, 0.2)),
    inset 0 2px 3px rgba(255, 255, 255, 0.32),
    0 12px 22px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-shadow: 0 1px 2px rgba(9, 19, 34, 0.25);
}

.road-pin-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 0 6px var(--pin-rim, rgba(255, 255, 255, 0.25)),
    0 18px 28px rgba(15, 23, 42, 0.26);
}

/* Pin pointer triangle */
.road-pin-card::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 12px solid var(--pin-color, #E95344);
}

.road-pin-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.road-pin-km {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(9, 19, 34, 0.22);
  padding: 2px 9px;
  border-radius: 999px;
}

.road-pin-title {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
}

.road-pin-desc {
  font-size: 0.73rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.road-pin-stem {
  width: 3px;
  height: 36px;
  background: var(--pin-color, #D63E31);
  margin-top: 8px;
}

.road-pin-col:nth-child(even) .road-pin-stem {
  height: 44px;
}

.road-pin-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #ffffff;
  border: 3.5px solid var(--pin-color, #D63E31);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
}

.road-map-svg-wrap {
  margin-top: -92px;
  position: relative;
  z-index: 1;
  width: 100%;
  pointer-events: none;
}

.road-map-svg-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.08));
}

@media (max-width: 880px) {
  .race-road-pins {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding: 6px 8px 14px;
  }
  .road-pin-col {
    flex: 0 0 210px;
    scroll-snap-align: center;
    padding-bottom: 0 !important;
  }
  .road-pin-stem {
    height: 22px !important;
  }
  .road-map-svg-wrap {
    margin-top: -16px;
  }
}

/* ---- HARD-OFFSET EDITORIAL SPEECH-BUBBLE CARDS (#guide & VOICES) ---- */
#guide {
  background: linear-gradient(180deg var(--in-oklab), #e8f4fd 0%, #f4f9fe 100%);
  border-top: 2px solid var(--k18-navy);
  border-bottom: 2px solid var(--k18-navy);
  max-width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

#guide > .section-header,
#guide > .guide-grid,
#guide > .editorial-bubbles-band {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.guide-grid {
  gap: 24px;
}

.guide-box {
  position: relative;
  background: #ffffff;
  border: 2px solid var(--k18-navy);
  border-radius: 18px;
  padding: 24px 24px 26px;
  box-shadow: 6px 6px 0 var(--k18-ink);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}

.guide-box:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--k18-cyan);
  border-color: var(--k18-navy);
}

/* Alternating Cobalt & Navy Speech-Bubble Accent Cards (high contrast WCAG AA+) */
.guide-box:nth-child(2),
.guide-box:nth-child(5) {
  background: var(--k18-cobalt);
  color: #ffffff;
  border-color: var(--k18-ink);
  box-shadow: 7px 7px 0 var(--k18-ink);
}

.guide-box:nth-child(2) h4,
.guide-box:nth-child(5) h4 {
  color: #ffffff;
}

.guide-box:nth-child(2) p,
.guide-box:nth-child(5) p {
  color: #e2ecff;
}

.guide-box:nth-child(2) strong,
.guide-box:nth-child(5) strong {
  color: #ffffff;
}

.guide-box:nth-child(2) a,
.guide-box:nth-child(5) a {
  color: #fde047;
  text-decoration: underline;
}

.guide-box:nth-child(2) .guide-icon-wrap,
.guide-box:nth-child(5) .guide-icon-wrap {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Crisp speech-bubble pointer tail */
.guide-box::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 30px;
  width: 18px;
  height: 12px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 35% 100%);
  filter: drop-shadow(3px 3px 0 var(--k18-ink));
}

.guide-icon-wrap {
  background: #e0f2fe;
  color: var(--k18-navy);
  border: 1.5px solid var(--k18-navy);
  border-radius: 12px;
}

/* Dual Overlapping Speech-Bubble Editorial Band (directly inspired by Image 5) */
.editorial-bubbles-band {
  margin-top: 44px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.editorial-bubble {
  position: relative;
  border-radius: 22px;
  padding: 26px 28px;
  color: #ffffff;
  border: 2px solid var(--k18-ink);
  box-shadow: 8px 8px 0 var(--k18-ink);
}

.editorial-bubble.cobalt {
  background: #3B66C2;
}

.editorial-bubble.navy {
  background: #143D82;
  margin-top: 22px;
}

.editorial-bubble::after {
  content: "";
  position: absolute;
  bottom: -15px;
  width: 24px;
  height: 16px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 42% 100%);
  filter: drop-shadow(4px 3px 0 var(--k18-ink));
}

.editorial-bubble.cobalt::after {
  left: 42px;
}

.editorial-bubble.navy::after {
  right: 48px;
  clip-path: polygon(0 0, 100% 0, 62% 100%);
}

.editorial-quote-mark {
  font-family: Georgia, serif;
  font-size: 2.6rem;
  line-height: 0.7;
  color: rgba(255, 255, 255, 0.35);
  display: block;
  margin-bottom: 10px;
}

.editorial-bubble h4 {
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.editorial-bubble p {
  color: #e2ecff;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 16px;
}

@media (max-width: 760px) {
  .editorial-bubbles-band {
    grid-template-columns: 1fr;
  }
  .editorial-bubble.navy {
    margin-top: 8px;
  }
}

/* ---- LIQUID GLASS FLOATING ACTION BUTTONS (BOTTOM RIGHT) ---- */
.fab-btn {
  border-width: 1.5px;
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
}

.fab-login {
  background: linear-gradient(135deg var(--in-oklab), rgba(11, 37, 69, 0.88) 0%, rgba(2, 132, 199, 0.86) 100%);
  border-color: rgba(186, 230, 253, 0.78);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.72), 0 10px 24px rgba(11, 37, 69, 0.42);
}

.fab-feedback {
  background: linear-gradient(135deg var(--in-oklab), rgba(9, 19, 34, 0.84) 0%, rgba(30, 41, 59, 0.82) 100%);
  border-color: rgba(254, 240, 138, 0.75);
  color: #fef9c3;
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.65), 0 8px 20px rgba(9, 19, 34, 0.36);
}

/* ==========================================================================
   KOUSIS 18 MOBILE & SMALL-VIEWPORT FRAMING (ZERO HORIZONTAL OVERFLOW >=320px)
   ========================================================================== */
.hero-emblem-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.hero-emblem-img {
  height: 108px;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.45);
  background: #ffffff;
}

.course-grid-container {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 26px;
  align-items: start;
}

.course-grid-container > * {
  min-width: 0;
}

.komoot-embed-shell {
  position: relative;
  width: 100%;
  height: 700px;
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8f0;
  border: 1px solid var(--border-color);
}

.bio-card-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 36px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 36px;
}

.bio-card-grid > * {
  min-width: 0;
}

.bio-highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

/* Ensure Hero inner plates never exceed their container at any width */
.countdown-card {
  width: min(100%, 560px);
}

.quick-stats-bar {
  max-width: 100%;
  flex-wrap: wrap;
}

.floating-auth-fab {
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
}

/* Component-driven Hero adaptation via Container Query */
@container hero (inline-size <= 760px) {
  .hero-content {
    gap: 10px;
  }
  .hero-emblem-wrap {
    margin-bottom: 0;
  }
  .hero-emblem-img {
    height: 64px;
    border-radius: 12px;
  }
  .hero-badge {
    font-size: 0.66rem;
    padding: 5px 11px;
    border-radius: 12px;
    line-height: 1.3;
    letter-spacing: 0.03em;
    max-width: 100%;
    text-align: center;
  }
  .hero-title {
    font-size: clamp(1.58rem, 0.95rem + 3.2vw, 2.45rem);
    line-height: 1.1;
    max-width: 100%;
  }
  .hero-subtitle {
    font-size: 0.84rem;
    line-height: 1.48;
  }
  .hero-section .hero-features-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    margin: 2px 0;
    padding: 2px 2px 4px;
    width: 100%;
    scroll-snap-type: x proximity;
  }
  .hero-section .hero-features-bar::-webkit-scrollbar {
    display: none;
  }
  .hero-section .feature-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
    font-size: 0.70rem;
    padding: 5px 10px;
    gap: 5px;
    white-space: nowrap;
  }
  .countdown-card {
    width: 100%;
    max-width: 480px;
    padding: 12px 10px;
    border-radius: 16px;
    margin: 0;
  }
  .countdown-label {
    font-size: 0.63rem;
    letter-spacing: 0.05em;
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .countdown-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 3px;
    width: 100%;
    align-items: center;
  }
  .time-block {
    min-width: 0;
  }
  .time-number {
    font-size: clamp(1.3rem, 0.7rem + 3.2vw, 1.85rem);
  }
  .time-separator {
    font-size: 1.15rem;
    margin-bottom: 13px;
  }
  .time-unit {
    font-size: 0.54rem;
    letter-spacing: 0.01em;
    margin-top: 3px;
  }
  .quick-stats-bar {
    width: 100%;
    max-width: 520px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 8px;
    border-radius: 16px;
    padding: 12px 10px;
    margin-top: 2px;
  }
  .quick-stats-bar .stat-divider {
    display: none;
  }
  .quick-stats-bar .stat-item {
    min-width: 0;
  }
  .quick-stats-bar .stat-item:last-child {
    grid-column: 1 / -1;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
  .quick-stats-bar .stat-value {
    font-size: 1.15rem;
  }
  .quick-stats-bar .stat-desc {
    font-size: 0.69rem;
    line-height: 1.3;
    text-wrap: balance;
  }
}

@container hero (inline-size <= 540px) {
  .hero-actions {
    width: 100%;
    max-width: 480px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 2px;
  }
  .hero-actions .btn-glass {
    width: 100%;
    padding: 12px 12px;
    font-size: 0.85rem;
    gap: 7px;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }
  .hero-actions .btn-glass-gold,
  .hero-actions .btn-glass-cyan {
    grid-column: 1 / -1;
    font-size: 0.92rem;
    padding: 13px 16px;
  }
}

@container hero (inline-size <= 310px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }
}

/* Tablet & Course / Bio Collapse */
@media (max-width: 960px) {
  .course-grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .komoot-embed-shell {
    height: 520px;
  }
}

@media (max-width: 820px) {
  .bio-card-grid {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    gap: 22px;
  }
}

/* Mobile Tightening & Zero-Overflow Polish (<= 768px) */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 18px 14px 28px;
  }
  section {
    padding: 46px 14px;
  }
  .section-header {
    margin-bottom: 26px;
  }
  .section-title {
    font-size: clamp(1.45rem, 1rem + 2.4vw, 2rem) !important;
  }
  .komoot-embed-shell {
    height: 450px;
  }
}

/* Narrow Phone Polish (<= 640px) */
@media (max-width: 640px) {
  .nav-container {
    padding: 8px 12px;
    gap: 8px;
  }
  .brand-link {
    gap: 6px;
    min-width: 0;
    flex-shrink: 1;
  }
  .nav-logo {
    height: 31px;
  }
  .brand-main {
    font-size: clamp(0.80rem, 0.55rem + 1.4vw, 0.95rem);
    line-height: 1.1;
  }
  .signin-en-suffix {
    display: none;
  }
  #openLoginModalBtn,
  #navUserAccountBtn {
    padding: 6px 11px !important;
    font-size: 0.78rem !important;
    gap: 5px !important;
  }
  .btn {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    line-height: 1.25;
  }
  .nav-actions .btn {
    white-space: nowrap;
  }

  /* Compact Hub, Organizers & Top Sponsors */
  #kousis-hub {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }
  #kousis-hub > div,
  #news-section > div,
  #ranking .section-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  #kousis-hub .spn-pill-row {
    padding: 10px !important;
    gap: 7px;
    justify-content: center !important;
  }
  .spn-top-showcase {
    padding: 12px 10px;
    border-radius: 14px;
  }
  .spn-top-eyebrow {
    font-size: 0.68rem;
    line-height: 1.35;
  }
  .spn-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .spn-top-plate {
    padding: 8px 6px;
    gap: 5px;
    border-radius: 10px;
  }
  .spn-top-plate img {
    block-size: 50px;
    padding: 3px 4px;
  }
  .spn-top-plate-name {
    font-size: 0.67rem;
  }
  .hub-tiles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .hub-tile {
    padding: 10px 9px;
    gap: 8px;
    border-radius: 10px;
  }
  .hub-tile-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .hub-tile-icon svg {
    width: 15px;
    height: 15px;
  }
  .hub-tile-title {
    font-size: 0.78rem;
    line-height: 1.2;
  }
  .hub-tile-sub {
    font-size: 0.66rem;
    line-height: 1.25;
  }

  /* Race Cards & Road Stage Mobile Sizing */
  .race-card {
    box-shadow: 4px 4px 0 var(--k18-navy);
  }
  .race-card:hover {
    box-shadow: 5px 5px 0 var(--k18-cyan);
  }
  .race-card-header {
    padding: 18px 16px 16px;
    min-height: 132px;
  }
  .race-poster-geo {
    width: 104px;
    height: 80px;
    opacity: 0.85;
  }
  .race-card-header .race-tag,
  .race-card-header .race-distance-badge {
    max-width: calc(100% - 96px);
  }
  .race-distance-badge {
    font-size: 1.65rem;
  }
  .race-card-body {
    padding: 16px;
  }
  .race-specs-list {
    gap: 8px;
    padding: 10px;
  }
  .race-road-stage {
    padding: 18px 12px 16px;
    border-radius: 16px;
    box-shadow: 4px 4px 0 var(--k18-navy);
  }
  .road-pin-col {
    flex: 0 0 190px;
  }
  #btnCourse21k,
  #btnCourse5k,
  #btnCourse1k {
    width: 100%;
    padding: 11px 14px !important;
    font-size: 0.86rem;
  }

  /* Guide Speech Bubbles, Register, Hotels, Bio, Ranking */
  #guide {
    padding-left: 14px;
    padding-right: 14px;
  }
  .guide-box {
    padding: 18px 16px 20px;
    box-shadow: 4px 4px 0 var(--k18-ink);
  }
  .guide-box:nth-child(2),
  .guide-box:nth-child(5) {
    box-shadow: 5px 5px 0 var(--k18-ink);
  }
  .editorial-bubble {
    padding: 20px 16px;
    box-shadow: 5px 5px 0 var(--k18-ink);
  }
  .reg-gateway-card {
    padding: 26px 16px !important;
  }
  .reg-gateway-card h3 {
    font-size: 1.35rem !important;
  }
  .reg-gateway-cta {
    font-size: 0.94rem !important;
    padding: 14px 16px !important;
    width: 100%;
  }
  .hotels-urgent-alert {
    flex-direction: column;
    gap: 10px !important;
    padding: 16px !important;
  }
  .bio-highlights-grid {
    grid-template-columns: 1fr;
  }
  .search-controls-bar {
    padding: 12px;
    gap: 10px;
  }
  .filter-pill {
    padding: 6px 11px;
    font-size: 0.76rem;
  }
  .podium-item {
    gap: 10px;
    padding: 10px;
  }

  /* Compact Safe-Area FABs & Footer Clearance (hide redundant mobile login FAB — already sticky in header) */
  .floating-auth-fab {
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    gap: 6px;
  }
  #fabLoginBtn {
    display: none !important;
  }
  .fab-btn {
    padding: 7px 12px;
    font-size: 0.74rem;
    gap: 5px;
    min-block-size: 38px;
  }
  .site-footer {
    padding: 40px 14px calc(86px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 360px) {
  .nav-logo {
    height: 27px;
  }
  .hub-tiles-grid {
    grid-template-columns: 1fr;
  }
  .spn-top-grid {
    grid-template-columns: 1fr;
  }
  .race-specs-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   AUTO-REFRESHING LIVE RACE NEWS TICKER BAR & TIMELINE DRAWER
   ========================================================================== */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.live-feed-bar {
  background: linear-gradient(90deg, #051121 0%, #0B2545 55%, #071932 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.28);
  border-bottom: 2px solid rgba(14, 165, 233, 0.55);
  color: #f8fafc;
  width: 100%;
}

.live-feed-bar[hidden] {
  display: none !important;
}

.live-feed-bar.is-live {
  background: linear-gradient(90deg, #1b0912 0%, #0B2545 48%, #071932 100%);
  border-bottom-color: #ef4444;
}

.live-feed-bar.flash-new {
  animation: lfFlashHighlight 1.2s ease-out;
}

@keyframes lfFlashHighlight {
  0% { box-shadow: inset 0 0 0 2px #fde047, 0 0 22px rgba(250, 204, 21, 0.45); }
  100% { box-shadow: none; }
}

.live-feed-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.live-feed-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(14, 165, 233, 0.22);
  border: 1px solid rgba(125, 211, 252, 0.65);
  color: #e0f2fe;
  flex-shrink: 0;
}

.live-feed-bar.is-live .live-feed-mode-pill {
  background: #dc2626;
  border-color: #fca5a5;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.55);
}

.live-feed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  animation: pulseDot 1.6s infinite;
}

.live-feed-bar.is-live .live-feed-dot {
  background: #ffffff;
}

.live-feed-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.live-feed-time {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: #fde047;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(253, 224, 71, 0.35);
  padding: 1px 7px;
  border-radius: 5px;
  flex-shrink: 0;
}

.live-feed-time[hidden] {
  display: none !important;
}

.live-feed-headline {
  color: #f8fafc;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  min-width: 0;
  text-decoration: none;
  transition: opacity 170ms ease, transform 170ms ease;
}

.live-feed-headline:hover {
  color: #fde047;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.live-feed-headline.is-swapping {
  opacity: 0;
  transform: translateY(-5px);
}

.live-feed-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.live-feed-icon-btn,
.live-feed-expand-btn {
  min-block-size: 28px;
  min-inline-size: 28px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f1f5f9;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 3px 9px;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.live-feed-icon-btn {
  padding: 4px 7px;
}

.live-feed-icon-btn:hover,
.live-feed-expand-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
}

.live-feed-icon-btn.spinning svg {
  animation: lfSpin 0.55s linear infinite;
}

@keyframes lfSpin {
  to { transform: rotate(360deg); }
}

.live-feed-chevron {
  transition: transform 180ms ease;
}

.live-feed-bar.drawer-open .live-feed-chevron {
  transform: rotate(180deg);
}

.live-feed-drawer {
  background: #07172d;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  max-height: 290px;
  overflow-y: auto;
  padding: 10px 16px 14px;
}

.live-feed-drawer[hidden] {
  display: none !important;
}

.live-feed-drawer-head {
  max-width: 1400px;
  margin: 0 auto 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #93c5fd;
}

.live-feed-updated-at {
  color: #94a3b8;
  font-weight: 600;
}

.live-feed-list {
  list-style: none;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lf-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.82rem;
  line-height: 1.4;
}

.lf-item-tag {
  font-family: var(--font-heading);
  font-size: 0.67rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(14, 165, 233, 0.25);
  color: #bae6fd;
  flex-shrink: 0;
}

.lf-item-tag.lf-tag-live,
.lf-item-tag.lf-tag-split {
  background: rgba(220, 38, 38, 0.35);
  border: 1px solid rgba(252, 165, 165, 0.45);
  color: #fecaca;
}

.lf-item-tag.lf-tag-finish {
  background: rgba(245, 158, 11, 0.32);
  border: 1px solid rgba(253, 224, 71, 0.5);
  color: #fef08a;
}

.lf-item-time {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: #fde047;
}

.lf-item-msg,
.lf-item-link {
  color: #f8fafc;
  font-weight: 500;
  min-width: 0;
}

.lf-item-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lf-item-link:hover {
  color: #fde047;
}

@media (max-width: 640px) {
  .live-feed-inner {
    padding: 5px 10px;
    gap: 6px;
  }
  .live-feed-mode-pill {
    padding: 2px 7px;
    font-size: 0.64rem;
    gap: 4px;
  }
  .live-feed-time {
    font-size: 0.66rem;
    padding: 1px 5px;
  }
  .live-feed-headline {
    font-size: 0.76rem;
  }
  .live-feed-expand-btn {
    font-size: 0.68rem;
    padding: 3px 7px;
  }
  .live-feed-drawer {
    padding: 8px 10px 12px;
    max-height: 250px;
  }
  .lf-item {
    font-size: 0.78rem;
    padding: 6px 8px;
  }
}

/* ==========================================================================
   RACE-DAY LIVE YOUTUBE BROADCAST & FTT.GR LIVE RESULTS ARENA
   ========================================================================== */
.btn-glass-live {
  background: linear-gradient(135deg var(--in-oklab), rgba(220, 38, 38, 0.86) 0%, rgba(153, 27, 27, 0.72) 100%);
  border-color: rgba(254, 202, 202, 0.9);
  color: #ffffff;
  grid-column: 1 / -1;
  box-shadow:
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.9),
    0 12px 30px rgba(220, 38, 38, 0.42);
}

.btn-glass-live[hidden] {
  display: none !important;
}

.live-broadcast-section {
  max-width: 100%;
  background: linear-gradient(180deg, #061428 0%, #0B2545 100%);
  border-bottom: 3px solid #f59e0b;
  padding: 36px 20px 42px;
  color: #f8fafc;
}

.live-broadcast-section[hidden] {
  display: none !important;
}

.live-broadcast-wrap {
  max-width: 1320px;
  margin: 0 auto;
}

.live-broadcast-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}

.live-broadcast-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #dc2626;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.live-broadcast-title {
  color: #ffffff;
  font-size: clamp(1.35rem, 1rem + 1.8vw, 2.05rem);
  font-weight: 900;
  margin: 0;
}

.live-ftt-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fde047;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(253, 224, 71, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
}

.live-arena-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 20px;
  align-items: start;
}

.live-arena-grid.single-col {
  grid-template-columns: 1fr;
}

.live-arena-grid > * {
  min-width: 0;
}

.live-yt-card,
.live-ftt-card {
  background: rgba(9, 25, 48, 0.88);
  border: 1.5px solid rgba(56, 189, 248, 0.38);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45);
}

.live-yt-card[hidden],
.live-ftt-card[hidden] {
  display: none !important;
}

.live-panel-bar {
  padding: 11px 15px;
  background: rgba(5, 17, 33, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.live-panel-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #bae6fd;
}

.live-panel-ext {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fde047;
  text-decoration: none;
}

.live-panel-ext:hover {
  color: #ffffff;
  text-decoration: underline;
}

.live-mini-btn {
  min-block-size: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 8px;
  cursor: pointer;
}

.live-mini-btn:hover,
.live-mini-btn[aria-pressed="true"] {
  background: #0284c7;
  border-color: #7dd3fc;
}

.yt-stage-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  overflow: hidden;
}

.yt-stage-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-facade-btn {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #051121;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.yt-facade-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.yt-facade-btn:hover .yt-facade-poster {
  transform: scale(1.03);
  opacity: 0.78;
}

.yt-facade-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(6, 20, 40, 0.32) 0%, rgba(2, 6, 23, 0.78) 100%);
}

.yt-play-pill {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border: 2px solid rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(220, 38, 38, 0.55);
}

/* FTT.GR Native Live Leaderboard */
.ftt-controls-bar {
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.55);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ftt-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ftt-race-tab {
  min-block-size: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.ftt-race-tab.active {
  background: #f59e0b;
  border-color: #fde047;
  color: #061428;
}

.ftt-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ftt-gender-group {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.ftt-chip {
  min-block-size: 28px;
  padding: 3px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
}

.ftt-chip.active {
  background: #0284c7;
  border-color: #7dd3fc;
  color: #ffffff;
}

.ftt-search-input {
  flex: 1;
  min-width: min(175px, 100%);
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.65);
  color: #ffffff;
  font-size: 0.80rem;
  outline: none;
}

.ftt-search-input:focus {
  border-color: #38bdf8;
}

.ftt-table-scroll {
  max-height: 410px;
  overflow: auto;
}

.ftt-live-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.80rem;
}

.ftt-live-table th {
  position: sticky;
  top: 0;
  background: #061428;
  color: #93c5fd;
  font-family: var(--font-heading);
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  z-index: 1;
}

.ftt-live-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #f1f5f9;
  vertical-align: middle;
}

.ftt-live-table tr:hover td {
  background: rgba(14, 165, 233, 0.12);
}

.ftt-rank-pill {
  font-family: var(--font-heading);
  font-weight: 900;
  color: #fde047;
}

.ftt-bib-pill {
  font-family: monospace;
  font-size: 0.74rem;
  color: #bae6fd;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 5px;
}

.ftt-time-strong {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.90rem;
  color: #38bdf8;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .live-arena-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .live-broadcast-section {
    padding: 24px 12px 30px;
  }
  .yt-play-pill {
    padding: 10px 16px;
    font-size: 0.84rem;
  }
  .ftt-table-scroll {
    max-height: 350px;
  }
  .ftt-live-table th,
  .ftt-live-table td {
    padding: 7px 7px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   START LIST 2026 (TOP 10 & 1,493 CLEANED) + UNIFIED FTT.GR LIVE SWITCHER
   ========================================================================== */
.rc-switcher-shell {
  margin-bottom: 18px;
}

/* Single-row accessible tablist switcher (Start List <-> Live ftt.gr) */
.rc-switcher-tablist {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 10px;
  background: var(--k18-navy);
  padding: 8px;
  border-radius: 16px;
  border: 2px solid var(--k18-navy);
  box-shadow: 4px 4px 0 var(--k18-cyan);
  scroll-snap-type: inline proximity;
}

.rc-switcher-tablist::-webkit-scrollbar {
  display: none;
}

.rc-switch-tab {
  position: relative;
  flex: 1 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-block-size: var(--target-size, 44px);
  padding: 11px 18px;
  border-radius: 11px;
  border: 1.5px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.rc-switch-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* Style selected tab strictly from aria-selected with non-color underline shape (WCAG 1.4.1) & zero dimension shift */
.rc-switch-tab[aria-selected="true"] {
  background: #0284c7;
  border-color: #7dd3fc;
  color: #ffffff;
}

.rc-switch-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 14px 3px;
  border-block-end: 3px solid #fde047;
  border-radius: 3px;
}

.rc-switch-badge {
  font-size: 0.73rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  color: #e2e8f0;
}

.rc-switch-badge.rc-badge-live {
  background: #dc2626;
  color: #ffffff;
  letter-spacing: 0.05em;
}

/* Tabpanels hold zero padding/border themselves so hidden="until-found" leaves zero empty strip */
.rc-tabpanel {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.rc-panel-inner {
  padding-top: 4px;
}

.startlist-controls-card {
  background: #f8fafc;
  border: 2px solid var(--k18-navy);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.startlist-tier-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #cbd5e1;
}

.startlist-tier-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--k18-navy);
  min-width: 148px;
}

.startlist-race-tabs,
.startlist-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
}

.sl-race-btn,
.sl-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-block-size: var(--target-size, 42px);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.87rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.sl-race-btn.active {
  background: var(--k18-navy);
  border-color: var(--k18-navy);
  color: #ffffff;
  box-shadow: 3px 3px 0 var(--k18-cyan);
}

.sl-mode-btn.active {
  background: #0284c7;
  border-color: #0369a1;
  color: #ffffff;
}

.sl-mode-btn.sl-mode-top10.active {
  background: linear-gradient(135deg, #0B2545 0%, #0284c7 100%);
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 3px 3px 0 #f59e0b;
}

.sl-mode-btn.sl-mode-seeded.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #92400e;
  color: #ffffff;
  box-shadow: 3px 3px 0 var(--k18-navy);
}

.sl-count-badge,
.sl-sub-badge {
  font-size: 0.74rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.09);
}

.sl-race-btn.active .sl-count-badge,
.sl-mode-btn.active .sl-sub-badge {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.startlist-subfilters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sl-top10-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, #061428 0%, #0B2545 100%);
  border-left: 5px solid #f59e0b;
  color: #f8fafc;
  font-size: 0.84rem;
}

.sl-top10-banner strong {
  color: #fde047;
}

.seed-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--k18-navy);
}

.seed-rank-badge.top-1 { background: #fef3c7; color: #92400e; border: 1px solid #f59e0b; }
.seed-rank-badge.top-2 { background: #e2e8f0; color: #1e293b; border: 1px solid #94a3b8; }
.seed-rank-badge.top-3 { background: #ffedd5; color: #9a3412; border: 1px solid #fb923c; }
.seed-rank-badge.elite-block { background: #dbeafe; color: #1e40af; }

.pb-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 900;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 3px 10px;
  border-radius: 8px;
}

.pb-source-tag {
  display: inline-block;
  font-size: 0.71rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
}

.pb-source-tag.src-historical {
  background: #dcfce7;
  color: #166534;
}

.pb-source-tag.src-admin {
  background: #fef3c7;
  color: #92400e;
}

/* Container-aware responsive table wrapper (modern-web-guidance: responsive-table) */
.rc-table-region {
  container: rctable / inline-size;
  overflow: auto;
  max-inline-size: 100%;
  background: #ffffff;
  border-radius: 16px;
  border: 2px solid var(--k18-navy);
  box-shadow: 5px 5px 0 var(--k18-navy);
}

.rc-adaptive-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.rc-adaptive-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

@container rctable (inline-size < 620px) {
  .rc-adaptive-table,
  .rc-adaptive-table tbody,
  .rc-adaptive-table tr,
  .rc-adaptive-table th,
  .rc-adaptive-table td {
    display: block;
  }

  .rc-adaptive-table thead {
    display: none;
  }

  .rc-adaptive-table tbody tr {
    padding: 12px 14px;
    border-bottom: 2px solid #e2e8f0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 10px;
    align-items: center;
  }

  .rc-adaptive-table tbody td {
    padding: 2px 0;
    border: 0;
  }

  .rc-adaptive-table tbody td[data-cell="name"] {
    grid-column: 1 / -1;
    font-size: 0.96rem;
  }

  .rc-adaptive-table tbody td[data-cell="club"],
  .rc-adaptive-table tbody td[data-cell="meta"] {
    grid-column: 1 / -1;
  }

  .rc-adaptive-table tbody td[data-label]::before {
    content: attr(data-label) ": ";
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
  }
}

/* Dedicated FTT.GR Live Panel inside Race Center (#startlist) */
.rc-ftt-card {
  background: #061428;
  color: #f8fafc;
  border: 2px solid var(--k18-navy);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--k18-cyan);
  overflow: hidden;
}

.rc-ftt-toolbar {
  padding: 14px 18px;
  background: linear-gradient(90deg, #0B2545 0%, #071932 100%);
  border-bottom: 1px solid rgba(125, 211, 252, 0.25);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

@media (max-width: 640px) {
  #startlist {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .startlist-controls-card {
    padding: 14px 12px;
  }
  .startlist-tier-label {
    min-width: 100%;
    font-size: 0.70rem;
  }
  .sl-race-btn,
  .sl-mode-btn {
    width: 100%;
    justify-content: space-between;
    padding: 10px 12px;
    font-size: 0.82rem;
  }
  .rc-switch-tab {
    padding: 10px 13px;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-glass::after,
  .pulse-cta,
  .badge-dot,
  .live-feed-dot,
  .live-feed-headline,
  .live-feed-chevron {
    animation: none !important;
    transition: none !important;
  }
}





