/* ==========================================================================
   SOULS OF ERODE - PREMIUM ATHLETIC STYLESHEET
   Community Membership Registration & Admin Management Dashboard
   ========================================================================== */

:root {
  /* Brand palette, taken from the Souls of Erode logo: deep navy artwork with
     an orange-to-red gradient wordmark. */
  --brand-navy: #16233f;
  --brand-navy-deep: #0d1729;
  --brand-orange: #f5811f;
  --brand-red: #e8452b;
  --brand-orange-light: #ff9a3c;

  --bg-main: #070c18;
  --bg-card: rgba(19, 29, 51, 0.85);
  --bg-card-hover: rgba(30, 45, 76, 0.9);
  --bg-input: rgba(13, 21, 38, 0.95);

  /* The --accent-cyan / --accent-blue names are kept because they are
     referenced throughout this stylesheet; they now carry the brand's orange
     and red so every existing gradient resolves to the logo's colours. */
  --accent-cyan: #f5811f;
  --accent-blue: #e8452b;
  --accent-green: #10b981;
  --accent-lime: #ff9a3c;
  --accent-orange: #f5811f;
  --accent-purple: #8b5cf6;
  --accent-rose: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #93a3bd;
  --text-sub: #cbd5e1;

  --border-card: rgba(46, 65, 99, 0.5);
  --border-focus: #f5811f;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 25px rgba(245, 129, 31, 0.28);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
}

/* Container */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight {
  color: var(--accent-cyan);
}

.required {
  color: var(--accent-rose);
  font-weight: 700;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 18, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  padding: 0.85rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.75rem;
  color: var(--accent-cyan);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.logo-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
  background: rgba(245, 129, 31, 0.1);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #070c18;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-glow {
  box-shadow: 0 0 20px rgba(245, 129, 31, 0.3);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  border-color: var(--border-card);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(245, 129, 31, 0.1);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}

.btn-danger:hover {
  background: var(--accent-rose);
  color: #fff;
}

.btn-whatsapp {
  background: #25D366;
  color: #070c18;
  font-weight: 800;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent-cyan);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

/* Page Views System */
.page-view {
  display: none;
}

.page-view.active {
  display: block;
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 3rem;
  text-align: center;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(245, 129, 31, 0.12);
  border: 1px solid rgba(245, 129, 31, 0.3);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -1.5px;
  margin-bottom: 0.5rem;
}

.hero-tagline-strip {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-lime);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-banner-image-wrapper {
  margin: 1rem 0 2rem;
  width: 100%;
  max-width: 480px;
}

.hero-image-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.hero-side-img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
}

.image-overlay-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(7, 10, 18, 0.9);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-sub);
  max-width: 750px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent-cyan);
}

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

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

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

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

.section-header.center {
  text-align: center;
}

.tagline {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 650px;
  margin: 0 auto;
}

/* Why Join Cards Grid */
.why-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

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

.why-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.why-icon {
  width: 55px;
  height: 55px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.why-icon.blue { background: rgba(232, 69, 43, 0.15); color: var(--accent-blue); }
.why-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.why-icon.orange { background: rgba(249, 115, 22, 0.15); color: var(--accent-orange); }
.why-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.why-icon.cyan { background: rgba(245, 129, 31, 0.15); color: var(--accent-cyan); }
.why-icon.rose { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); }

.why-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.why-card p {
  color: var(--text-sub);
  font-size: 0.95rem;
}

.center-cta-box {
  text-align: center;
  margin-top: 2rem;
}

/* About Section Card */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.about-info h2 {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
}

.about-info p {
  color: var(--text-sub);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.about-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.about-tag {
  background: rgba(245, 129, 31, 0.1);
  border: 1px solid rgba(245, 129, 31, 0.3);
  color: var(--accent-cyan);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Multi-Step Registration Card */
.registration-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.reg-header {
  margin-bottom: 2rem;
  text-align: center;
}

.reg-title-wrap h2 {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.reg-title-wrap p {
  color: var(--text-sub);
  font-size: 0.95rem;
}

/* Stepper Progress Bar */
.stepper-scroll-container {
  overflow-x: auto;
  padding: 1rem 0;
  margin-top: 1.5rem;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 600px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 2px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.step-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border-card);
  margin: 0 0.5rem;
  margin-top: -1.2rem;
}

.step-item.active .step-circle {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan);
  color: #070c18;
  box-shadow: 0 0 15px rgba(245, 129, 31, 0.5);
}

.step-item.active .step-text {
  color: var(--accent-cyan);
}

.step-item.completed .step-circle {
  background: var(--accent-lime);
  color: #070c18;
  border-color: transparent;
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-section-title {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 0.75rem;
}

.section-notice {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  background: rgba(245, 129, 31, 0.1);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

/* Form Fields & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label, .photo-label, .radio-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.input-wrapper select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2394a3b8' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5rem;
}

.input-wrapper textarea {
  padding-left: 2.75rem;
  resize: vertical;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 12px rgba(245, 129, 31, 0.3);
}

.input-wrapper input.input-error,
.input-wrapper select.input-error {
  border-color: var(--accent-rose) !important;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.4) !important;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.error-msg {
  font-size: 0.8rem;
  color: var(--accent-rose);
  font-weight: 600;
  min-height: 1rem;
}

.center-text {
  text-align: center;
}

/* Profile Photo Uploader */
.photo-upload-group {
  margin-bottom: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-card);
}

.photo-uploader-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.photo-preview-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(245, 129, 31, 0.2);
}

.photo-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-icon {
  font-size: 3rem;
  color: var(--text-muted);
}

.photo-upload-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.photo-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.photo-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.hidden-file-input {
  display: none;
}

/* Radio Selectable Cards */
.radio-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-card {
  position: relative;
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
}

.radio-card-content {
  background: var(--bg-input);
  border: 2px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.card-icon {
  font-size: 1.75rem;
  color: var(--text-muted);
}

.radio-card input:checked + .radio-card-content {
  border-color: var(--accent-cyan);
  background: rgba(245, 129, 31, 0.1);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(245, 129, 31, 0.2);
}

.radio-card input:checked + .radio-card-content .card-icon {
  color: var(--accent-cyan);
}

/* Consent Boxes */
.consent-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.consent-box h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-sub);
  cursor: pointer;
  position: relative;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  width: 22px;
  height: 22px;
  background-color: var(--bg-input);
  border: 2px solid var(--border-card);
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #070c18;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.link-align {
  margin-top: 0.5rem;
  padding-left: 2rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Form Actions */
.form-actions {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-card);
}

.form-actions.right {
  justify-content: flex-end;
}

.form-actions.space-between {
  justify-content: space-between;
}

/* Success Card */
.success-card {
  text-align: center;
  padding: 1rem 0;
}

.success-badge {
  font-size: 3.5rem;
  color: var(--accent-lime);
  margin-bottom: 0.75rem;
}

.success-card h2 {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
}

.success-sub {
  color: var(--text-sub);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.member-card-wrapper {
  max-width: 450px;
  margin: 0 auto 1.5rem;
}

.member-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 2px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 0 30px rgba(245, 129, 31, 0.25);
  text-align: left;
}

.member-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.member-card-brand {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.member-card-tag {
  background: var(--accent-cyan);
  color: #070c18;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.member-card-body {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.member-photo-frame {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--accent-lime);
  overflow: hidden;
  flex-shrink: 0;
}

.member-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card-id-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.member-card-id-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-lime);
  letter-spacing: 1px;
}

.member-card-name {
  font-size: 1.2rem;
  font-weight: 800;
}

.member-card-sub {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.welcome-message {
  font-size: 1.1rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
}

.whatsapp-join-box {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.wa-icon-glow {
  font-size: 2.5rem;
  color: #25D366;
}

.whatsapp-join-box h3 {
  font-size: 1.35rem;
  color: #25D366;
}

.whatsapp-join-box p {
  color: var(--text-sub);
  font-size: 0.95rem;
  max-width: 550px;
}

.wa-tracking-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.share-box {
  max-width: 450px;
  margin: 0 auto;
}

/* Admin Dashboard Section */
.admin-section {
  padding: 3rem 0;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-status-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-green);
  color: var(--accent-lime);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-lock-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 480px;
  margin: 2rem auto;
  text-align: center;
}

.lock-icon {
  font-size: 3rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.admin-lock-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.admin-lock-card p {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

/* Metrics Overview Grid */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metric-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.metric-icon.blue { background: rgba(232, 69, 43, 0.15); color: var(--accent-blue); }
.metric-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.metric-icon.orange { background: rgba(249, 115, 22, 0.15); color: var(--accent-orange); }
.metric-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.metric-icon.cyan { background: rgba(245, 129, 31, 0.15); color: var(--accent-cyan); }
.metric-icon.wa-green { background: rgba(37, 211, 102, 0.15); color: #25D366; }
.metric-icon.wa-pending { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.metric-icon.male-blue { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; }
.metric-icon.female-pink { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
}

.metric-val.text-sm {
  font-size: 1.1rem;
}

/* Controls & Search Card */
.table-controls-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
}

.filters-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-sub);
}

.filter-item select {
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.85rem;
}

.action-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

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

.runners-table th,
.runners-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-card);
  vertical-align: middle;
}

.runners-table th {
  background: rgba(15, 23, 42, 0.9);
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.table-photo-thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-cyan);
}

.table-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
}

.badge-active { background: rgba(16, 185, 129, 0.15); color: var(--accent-lime); border: 1px solid var(--accent-lime); }
.badge-inactive { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid #eab308; }
.badge-blocked { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); border: 1px solid var(--accent-rose); }
.badge-wa-clicked { background: rgba(37, 211, 102, 0.15); color: #25D366; }
.badge-wa-pending { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); }

/* Pagination */
.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-num-display {
  font-size: 0.85rem;
  font-weight: 700;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #0f172a;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.modal-content.modal-lg {
  max-width: 750px;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.modal-header i {
  font-size: 1.5rem;
}

.modal-body-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.5rem;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-body-scroll h4 {
  color: var(--accent-cyan);
  margin: 1rem 0 0.4rem;
}

.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Footer */
.footer {
  background: #04060b;
  border-top: 1px solid var(--border-card);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 380px;
}

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links h4, .footer-contact h4 {
  color: var(--text-main);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-contact p {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-bottom {
  border-top: 1px solid rgba(51, 65, 85, 0.4);
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.legal-footer-links a {
  color: var(--text-muted);
}

.legal-footer-links a:hover {
  color: var(--accent-cyan);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-title { font-size: 2.8rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
  .radio-card-grid { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f172a;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-card);
  }
  .nav-links.active { display: flex; }
  .mobile-toggle { display: block; }
  .hero-title { font-size: 2.2rem; }
  .registration-card { padding: 1.5rem 1rem; }
  .photo-uploader-box { flex-direction: column; text-align: center; }
  .form-actions { flex-direction: column; gap: 1rem; }
  .form-actions.space-between { flex-direction: column-reverse; }
  .btn { width: 100%; }
}

/* ==========================================================================
   BRAND IDENTITY - logo lockups, community photo, and the Yellow Trackathon
   feature block. Appended so these rules win over the older utility styles.
   ========================================================================== */

/* --- Logo lockups ------------------------------------------------------- */
.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 64px;
}

.hero-logo {
  width: min(440px, 78vw);
  height: auto;
  display: block;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 12px 30px rgba(245, 129, 31, 0.22));
}

/* --- Hero --------------------------------------------------------------- */
.hero-section {
  padding: 3rem 0 3.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(245, 129, 31, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(22, 35, 63, 0.85), transparent 70%);
}

.hero-photo-wrap {
  margin-top: 3rem;
}

.hero-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  /* Wide group shot: crop the empty ground rather than letterbox the faces */
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 42%;
  background: var(--brand-navy-deep);
}

.hero-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.5rem 1.1rem;
  background: linear-gradient(to top, rgba(7, 12, 24, 0.92), transparent);
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

.hero-photo figcaption i {
  color: var(--accent-cyan);
  margin-right: 0.4rem;
}

/* --- Pride event: Yellow Trackathon ------------------------------------- */
.pride-event-section {
  background: linear-gradient(180deg, transparent, rgba(22, 35, 63, 0.55));
}

.pride-event-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.pride-event-logo {
  /* The Trackathon mark is black-and-yellow, so it needs a light plate to
     stay legible against the navy card. */
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pride-event-logo img {
  width: 100%;
  height: auto;
  max-width: 340px;
  display: block;
}

.pride-event-body h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pride-event-body > p {
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.pride-event-points {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.pride-event-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-sub);
  font-weight: 600;
}

.pride-event-points i {
  color: var(--accent-cyan);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* --- Footer address ----------------------------------------------------- */
.footer-address {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-address span {
  line-height: 1.6;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .pride-event-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.75rem;
  }

  .hero-photo img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .nav-logo-img { height: 40px; }
  .footer-logo-img { height: 52px; }
  .hero-logo { width: min(300px, 82vw); }

  .hero-photo img { aspect-ratio: 4 / 3; }

  .hero-photo figcaption {
    font-size: 0.8rem;
    padding: 2rem 1rem 0.9rem;
  }
}

/* If an optional image block was removed, do not leave an empty grid column. */
.pride-event-card:has(> :only-child) {
  grid-template-columns: 1fr;
}

/* ==========================================================================
   MOBILE OPTIMISATION
   Phone-first corrections layered over the desktop rules above.
   ========================================================================== */

/* Nothing may push the page sideways on a phone. */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

img, video, canvas, svg {
  max-width: 100%;
}

/* Long IDs, emails and Strava URLs must wrap rather than widen the layout. */
.member-card-sub,
.runners-table td,
.profile-detail-value,
.footer-contact p {
  overflow-wrap: anywhere;
}

@media (max-width: 992px) {
  .container { padding: 0 1.15rem; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 2rem; }
  .pride-event-body h3 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  /* --- Navbar ----------------------------------------------------------- */
  /* The global `.btn { width: 100% }` below is meant for form and card
     buttons; without this the header CTA stretches and breaks the bar. */
  .nav-actions .btn,
  .pagination-buttons .btn,
  .modal-actions .btn {
    width: auto;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .nav-cta {
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
    letter-spacing: 0;
  }

  .mobile-toggle {
    /* Comfortable thumb target */
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    /* Long menus stay reachable on short screens */
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }

  .nav-link {
    padding: 0.75rem 0.8rem;
    font-size: 1rem;
  }

  /* --- Forms ------------------------------------------------------------ */
  /* iOS Safari zooms the viewport when a focused control is under 16px.
     Pinning to 16px keeps the page steady while filling in the form. */
  .input-wrapper input,
  .input-wrapper select,
  .input-wrapper textarea {
    font-size: 16px;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .form-section-title { font-size: 1.15rem; }

  /* --- Hero ------------------------------------------------------------- */
  .hero-section { padding: 2rem 0 2.5rem; }
  .hero-tagline-strip { font-size: 1.1rem; margin-bottom: 1.1rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-buttons { width: 100%; gap: 0.75rem; }
  .hero-photo-wrap { margin-top: 2rem; }

  /* --- Admin ------------------------------------------------------------ */
  .table-wrapper {
    -webkit-overflow-scrolling: touch;
  }

  .filters-row > * {
    flex: 1 1 100%;
    min-width: 0;
  }

  .pagination-bar {
    flex-direction: column;
    gap: 0.85rem;
    align-items: stretch;
    text-align: center;
  }

  .pagination-buttons {
    justify-content: center;
  }

  /* --- Modals ----------------------------------------------------------- */
  .modal-content,
  .modal-content.modal-lg {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-md);
  }

  .modal-overlay {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .modal-close {
    min-width: 44px;
    min-height: 44px;
  }

  /* --- Footer ----------------------------------------------------------- */
  .footer-content { text-align: center; }
  .footer-brand .nav-logo { justify-content: center; }
  .footer-address { justify-content: center; text-align: left; }
  .footer-links { display: flex; flex-direction: column; align-items: center; }

  .footer-bottom .flex-between {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .section-title { font-size: 1.65rem; }
  .section-desc { font-size: 0.92rem; }
  .why-cards-grid { grid-template-columns: 1fr; }

  /* Stack the registration stepper's controls rather than squeezing them */
  .form-actions .btn { width: 100%; }

  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }

  .registration-card { padding: 1.25rem 0.9rem; }

  .pride-event-card { padding: 1.25rem; }
  .pride-event-logo { padding: 1.1rem; }
  .pride-event-points li { font-size: 0.9rem; }
}

@media (max-width: 400px) {
  .nav-cta span { display: none; }

  .nav-cta::after {
    content: "JOIN";
    font-weight: 700;
  }
}

/* Respect notched / rounded phone screens. */
@supports (padding: max(0px)) {
  .container,
  .nav-container {
    padding-left: max(1.15rem, env(safe-area-inset-left));
    padding-right: max(1.15rem, env(safe-area-inset-right));
  }

  .footer-bottom {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

/* Users who prefer less motion get no transforms or smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .btn-primary:hover { transform: none; }
}

/* ==========================================================================
   YELLOW CITY TRACKATHON
   The event carries its own yellow/black identity, scoped to this page so it
   reads as a sub-brand of Souls of Erode without altering the site palette.
   ========================================================================== */

.tk-page {
  --tk-yellow: #ffe100;
  --tk-yellow-soft: #ffef7a;
  --tk-ink: #231f20;
}

/* --- Event hero ---------------------------------------------------------- */
.tk-hero {
  padding: 3.5rem 0 3rem;
  text-align: center;
  background:
    radial-gradient(ellipse 65% 60% at 50% 0%, rgba(255, 225, 0, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(22, 35, 63, 0.6), transparent);
}

.tk-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tk-hero-logo {
  width: min(420px, 80vw);
  height: auto;
  /* Black-and-yellow mark on a dark page: a light plate keeps it legible */
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.tk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 225, 0, 0.12);
  border: 1px solid rgba(255, 225, 0, 0.35);
  color: var(--tk-yellow);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.tk-title {
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: -1px;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, var(--tk-yellow), #ffb800);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tk-slogan {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.tk-lede {
  max-width: 780px;
  color: var(--text-sub);
  line-height: 1.8;
}

/* --- Section scaffolding ------------------------------------------------- */
.tk-section-alt {
  background: rgba(22, 35, 63, 0.4);
}

.tk-tagline {
  color: var(--tk-yellow) !important;
}

.tk-body-text {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-sub);
  line-height: 1.8;
}

.tk-body-text.center,
.tk-prose.center {
  text-align: center;
}

.tk-prose {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 1.15rem;
  color: var(--text-sub);
  line-height: 1.8;
}

.tk-emphasis {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--tk-yellow);
  line-height: 1.6;
}

/* --- 2026 stats ---------------------------------------------------------- */
.tk-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.tk-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-top: 3px solid var(--tk-yellow);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.tk-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  color: var(--tk-yellow);
  margin-bottom: 0.5rem;
}

.tk-stat-label {
  display: block;
  color: var(--text-sub);
  font-weight: 600;
  font-size: 0.92rem;
}

.tk-quote {
  max-width: 820px;
  margin: 0 auto 2rem;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--tk-yellow);
  background: rgba(255, 225, 0, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.7;
}

/* --- Race directors ------------------------------------------------------ */
.tk-directors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.tk-director {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
}

.tk-director-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--tk-ink);
  background: linear-gradient(135deg, var(--tk-yellow), #ffb800);
}

.tk-director h3 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.tk-director p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

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

.tk-category {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  transition: var(--transition);
}

.tk-category:hover {
  border-color: rgba(255, 225, 0, 0.5);
  transform: translateY(-3px);
}

.tk-category-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--tk-ink);
  background: linear-gradient(135deg, var(--tk-yellow), #ffb800);
  margin-bottom: 1.1rem;
}

.tk-category h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.tk-category-format {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 225, 0, 0.12);
  border: 1px solid rgba(255, 225, 0, 0.3);
  color: var(--tk-yellow);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.tk-category p {
  color: var(--text-sub);
  line-height: 1.7;
}

/* --- Values -------------------------------------------------------------- */
.tk-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.tk-value {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-left: 3px solid var(--tk-yellow);
}

.tk-value h3 {
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tk-yellow);
  margin-bottom: 0.4rem;
}

.tk-value p {
  color: var(--text-sub);
  font-size: 0.95rem;
}

/* --- Next edition -------------------------------------------------------- */
.tk-next-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin: 2rem auto 2.5rem;
}

.tk-next-grid span {
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  background: rgba(255, 225, 0, 0.1);
  border: 1px solid rgba(255, 225, 0, 0.3);
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--tk-yellow);
}

.tk-cta {
  text-align: center;
}

.tk-cta-line {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

/* --- Thank you ----------------------------------------------------------- */
.tk-thanks {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 1.25rem;
}

.tk-thanks h2 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  background: linear-gradient(135deg, var(--tk-yellow), #ffb800);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tk-thanks p {
  color: var(--text-sub);
  line-height: 1.8;
}

.tk-see-you {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--tk-yellow) !important;
}

/* --- Mobile -------------------------------------------------------------- */
@media (max-width: 768px) {
  .tk-hero { padding: 2rem 0 2.25rem; }
  .tk-hero-logo { padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
  .tk-lede { font-size: 0.95rem; line-height: 1.75; }
  .tk-stat { padding: 1.35rem 1rem; }
  .tk-stat-num { font-size: 2.25rem; }
  .tk-quote { padding: 1.15rem 1.25rem; font-size: 1rem; }
  .tk-director { padding: 1.5rem 1.15rem; }
  .tk-category { padding: 1.5rem 1.25rem; }
  .tk-next-grid { gap: 0.6rem; }
  .tk-next-grid span { padding: 0.5rem 1rem; font-size: 0.9rem; }
}

@media (max-width: 560px) {
  .tk-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .tk-values { grid-template-columns: 1fr; }
  .tk-cta .btn { width: 100%; }
}

/* ==========================================================================
   TRACKATHON PHOTO GALLERY + LIGHTBOX
   ========================================================================== */

.tk-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
}

.tk-gallery-item {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.tk-gallery-item:hover {
  border-color: rgba(255, 225, 0, 0.5);
  transform: translateY(-3px);
}

.tk-gallery-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}

.tk-gallery-btn:focus-visible {
  outline: 3px solid var(--tk-yellow);
  outline-offset: -3px;
}

.tk-gallery-btn img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: var(--brand-navy-deep);
  transition: var(--transition);
}

.tk-gallery-item:hover .tk-gallery-btn img {
  opacity: 0.9;
}

.tk-gallery-item figcaption {
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
  line-height: 1.5;
}

/* --- Lightbox ------------------------------------------------------------ */
.tk-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 7, 14, 0.94);
  backdrop-filter: blur(6px);
}

.tk-lightbox.active {
  display: flex;
}

.tk-lb-stage {
  margin: 0;
  max-width: min(1200px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.tk-lb-img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.tk-lb-caption {
  color: var(--text-sub);
  font-weight: 600;
  text-align: center;
  max-width: 60ch;
}

.tk-lb-close,
.tk-lb-nav {
  position: absolute;
  border: 1px solid rgba(255, 225, 0, 0.35);
  background: rgba(22, 35, 63, 0.75);
  color: var(--tk-yellow, #ffe100);
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.tk-lb-close:hover,
.tk-lb-nav:hover {
  background: var(--tk-yellow, #ffe100);
  color: #231f20;
}

.tk-lb-close:focus-visible,
.tk-lb-nav:focus-visible {
  outline: 3px solid var(--tk-yellow, #ffe100);
  outline-offset: 3px;
}

.tk-lb-close {
  top: 1.1rem;
  right: 1.1rem;
  width: 46px;
  height: 46px;
  font-size: 1.8rem;
  line-height: 1;
}

.tk-lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
}

.tk-lb-prev { left: 1.1rem; }
.tk-lb-next { right: 1.1rem; }

.tk-lb-counter {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .tk-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }

  .tk-gallery-item figcaption {
    padding: 0.6rem 0.7rem;
    font-size: 0.78rem;
  }

  .tk-lightbox { padding: 0.75rem; }
  .tk-lb-img { max-height: 68vh; }

  /* Keep the arrows clear of the photo on narrow screens */
  .tk-lb-nav {
    top: auto;
    bottom: 3.25rem;
    transform: none;
    width: 46px;
    height: 46px;
  }

  .tk-lb-prev { left: 1.5rem; }
  .tk-lb-next { right: 1.5rem; }
  .tk-lb-caption { font-size: 0.85rem; }
}

/* --- Club network (About page) ------------------------------------------- */
.network-closing {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-sub);
  line-height: 1.8;
}

.network-closing strong {
  color: var(--accent-cyan);
}

.id-card-box {
  margin: 2rem 0;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  text-align: center;
}

.id-card-box h3 {
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.id-card-box > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.id-card-preview {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

/* The canvas is 1012x638; scale it to the container and keep its ratio. */
#id-card-canvas {
  display: block;
  width: 100%;
  height: auto;
  background: var(--brand-navy-deep);
}

.id-card-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .id-card-box { padding: 1.15rem; }
  .id-card-actions { flex-direction: column; }
  .id-card-actions .btn { width: 100%; }
}
/* --- Race directors photo ------------------------------------------------ */
/* The markup shipped without styles, so the 1400px image rendered at its
   intrinsic width and overflowed the container. Constrain and centre it. */
.tk-directors-photo {
  margin: 0 auto 2.25rem;
  max-width: 860px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  line-height: 0;
}

.tk-directors-photo img {
  display: block;
  width: 100%;
  height: auto;
  /* Matches the source 3:2 so nothing is cropped or stretched */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--brand-navy-deep);
}

@media (max-width: 768px) {
  .tk-directors-photo {
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
  }
}
/* ==========================================================================
   ADMIN PANEL - MOBILE
   A 12-column table is unusable on a phone, so below 900px each row becomes a
   stacked card. Every cell carries a data-label, rendered as its heading.
   ========================================================================== */

@media (max-width: 900px) {
  .table-wrapper {
    background: none;
    border: 0;
    overflow-x: visible;
  }

  .runners-table thead {
    /* Column headings are replaced by the per-cell labels */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .runners-table,
  .runners-table tbody,
  .runners-table tr,
  .runners-table td {
    display: block;
    width: 100%;
  }

  .runners-table tr {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-left: 3px solid var(--accent-cyan);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    padding: 0.35rem 0.25rem;
  }

  .runners-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 0.9rem;
    border: 0;
    border-bottom: 1px solid rgba(46, 65, 99, 0.35);
    text-align: right;
  }

  .runners-table tr td:last-child {
    border-bottom: 0;
  }

  .runners-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
  }

  /* Membership ID leads the card */
  .runners-table td[data-label="Membership ID"] {
    background: rgba(245, 129, 31, 0.08);
    border-radius: var(--radius-sm);
  }

  /* Photo and actions read better centred without a label */
  .runners-table td[data-label="Photo"] {
    justify-content: center;
  }
  .runners-table td[data-label="Photo"]::before {
    display: none;
  }

  .runners-table td[data-label="Actions"] {
    justify-content: flex-end;
    gap: 0.75rem;
  }

  .runners-table td[data-label="Actions"] .btn-icon {
    /* Comfortable thumb targets */
    min-width: 44px;
    min-height: 44px;
  }

  .table-photo-thumb {
    width: 72px;
    height: 72px;
  }

  .runners-table td[data-label="Status"] select {
    max-width: 60%;
  }

  /* Filters and toolbar */
  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-row > * {
    width: 100%;
  }

  .admin-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .admin-header-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
  }

  /* Login card */
  .admin-lock-card {
    padding: 1.5rem 1.15rem;
  }
}

@media (max-width: 560px) {
  .runners-table td {
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
  }

  .runners-table td::before {
    font-size: 0.68rem;
  }

  .admin-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .metric-card {
    padding: 1rem 0.85rem;
  }

  .admin-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-header-actions .btn {
    width: 100%;
  }
}

/* --- Registered member count, headline in the admin header --------------- */
.registered-count-line {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 0.5rem;
  color: var(--text-sub);
  font-weight: 600;
}

.registered-count-line i {
  color: var(--accent-cyan);
  font-size: 1rem;
  align-self: center;
}

.registered-count-line strong {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-cyan);
}

@media (max-width: 560px) {
  .registered-count-line strong { font-size: 1.6rem; }
  .registered-count-line { font-size: 0.9rem; }
}
/* --- About page: prose sections and sign-off ----------------------------- */
.about-prose {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 1.35rem;
  color: var(--text-sub);
  font-size: 1.2rem;
  line-height: 1.9;
  text-align: center;
}

.about-prose strong {
  color: var(--accent-cyan);
}

.about-welcome-section {
  background: rgba(22, 35, 63, 0.4);
}

.about-pullquote {
  max-width: 720px;
  margin: 2.25rem auto 0;
  padding: 1.35rem 1.75rem;
  text-align: center;
  border-left: 4px solid var(--accent-cyan);
  background: rgba(245, 129, 31, 0.07);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.about-signoff-section {
  background: linear-gradient(180deg, transparent, rgba(22, 35, 63, 0.55));
}

.about-signoff {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.about-signoff-call {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-signoff-logo {
  width: min(320px, 70vw);
  height: auto;
}

.about-signoff-tag {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-sub);
}

@media (max-width: 560px) {
  .about-prose { font-size: 1.05rem; }
  .about-pullquote { font-size: 1.05rem; padding: 1.1rem 1.15rem; }
  .about-signoff .btn { width: 100%; }
}
/* --- About page: larger, more readable body copy ------------------------- */
.about-info p {
  font-size: 1.18rem;
  line-height: 1.85;
  margin-bottom: 1.15rem;
}

.about-info h2 {
  font-size: 2.5rem;
}

.about-section .section-desc,
.about-welcome-section .section-desc,
.about-spirit-section .section-desc {
  font-size: 1.15rem;
}

.about-pullquote {
  font-size: 1.45rem;
}

.network-closing {
  font-size: 1.15rem;
}

.about-signoff-tag {
  font-size: 1.3rem;
}

/* Community photo on the About page */
.about-photo {
  margin: 0 auto 2.5rem;
  max-width: 1000px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
  line-height: 0;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 42%;
  background: var(--brand-navy-deep);
}

.about-photo figcaption {
  padding: 0.9rem 1.15rem;
  background: rgba(22, 35, 63, 0.85);
  color: var(--text-sub);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.about-photo figcaption i {
  color: var(--accent-cyan);
  margin-right: 0.4rem;
}

@media (max-width: 768px) {
  .about-info h2 { font-size: 1.9rem; }
  .about-info p { font-size: 1.05rem; }
  .about-photo img { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .about-prose { font-size: 1.05rem; }
  .about-pullquote { font-size: 1.15rem; }
  .about-signoff-tag { font-size: 1.05rem; }
  .network-closing { font-size: 1rem; }
  .about-photo figcaption { font-size: 0.85rem; padding: 0.75rem 0.9rem; }
}
/* --- About sign-off: refined closing lockup ------------------------------
   Logo leads, then the call to action, a hairline rule, the tagline and the
   button. Contained in a card so it reads as a deliberate close rather than
   loose elements stacked on the page. */
.about-signoff {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  gap: 1.5rem;
}

.about-signoff-logo {
  width: min(200px, 55vw);
  margin-bottom: 0.25rem;
}

.about-signoff-call {
  font-size: clamp(1.3rem, 3.4vw, 1.85rem);
  line-height: 1.35;
  margin: 0;
}

.about-signoff-rule {
  display: block;
  width: 72px;
  height: 3px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
}

.about-signoff-tag {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-style: italic;
  margin: 0;
}

.about-signoff .btn {
  margin-top: 0.5rem;
}

@media (max-width: 560px) {
  .about-signoff {
    padding: 2rem 1.25rem;
    gap: 1.15rem;
  }
  .about-signoff-logo { width: min(170px, 60vw); }
  .about-signoff-tag { font-size: 1rem; }
}
/* --- About page: one consistent alignment -------------------------------
   The intro card was left-aligned while every section beneath it was centred,
   so the page changed axis halfway down. Centre the card to match. */
.about-card {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-info h2 {
  max-width: 20ch;
}

.about-info p {
  max-width: 65ch;
}

.about-badges {
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .about-card { padding: 1.75rem 1.15rem; }
  .about-badges { gap: 0.6rem; }
}
/* Photo sits inside the network section, between the heading and the closing
   line, so give it breathing room on both sides. */
.network-section .about-photo {
  margin: 0 auto 2rem;
}
/* --- About page: one shared content width -------------------------------
   These blocks had seven different max-widths (650-1000px), so on desktop each
   section's edges landed in a different place. Scoped to #page-about so the
   rest of the site keeps its own measures. */
#page-about {
  --about-measure: 900px;
}

#page-about .about-card,
#page-about .about-prose,
#page-about .about-pullquote,
#page-about .about-photo,
#page-about .network-closing,
#page-about .about-signoff,
#page-about .section-desc {
  max-width: var(--about-measure);
  margin-left: auto;
  margin-right: auto;
}

/* Keep the pull-quote's left rule flush with the column edge */
#page-about .about-pullquote {
  width: 100%;
}
/* --- Network section: photo beside the text on desktop -------------------
   Two aligned columns that share a baseline, collapsing to a single stacked
   column below 900px. */
.network-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* Override the shared About measure: this block is intentionally wider */
#page-about .network-split {
  max-width: 1100px;
}

.network-split .about-photo {
  margin: 0;
  max-width: 100%;
}

#page-about .network-split .about-photo {
  max-width: 100%;
  margin: 0;
}

.network-split-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.network-split-text .section-title {
  margin: 0;
}

.network-split-text .network-closing {
  margin: 0;
  text-align: left;
  max-width: 46ch;
}

#page-about .network-split-text .network-closing {
  margin: 0;
  max-width: 46ch;
}

@media (max-width: 900px) {
  .network-split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .network-split-text {
    text-align: center;
    align-items: center;
  }

  .network-split-text .network-closing,
  #page-about .network-split-text .network-closing {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}
/* Sign-off sits under the wider network block, so give it a matching measure
   rather than the narrower prose column. */
#page-about .about-signoff {
  max-width: 780px;
}
/* --- Group photo is now a 21:9 crop -------------------------------------
   The source file itself is cropped wide, so display it at its true ratio
   rather than cropping a second time in CSS. */
.about-photo img,
.hero-photo img {
  aspect-ratio: 21 / 9;
  object-position: center;
}

@media (max-width: 900px) {
  .about-photo img,
  .hero-photo img {
    aspect-ratio: 21 / 9;
  }
}

@media (max-width: 640px) {
  /* Slightly taller on phones so faces stay large enough to make out */
  .about-photo img,
  .hero-photo img {
    aspect-ratio: 16 / 9;
  }
}

/* --- About: live membership count + Join Today --------------------------- */
.about-join {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.about-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.about-count-num {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-count-label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-count-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .about-join { margin-top: 2rem; gap: 1.25rem; }
  .about-join .btn { width: 100%; max-width: 320px; }
  .about-count-label { font-size: 0.85rem; letter-spacing: 1px; }
}
/* --- Registration stepper on phones --------------------------------------
   Shrink so all seven steps fit a 360px screen instead of scrolling. */
@media (max-width: 560px) {
  .stepper { min-width: 0; width: 100%; justify-content: space-between; }
  .stepper-scroll-container { overflow-x: visible; padding: 0.5rem 0; margin-top: 1rem; }
  .step-circle { width: 26px; height: 26px; font-size: 0.75rem; border-width: 1.5px; }
  .step-text { display: none; }
  .step-line { margin: 0 0.25rem; margin-top: 0; min-width: 6px; }
  .step-item { gap: 0; }
}
/* ==========================================================================
   ABOUT AREA - OPTION C
   Centred introduction, three supporting cards, then a large centred spirit
   statement. Scoped to the About sections on the home page.
   ========================================================================== */

/* --- Introduction ------------------------------------------------------- */
.about-intro {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.about-intro .section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.about-intro p {
  color: var(--text-sub);
  font-size: 1.08rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}

.about-intro p:last-of-type {
  margin-bottom: 0;
}

/* --- Badges ------------------------------------------------------------- */
.about-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 2rem 0 0;
  padding: 0;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(245, 129, 31, 0.09);
  border: 1px solid rgba(245, 129, 31, 0.26);
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 700;
}

.about-tag i {
  color: var(--accent-cyan);
}

/* --- Three cards -------------------------------------------------------- */
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.about-card-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  text-align: left;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.about-card-item:hover {
  border-color: rgba(245, 129, 31, 0.45);
  transform: translateY(-4px);
}

.about-card-item i {
  display: block;
  font-size: 1.35rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.about-card-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
  color: var(--text-main);
}

.about-card-item p {
  color: var(--text-sub);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}

/* --- Spirit ------------------------------------------------------------- */
.about-spirit-block {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.about-spirit-statement {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  line-height: 1.22;
  letter-spacing: -0.4px;
  margin: 0 0 1.25rem;
  color: var(--text-main);
}

.about-spirit-sub {
  color: var(--text-sub);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

.about-pullquote {
  margin: 2rem auto 0;
  padding: 1.35rem 1.5rem;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  color: var(--accent-lime);
  background: transparent;
  border-left: 0;
  border-radius: 0;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
  .about-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .about-cards > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .about-intro p { font-size: 1rem; }
  .about-badges { gap: 0.5rem; margin-top: 1.5rem; }
  .about-tag { font-size: 0.82rem; padding: 0.45rem 0.8rem; }

  .about-cards { grid-template-columns: 1fr; gap: 1rem; }
  .about-cards > :last-child:nth-child(odd) { grid-column: auto; }
  .about-card-item { padding: 1.5rem 1.25rem; }

  .about-spirit-sub { font-size: 1rem; }
  .about-pullquote { padding: 1.1rem 1rem; }
}
/* ==========================================================================
   HOME PAGE - CENTRED ALIGNMENT
   Every block on the home page shares one centre axis. The hero photo caption,
   the Trackathon teaser body and the About cards were the remaining
   left-aligned blocks.
   ========================================================================== */

#page-home,
#page-home .hero-content,
#page-home .section-header,
#page-home .about-intro,
#page-home .about-spirit-block,
#page-home .about-pullquote {
  text-align: center;
}

/* --- Hero photo caption -------------------------------------------------- */
#page-home .hero-photo figcaption {
  text-align: center;
}

/* --- Trackathon teaser --------------------------------------------------- */
#page-home .pride-event-card,
#page-home .pride-event-body {
  text-align: center;
}

#page-home .pride-event-body h3,
#page-home .pride-event-body > p {
  text-align: center;
}

#page-home .pride-event-points {
  align-items: center;
}

#page-home .pride-event-points li {
  justify-content: center;
  text-align: center;
}

/* Keep the CTA centred under its column */
#page-home .pride-event-body .btn {
  margin-left: auto;
  margin-right: auto;
}

/* --- About cards --------------------------------------------------------- */
#page-home .about-card-item {
  text-align: center;
  align-items: center;
}

#page-home .about-card-item i,
#page-home .about-card-item h3,
#page-home .about-card-item p {
  text-align: center;
}

#page-home .about-card-item i {
  margin-left: auto;
  margin-right: auto;
}

/* --- Badges and CTA rows stay centred ------------------------------------ */
#page-home .about-badges,
#page-home .about-join,
#page-home .hero-buttons {
  justify-content: center;
}
/* ==========================================================================
   MEMBER COUNT - HERO STATISTIC
   The count is the strongest proof point on the page, so give it real scale
   and a panel of its own rather than letting it sit as small text.
   ========================================================================== */

#page-home .about-join {
  max-width: 620px;
  margin: 3rem auto 0;
  padding: 2.75rem 2rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  position: relative;
  overflow: hidden;
}

/* A single accent stripe across the top, instead of a heavy gradient fill */
#page-home .about-join::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
}

#page-home .about-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

#page-home .about-count-num {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(3.6rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -3px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* The "+" reads as "and growing" without extra words */
#page-home .about-count-num::after {
  content: "+";
  -webkit-text-fill-color: var(--accent-lime);
  color: var(--accent-lime);
  font-size: 0.5em;
  vertical-align: super;
  margin-left: 0.05em;
}

#page-home .about-count-label {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-main);
}

#page-home .about-count-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

#page-home .about-join .btn {
  min-width: 260px;
}

@media (max-width: 700px) {
  #page-home .about-join {
    max-width: 100%;
    margin-top: 2rem;
    padding: 2rem 1.25rem 1.75rem;
    gap: 1.35rem;
  }
  #page-home .about-count-num { letter-spacing: -1.5px; }
  #page-home .about-count-label { letter-spacing: 2.5px; }
  #page-home .about-join .btn { width: 100%; min-width: 0; max-width: 320px; }
}
/* --- Edit member modal --------------------------------------------------- */
.edit-member-ref {
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background: rgba(245, 129, 31, 0.08);
  border: 1px solid rgba(245, 129, 31, 0.25);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 0.95rem;
}

.edit-form .form-grid {
  margin-bottom: 1rem;
}

.edit-form .form-group label {
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .edit-form .form-grid { grid-template-columns: 1fr; }
}
/* --- Inline field preview (edit modal) ----------------------------------- */
.field-preview {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.field-preview.is-valid {
  color: var(--text-sub);
}

.field-preview.is-valid a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.field-preview.is-invalid {
  color: var(--accent-rose);
}

.field-preview i {
  margin-right: 0.35rem;
}

.field-preview .preview-muted {
  color: var(--text-muted);
}