/* BT42.195 km Race 2026 — Mobile-first styles */
:root {
  --primary: #1B4F72;
  --primary-dark: #154360;
  --accent: #27AE60;
  --accent-dark: #1E8449;
  --orange: #E67E22;
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --text: #1C2833;
  --text-muted: #5D6D7E;
  --border: #D5D8DC;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(27, 79, 114, 0.08);
  --header-h: 60px;
  --tabbar-h: 64px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--tabbar-h);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  height: var(--header-h);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}

.logo-mark {
  background: var(--accent);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.logo-year {
  font-weight: 500;
  opacity: 0.85;
  font-size: 0.85em;
  margin-left: 2px;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.2s;
}

.nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--primary-dark);
  flex-direction: column;
  padding: 1rem;
  gap: 0.25rem;
}

.nav.open { display: flex; }

.nav a {
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
}

.nav a:hover, .nav a.active { background: rgba(255,255,255,0.12); }

.nav-cta {
  background: var(--accent) !important;
  text-align: center;
  margin-top: 0.5rem;
}

/* Pages */
.page { display: none; animation: fadeIn 0.25s ease; }
.page.active { display: block; }

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

/* Hero */
.hero {
  background: linear-gradient(145deg, var(--primary) 0%, #154360 60%, #0E2F44 100%);
  color: #fff;
  padding: 0.55rem 1.25rem 0.65rem;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: center;
}
.hero-content { max-width: none; margin: 0; position: relative; z-index: 1; }
.hero-aside { display: none; }
.hero-aside { display: none; }

.hero-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 0.2rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

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

.hero-sub {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 0.15rem;
  opacity: 0.95;
}

.hero-date {
  font-size: 1.1rem;
  margin-top: 0.75rem;
  font-weight: 500;
}

.hero-tagline {
  margin-top: 0.15rem;
  opacity: 0.8;
  font-size: 0.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.countdown {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.55rem;
  flex-wrap: wrap;
}

.cd-item {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 0.55rem 1rem;
  min-width: 78px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.35);
}

.cd-item span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
}

.cd-item label {
  font-size: 0.7rem;
  text-transform: uppercase;
  opacity: 0.8;
  letter-spacing: 0.04em;
}

.hero-visual {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
}

.btn-block { width: 100%; }

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

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.75rem;
  color: var(--primary);
}

/* Race cards */
.race-cards {
  display: grid;
  gap: 1.25rem;
}

.race-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary);
}

.race-card.tenk { border-top-color: var(--orange); }
.race-card.fivek { border-top-color: var(--accent); }

.race-dist {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.race-card.tenk .race-dist { color: var(--orange); }
.race-card.fivek .race-dist { color: var(--accent); }

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

.race-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.race-card ul {
  list-style: none;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.race-card ul li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

/* Features */
.features {
  display: grid;
  gap: 1.25rem;
}

.feature {
  text-align: center;
  padding: 1rem;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--primary);
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Page header */
.page-header {
  background: var(--primary);
  color: #fff;
  padding: 1.75rem 0;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

.page-header p {
  opacity: 0.85;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

/* Info cards & tables */
.info-grid {
  display: grid;
  gap: 1.25rem;
}

.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.info-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.info-table td {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

.info-table td:first-child {
  color: var(--text-muted);
  width: 40%;
}

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

.notice {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: #EBF5FB;
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
}

/* Registration form */
.register-layout {
  display: grid;
  gap: 1.5rem;
}

.reg-form {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.reg-form h2 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge-beta {
  font-size: 0.7rem;
  background: var(--orange);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.15);
}

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

.form-group.checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.88rem;
}

.form-group.checkbox input {
  width: auto;
  margin-top: 0.2rem;
}

.form-foot {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.reg-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-card {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar-card h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.status-pill {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.status-pill.open {
  background: #D5F5E3;
  color: #1E8449;
}

.checklist {
  list-style: none;
  font-size: 0.9rem;
}

.checklist li {
  padding: 0.25rem 0;
}

.checklist li::before {
  content: "• ";
  color: var(--accent);
  font-weight: 700;
}

.success-msg {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #D5F5E3;
  border-radius: var(--radius);
  text-align: center;
}

.success-msg.hidden { display: none; }

/* Course */
.course-placeholder {
  margin-bottom: 1.5rem;
}

.map-mock {
  background: linear-gradient(135deg, #D4E6F1, #EBF5FB);
  border: 2px dashed var(--primary);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
}

.map-mock p:first-child {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.map-note {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.simple-list {
  list-style: none;
  font-size: 0.95rem;
}

.simple-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

.simple-list li:last-child { border-bottom: none; }

.two-col { }

/* Sponsors */
.sponsors-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.sponsor-tiers {
  display: grid;
  gap: 1.5rem;
}

.tier h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.sponsor-slots {
  display: grid;
  gap: 0.75rem;
}

.sponsor-slot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-weight: 600;
  text-align: center;
  color: var(--primary);
}

.sponsor-slot.open {
  border-style: dashed;
  color: var(--text-muted);
  font-weight: 500;
}

.cta-box {
  margin-top: 2rem;
  background: var(--primary);
  color: #fff;
  padding: 1.75rem;
  border-radius: var(--radius);
  text-align: center;
}

.cta-box h3 { margin-bottom: 0.5rem; }
.cta-box p { opacity: 0.9; margin-bottom: 1.25rem; font-size: 0.95rem; }
.cta-box .btn-primary { background: var(--accent); }

/* Accordion */
.accordion details {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.accordion summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--primary);
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion details[open] summary {
  border-bottom: 1px solid var(--border);
}

.accordion details p,
.accordion details ul {
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.accordion ul { padding-left: 2.5rem; }

/* Tab bar (mobile app feel) */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tabbar-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.35rem;
}

.tab.active {
  color: var(--primary);
}

.tab-icon { font-size: 1.25rem; line-height: 1; }

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 2rem 0 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer p { margin-bottom: 0.25rem; }
.footer-note { opacity: 0.6; font-size: 0.8rem; margin-top: 0.75rem; }

/* Desktop */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .nav-toggle { display: none; }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    padding: 0;
    gap: 0.25rem;
    align-items: center;
  }

  .nav a {
    padding: 0.35rem 0.55rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .nav-cta {
    margin-top: 0;
    margin-left: 0.5rem;
    padding: 0.45rem 1.1rem !important;
  }

  .hero {
    padding: 0.55rem 1.5rem 0.65rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    align-items: center;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
  }
  .hero-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.1rem;
    margin-top: 0.35rem;
  }
  .hero-actions { margin-top: 0; }
  .countdown { margin-top: 0; }
  .hero-tagline { display: none; }
  .hero-aside { display: none; }
  .hero-visual { display: block; }
  .hero-badge { display: flex !important; }
  #page-home > .section.container .race-morning-card { display: block; }

  .hero-visual {
    display: block;
  }

  .hero-badge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 3px solid rgba(255,255,255,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .badge-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
  }

  .badge-unit {
    font-size: 0.9rem;
    opacity: 0.8;
  }

  .race-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .features {
    grid-template-columns: repeat(4, 1fr);
  }

  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .register-layout {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }

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

  .sponsor-tiers {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 4.5rem; }
}

/* ========== CONTROL ROOM ========== */
.control-entry {
  position: fixed;
  bottom: calc(var(--tabbar-h) + 12px);
  right: 12px;
  z-index: 80;
  background: var(--primary-dark);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  opacity: 0.85;
}
.control-entry:hover { opacity: 1; }

@media (min-width: 768px) {
  .control-entry { bottom: 24px; right: 24px; }
}

#page-control .page-header {
  background: #0E2F44;
}

.control-gate {
  max-width: 360px;
  margin: 3rem auto;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.control-gate h2 { color: var(--primary); margin-bottom: 0.5rem; }
.control-gate p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.control-gate input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.control-room { padding-bottom: 2rem; }

.ctrl-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 6;
  pointer-events: auto;
}
.ctrl-tab { pointer-events: auto; cursor: pointer; }
.ctrl-tab {
  flex-shrink: 0;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}
.ctrl-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.ctrl-panel { display: none; }
.ctrl-panel.active { display: block; }

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 700px) {
  .metrics-grid { grid-template-columns: repeat(4, 1fr); }
}
.metric-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.metric-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.85;
  margin-top: 0.15rem;
}

.progress-wrap {
  background: #E8EEF2;
  border-radius: 999px;
  height: 10px;
  margin: 0.75rem 0 1.25rem;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.4s ease;
  width: 0%;
}

.next-meeting-box {
  background: #EBF5FB;
  border-left: 4px solid var(--primary);
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Checklist */
.ctrl-cat { margin-bottom: 1.5rem; }
.ctrl-cat h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}
.ctrl-task {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.6rem 0.5rem;
  border-radius: 8px;
  background: var(--surface);
  margin-bottom: 0.35rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ctrl-task.done { opacity: 0.7; }
.ctrl-task.done .task-title { text-decoration: line-through; }
.ctrl-task.doing { border-left: 3px solid var(--orange); }
.ctrl-task.blocked { border-left: 3px solid #E74C3C; background: #FDF2F2; }
.status-btn {
  background: none;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.task-title { font-size: 0.9rem; font-weight: 500; }
.task-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Meetings */
.ctrl-meeting {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ctrl-meeting.past { opacity: 0.65; }
.ctrl-meeting summary {
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  font-weight: 600;
  list-style: none;
}
.ctrl-meeting summary::-webkit-details-marker { display: none; }
.m-num {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.m-date { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.m-focus { flex: 1; }
.m-body {
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}
.m-body ol { padding-left: 1.25rem; margin-top: 0.5rem; }

/* Tables */
.sponsor-table-wrap, .ctrl-table { width: 100%; overflow-x: auto; }
.ctrl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ctrl-table th {
  background: var(--primary);
  color: #fff;
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
}
.ctrl-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.ctrl-table tr:last-child td { border-bottom: none; }
.ctrl-table .num { text-align: right; white-space: nowrap; }
.ctrl-table .total-row { background: #EBF5FB; }
.ctrl-table tr.highlight { background: #D5F5E3; }
.ctrl-table select {
  padding: 0.3rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  max-width: 130px;
}

.budget-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .budget-grid { grid-template-columns: 1.4fr 1fr; }
}
.budget-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.target-list {
  list-style: none;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}
.target-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.target-list li:last-child { border-bottom: none; }

#ctrl-notes {
  width: 100%;
  min-height: 140px;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.ctrl-section-title {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.hidden { display: none !important; }

.dash-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.dash-edit-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.dash-edit-grid label.full { grid-column: 1 / -1; }
.dash-edit-grid input {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  font-family: inherit;
}
.ctrl-task.critical-dl { border-left: 3px solid #C0392B; }
@media (max-width: 600px) {
  .dash-edit-grid { grid-template-columns: 1fr; }
}


.chair-only-hidden { display: none !important; }

.ctrl-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.role-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.role-badge.committee {
  background: #D4E6F1;
  color: #1B4F72;
}
.role-badge.chair {
  background: #D5F5E3;
  color: #1E8449;
}
.btn-logout {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-muted);
}
.btn-logout:hover { border-color: var(--primary); color: var(--primary); }


.budget-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.tentative-badge {
  display: inline-block;
  background: #FCF3CF;
  color: #7D6608;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}
.edit-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.budget-input {
  width: 100%;
  max-width: 140px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: right;
}
.role-name-input {
  width: 100%;
  max-width: 280px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}


.meet-link-banner {
  background: #E8F6F3;
  border: 1px solid #1ABC9C;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.meet-link-banner a {
  color: #0E6655;
  font-weight: 600;
  word-break: break-all;
}


.pay-box {
  background: #EAF2F8;
  border-radius: 10px;
  padding: 1rem;
  margin: 0.75rem 0;
  text-align: left;
}
.pay-code {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.attend-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.attend-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  cursor: pointer;
}
.attend-item input { margin-top: 0.2rem; }
.attend-count {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.attendance-card summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}


.pay-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.pay-ok { background: #D5F5E3; color: #1E8449; }
.pay-wait { background: #FCF3CF; color: #7D6608; }
.pay-no { background: #FADBD8; color: #922B21; }
.btn-mini {
  font-size: 0.72rem;
  padding: 0.25rem 0.45rem;
  margin: 0.1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
}
.btn-mini:hover { border-color: var(--primary); color: var(--primary); }
.btn-mini:disabled { opacity: 0.4; cursor: not-allowed; }
.actions-cell { white-space: nowrap; }

.sig-upload-box {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #ddd);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.sig-upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 700px) {
  .sig-upload-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.sig-upload-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted, #666);
}
.sig-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.sig-prev {
  border: 1px dashed var(--border, #ccc);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  text-align: center;
  font-size: 0.75rem;
  min-width: 120px;
}
.sig-prev img {
  display: block;
  max-height: 40px;
  max-width: 140px;
  margin: 0 auto 0.25rem;
  object-fit: contain;
}
.sig-prev.empty { color: var(--text-muted, #888); }

.mpamba-confirm-card {
  background: #2C3E50;
  color: #ECF0F1;
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  margin: 0.75rem 0;
  text-align: left;
}
.mpamba-confirm-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: #fff;
}
.mpamba-steps {
  margin: 0.4rem 0 0.8rem 1.1rem;
  padding: 0;
  line-height: 1.55;
}
.mpamba-steps code {
  background: #1A252F;
  color: #F9E79F;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.mpamba-sms-preview {
  background: #1A252F;
  border-radius: 10px;
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
}
.sms-label { font-size: 0.78rem; opacity: 0.8; margin: 0 0 0.4rem; }
.sms-body { margin: 0; font-size: 0.95rem; line-height: 1.45; text-align: center; }
.post-pay-info { text-align: left; margin-top: 1rem; font-size: 0.9rem; }
.post-pay-info ul { margin: 0.35rem 0 0 1.1rem; padding: 0; }


.sync-bar {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #ddd);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  align-items: center;
}
.sync-actions input {
  flex: 1;
  min-width: 140px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border, #ccc);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.85rem;
}

.live-sync-status {
  font-size: 0.78rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}
.live-sync-status.ok {
  background: #d5f5e3;
  color: #1e8449;
}
.live-sync-status.wait {
  background: #fef9e7;
  color: #b7950b;
}


/* Team member row: name | race | DOB | remove — one row */
.team-member-row {
  margin-bottom: 0.5rem;
}
.team-member-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 0.9fr) auto;
  gap: 0.35rem;
  align-items: center;
}
.team-member-grid input,
.team-member-grid select {
  width: 100%;
  min-width: 0;
  font-size: 16px; /* reduces iOS zoom-on-focus */
  padding: 0.5rem 0.4rem;
  box-sizing: border-box;
}
.team-member-grid .team-member-remove {
  min-width: 2.25rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
}
@media (max-width: 420px) {
  .team-member-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 0.95fr) auto;
    gap: 0.25rem;
  }
  .team-member-grid input,
  .team-member-grid select {
    font-size: 15px;
    padding: 0.45rem 0.3rem;
  }
}


/* Partnership pitch */
.pitch-hero { background: linear-gradient(135deg,#0E2A44,#1B4F72); color:#fff; border-radius:16px; padding:1.5rem 1.35rem; margin-bottom:1.25rem; }
.pitch-kicker { letter-spacing:.12em; text-transform:uppercase; font-size:.72rem; opacity:.85; margin:0 0 .5rem; }
.pitch-hero h2 { margin:0 0 .6rem; font-size:1.45rem; line-height:1.25; }
.pitch-hero p { margin:0; opacity:.95; }
.pitch-glance { display:grid; grid-template-columns:repeat(4,1fr); gap:.6rem; margin:1rem 0 1.5rem; }
.pitch-glance div { background:#f4f7fb; border:1px solid var(--border,#d5dde6); border-radius:12px; padding:.75rem; text-align:center; }
.pitch-glance strong { display:block; color:#1B4F72; font-size:1.05rem; }
.pitch-glance span { font-size:.78rem; color:#556; }
.pitch-h { margin:1.4rem 0 .7rem; color:#1B4F72; }
.pitch-grid4 { display:grid; grid-template-columns:repeat(4,1fr); gap:.75rem; }
.pitch-grid4 article { border:1px solid var(--border,#d5dde6); border-radius:12px; padding:.9rem; background:#fff; }
.pitch-grid4 span { display:block; font-weight:700; color:#27AE60; margin-bottom:.35rem; }
.pitch-grid4 h4 { margin:0 0 .35rem; }
.pitch-grid4 p { margin:0; font-size:.88rem; color:#444; }
.pitch-tiers { display:grid; grid-template-columns:repeat(4,1fr); gap:.75rem; }
.ptier { border-radius:14px; padding:1rem; color:#fff; min-height:100%; }
.ptier h4 { margin:0; letter-spacing:.04em; text-transform:uppercase; }
.ptier-price { font-size:1.2rem; font-weight:700; margin:.35rem 0 .5rem; }
.ptier p { margin:0; font-size:.82rem; line-height:1.4; opacity:.95; }
.ptier.platinum { background:linear-gradient(160deg,#2c3e50,#1B4F72); }
.ptier.gold { background:linear-gradient(160deg,#B7950B,#7D6608); }
.ptier.silver { background:linear-gradient(160deg,#5D6D7E,#34495E); }
.ptier.bronze { background:linear-gradient(160deg,#A04000,#6E2C00); }
.pitch-cta .pitch-contact { margin: .75rem 0 1rem; }
@media (max-width:900px) {
  .pitch-glance, .pitch-grid4, .pitch-tiers { grid-template-columns:1fr 1fr; }
}
@media (max-width:560px) {
  .pitch-glance, .pitch-grid4, .pitch-tiers { grid-template-columns:1fr; }
}

/* Hide verify/reject once payment is decided */
.pay-status.pay-ok + .actions-cell .pay-verify,
.pay-status.pay-ok + .actions-cell .pay-reject,
.pay-status.pay-no + .actions-cell .pay-verify,
.pay-status.pay-no + .actions-cell .pay-reject {
  display: none !important;
}

.route-map-wrap { background:#fff; border:1px solid var(--border,#d5dde6); border-radius:16px; overflow:auto; margin-bottom:1.25rem; }
.route-map { width:100%; height:auto; display:block; min-width:640px; }
.route-steps { padding-left:1.15rem; }
.route-steps li { margin:0.35rem 0; }

.gis-map { height: min(72vh, 560px); width:100%; border-radius:14px; border:1px solid #1B4F72; z-index:1; }
.gis-toolbar { display:flex; justify-content:space-between; gap:.75rem; flex-wrap:wrap; font-size:.82rem; margin:0 0 .4rem; }
.kiosk-icon { background:#0b6bd3; color:#fff; border:2px solid #fff; border-radius:4px; width:28px; height:28px; text-align:center; line-height:24px; font-size:14px; box-shadow:0 1px 4px rgba(0,0,0,.4); }

.course-embed {
  width: 100%;
  height: calc(100vh - 148px);
  min-height: 70vh;
  border: 0;
  border-radius: 12px;
  background: #0b1f2c;
  display: block;
}
body.course-full .footer { display: none; }
body.course-full #page-course .page-header { padding: 0.45rem 0; }
body.course-full #page-course .page-header h1 { font-size: 1.05rem; margin: 0; }
body.course-full #page-course .page-header p { font-size: 0.78rem; margin: 0.15rem 0 0; }
body.course-full #page-course .container.section { padding: 0.35rem 0.5rem 0; }
@media (max-width: 800px) {
  body.course-full #page-course .page-header { display: none; }
  body.course-full #page-course .container.section { padding: 0; margin: 0; max-width: none; }
  body.course-full .course-embed {
    position: fixed !important;
    left: 0; right: 0;
    top: 56px;
    width: 100% !important;
    height: calc(100dvh - 118px) !important;
    min-height: 70vh !important;
    border-radius: 0;
    z-index: 20;
  }
}


.form-embed-wrap { background:#fff; border-radius:14px; overflow:hidden; border:1px solid var(--border,#d5dde6); }
.gform-embed { width:100%; height:min(80vh, 820px); border:0; display:block; background:#fff; }

.vol-hero {
  background: radial-gradient(1200px 420px at 10% -20%, #3ddc97 0%, transparent 50%),
              linear-gradient(135deg, #06314a 0%, #0b4f6c 45%, #12805c 100%);
  color: #fff;
  padding: 2.4rem 0 2.6rem;
}
.vol-kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.85;
  margin: 0 0 0.6rem;
}
.vol-hero h1 {
  font-size: clamp(1.8rem, 6vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 0.8rem;
  font-weight: 800;
}
.vol-hero h1 span { color: #b8ffd6; }
.vol-lead { max-width: 36rem; font-size: 1.05rem; opacity: 0.95; margin: 0 0 1.2rem; }
.vol-cta { font-size: 1.05rem; padding: 0.85rem 1.4rem; }
.vol-section-title { margin: 0 0 1rem; font-size: 1.35rem; }
.vol-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.vol-role {
  background: #f3fbf7;
  border: 1px solid #cfe8db;
  border-radius: 16px;
  padding: 0.9rem 0.85rem 1rem;
}
.vol-emoji { font-size: 1.5rem; display: block; margin-bottom: 0.35rem; }
.vol-role h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.vol-role p { margin: 0; font-size: 0.88rem; color: #355; }
.vol-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.45rem;
}
.vol-steps li {
  background: #fff8e8;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
}
.vol-form { margin-top: 0.5rem; }

.vol-mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 4px;
  background: #06281a;
}
.vol-mosaic img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  filter: saturate(1.15) contrast(1.05);
}
@media (max-width: 700px) {
  .vol-mosaic { grid-template-columns: 1fr 1fr; }
  .vol-mosaic img { height: 120px; }
}

.org-bar {
  background: #fff;
  border-bottom: 1px solid #e6eef4;
  padding: 1rem 0;
}
.org-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: flex-end;
  justify-content: space-between;
}
.org-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #6b7c86;
  margin-bottom: 0.4rem;
}
.org-logos { display: flex; align-items: center; gap: 1.25rem; }
.org-logo { object-fit: contain; background: #fff; }
.org-logo-official { height: 52px; width: auto; max-width: 140px; }
.org-logo-partner { height: 40px; width: auto; max-width: 160px; }
.org-group-partner {
  border-left: 1px solid #e6eef4;
  padding-left: 1.5rem;
}
.footer-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: center;
  margin: 0.85rem 0;
}
.footer-official img { height: 36px; width: auto; margin: 0 0.4rem; object-fit: contain; }
.footer-partner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 1px solid rgba(255,255,255,0.25);
  padding-left: 1rem;
}
.footer-partner span {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
.footer-partner img { height: 28px; width: auto; background: #fff; padding: 3px 6px; border-radius: 4px; }
.confirmed-partner {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f7faf8;
  border: 1px solid #e2eee6;
  border-radius: 12px;
}
@media (max-width: 700px) {
  .org-group-partner { border-left: 0; padding-left: 0; }
  .org-logo-official { height: 42px; }
}

.hero-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin-top: 0.4rem;
}
.hero-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: flex-end;
  margin-top: 1.35rem;
}
.hero-brand-group span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
  margin-bottom: 0.35rem;
}
.hero-brand-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.hero-brand-row img {
  height: 48px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}
.hero-brand-partner {
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,0.25);
}
.hero-brand-partner img { height: 44px; max-width: 170px; }
@media (max-width: 700px) {
  .hero-brand-partner { border-left: 0; padding-left: 0; }
  .hero-brand-row img { height: 40px; }
}

.logo-wordmark {
  height: 42px;
  width: auto;
  max-width: min(280px, 58vw);
  object-fit: contain;
  display: block;
}
.hero-wordmark { margin: 0 0 0.4rem; }
.hero-wordmark img {
  width: min(260px, 70%);
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
  background: transparent;
  padding: 0;
}

.footer-wordmark {
  height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  background: transparent;
  margin: 0 auto 0.6rem;
  display:block;
}

.btn-mini.race-filter.active {
  background: #1B4F72;
  color: #fff;
  border-color: #1B4F72;
}

/* Race morning card + lockup */
.race-morning-card {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1.4rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.rm-lockup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.75rem;
}
.rm-lockup img { height: 52px; width: auto; object-fit: contain; }
.rm-lockup .rm-wordmark { height: 44px; max-width: 42%; }
.rm-kicker { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.race-morning-card h2 { margin: 0.2rem 0 0.8rem; color: var(--primary); }
.rm-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 0.75rem;
}
.rm-times div {
  background: #f0f6fb;
  border-radius: 10px;
  text-align: center;
  padding: 0.65rem 0.3rem;
}
.rm-times strong { display: block; font-size: 1.35rem; color: var(--primary); }
.rm-times span { font-size: 0.8rem; color: var(--text-muted); }
.rm-fees, .rm-cut { font-size: 0.92rem; margin: 0.25rem 0; }
.rm-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.75rem; }
.hero-morning {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}
.hero-morning .rm-kicker { color: rgba(255,255,255,0.8); }
.hero-morning .rm-times div { background: rgba(255,255,255,0.12); }
.hero-morning .rm-times strong { color: #fff; }
.hero-morning .rm-times span { color: rgba(255,255,255,0.8); }
.hero-morning .rm-fees { color: #fff; font-size: 0.85rem; }
.hero-morning .btn-outline { color: #fff; border-color: rgba(255,255,255,0.45); }
.results-lockup { max-width: 520px; margin: 0 auto 0.5rem; }

/* Stadium / projector results */
body.stadium-mode { background: #0b1220; color: #f4f7fb; }
body.stadium-mode .header,
body.stadium-mode .tabbar,
body.stadium-mode .control-entry { display: none !important; }
body.stadium-mode { padding: 0; }
body.stadium-mode #page-results { display: block !important; min-height: 100vh; }
body.stadium-mode #page-results .page-header { background: #0b1220; }
body.stadium-mode #page-results h1 { font-size: 2.4rem; color: #fff; }
body.stadium-mode #public-results { max-width: none; padding: 0 24px 40px; }
body.stadium-mode #public-results h2 { font-size: 1.8rem; color: #f5d76e; margin: 1.2rem 0 0.4rem; }
body.stadium-mode #public-results table { font-size: 1.35rem; }
body.stadium-mode #public-results td, body.stadium-mode #public-results th { padding: 0.55rem 0.7rem; color: #fff; }
body.stadium-mode #public-results tr:nth-child(-n+3) td { color: #f5d76e; font-weight: 700; }

/* Official programme — printed sheet greens */
#page-programme .page-header { background: #1B5E20; }
#page-programme .page-header p { color: #c8e6c9; }
.programme-table { width: 100%; border-collapse: collapse; }
.programme-table th {
  background: #1B5E20;
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.programme-table td {
  padding: 12px 16px;
  vertical-align: top;
  color: #1C2833;
  border-bottom: 1px solid #c8e6c9;
}
.programme-table td:first-child { font-weight: 700; white-space: nowrap; width: 140px; color: #1B5E20; }
.programme-table tbody tr:nth-child(odd) td { background: #e8f5e9; }
.programme-table tbody tr:nth-child(even) td { background: #ffffff; }
.programme-table ul { margin: 0.35rem 0 0 1.1rem; }

.reg-close-banner{display:block;width:100%;box-sizing:border-box;background:#c0392b;color:#fff;font-size:clamp(1.05rem,2.6vw,1.55rem);font-weight:800;letter-spacing:.01em;text-align:center;padding:0.85rem 1.1rem;line-height:1.35;box-shadow:0 4px 16px rgba(0,0,0,.18)}
.reg-close-banner.reg-closed{background:#6b1c14}

.survey-banner{display:block;width:100%;box-sizing:border-box;background:#145a32;color:#F4D03F;font-size:clamp(1.05rem,2.6vw,1.55rem);font-weight:800;text-align:center;padding:0.9rem 1.1rem;line-height:1.35}
.survey-banner a{color:#F4D03F;text-decoration:underline}
.survey-banner.soon{background:#1a5276;color:#fff}
.survey-banner.soon a{color:#fff}
