/* ── Google Fonts ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Karla:ital,wght@0,400;0,500;0,700;1,400&display=swap');

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

:root {
  /* South Valley Navy Palette (from logo) */
  --navy:       #1d3a55;   /* logo navy */
  --navy-deep:  #122438;   /* near-black navy for dark bands */
  --navy-md:    #2b527a;   /* mid navy */
  --navy-lt:    #4a708f;   /* steel blue */
  --powder:     #c9d8e5;   /* powder blue border/fill */
  --powder-lt:  #d9e3ec;   /* logo oval blue-grey */
  --powder-xl:  #f3f6fa;   /* pale powder */
  --white:      #ffffff;
  --off-white:  #eef2f6;   /* cool light-blue background */

  /* Accents */
  --gold:       #4a708f;   /* steel-blue accent */
  --gold-lt:    #a9c6db;   /* pale steel accent */
  --red:        #c0504a;   /* muted clay red */
  --red-lt:     #f5d5cc;
  --green-ok:   #2f7d57;
  --green-lt:   #d2e8da;

  /* UI */
  --text:       #22303e;
  --text-md:    #3c5064;
  --text-lt:    #5d7488;
  --border:     #c3d3e0;
  --border-lt:  #dde7ef;
  --shadow-sm:  0 1px 4px rgba(18,36,56,.07), 0 2px 8px rgba(18,36,56,.05);
  --shadow:     0 4px 16px rgba(18,36,56,.10), 0 2px 6px rgba(18,36,56,.07);
  --shadow-md:  0 6px 20px rgba(18,36,56,.12), 0 2px 8px rgba(18,36,56,.07);
  --shadow-lg:  0 8px 32px rgba(18,36,56,.14), 0 4px 12px rgba(18,36,56,.08);
  --radius:     0px;
  --radius-lg:  0px;

  /* Typography */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans:  'Karla', 'Segoe UI', sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  /* full-bleed bands use 100vw; keep any scrollbar overshoot hidden */
  overflow-x: hidden;
}

/* Subtle grain overlay for crafted, tactile feel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Header ───────────────────────────────────────── */
header {
  background: var(--navy);
  color: white;
  box-shadow: 0 2px 12px rgba(28,63,99,.18);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--gold);
  overflow: visible;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 0 2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  height: 66px;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  color: white;
  flex-shrink: 0;
}

.logo img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  transition: transform .4s cubic-bezier(.175,.885,.32,1.275);
}
.logo:hover img { transform: scale(1.1) rotate(-4deg); }

.logo-text { line-height: 1.1; }
.logo-text .name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: white;
  display: block;
  letter-spacing: .01em;
}
.logo-text .tagline {
  font-size: .68rem;
  color: var(--gold-lt);
  letter-spacing: .18em;
  text-transform: uppercase;
  display: block;
}

nav {
  margin-left: auto;
  display: flex;
  gap: .1rem;
  align-items: center;
  min-width: 0;
  padding-right: .5rem;
}
nav::-webkit-scrollbar { display: none; }

.nav-link {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  padding: .5rem .7rem;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 400;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: background .15s, color .15s;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.nav-link svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .8; }
.nav-link:hover { background: rgba(255,255,255,.1); color: white; }
.nav-link.active { background: rgba(255,255,255,.14); color: white; font-weight: 500; }

.nav-divider { width: 1px; height: 20px; background: rgba(255,255,255,.15); margin: 0 .3rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#admin-btn {
  background: var(--gold);
  color: white;
  border: none;
  padding: .45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: background .15s, transform .15s;
  font-family: var(--font-sans);
  letter-spacing: .02em;
}
#admin-btn svg { width: 14px; height: 14px; }
#admin-btn:hover { background: #a07840; transform: translateY(-1px); }

/* ── Nav dropdown ─────────────────────────────────── */
.nav-dropdown { position: relative; flex-shrink: 0; }
.nav-dropdown-toggle { gap: .3rem; }
.nav-caret { transition: transform .2s; flex-shrink: 0; }
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  min-width: 148px;
  z-index: 200;
}
.nav-dropdown-menu::before {
  content: '';
  display: block;
  background: white;
  border: 1px solid var(--powder);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(28,63,99,.15);
  position: absolute;
  inset: 8px 0 0 0;
  z-index: -1;
}
.nav-dropdown-menu .nav-dropdown-item:first-child { margin-top: .35rem; }
.nav-dropdown-menu .nav-dropdown-item:last-child  { margin-bottom: .35rem; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-md);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-dropdown-item svg { color: var(--navy-lt); flex-shrink: 0; }
.nav-dropdown-item:hover { background: var(--powder-lt); color: var(--navy); }
.nav-dropdown-item.active { background: var(--powder-lt); color: var(--navy); font-weight: 600; }

/* Admin nav link styling */
.nav-admin { color: var(--gold-lt) !important; font-weight: 700; }
.nav-admin:hover { background: rgba(63,111,160,.15) !important; color: white !important; }
.nav-admin.active { background: rgba(63,111,160,.2) !important; color: white !important; }

/* ── Layout ───────────────────────────────────────── */
main { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.page { display: none; }
.page.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── Landing page ─────────────────────────────────── */

/* Page banner (interior pages) — full-bleed editorial band.
   Add .page-banner--photo + an <img class="banner-media"> for a photo backdrop. */
.page-banner {
  position: relative;
  width: 100vw;
  margin: -2rem 0 2.5rem calc(50% - 50vw);
  background: linear-gradient(170deg, var(--navy-deep) 0%, var(--navy) 70%, var(--navy-md) 100%);
  /* side padding aligns banner content with main's 1200px column */
  padding: 4.5rem max(1.5rem, 50vw - 576px) 3rem;
  color: white;
  overflow: hidden;
  isolation: isolate;
}
.page-banner .banner-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  animation: heroDrift 18s var(--ease-out) both;
}
.page-banner--photo { min-height: 46svh; display: flex; flex-direction: column; justify-content: flex-end; }
.page-banner--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17,33,50,.5) 0%, rgba(17,33,50,.15) 40%, rgba(11,23,36,.9) 100%);
}
.page-banner .banner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1rem;
}
.page-banner .banner-eyebrow::before { content: ''; width: 2.4rem; height: 1px; background: var(--gold-lt); }
.page-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 500;
  color: white;
  margin-bottom: .6rem;
  letter-spacing: -.01em;
  line-height: 1.08;
  text-shadow: 0 4px 32px rgba(0,0,0,.4);
}
.page-banner p { color: rgba(226,236,244,.88); font-size: 1.02rem; max-width: 580px; line-height: 1.65; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.page-banner .banner-contact {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.75rem;
  font-weight: 700;
  color: rgba(236,243,250,.97);
}
.banner-contact-item { display: inline-flex; align-items: center; gap: .5rem; }
.banner-contact a { color: inherit; text-decoration: none; }
.banner-contact a:hover { text-decoration: underline; }

/* Landing hero — full-bleed photo hero. Markup: an optional
   <img class="landing-hero-media"> + <div class="landing-hero-scrim">
   before .landing-hero-inner; falls back to a navy gradient without them. */
.landing-hero {
  position: relative;
  width: 100vw;
  margin: -2rem 0 0 calc(50% - 50vw);
  min-height: 86svh;
  display: flex;
  align-items: flex-end;
  color: white;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(170deg, var(--navy-deep) 0%, var(--navy) 70%, var(--navy-md) 100%);
}
.landing-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  animation: heroDrift 22s var(--ease-out) both;
}
@keyframes heroDrift { from { transform: scale(1.1); } to { transform: scale(1); } }
.landing-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17,33,50,.55) 0%, rgba(17,33,50,.12) 36%, rgba(17,33,50,.2) 62%, rgba(11,23,36,.92) 100%);
}
.landing-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 6.5rem max(1.5rem, 50vw - 576px) clamp(3rem, 7vh, 5rem);
}
.landing-hero-inner > * { animation: riseIn 1.1s var(--ease-out) both; }
.landing-hero-inner > *:nth-child(2) { animation-delay: .12s; }
.landing-hero-inner > *:nth-child(3) { animation-delay: .24s; }
.landing-hero-inner > *:nth-child(4) { animation-delay: .36s; }
.landing-hero-inner > *:nth-child(5) { animation-delay: .48s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.landing-hero-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 1.6rem;
  filter: drop-shadow(0 10px 32px rgba(0,0,0,.45));
}
.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.2rem;
  font-family: var(--font-sans);
  text-shadow: 0 1px 8px rgba(8,20,35,.55);
}
.landing-eyebrow::before { content: ''; width: 2.4rem; height: 1px; background: var(--gold-lt); }
.landing-eyebrow--brand { color: #ffffff; }
.landing-eyebrow--brand::before { background: #ffffff; }
.landing-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.9rem, 7vw, 5.2rem);
  color: white;
  line-height: 1.04;
  margin-bottom: 1.4rem;
  letter-spacing: -.015em;
  font-weight: 500;
  max-width: 15ch;
  text-shadow: 0 4px 40px rgba(8,20,35,.5);
}
.landing-hero h1 em { font-style: italic; color: var(--gold-lt); font-weight: 400; }
.landing-hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: rgba(240,246,251,.95);
  max-width: 34rem;
  margin: 0 0 2.2rem;
  line-height: 1.7;
  font-family: var(--font-sans);
  text-shadow: 0 2px 16px rgba(8,20,35,.55);
}
.landing-hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; }

/* Clinics page — navy gradient variant, shorter */
.landing-hero--clinics { min-height: 0; }
.landing-hero--clinics .landing-hero-inner { padding: 2.25rem max(1.5rem, 50vw - 576px) 1.75rem; }
.landing-hero--clinics .landing-hero-logo { width: 56px; height: 56px; margin-bottom: .7rem; }
.landing-hero--clinics h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.landing-hero--clinics .landing-hero-sub { margin-bottom: 1.1rem; }

/* Stat strip under the home hero */
.sv-stat-strip {
  width: 100vw;
  margin: 0 0 0 calc(50% - 50vw);
  background: var(--navy-deep);
  color: white;
  border-top: 1px solid rgba(238,243,248,.16);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 max(1.5rem, 50vw - 576px);
}
.sv-stat {
  padding: 1.7rem .8rem;
  text-align: center;
  border-left: 1px solid rgba(238,243,248,.14);
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.sv-stat:first-child { border-left: none; }
.sv-stat b {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 500;
  color: var(--gold-lt);
}
.sv-stat span {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(238,243,248,.68);
}
@media (max-width: 720px) {
  .sv-stat-strip { grid-template-columns: 1fr 1fr; }
  .sv-stat { border-top: 1px solid rgba(238,243,248,.14); }
  .sv-stat:nth-child(-n+2) { border-top: none; }
  .sv-stat:nth-child(3) { border-left: none; }
}

/* Shared landing typography */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .8rem;
  font-family: var(--font-sans);
}
.section-eyebrow::before { content: ''; width: 2.4rem; height: 1px; background: var(--gold); }
.section-label-row { text-align: center; margin-bottom: 1rem; }
.section-label-row .section-eyebrow::after { content: ''; width: 2.4rem; height: 1px; background: var(--gold); }
.landing-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: .6rem;
  letter-spacing: -.01em;
  line-height: 1.12;
}
.landing-section-sub { color: var(--text-md); font-size: 1rem; max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* Disciplines section — full-photo editorial cards */
.disciplines-section { padding: 4.5rem 0 3rem; }
.disciplines-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.75rem; }
@media (max-width: 1100px) { .disciplines-grid { grid-template-columns: repeat(2, 1fr); } }
.discipline-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  aspect-ratio: 3 / 3.8;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}
.discipline-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .8s var(--ease-out);
}
.discipline-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17,33,50,0) 32%, rgba(11,23,36,.9) 100%);
}
.discipline-card:hover .discipline-card-media { transform: scale(1.05); }
.discipline-card-body { position: relative; padding: 1.6rem 1.5rem; display: flex; flex-direction: column; align-items: flex-start; }
.discipline-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .92rem;
  color: var(--gold-lt);
}
.discipline-card-body h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 500;
  color: white;
  margin: .3rem 0 .5rem;
  letter-spacing: -.01em;
}
.discipline-card-body p { color: rgba(238,243,248,.85); font-size: .92rem; line-height: 1.6; margin-bottom: 1.1rem; }

/* About preview section */
.about-preview-section {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  margin: 1rem 0;
  border: 1.5px solid var(--border);
}
.about-preview-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.about-preview-content .section-eyebrow { color: var(--navy-lt); }
.about-preview-content h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.about-preview-content p { color: var(--text-lt); font-size: .95rem; line-height: 1.7; margin-bottom: 1.25rem; }
.about-checklist { list-style: none; padding: 0; margin: 0 0 1.75rem; display: flex; flex-direction: column; gap: .55rem; }
.about-checklist li { display: flex; align-items: center; gap: .55rem; font-size: .92rem; color: var(--text); }
.about-checklist li svg { color: var(--navy); flex-shrink: 0; }
.about-preview-logo img { width: 100px; height: 100px; object-fit: contain; opacity: .9; }

/* CTA strip — full-bleed navy band with watermark */
.landing-cta-strip {
  position: relative;
  width: 100vw;
  margin: 3rem 0 -4rem calc(50% - 50vw);
  background: var(--navy-deep);
  padding: clamp(4rem, 8vw, 6rem) max(1.5rem, 50vw - 576px);
  text-align: center;
  overflow: hidden;
}
.landing-cta-strip::before {
  content: 'SVS';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(14rem, 34vw, 26rem);
  font-weight: 600;
  color: rgba(238,243,248,.04);
  letter-spacing: -.04em;
  pointer-events: none;
}
.landing-cta-strip h2 {
  position: relative;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 500;
  color: white;
  margin-bottom: .65rem;
  letter-spacing: -.01em;
}
.landing-cta-strip p { position: relative; color: rgba(226,236,244,.8); margin: 0 auto 2.2rem; max-width: 34rem; font-size: 1.02rem; line-height: 1.65; }
.landing-cta-actions { position: relative; display: flex; gap: .85rem; justify-content: center; flex-wrap: wrap; }

/* Facilities — full-bleed dark band over a photo */
.facilities-band {
  position: relative;
  width: 100vw;
  margin: 2rem 0 0 calc(50% - 50vw);
  padding: clamp(4rem, 8vw, 6.5rem) max(1.5rem, 50vw - 576px);
  color: white;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-deep);
}
.facilities-band-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.facilities-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(11,23,36,.95) 34%, rgba(11,23,36,.55) 100%);
}
.facilities-band .section-eyebrow { color: var(--gold-lt); }
.facilities-band .section-eyebrow::before { background: var(--gold-lt); }
.facilities-band .landing-section-title { color: white; }
.facilities-band .landing-section-sub { color: rgba(238,243,248,.82); margin: 0; }
.facility-list {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4rem);
  max-width: 62rem;
}
.facility-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(238,243,248,.16);
}
.facility-item i {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--gold-lt);
  padding-top: .2rem;
}
.facility-item h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.22rem;
  color: white;
  margin-bottom: .25rem;
}
.facility-item p { font-size: .93rem; color: rgba(238,243,248,.75); line-height: 1.6; margin: 0; }
@media (max-width: 760px) {
  .facility-list { grid-template-columns: 1fr; }
}

/* About page */
.about-section { padding: 3.5rem 0; }

/* Split feature — photo with offset frame + text (About story, Boarding) */
.sv-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}
.sv-split-media { position: relative; }
.sv-split-media img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  box-shadow: 20px 20px 0 -1px var(--powder-lt), 20px 20px 0 0 var(--gold);
}
.sv-split.reverse > .sv-split-media { order: 2; }
.sv-split.reverse .sv-split-media img {
  box-shadow: -20px 20px 0 -1px var(--powder-lt), -20px 20px 0 0 var(--gold);
}
.sv-split-media figcaption {
  margin-top: 1.9rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .93rem;
  color: var(--text-md);
}
.sv-split-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.12;
  margin-bottom: 1.2rem;
}
.sv-split-body p { color: var(--text-md); font-size: .98rem; line-height: 1.75; margin-bottom: 1rem; }
@media (max-width: 860px) {
  .sv-split { grid-template-columns: 1fr; }
  .sv-split.reverse > .sv-split-media { order: 0; }
}

/* Meet the owners — side-by-side cards */
.meet-section { padding: 1rem 0 3rem; }
.meet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.5rem);
}
.meet-card { background: white; border: 1px solid var(--border-lt); }
.meet-photo-wrap { aspect-ratio: 5 / 4; overflow: hidden; background: var(--navy); }
.meet-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .8s var(--ease-out);
}
.meet-card:hover .meet-photo { transform: scale(1.04); }
.meet-photo-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: rgba(238,243,248,.45);
}
.meet-content { padding: clamp(1.5rem, 2.6vw, 2.2rem); }
.meet-content .section-eyebrow { color: var(--gold); }
.meet-content h2 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: .9rem;
}
.meet-content p { color: var(--text-md); font-size: .95rem; line-height: 1.7; margin-bottom: .9rem; }
.meet-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .4rem;
  color: var(--navy);
  border: 1px solid var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .5rem .9rem;
}
.meet-tag svg { color: var(--gold); }
@media (max-width: 760px) {
  .meet-grid { grid-template-columns: 1fr; }
}

/* Values — dark full-bleed band */
.about-values-section {
  width: 100vw;
  margin: 2rem 0 0 calc(50% - 50vw);
  background: var(--navy-deep);
  padding: clamp(3.5rem, 7vw, 5.5rem) max(1.5rem, 50vw - 576px);
}
.about-values-section .section-eyebrow { color: var(--gold-lt); }
.about-values-section .section-eyebrow::before,
.about-values-section .section-label-row .section-eyebrow::after { background: var(--gold-lt); }
.about-values-section .landing-section-title { color: white; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; max-width: 820px; margin: 0 auto; }
.value-card {
  background: rgba(238,243,248,.05);
  border-top: 3px solid var(--gold-lt);
  padding: 1.8rem 1.6rem;
  transition: background .25s;
}
.value-card:hover { background: rgba(238,243,248,.09); }
.value-icon { color: var(--gold-lt); margin-bottom: .85rem; }
.value-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 1.3rem; color: white; margin-bottom: .5rem; }
.value-card p { color: rgba(226,236,244,.75); font-size: .93rem; line-height: 1.65; }

.about-disciplines { padding: 3.5rem 0; }
.about-disciplines-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.about-discipline-row {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 1.5rem .25rem;
}
.about-discipline-row .clinic-type-badge { flex-shrink: 0; margin: 0; }
/* badge palette is tuned for dark card headers — darken text on these light rows */
.about-discipline-row .type-dressage { color: #6e3352; background: rgba(140,74,104,.16); }
.about-discipline-row .type-jumping  { color: #2c5e41; background: rgba(61,122,86,.16); }
.about-discipline-row .type-eventing { color: #7d5019; background: rgba(184,108,42,.16); }
.about-discipline-row p { color: var(--text-md); font-size: .95rem; margin: 0; line-height: 1.65; }

.about-location-section {
  background: var(--powder-lt);
  width: 100vw;
  margin: 0 0 -4rem calc(50% - 50vw);
  padding: clamp(3.5rem, 7vw, 5rem) max(1.5rem, 50vw - 576px);
}
.about-location-inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; max-width: 1152px; }
.about-location-section .section-eyebrow { color: var(--gold); }
.about-location-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.location-details { display: flex; flex-direction: column; gap: .7rem; }
.location-row { display: flex; align-items: center; gap: .65rem; font-size: .95rem; color: var(--text); }
.location-row svg { color: var(--gold); flex-shrink: 0; }
.location-row a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.location-row a:hover { color: var(--gold); }
.location-badge-wrap { display: flex; align-items: center; justify-content: center; }
.location-badge {
  width: 170px; height: 170px;
  background: var(--navy);
  border: 1px solid var(--navy-md);
  outline: 1px solid var(--gold);
  outline-offset: 6px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 1rem;
}
.location-badge-navy { font-family: var(--font-serif); font-size: 1.15rem; color: white; font-weight: 500; }
.location-badge-sub { font-size: .68rem; color: var(--gold-lt); letter-spacing: .24em; text-transform: uppercase; margin-top: .35rem; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-md) 60%, var(--navy-lt) 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  margin-bottom: 2.5rem;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: center;
  gap: 3rem;
  box-shadow: var(--shadow-lg);
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(63,111,160,.14) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 30%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(63,111,160,.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-logo {
  flex-shrink: 0;
  z-index: 1;
}
.hero-logo img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  drop-shadow: 0 8px 24px rgba(0,0,0,.3);
}

.hero-content { z-index: 1; }
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: .75rem;
  color: white;
}
.hero-content h1 span { color: var(--powder); }
.hero-content p {
  font-size: 1.1rem;
  color: var(--powder-lt);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-badges {
  display: flex;
  gap: .75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero-badge {
  background: rgba(11,23,36,.5);
  border: 1px solid rgba(255,255,255,.25);
  color: #eef4fb;
  padding: .5rem 1rem;
  border-radius: 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-sans);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  text-shadow: 0 1px 6px rgba(8,20,35,.5);
}

/* ── Section headers ──────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--border-lt);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: .5rem;
  letter-spacing: -.01em;
}
.section-title svg { color: var(--navy-lt); }

.page-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
  letter-spacing: -.01em;
}

/* ── Clinic cards ─────────────────────────────────── */
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.clinic-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.clinic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.clinic-card-header {
  background: var(--navy);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
}
.clinic-card-date {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .72rem;
  color: var(--powder);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.clinic-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: white;
  margin: 0;
}
.clinic-card-inner { padding: 1.25rem 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }

.clinic-type-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .25rem .7rem;
  border-radius: var(--radius-pill, 24px);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  flex-shrink: 0;
  margin-top: .15rem;
}
.type-dressage { background: rgba(140,74,104,.35); color: #f0c8dc; border: 1px solid rgba(140,74,104,.4); }
.type-jumping  { background: rgba(61,122,86,.3); color: #b8dfc8; border: 1px solid rgba(61,122,86,.4); }
.type-eventing { background: rgba(184,108,42,.3); color: #f0cfa0; border: 1px solid rgba(184,108,42,.4); }

.clinic-card-inner p { color: var(--text-lt); font-size: .9rem; flex: 1; margin-bottom: 1rem; line-height: 1.6; }

.clinic-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--text-lt);
  padding: .85rem 0;
  border-top: 1px solid var(--border-lt);
  border-bottom: 1px solid var(--border-lt);
  margin-bottom: 1rem;
}
.clinic-meta span { display: flex; align-items: center; gap: .35rem; }
.clinic-meta .clinic-fee { font-weight: 700; color: var(--navy); }

.card-actions { display: flex; gap: .6rem; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  border-radius: 0;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .2s, box-shadow .25s;
  text-decoration: none;
  font-family: var(--font-sans);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--navy);
  color: white;
}
.btn-primary:hover { background: var(--navy-md); box-shadow: 0 10px 24px -12px rgba(18,36,56,.55); transform: translateY(-1px); }

.btn-secondary {
  background: var(--powder-lt);
  color: var(--navy);
  border-color: var(--powder-lt);
}
.btn-secondary:hover { background: var(--powder); border-color: var(--powder); }

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: white; transform: translateY(-1px); }

/* Pale-steel primary on dark bands — navy text on logo blue */
.btn-gold {
  background: var(--gold-lt);
  color: var(--navy-deep);
}
.btn-gold:hover { background: #ffffff; box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); transform: translateY(-1px); }

.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #a03636; }

.btn-sm { padding: .5rem .95rem; font-size: .7rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: .82rem; }
.btn-full { width: 100%; }

/* ── Forms ────────────────────────────────────────── */
.form-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1.5px solid var(--border-lt);
  padding: 2.25rem;
  max-width: 680px;
  margin: 0 auto;
}

.form-card-header {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.form-card-header h2 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.75rem;
  margin-bottom: .35rem;
  letter-spacing: -.01em;
}
.form-card-header p { color: var(--text-lt); font-size: .9rem; line-height: 1.6; }

.form-section-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-lt);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.form-section-label::before { content: ''; width: 3px; height: 14px; background: var(--powder); border-radius: 2px; }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .45rem;
  color: var(--text-md);
}
.form-group label .req { color: var(--red); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  background: white;
  transition: border-color .15s, box-shadow .15s;
  color: var(--text);
  font-family: var(--font-sans);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy-lt);
  background: white;
  box-shadow: 0 0 0 3px rgba(61,122,86,.18);
}
.form-group textarea { resize: vertical; min-height: 85px; }

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

/* Skill picker */
.skill-picker { display: flex; gap: .5rem; }
.skill-btn {
  flex: 1;
  padding: .65rem .3rem;
  border: 2px solid var(--border);
  border-radius: 9px;
  background: var(--off-white);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: all .2s;
  text-align: center;
  color: var(--text-lt);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}
.skill-btn small { font-size: .65rem; font-weight: 500; }
.skill-btn:hover { border-color: var(--navy-md); background: var(--powder-lt); color: var(--navy); }
.skill-btn.selected { border-color: var(--navy); background: var(--navy); color: white; }

/* Time preference */
.pref-picker { display: flex; gap: .75rem; }
.pref-btn {
  flex: 1;
  padding: .75rem .5rem;
  border: 2px solid var(--border);
  border-radius: 9px;
  background: var(--off-white);
  cursor: pointer;
  font-weight: 600;
  font-size: .85rem;
  text-align: center;
  transition: all .2s;
  color: var(--text-lt);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}
.pref-btn svg { width: 20px; height: 20px; }
.pref-btn:hover { border-color: var(--navy-md); background: var(--powder-lt); color: var(--navy); }
.pref-btn.selected { border-color: var(--navy); background: var(--navy); color: white; }

/* ── Schedule ─────────────────────────────────────── */
.schedule-clinic-info {
  background: linear-gradient(135deg, #102a47 0%, var(--navy) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.schedule-clinic-info img { width: 48px; height: 48px; filter: brightness(0) invert(1); opacity: .85; }
.schedule-clinic-info h3 { font-family: var(--font-serif); font-size: 1.3rem; letter-spacing: -.01em; }
.schedule-clinic-info p { font-size: .85rem; color: rgba(214,228,240,.7); }

.schedule-day {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border-lt);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.schedule-day-header {
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.schedule-day-header h3 { font-family: var(--font-serif); font-size: 1.1rem; display: flex; align-items: center; gap: .6rem; letter-spacing: -.005em; }
.day-label-badge { font-family: var(--font-sans); font-size: .68rem; font-weight: 400; letter-spacing: .8px; text-transform: uppercase; background: rgba(63,111,160,.2); color: var(--gold-lt); border: 1px solid rgba(63,111,160,.3); border-radius: 20px; padding: .2rem .65rem; }
.schedule-day-header .day-meta { font-size: .82rem; color: rgba(214,228,240,.65); display: flex; gap: .75rem; }

.session-block { padding: 1.25rem 1.5rem; }
.session-block + .session-block { border-top: 1px solid var(--border-lt); }

.session-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-lt);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.session-label .label-pill {
  background: var(--powder-lt);
  color: var(--navy);
  padding: .15rem .65rem;
  border-radius: 20px;
}

.time-group {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: .85rem;
  padding: .75rem;
  border-radius: 9px;
  background: var(--powder-xl);
  border: 1px solid var(--border-lt);
  transition: background .2s;
}
.time-group:hover { background: var(--powder-lt); }
.time-group:last-child { margin-bottom: 0; }

.time-label {
  min-width: 145px;
  font-weight: 700;
  color: var(--navy);
  font-size: .85rem;
  padding-top: .2rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}

.rider-chips { display: flex; gap: .5rem; flex-wrap: wrap; }

.rider-chip {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 25px;
  padding: .35rem 1rem .35rem .5rem;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: var(--shadow-sm);
  color: var(--navy);
  font-weight: 500;
}
.rider-chip .horse { color: var(--text-lt); font-size: .78rem; font-weight: 400; }

.skill-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.skill-1 { background: #94a3b8; }
.skill-2 { background: #22c55e; }
.skill-3 { background: #3b82f6; }
.skill-4 { background: #f59e0b; }
.skill-5 { background: #ef4444; }

.skill-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: white;
  border: 1.5px solid var(--border-lt);
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: .82rem;
}
.skill-legend strong { color: var(--navy); margin-right: .25rem; }
.skill-legend-item { display: flex; align-items: center; gap: .35rem; color: var(--text-lt); }

/* ── Admin ────────────────────────────────────────── */
.admin-tabs {
  display: flex;
  gap: .25rem;
  background: white;
  border-radius: var(--radius);
  padding: .5rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border-lt);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tab-btn {
  padding: .55rem 1.25rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-lt);
  transition: all .2s;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.tab-btn svg { width: 15px; height: 15px; }
.tab-btn:hover { background: var(--powder-lt); color: var(--navy); }
.tab-btn.active { background: var(--navy); color: white; }

.admin-section { display: none; }
.admin-section.active { display: block; }

/* Table */
.table-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border-lt);
  overflow-x: auto;
}
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th {
  background: var(--powder-xl);
  padding: .75rem 1.1rem;
  text-align: left;
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-lt);
  border-bottom: 2px solid var(--border-lt);
  white-space: nowrap;
}
.data-table td {
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--border-lt);
  vertical-align: middle;
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--powder-xl); }

/* Day builder */
.days-list { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1rem; }
.day-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: .6rem;
  align-items: end;
  background: var(--powder-xl);
  padding: .85rem;
  border-radius: 9px;
  border: 1.5px solid var(--border-lt);
}
.day-row label { font-size: .75rem; font-weight: 600; color: var(--text-lt); display: block; margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .5px; }
.day-row--eventing {
  grid-template-columns: 1fr 1.3fr 1fr 1fr auto;
}
.day-row input, .day-row select {
  width: 100%;
  padding: .5rem .7rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: .85rem;
  background: white;
  font-family: var(--font-sans);
  color: var(--text);
}
.day-row input:focus, .day-row select:focus { outline: none; border-color: var(--navy-md); }

/* ── Schedule Editor ─────────────────────────────── */
.schedule-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.schedule-editor-hint { font-size: .875rem; color: var(--text-lt); margin: 0; }

.se-params-banner {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.se-param-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--powder-xl);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: .25rem .7rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--navy);
}

.schedule-edit-day {
  margin-bottom: 2.25rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 2px solid var(--powder);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(28,63,99,.1);
}
.schedule-edit-day-header {
  background: var(--navy);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.005em;
  border-bottom: 2px solid var(--gold);
}
.schedule-edit-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--powder-xl);
}
.schedule-edit-slot {
  flex: 1 1 200px;
  background: white;
  border: 2px solid var(--border-lt);
  border-radius: 10px;
  padding: .9rem;
  transition: border-color .15s, background .15s, box-shadow .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.schedule-edit-slot.drag-over {
  border-color: var(--navy-md);
  background: var(--powder-xl);
  box-shadow: 0 0 0 3px rgba(61,122,86,.18);
}
.schedule-edit-slot-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
  padding-bottom: .6rem;
  border-bottom: 1.5px solid var(--border-lt);
}
.se-session-pill {
  background: var(--navy);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .4px;
  padding: .2rem .65rem;
  border-radius: 20px;
}
.se-slot-time { font-size: .82rem; color: var(--navy-lt); font-weight: 600; }
.se-capacity {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 700;
  border-radius: 20px;
  padding: .1rem .45rem;
  line-height: 1.5;
}
.se-capacity--ok   { background: #e6f4ea; color: #2d7a47; }
.se-capacity--full { background: var(--red-lt); color: var(--red); }
.schedule-edit-riders { display: flex; flex-direction: column; gap: .4rem; min-height: 44px; }
.se-slot-empty { font-size: .8rem; color: var(--text-lt); text-align: center; padding: .6rem; font-style: italic; }

.schedule-edit-chip {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: var(--powder-xl);
  border: 1.5px solid var(--border-lt);
  border-radius: 8px;
  padding: .38rem .55rem;
  cursor: grab;
  font-size: .83rem;
  transition: opacity .15s, box-shadow .15s, border-color .15s;
  user-select: none;
}
.schedule-edit-chip:hover { box-shadow: 0 2px 8px rgba(0,0,0,.1); border-color: var(--navy-lt); }
.schedule-edit-chip:active { cursor: grabbing; }
.schedule-edit-chip.is-dragging { opacity: .3; }
.se-drag-handle { color: var(--text-lt); font-size: .95rem; flex-shrink: 0; line-height: 1; }
.se-chip-name { flex: 1; font-weight: 500; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.se-chip-delete {
  margin-left: auto;
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-lt);
  cursor: pointer;
  font-size: .75rem;
  padding: .15rem .35rem;
  border-radius: 4px;
  line-height: 1;
  transition: background .15s, color .15s;
}
.se-chip-delete:hover { background: var(--red-lt); color: var(--red); }

/* ── Unassigned Bucket ────────────────────────────── */
.unassigned-bucket {
  background: white;
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  transition: border-color .15s, background .15s;
}
.unassigned-bucket.drag-over {
  border-color: var(--gold);
  background: #fffbf0;
  box-shadow: 0 0 0 3px rgba(63,111,160,.2);
}
.unassigned-bucket-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--navy);
  font-size: .9rem;
  margin-bottom: .75rem;
}
.unassigned-count {
  background: var(--gold);
  color: white;
  border-radius: 20px;
  padding: .1rem .55rem;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.5;
  min-width: 1.4rem;
  text-align: center;
}
.unassigned-count--empty {
  background: var(--border);
  color: var(--text-lt);
}
.unassigned-riders {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  min-height: 44px;
  align-items: flex-start;
  align-content: flex-start;
}
.unassigned-riders .schedule-edit-chip {
  flex: 0 0 auto;
}
.se-needs-badge {
  margin-left: .25rem;
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 700;
  background: var(--gold);
  color: white;
  border-radius: 20px;
  padding: .1rem .45rem;
  line-height: 1.5;
  white-space: nowrap;
}

/* Empty time slot visual hint */
.schedule-edit-slot.slot-empty {
  opacity: .75;
  background: var(--powder-xl);
}
.schedule-edit-slot.slot-empty .schedule-edit-slot-header {
  opacity: .7;
}

/* Full slot — muted, no-drop cursor */
.schedule-edit-slot.slot-full {
  background: #fff8f8;
  border-color: #f0d0d0;
  cursor: not-allowed;
}
.schedule-edit-slot.slot-full .schedule-edit-riders {
  cursor: default;
}

/* ── Alerts ───────────────────────────────────────── */
.alert {
  padding: .85rem 1.15rem;
  border-radius: 9px;
  margin-bottom: 1rem;
  font-size: .875rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  line-height: 1.5;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .1rem; }
.alert-success { background: var(--green-lt); color: var(--green-ok); border: 1px solid #86efac; }
.alert-error   { background: var(--red-lt); color: var(--red); border: 1px solid #fca5a5; }
.alert-info    { background: var(--powder-lt); color: var(--navy); border: 1px solid var(--powder); }

/* ── Toast ─────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  padding: .9rem 1.5rem;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(80px);
  opacity: 0;
  transition: all .35s cubic-bezier(.175,.885,.32,1.275);
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 360px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--navy); border-left: 4px solid var(--powder); }
.toast.error   { background: var(--red); }

/* ── Modal ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8,20,14,.6);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  max-width: 820px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.94) translateY(8px);
  transition: transform .25s cubic-bezier(.175,.885,.32,1.275);
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border-lt);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal--wide { max-width: 1020px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--border-lt);
}
.modal-header h2 { font-family: var(--font-serif); color: var(--navy); font-size: 1.4rem; }
.modal-close {
  background: var(--powder-xl);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-lt);
  transition: background .2s;
}
.modal-close:hover { background: var(--powder-lt); color: var(--navy); }

.modal-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.75rem; padding-top: 1rem; border-top: 1.5px solid var(--border-lt); }

/* ── Login card ──────────────────────────────────── */
.login-wrap {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border-lt);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}
.login-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.login-logo img { width: 90px; height: 90px; }
.login-logo h2 { font-family: var(--font-serif); color: var(--navy); font-size: 1.4rem; margin-top: .75rem; }
.login-logo p { color: var(--text-lt); font-size: .85rem; }

/* ── Empty states ─────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-lt);
}
.empty-state .icon {
  width: 64px; height: 64px;
  background: var(--powder-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--navy-lt);
}
.empty-state h3 { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy); margin-bottom: .4rem; }
.empty-state p { font-size: .9rem; }

/* ── Badges ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-morning        { background: rgba(63,111,160,.15); color: #7a5522; border: 1px solid rgba(63,111,160,.3); }
.badge-evening        { background: rgba(61,122,86,.12); color: var(--navy-md); border: 1px solid rgba(61,122,86,.25); }
.badge-no_preference  { background: var(--powder-lt); color: var(--navy); border: 1px solid var(--border); }
/* ── Auth page ────────────────────────────────────── */
#page-auth {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem 5rem;
  min-height: 70vh;
}
.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(28,63,99,.1);
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 420px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-logo img {
  width: 64px;
  height: 64px;
  margin-bottom: .75rem;
}
.auth-logo h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--navy);
  margin-bottom: .3rem;
}
.auth-logo p {
  font-size: .875rem;
  color: var(--text-lt);
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-google:hover { background: var(--powder-xl); border-color: var(--powder); }
.btn-google:disabled { opacity: .6; cursor: not-allowed; }
.auth-or {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: var(--text-lt);
  font-size: .8rem;
}
.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-tab-bar {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.auth-tab-btn {
  flex: 1;
  padding: .55rem;
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  background: var(--powder-xl);
  color: var(--text-lt);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.auth-tab-btn.active {
  background: var(--navy);
  color: white;
}
/* Nav user chip */
.nav-user-chip {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .6rem;
}
.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy-md);
  color: white;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-user-name {
  color: var(--navy);
  font-weight: 600;
  font-size: .82rem;
}
.nav-signout {
  color: var(--text-lt);
  background: none;
  border: none;
  font-size: .82rem;
}
.nav-signout:hover { color: var(--red); }

/* ── Schedule generation options ─────────────────── */
.gen-options-row {
  display: flex;
  gap: 1rem;
}
@media (max-width: 480px) {
  .gen-options-row { flex-direction: column; }
}

/* ── CSV Import panel ─────────────────────────────── */
.import-panel {
  background: var(--powder-xl);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.import-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.import-panel-header h4 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: .2rem;
}
.import-panel-header p {
  font-size: .82rem;
  color: var(--text-lt);
}
.import-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .5rem;
}
.file-input {
  width: 100%;
  padding: .35rem 0;
  font-size: .85rem;
  color: var(--text);
}
.import-preview {
  margin-top: 1rem;
}
.import-preview-header {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-lt);
  margin-bottom: .4rem;
}
.import-row-invalid td {
  background: #fff5f5;
  color: var(--text-lt);
}

/* ── Provider badge ───────────────────────────────── */
/* ── Waiver modal ─────────────────────────────────── */
.waiver-field-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-lt); margin-bottom: .2rem; }
.waiver-field-val { font-size: .9rem; color: var(--text); }
.waiver-ack { font-size: .82rem; display: flex; align-items: center; gap: .4rem; }
.ack-yes { color: #2a7a4b; }
.ack-no  { color: var(--text-lt); }

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  border: 1.5px solid transparent;
}
.provider-google {
  background: #f0f4ff;
  border-color: #c5d3f5;
  color: #3a5bc7;
}
.provider-email {
  background: var(--powder-xl);
  border-color: var(--powder);
  color: var(--navy);
}

/* ── Sortable table headers ───────────────────────── */
.th-sort {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.th-sort:hover { background: var(--powder-lt); }
.sort-arrow {
  display: inline-block;
  margin-left: .3rem;
  font-size: .7rem;
  opacity: .55;
  vertical-align: middle;
}
.th-sort:hover .sort-arrow { opacity: .9; }

/* ── Paid / Amount inline fields ──────────────────── */
.paid-toggle {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  padding: .22rem .7rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  font-family: var(--font-sans);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: filter .15s;
  white-space: nowrap;
  line-height: 1.4;
}
.paid-toggle.paid-yes {
  background: var(--green-lt);
  color: var(--green-ok);
  border-color: #a3d4b8;
}
.paid-toggle.paid-no {
  background: var(--red-lt);
  color: var(--red);
  border-color: #f0b8b3;
}
.paid-toggle:hover { filter: brightness(.93); }
.amount-input {
  width: 72px;
  max-width: 72px;
  padding: .28rem .45rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: .82rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  text-align: right;
}
.amount-input:focus {
  outline: none;
  border-color: var(--navy-lt);
}

/* ── Coaches page ─────────────────────────────────── */
.coaches-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}
.coach-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(28,63,99,.07);
  overflow: hidden;
}
.coach-card-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
}
.coach-photo-wrap {
  background: var(--powder-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.coach-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.coach-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--navy-lt);
  padding: 2rem;
  text-align: center;
}
.coach-content {
  padding: 2.5rem 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.coach-content h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  margin: 0;
  line-height: 1.1;
}
.coach-content p {
  color: var(--text-md);
  line-height: 1.7;
  font-size: .95rem;
}
.coach-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.coach-tag {
  background: var(--powder-lt);
  color: var(--navy);
  border: 1px solid var(--powder);
  border-radius: 20px;
  padding: .25rem .75rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.coach-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.coaches-cta {
  background: linear-gradient(160deg, #102a47 0%, var(--navy) 60%, var(--navy-md) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
  margin-top: 3rem;
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-lg);
}
.coaches-cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  margin-bottom: .65rem;
  letter-spacing: -.01em;
}
.coaches-cta p {
  color: rgba(214,228,240,.7);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.65;
}

/* ── Images page — masonry columns ────────────────── */
.images-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}
.images-grid {
  columns: 3;
  column-gap: 1.4rem;
}
.image-card {
  break-inside: avoid;
  margin-bottom: 1.4rem;
  overflow: hidden;
  transition: box-shadow .3s;
}
.image-card:hover {
  box-shadow: 0 14px 32px -14px rgba(18,36,56,.4);
}
.image-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--powder-xl);
}
.image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .7s var(--ease-out);
}
.image-card:hover .image-wrap img {
  transform: scale(1.04);
}
.image-caption {
  padding: 1rem 1.25rem 1.25rem;
}
.image-caption h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: .35rem;
}
.image-caption p {
  font-size: .88rem;
  color: var(--text-md);
  line-height: 1.5;
}

/* ── Image lightbox ───────────────────────────────── */
.images-grid .image-card { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(16,42,71,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
  animation: lightbox-fade .15s ease;
}
@keyframes lightbox-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0,0,0,.5);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ── Boarding page ────────────────────────────────── */
.boarding-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}
.boarding-price-card {
  background: var(--navy);
  border: 1px solid var(--navy-md);
  outline: 1px solid var(--gold);
  outline-offset: 6px;
  padding: 2.75rem 2rem;
  text-align: center;
  color: white;
  margin-bottom: 2.5rem;
}
.boarding-price-eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: .9rem;
  font-family: var(--font-sans);
}
.boarding-price { display: flex; align-items: baseline; justify-content: center; gap: .4rem; }
.boarding-price-amount {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  color: white;
}
.boarding-price-period { font-size: 1.05rem; color: rgba(226,236,244,.8); font-family: var(--font-serif); font-style: italic; }
.boarding-price-note { color: rgba(226,236,244,.7); font-size: .9rem; margin-top: .75rem; }

.boarding-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: 3rem;
  align-items: start;
}
.boarding-detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: clamp(1.6rem, 3vw, 2.3rem);
}
.boarding-detail-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.2rem;
}
.boarding-detail-card ul { list-style: none; display: flex; flex-direction: column; }
.boarding-detail-card li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .96rem;
  line-height: 1.55;
  color: var(--text-md);
  padding: .8rem 0;
  border-top: 1px solid var(--border-lt);
}
.boarding-detail-card li svg { flex-shrink: 0; margin-top: .25rem; }
.boarding-included {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.boarding-included h3 { color: white; }
.boarding-included li { color: rgba(238,243,248,.9); border-top-color: rgba(238,243,248,.16); }
.boarding-included h3 svg,
.boarding-included li svg { color: var(--gold-lt); }
.boarding-byo h3 svg,
.boarding-byo li svg { color: var(--gold); }
.boarding-byo-note {
  margin-top: 1.4rem;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--gold);
  background: rgba(74,112,143,.09);
  font-size: .9rem;
  color: var(--text-md);
  line-height: 1.6;
}

/* Boarding photo pair */
.boarding-photos {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
  align-items: stretch;
  margin-bottom: 3rem;
}
.boarding-photos figure { position: relative; overflow: hidden; margin: 0; aspect-ratio: 4 / 3; }
.boarding-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease-out);
}
.boarding-photos figure:hover img { transform: scale(1.05); }
.boarding-photos figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: .6rem 1.1rem;
  background: rgba(11,23,36,.82);
  color: white;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .87rem;
}

.boarding-cta { text-align: center; }
.boarding-cta p { color: var(--text-md); margin-bottom: 1.25rem; }

@media (max-width: 700px) {
  .boarding-detail-grid { grid-template-columns: 1fr; }
  .boarding-photos { grid-template-columns: 1fr; }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  .coach-card-inner { grid-template-columns: 1fr; }
  .coach-photo-wrap { min-height: 200px; }
  .coach-content { padding: 1.75rem; }
  .images-grid { columns: 2; }
  .disciplines-grid { grid-template-columns: 1fr; }
  .discipline-card { aspect-ratio: 16 / 10; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .about-location-inner { grid-template-columns: 1fr; }
  .location-badge-wrap { display: none; }
  .landing-hero { min-height: 74svh; }
  .landing-hero h1 { font-size: clamp(2.4rem, 8vw, 3rem); }

  .hero { flex-direction: column; padding: 2.5rem 1.5rem; gap: 1.5rem; text-align: center; }
  .hero-logo img { width: 120px; height: 120px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-actions { justify-content: center; }
  .hero-badges { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .day-row, .day-row--eventing { grid-template-columns: 1fr 1fr; }
  .time-group { flex-direction: column; }
  .time-label { min-width: auto; }
  .logo-text .tagline { display: none; }

  .nav-toggle { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    background: var(--navy);
    padding: .5rem 1rem 1.25rem;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(0,0,0,.25);
    border-bottom: 2px solid var(--gold);
  }
  nav.open { display: flex; z-index: 150; }
  .nav-link { width: 100%; padding: .75rem .5rem; font-size: 1rem; }
  .nav-divider { display: none; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    display: block;
    position: static;
    padding-top: 0;
    margin: 0 0 .25rem 1.75rem;
    min-width: 0;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-item { color: rgba(255,255,255,.68); padding: .55rem .5rem; }
  .nav-dropdown-item:hover, .nav-dropdown-item.active { background: rgba(255,255,255,.1); color: white; }
  .nav-dropdown-item svg { color: rgba(255,255,255,.55); }
  .nav-caret { display: none; }

  .nav-backdrop {
    position: fixed;
    inset: 66px 0 0 0;
    background: rgba(15,26,38,.4);
    z-index: 99;
  }
}

@media (max-width: 480px) {
  .images-grid { columns: 1; }
  main { padding: 1.25rem 1rem 3rem; }
  .page-banner, .landing-hero { margin-top: -1.25rem; }
  .values-grid { grid-template-columns: 1fr; }
  .skill-picker { gap: .3rem; }
  .pref-picker { flex-direction: column; }
}

/* ── Scheduler Debug Panel ────────────────────────── */
.debug-toggle-label {
  display: flex;
  align-items: center;
  font-size: .88rem;
  color: var(--text-md);
  cursor: pointer;
  user-select: none;
}

.debug-panel {
  margin-top: 1.5rem;
  border: 1.5px solid #d4a017;
  border-radius: 10px;
  background: #1e1e2e;
  color: #cdd6f4;
  font-family: 'Courier New', Courier, monospace;
  font-size: .8rem;
  overflow: hidden;
}

.debug-panel-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #181825;
  color: #f9e2af;
  font-weight: 700;
  font-size: .85rem;
  padding: .65rem 1rem;
  border-bottom: 1px solid #313244;
  letter-spacing: .03em;
}

.debug-day {
  border-bottom: 1px solid #313244;
  padding: .75rem 1rem;
}
.debug-day:last-child { border-bottom: none; }

.debug-day-header {
  font-weight: 700;
  color: #89b4fa;
  margin-bottom: .5rem;
  font-size: .85rem;
}

.debug-label-badge {
  background: #313244;
  color: #cba6f7;
  border-radius: 4px;
  padding: .1em .5em;
  font-size: .78rem;
  margin-left: .4rem;
}

.debug-section-title {
  color: #a6e3a1;
  font-weight: 700;
  margin: .6rem 0 .25rem;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .07em;
}
.debug-section-title.debug-section-warn { color: #f9e2af; }
.debug-section-title.debug-section-error { color: #f38ba8; }

.debug-kv {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  line-height: 1.7;
}
.debug-key {
  color: #94e2d5;
  min-width: 110px;
  flex-shrink: 0;
  font-size: .78rem;
}
.debug-val { color: #cdd6f4; }

.debug-partition-label {
  color: #cba6f7;
  font-size: .76rem;
  font-weight: 600;
  margin-top: .35rem;
  margin-bottom: .15rem;
}

.debug-group-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .15rem 0;
  flex-wrap: wrap;
}
.debug-group-num {
  background: #313244;
  color: #89b4fa;
  border-radius: 4px;
  padding: .05em .4em;
  font-size: .76rem;
  font-weight: 700;
}
.debug-group-riders { color: #cdd6f4; flex: 1; min-width: 0; }
.debug-group-meta {
  color: #6c7086;
  font-size: .76rem;
  white-space: nowrap;
}
.debug-relaxed-badge {
  background: #45475a;
  color: #f9e2af;
  border-radius: 4px;
  padding: .05em .45em;
  font-size: .72rem;
  white-space: nowrap;
}

.debug-placement-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .15rem 0;
  flex-wrap: wrap;
}
.debug-slot-badge {
  border-radius: 4px;
  padding: .05em .45em;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.debug-slot-morning { background: #1e3a5f; color: #89b4fa; }
.debug-slot-afternoon { background: #3a2a0f; color: #f9e2af; }
.debug-placement-time {
  color: #94e2d5;
  white-space: nowrap;
  font-size: .78rem;
}
.debug-placement-riders { color: #cdd6f4; flex: 1; min-width: 0; }
.debug-placement-reason {
  color: #6c7086;
  font-size: .76rem;
  font-style: italic;
}

.debug-overflow-row {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  color: #f38ba8;
  padding: .15rem 0;
  flex-wrap: wrap;
}

/* ── Waiver Page ───────────────────────────────────── */
.waiver-card {
  max-width: 780px;
}

.waiver-text-box {
  background: var(--powder-xl);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0 0;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--text-md);
  max-height: 340px;
  overflow-y: auto;
}

.waiver-text-box h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: .02em;
}

.waiver-text-box h4 {
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 1rem 0 .35rem;
}

.waiver-text-box p {
  margin-bottom: .5rem;
}

.waiver-final-notice {
  margin-top: 1rem;
  font-size: .84rem;
  color: var(--navy);
  border-top: 1px solid var(--border);
  padding-top: .75rem;
}

.ack-group {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
  font-size: .875rem;
  color: var(--text-md);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: .15rem;
  accent-color: var(--navy);
  cursor: pointer;
}

.sig-wrap {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
  height: 160px;
  transition: border-color .2s;
}

.sig-wrap:hover {
  border-color: var(--navy-lt);
}

.sig-wrap--error {
  border-color: var(--red);
}

.sig-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.sig-clear {
  position: absolute;
  top: .5rem;
  right: .5rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .65rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-lt);
  background: var(--powder-xl);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.sig-clear:hover {
  color: var(--red);
  border-color: var(--red);
}

@media (max-width: 768px) {
  .waiver-text-box {
    padding: 1rem 1.1rem;
    max-height: 260px;
  }
  .sig-wrap {
    height: 130px;
  }
}

/* ── Clinic Overview Page ─────────────────────────── */
.overview-header { text-align: center; margin: 1rem 0 2rem; }
.overview-header h1 { font-family: var(--font-serif); font-size: 2.2rem; color: var(--navy); font-weight: 500; }
.overview-sub { color: var(--text-lt); font-size: .95rem; margin-top: .35rem; }

.overview-list { display: flex; flex-direction: column; gap: 1rem; max-width: 860px; margin: 0 auto 2.5rem; }
.overview-row {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--white); border: 1px solid var(--border-lt);
  box-shadow: var(--shadow-sm); padding: 1.1rem 1.35rem;
}
.overview-date-block {
  flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--powder-xl); border: 1px solid var(--powder);
  padding: .55rem 0; line-height: 1.15;
}
.ov-month { font-size: .7rem; font-weight: 700; letter-spacing: .08em; color: var(--gold); }
.ov-day { font-family: var(--font-serif); font-size: 1.55rem; color: var(--navy); }
.overview-info { flex: 1; min-width: 0; }
.overview-info h3 { font-family: var(--font-serif); font-size: 1.15rem; color: var(--navy); font-weight: 500; margin: .1rem 0 .3rem; }
.overview-range { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; color: var(--text-lt); letter-spacing: .03em; }
.overview-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; font-size: .85rem; color: var(--text-md); }
.overview-coach { display: inline-flex; align-items: center; gap: .35rem; }
.overview-fee { font-weight: 700; color: var(--navy); }
.overview-actions { flex: 0 0 auto; }

.stabling-banner {
  display: flex; align-items: center; gap: 1.1rem;
  max-width: 860px; margin: 0 auto 2rem;
  background: var(--navy-deep); color: var(--powder-lt);
  padding: 1.35rem 1.6rem; box-shadow: var(--shadow);
}
.stabling-icon { flex: 0 0 auto; color: var(--gold-lt); }
.stabling-banner h3 { font-family: var(--font-serif); font-weight: 500; color: var(--white); margin-bottom: .2rem; }
.stabling-banner p { font-size: .92rem; color: var(--powder-lt); }

/* badge palette is tuned for dark card headers — darken text on these light rows */
.overview-row .type-dressage { color: #6e3352; background: rgba(140,74,104,.16); }
.overview-row .type-jumping  { color: #2c5e41; background: rgba(61,122,86,.16); }
.overview-row .type-eventing { color: #7d5019; background: rgba(184,108,42,.16); }

@media (max-width: 640px) {
  .overview-row { flex-wrap: wrap; }
  .overview-actions { flex-basis: 100%; }
  .overview-actions .btn { width: 100%; }
}

/* ── Registration clinic info strip ───────────────── */
.register-clinic-info {
  display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1rem;
  margin: .35rem 0 .25rem;
  padding: .55rem .8rem;
  background: var(--powder-xl); border: 1px solid var(--powder);
  font-size: .85rem; color: var(--text-md);
}
.register-clinic-info span { display: inline-flex; align-items: center; gap: .35rem; }
.register-fee { font-weight: 700; color: var(--navy); }

/* ── Drop-In / Haul-In section (home) ─────────────── */
.dropin-section { padding: 2.5rem 0 1rem; }
.dropin-card {
  max-width: 680px; margin: 1.5rem auto 0;
  background: var(--white); border: 1px solid var(--border-lt);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.5rem;
  display: flex; flex-direction: row; align-items: center; gap: 1.5rem;
}
.dropin-price { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; line-height: 1.2; text-align: center; }
.dropin-price b { font-family: var(--font-serif); font-size: 2.1rem; font-weight: 500; color: var(--navy); }
.dropin-price span { font-size: .72rem; color: var(--text-lt); letter-spacing: .04em; text-transform: uppercase; }
.dropin-list { list-style: none; flex: 1; display: flex; flex-direction: column; gap: .4rem; text-align: left; }
.dropin-list li { display: flex; align-items: flex-start; gap: .5rem; font-size: .88rem; color: var(--text-md); line-height: 1.45; }
.dropin-list li svg { flex: 0 0 auto; margin-top: .2rem; color: var(--green-ok); }
.dropin-link { color: var(--navy); font-weight: 700; text-decoration: underline; }
.dropin-link:hover { color: var(--gold); }
@media (max-width: 560px) {
  .dropin-card { flex-direction: column; gap: .9rem; }
}

/* ── Full-clinic indicator ────────────────────────── */
.overview-full-tag {
  display: inline-block; padding: .3rem .8rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--red); background: var(--red-lt); border: 1px solid var(--red);
}

/* ── Schedule editor time input ───────────────────── */
.se-time-input {
  font: inherit; font-size: .82rem; font-weight: 700; color: var(--navy);
  border: 1px solid var(--border-lt); background: var(--white);
  padding: .1rem .3rem; width: 88px;
}
.se-time-input:focus { outline: 2px solid var(--gold-lt); }

/* ── Registration payment/cancellation policy note ── */
.policy-note {
  margin-top: 1.1rem; padding: .9rem 1.15rem; text-align: left;
  background: var(--powder-xl); border: 1px solid var(--powder);
  border-left: 3px solid var(--gold);
}
.policy-note-title {
  display: flex; align-items: center; gap: .45rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--navy); margin-bottom: .55rem;
}
.policy-note-title svg { color: var(--gold); }
.policy-note ul { list-style: none; display: flex; flex-direction: column; gap: .35rem; margin: 0; padding: 0; text-align: left; }
.policy-note li { font-size: .82rem; color: var(--text-lt); line-height: 1.6; padding-left: .95rem; position: relative; text-align: left; }
.policy-note li::before { content: ''; position: absolute; left: 0; top: .58em; width: 5px; height: 5px; background: var(--gold); }
.policy-note li strong { color: var(--navy); }

/* ── Boarding waitlist notice ─────────────────────── */
.boarding-waitlist-note {
  display: flex; align-items: center; gap: .65rem;
  max-width: 720px; margin: 0 auto 1.5rem;
  padding: .85rem 1.2rem;
  background: var(--red-lt); border: 1px solid var(--red);
  color: var(--navy-deep); font-size: .92rem; font-weight: 500;
}
.boarding-waitlist-note svg { flex: 0 0 auto; color: var(--red); }
.boarding-waitlist-note a { color: var(--navy); font-weight: 700; text-decoration: underline; }
.boarding-waitlist-note a:hover { color: var(--red); }

/* ── Waitlist indicators ──────────────────────────── */
.waitlist-badge, .se-waitlist-badge {
  display: inline-block; margin-left: .4rem;
  padding: .08rem .4rem; font-size: .66rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: #8a5a00; background: #fbe9c6; border: 1px solid #e6b866;
}
.se-waitlist-badge { margin-left: .3rem; }
.register-waitlist-note {
  display: flex; align-items: center; gap: .5rem;
  margin: .25rem 0 .25rem; padding: .55rem .8rem;
  background: #fbe9c6; border: 1px solid #e6b866; color: #6b4700;
  font-size: .85rem;
}
.register-waitlist-note svg { flex: 0 0 auto; color: #b8791f; }
