@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f0f5fa;
  --bg-white: #ffffff;
  --bg-light-blue: #e8f0fe;
  --bg-hero: linear-gradient(135deg, #0f2a52 0%, #1b4d8f 50%, #2a6bb5 100%);
  --border: #d0dcea;
  --border-light: #e4ecf4;
  --text: #1a2b3d;
  --text-secondary: #506680;
  --text-tertiary: #8298b0;
  --primary: #1b6fe3;
  --primary-dark: #1558b8;
  --primary-light: #e8f0fe;
  --accent: #e8712e;
  --accent-dark: #d06020;
  --accent-light: #fff3ec;
  --green: #2e8b57;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --max-width: 1140px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ========== NAV ========== */
.nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
  text-decoration: none;
}
.nav-brand .logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.nav-brand span { color: var(--accent); }
.hero-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}
.hero-brand-text {
  margin-bottom: 4px;
}
.hero-brand-text h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 0;
}
.hero-brand-text h1 span { color: #ffb088; }
.hero-brand-tagline {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
}
.brand-section {
  background: linear-gradient(180deg, #e8f0fe 0%, #f0f5fa 100%);
  padding: 56px 28px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}
.brand-section .brand-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
}
.brand-section h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}
.brand-section h2 span { color: var(--accent); }
.brand-section .brand-tagline {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.brand-section p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-link.cta {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 24px;
  padding: 9px 22px;
  margin-left: 10px;
}
.nav-link.cta:hover { background: var(--accent-dark); color: #fff; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
  padding: 4px;
}

/* ========== HERO ========== */
.hero-duo {
  display: flex;
  min-height: 520px;
}
.hero-duo-text {
  flex: 1;
  background: linear-gradient(135deg, #0a1628 0%, #0f2a52 40%, #1b4d8f 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 64px 48px 64px 0;
}
.hero-duo-inner {
  max-width: 560px;
  margin-left: auto;
  padding-left: 28px;
}
.hero-duo-image {
  flex: 0 0 50%;
  max-width: 50%;
  overflow: hidden;
}
.hero-duo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.hero h1 span { color: #ffb088; }
.hero .tagline {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.65;
  font-weight: 400;
}

.stats-bar {
  display: flex;
  gap: 48px;
  margin-bottom: 36px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.stat-item { text-align: left; }
.stat-value {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-value.orange { color: #ffb088; }
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--bg-white);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.btn-primary:hover { background: #f5f8fb; color: var(--primary-dark); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); background: var(--primary-light); }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ========== SECTIONS ========== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 28px;
}
.section-alt {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section-alt .section {
  padding: 52px 28px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
.section-header-text {}
.section-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}
.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover { color: var(--accent); }

/* ========== TOOL GRID (HOME) ========== */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.tool-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 16px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
  box-shadow: var(--shadow-card);
  position: relative;
}
.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--text);
}
.tool-card-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
  color: var(--primary);
}
.tool-card-icon.orange { background: var(--accent-light); color: var(--accent); }
.tool-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

/* ========== CLUBS PREVIEW (HOME) ========== */
.club-preview-list { display: flex; flex-direction: column; gap: 8px; }
.club-row {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  box-shadow: var(--shadow-card);
}
.club-row:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.club-row-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-dark);
}
.club-row-name span {
  font-weight: 400;
  color: var(--text-secondary);
}
.club-row-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}
.club-row-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-tertiary);
  align-self: center;
}

/* ========== RACE PREVIEW GRID (HOME) ========== */
.race-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.race-preview-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.race-preview-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--text);
}
.race-preview-img {
  height: 150px;
  background: linear-gradient(135deg, #d5e5f7 0%, #b8d4f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
}
.race-preview-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.race-preview-body {
  padding: 18px;
}
.race-preview-body h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--primary-dark);
}
.race-preview-body p { font-size: 13px; color: var(--text-secondary); }

/* ========== RACE TILES ========== */
.race-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.race-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.race-tile:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}
.race-tile-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  padding: 6px 8px;
  background: linear-gradient(135deg, var(--primary), #2a7ef0);
  border-radius: 8px;
  line-height: 1;
}
.race-tile-month {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
}
.race-tile-day {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}
.race-tile-info {
  flex: 1;
  min-width: 0;
}
.race-tile-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.race-tile-location {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  padding: 20px 0;
  flex-wrap: wrap;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(27, 111, 227, 0.06);
}
.page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}
.page-dots {
  color: var(--text-secondary);
  padding: 0 4px;
}

/* ========== REGION GRID ========== */
.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.region-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.region-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}
.region-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  flex-shrink: 0;
}
.region-card-info h3 { font-size: 15px; font-weight: 600; }
.region-card-info p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

/* ========== PAGE HEADER ========== */
.page-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 28px 0;
}
.breadcrumb {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-tertiary); }
.page-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}
.page-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

/* ========== FILTERS ========== */
.filters {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 28px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.search-box {
  flex: 1;
  min-width: 220px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27,111,227,0.1); }
.search-box input::placeholder { color: var(--text-tertiary); }
.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 15px;
  pointer-events: none;
}
.filter-select {
  padding: 11px 36px 11px 14px;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23506680' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.filter-select:focus { border-color: var(--primary); }
.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 28px 0;
}
.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.active-filter a { color: var(--primary); font-weight: 700; }
.clear-filters { color: var(--text-secondary); font-size: 12px; }
.clear-filters:hover { color: var(--accent); }

/* ========== MONTH FILTER ========== */
.month-filter-row {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 28px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.month-btn {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--bg-white);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.month-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.month-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(232,113,46,0.3);
}

/* ========== CARD GRID ========== */
.card-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

/* ========== CLUB CARD ========== */
.club-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.club-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}
.club-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--primary-dark);
}
.club-card .club-location {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.club-card .club-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}
.club-meta-item {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.club-meta-item .meta-icon { color: var(--primary); font-size: 14px; }
.club-card .club-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 500;
}
.tag.accent {
  background: var(--accent-light);
  color: var(--accent);
}

.card-website-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.15s;
}
.card-website-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ========== RACE CARD ========== */
.race-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.25s;
  display: flex;
  gap: 18px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-card);
}
.race-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}
.date-box {
  width: 56px;
  height: 62px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(232,113,46,0.12);
}
.date-month {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.date-day {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.race-info { flex: 1; min-width: 0; }
.race-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 3px; color: var(--primary-dark); }
.race-location {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.race-distance {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.race-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== DETAIL PAGE ========== */
.detail-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 36px 28px 60px;
}
.detail-header { margin-bottom: 32px; }
.detail-header h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
}
.detail-location {
  font-size: 15px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-body { margin-bottom: 28px; }
.detail-description {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 28px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.detail-item {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.detail-item-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  font-weight: 500;
}
.detail-item-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.detail-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 24px;
  font-weight: 500;
}
.back-link:hover { color: var(--primary); }

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 72px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--text);
}
.empty-state p { color: var(--text-secondary); font-size: 14px; }

/* ========== CALCULATOR PAGES ========== */
.calc-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 28px 60px;
}
.calc-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-dark);
}
.calc-page .calc-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 28px;
}
.calc-form {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.calc-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-end;
}
.calc-row:last-child { margin-bottom: 0; }
.calc-field { flex: 1; }
.calc-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.calc-field input,
.calc-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: all 0.2s;
}
.calc-field input:focus,
.calc-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,111,227,0.1);
  background: #fff;
}
.calc-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.calc-actions .btn { flex: 1; justify-content: center; }
.calc-result {
  background: var(--primary-light);
  border: 1.5px solid rgba(27,111,227,0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: none;
}
.calc-result.show { display: block; }
.calc-result h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.result-item { }
.result-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}
.result-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.result-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 14px;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid rgba(27,111,227,0.1);
}

/* ========== TOOLS LIST PAGE ========== */
.tools-category-title {
  max-width: var(--max-width);
  margin: 28px auto 0;
  padding: 0 28px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.tools-category-title:first-of-type {
  margin-top: 0;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 28px;
}
.tool-list-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.tool-list-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  color: var(--text);
}
.tool-list-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 16px;
}
.tool-list-icon.orange { background: var(--accent-light); color: var(--accent); }
.tool-list-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary-dark);
}
.tool-list-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}
.tool-list-card .tool-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== FOOTER ========== */
.footer {
  margin-top: auto;
  background: #0f2a52;
  color: rgba(255,255,255,0.85);
  padding: 48px 28px 36px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.footer-brand span { color: var(--accent); }
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
}
.footer-columns {
  display: flex;
  gap: 48px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  padding: 3px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-links { display: flex; gap: 20px; }
.footer-link { color: rgba(255,255,255,0.7); font-size: 13px; }
.footer-link:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ========== RESULTS COUNT ========== */
.results-count {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 28px 0;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: var(--bg-hero);
  padding: 52px 28px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
}
.cta-banner p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  position: relative;
}
.cta-banner .btn { position: relative; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-duo { min-height: 420px; }
  .hero-duo-text { padding: 48px 32px 48px 0; }
  .tool-grid { grid-template-columns: repeat(4, 1fr); }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .race-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .race-tile-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-duo { flex-direction: column; min-height: auto; }
  .hero-duo-text { padding: 48px 24px; }
  .hero-duo-inner { margin-left: 0; max-width: 100%; }
  .hero-duo-image { flex: none; max-width: 100%; height: 300px; }
  .hero h1, .hero-duo h1 { font-size: 32px; }
  .hero .tagline { font-size: 15px; }
  .stats-bar { gap: 24px; flex-wrap: wrap; }
  .stat-value { font-size: 28px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 2px;
  }
  .mobile-menu-btn { display: block; }
  .card-grid { grid-template-columns: 1fr; padding: 16px 20px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .race-preview-grid { grid-template-columns: 1fr; }
  .race-tile-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 24px; }
  .section { padding: 36px 20px; }
  .detail-header h1 { font-size: 24px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .filters { flex-direction: column; padding: 12px 20px 0; }
  .search-box { min-width: 100%; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-columns { gap: 32px; }
  .club-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .club-row-meta { flex-wrap: wrap; gap: 12px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .calc-row { flex-direction: column; gap: 0; }
  .tools-grid { grid-template-columns: 1fr; padding: 16px 20px; }
}

@media (max-width: 480px) {
  .hero-duo-text { padding: 36px 16px; }
  .hero-duo h1 { font-size: 26px; }
  .hero-duo .hero-subtitle { font-size: 12px; }
  .hero-duo-image { height: 240px; }
  .hero-logo { width: 56px; height: 56px; margin-bottom: 10px; }
  .hero-brand-tagline { font-size: 11px; letter-spacing: 2px; }
  .stats-bar { gap: 16px; }
  .stat-value { font-size: 24px; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .region-grid { grid-template-columns: 1fr; }
  .race-card { flex-direction: column; gap: 10px; }
  .date-box { width: auto; height: auto; flex-direction: row; gap: 8px; padding: 8px 14px; }
  .detail-grid { grid-template-columns: 1fr; }
  .section { padding: 28px 16px; }
  .calc-page { padding: 24px 16px 48px; }
  .calc-form { padding: 20px; }
  .chart-hero { padding: 36px 16px 28px; }
  .chart-hero h1 { font-size: 26px; }
  .chart-hero .chart-subtitle { font-size: 14px; }
  .chart-cards-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .chart-table-wrapper { margin: 0 -16px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .faq-question { font-size: 15px; padding: 14px 40px 14px 16px; }
  .faq-answer { padding: 0 16px 14px; font-size: 14px; }
}

/* ====== Race Charts Section ====== */
.chart-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 28px 32px;
  text-align: center;
}
.chart-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.chart-hero .chart-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 20px;
  line-height: 1.6;
}
.chart-hero .chart-intro {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}
.chart-tip {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.chart-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px 48px;
}
.chart-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.chart-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.chart-card-icon {
  font-size: 36px;
  margin-bottom: 14px;
}
.chart-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.chart-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.chart-card .btn-sm {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.chart-card .btn-sm:hover { background: var(--primary-dark); }

/* Benefits section */
.benefits-section {
  background: var(--bg-white);
  padding: 52px 28px;
}
.benefits-section h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 32px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.benefit-block {
  text-align: center;
  padding: 20px;
}
.benefit-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.benefit-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.benefit-block p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Pace chart table */
.chart-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 28px 64px;
}
.chart-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}
.pace-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  min-width: 340px;
}
.pace-table thead th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 20px;
  text-align: left;
  position: sticky;
  top: 0;
}
.pace-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.pace-table tbody tr:nth-child(even) {
  background: var(--bg);
}
.pace-table tbody tr:hover {
  background: var(--primary-light);
}
.pace-table td {
  padding: 12px 20px;
  font-size: 15px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.pace-table td:first-child {
  font-weight: 600;
  color: var(--primary);
}

/* Related links */
.related-section {
  margin-top: 48px;
}
.related-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.related-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.related-link:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}
.related-link span { font-size: 18px; }

/* FAQ section */
.faq-section {
  margin-top: 48px;
}
.faq-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
}
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg-white);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
}
.faq-question:hover { background: var(--bg); }
.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item.open .faq-question::after {
  content: '\2212';
}
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  display: block;
}

/* CTA buttons row */
.chart-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.chart-cta-row .btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.chart-cta-row .btn:hover { transform: translateY(-1px); }
.chart-cta-row .btn-primary {
  background: var(--primary);
  color: #fff;
}
.chart-cta-row .btn-primary:hover { background: var(--primary-dark); }
.chart-cta-row .btn-outline {
  background: var(--bg-white);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.chart-cta-row .btn-outline:hover { background: var(--primary-light); }

@media (max-width: 768px) {
  .chart-cards-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; font-family: 'Inter', sans-serif; background: var(--bg-white); color: var(--text); transition: border-color 0.2s; box-sizing: border-box; }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(27, 111, 227, 0.1); }
textarea.form-input { resize: vertical; min-height: 80px; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7a8d' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); cursor: pointer; padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; transition: all 0.2s; }
.checkbox-label:has(input:checked) { background: var(--primary-light); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.checkbox-label input[type="checkbox"] { accent-color: var(--primary); }

/* ========== STATE PAGES ========== */
.state-hero {
  background: linear-gradient(135deg, #0a2540 0%, #1b6fe3 100%);
  color: #fff;
  padding: 60px 24px 48px;
}
.state-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.state-breadcrumb {
  font-size: 13px;
  margin-bottom: 16px;
  opacity: 0.7;
}
.state-breadcrumb a {
  color: #fff;
  text-decoration: none;
}
.state-breadcrumb a:hover {
  text-decoration: underline;
}
.state-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}
.state-hero-sub {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 28px;
}
.state-stats-bar {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.state-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}
.state-stat-value {
  font-size: 28px;
  font-weight: 800;
}
.state-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.75;
  margin-top: 2px;
}
.page-header-bar {
  background: linear-gradient(135deg, #0a2540 0%, #1b6fe3 100%);
  color: #fff;
  padding: 48px 24px 40px;
}
.page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.page-header-bar .page-title {
  color: #fff;
  margin-bottom: 8px;
}
.page-header-bar .page-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
}
.state-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.state-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  box-shadow: var(--shadow-card);
}
.state-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}
.state-card-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-dark);
}
.state-card-count {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.state-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.state-index-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  box-shadow: var(--shadow-card);
}
.state-index-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}
.state-index-left {
  display: flex;
  flex-direction: column;
}
.state-index-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary-dark);
}
.state-index-code {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.state-index-right {
  text-align: right;
}
.state-index-stat {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.state-index-stat strong {
  color: var(--primary);
  font-weight: 700;
}
.city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.city-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(27, 111, 227, 0.06);
}
.city-chip-count {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}
.distance-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.distance-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.distance-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.distance-chip-count {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

@media (max-width: 1024px) {
  .state-grid { grid-template-columns: repeat(3, 1fr); }
  .state-index-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .state-hero h1 { font-size: 28px; }
  .state-stats-bar { gap: 20px; }
  .state-stat-value { font-size: 22px; }
  .state-grid { grid-template-columns: repeat(2, 1fr); }
  .state-index-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .state-grid { grid-template-columns: 1fr; }
}
