/* ============================================================
   Tu Es Belle CE Academy — Emerald Luxury
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.35rem + 2.3vw, 3.25rem);
  --text-hero: clamp(2.5rem, 1.4rem + 4.6vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Brand constants */
  --emerald-950: #02251C;
  --emerald-900: #04352A;
  --emerald-850: #063C2F;
  --emerald-800: #07402F;
  --emerald-700: #0A4A38;
  --emerald-600: #0F5C46;
  --gold: #C8A96A;
  --gold-soft: #E8D9B0;
  --gold-deep: #8A6B31;
  --ivory: #F7F4EC;
  --ivory-2: #FDFBF5;

  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Inter', system-ui, -apple-system, sans-serif;

  --shell: 76rem;
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Themes ---------- */
:root, [data-theme='dark'] {
  --bg: var(--emerald-900);
  --bg-alt: var(--emerald-950);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --text: #F3EFE4;
  --text-muted: rgba(243, 239, 228, 0.74);
  --text-faint: rgba(243, 239, 228, 0.55);
  --line: rgba(200, 169, 106, 0.28);
  --line-soft: rgba(243, 239, 228, 0.14);
  --accent: var(--gold);
  --accent-strong: var(--gold-soft);
  --btn-text-on-gold: #06281F;
  --header-bg: rgba(4, 45, 36, 0.82);

  /* Ivory section tokens (light band inside dark site) */
  --iv-bg: var(--ivory);
  --iv-text: #0B2C23;
  --iv-muted: #40584F;
  --iv-line: rgba(11, 44, 35, 0.14);
  --iv-accent: var(--gold-deep);
  --iv-surface: #FFFFFF;
}

[data-theme='light'] {
  --bg: var(--ivory);
  --bg-alt: #EFEADD;
  --surface: #FFFFFF;
  --surface-2: #FBF8F1;
  --text: #0B2C23;
  --text-muted: #40584F;
  --text-faint: #6B7E76;
  --line: rgba(11, 44, 35, 0.16);
  --line-soft: rgba(11, 44, 35, 0.1);
  --accent: var(--gold-deep);
  --accent-strong: #6F5423;
  --btn-text-on-gold: #06281F;
  --header-bg: rgba(247, 244, 236, 0.88);

  --iv-bg: #FFFFFF;
  --iv-text: #0B2C23;
  --iv-muted: #40584F;
  --iv-line: rgba(11, 44, 35, 0.14);
  --iv-accent: var(--gold-deep);
  --iv-surface: var(--ivory);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; font-weight: 500; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #06281F; padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm); font-weight: 600;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }

/* ---------- Typography atoms ---------- */
.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 var(--space-4);
}
.h-display {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
  text-wrap: balance;
}
.section-lede, .prose-lead {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 62ch;
}
.prose p { color: var(--text-muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  padding: var(--space-4) var(--space-8);
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: all 0.4s var(--ease); white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--btn-text-on-gold);
  box-shadow: 0 10px 30px -18px rgba(200, 169, 106, 0.9);
}
.btn--gold:hover { background: linear-gradient(135deg, #F0E4C4, var(--gold-soft)); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn--sm { padding: var(--space-3) var(--space-5); font-size: var(--text-xs); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--space-6); min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--accent); flex: 0 0 auto; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.02em; color: var(--text); }
.brand-sub { font-size: 0.625rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }

.nav { display: flex; align-items: center; gap: clamp(0.85rem, 1.7vw, 1.75rem); margin-left: auto; }
.nav a {
  font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--text-muted); padding-block: var(--space-2);
  position: relative; transition: color 0.3s var(--ease); white-space: nowrap;
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--accent); transition: width 0.4s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: var(--space-3); flex: 0 0 auto; }
.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-soft); border-radius: 50%;
  color: var(--text-muted); cursor: pointer; transition: all 0.3s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 17px; height: 17px; }
[data-theme='dark'] .icon-sun { display: none; }
[data-theme='light'] .icon-moon { display: none; }

.menu-toggle { display: none; width: 40px; height: 38px; background: none; border: 0; cursor: pointer; padding: 0; }
.menu-toggle span { display: block; height: 1px; background: var(--text); margin: 6px auto; width: 22px; transition: transform 0.35s var(--ease), opacity 0.2s; }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 7rem); }
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background: url('../img/hero.jpg') center right / cover no-repeat;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, var(--emerald-950) 6%, rgba(4, 53, 42, 0.9) 42%, rgba(4, 53, 42, 0.35) 74%, rgba(4, 53, 42, 0.15) 100%),
    linear-gradient(to top, var(--bg) 1%, rgba(4, 53, 42, 0) 40%);
}
[data-theme='light'] .hero::after {
  background:
    linear-gradient(100deg, var(--emerald-950) 6%, rgba(4, 53, 42, 0.92) 45%, rgba(4, 53, 42, 0.45) 78%, rgba(4, 53, 42, 0.2) 100%),
    linear-gradient(to top, rgba(2, 37, 28, 0.6) 1%, rgba(4, 53, 42, 0) 40%);
}
.hero-inner { position: relative; color: #F3EFE4; }
.hero .eyebrow { color: var(--gold); }
.hero-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--text-hero); letter-spacing: -0.02em; line-height: 1.02;
  max-width: 15ch; margin-bottom: var(--space-6); text-wrap: balance;
}
.hero-lede { font-size: var(--text-lg); font-weight: 300; line-height: 1.55; max-width: 48ch; color: rgba(243, 239, 228, 0.82); }
.status-pill {
  display: inline-flex; align-items: flex-start; gap: var(--space-3);
  border: 1px solid rgba(200, 169, 106, 0.4); border-radius: 999px;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-xs); letter-spacing: 0.05em; color: var(--gold-soft);
  background: rgba(2, 37, 28, 0.45); margin-bottom: var(--space-8);
  max-width: 100%; line-height: 1.4;
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; margin-top: 0.42em; box-shadow: 0 0 0 4px rgba(200, 169, 106, 0.16); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero-actions .btn--ghost { border-color: rgba(243, 239, 228, 0.3); color: #F3EFE4; }
.hero-actions .btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-6); margin: 0; max-width: 46rem; border-top: 1px solid rgba(200, 169, 106, 0.28); padding-top: var(--space-6); }
.hero-facts dt { font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-2); }
.hero-facts dd { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); color: #F3EFE4; line-height: 1.25; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); position: relative; }
.section--ivory { background: var(--iv-bg); color: var(--iv-text); }
.section--ivory .eyebrow { color: var(--iv-accent); }
.section--ivory .section-lede, .section--ivory .prose p, .section--ivory .prose-lead { color: var(--iv-muted); }
.section--emerald {
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(15, 92, 70, 0.6) 0%, rgba(4, 53, 42, 0) 60%),
    linear-gradient(175deg, var(--emerald-900), var(--emerald-950));
  color: #F3EFE4;
}
.section--emerald .eyebrow { color: var(--gold); }
.section--emerald .section-lede,
.section--emerald .prose p,
.section--emerald .prose-lead,
.section--emerald > .shell > p { color: rgba(243, 239, 228, 0.76); }
.section--emerald .grid-2 > div > p { color: rgba(243, 239, 228, 0.76); }
.section--deep {
  background:
    radial-gradient(90% 120% at 90% 10%, rgba(15, 92, 70, 0.55) 0%, rgba(2, 37, 28, 0) 62%),
    linear-gradient(200deg, var(--emerald-950), #01201A);
  color: #F3EFE4;
}
.section--deep .eyebrow { color: var(--gold); }
.section--deep .prose-lead { color: rgba(243, 239, 228, 0.78); }

/* grain overlay */
.section--emerald::before, .section--deep::before, .hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.35; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.section--emerald > *, .section--deep > * { position: relative; z-index: 1; }

.section-head { max-width: 60rem; margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); }
.section-head .h-display { max-width: 20ch; }

.grid-2 { display: grid; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
@media (min-width: 860px) {
  .grid-2--wide { grid-template-columns: 0.95fr 1.05fr; }
  .grid-2--media { grid-template-columns: 1fr 1fr; align-items: center; }
}
.note {
  border-left: 2px solid var(--iv-accent);
  padding: var(--space-4) 0 var(--space-4) var(--space-5);
  font-size: var(--text-sm); line-height: 1.6;
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(var(--space-6), 2.6vw, var(--space-8));
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease), background 0.45s var(--ease);
}
.section--emerald .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(243, 239, 228, 0.15);
  color: #F3EFE4;
}
.section--emerald .card .card-body { color: rgba(243, 239, 228, 0.78); }
.card::before {
  content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), rgba(200, 169, 106, 0));
  transition: width 0.6s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(200, 169, 106, 0.5); }
.card:hover::before { width: 100%; }
.card-kicker { font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--space-4); }
.card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; margin-bottom: var(--space-3); }
.card-hours {
  font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4;
  color: var(--gold-soft); margin-bottom: var(--space-5);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--space-3);
  max-width: 15rem;
}
.card-hours span { font-family: var(--font-display); font-size: 2.25rem; letter-spacing: 0; color: var(--gold); line-height: 1; }
.card-body { font-size: var(--text-sm); line-height: 1.7; }
.card-list { margin: 0 0 var(--space-6); font-size: var(--text-sm); }
.card-list li { position: relative; padding-left: var(--space-5); margin-bottom: var(--space-2); color: rgba(243, 239, 228, 0.78); line-height: 1.5; }
.card-list li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1px; background: var(--gold); }
.card-foot {
  margin: auto 0 0; padding-top: var(--space-5); border-top: 1px solid rgba(243, 239, 228, 0.12);
  font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243, 239, 228, 0.62);
}
.card--cta { background: linear-gradient(160deg, rgba(200, 169, 106, 0.16), rgba(200, 169, 106, 0.03)); border-color: rgba(200, 169, 106, 0.4); }
.card--cta .btn { margin-bottom: var(--space-5); align-self: flex-start; }
.card--cta .card-foot { margin-top: auto; }

/* ---------- Full bleed ---------- */
.bleed { height: clamp(220px, 34vw, 460px); background-size: cover; background-position: center; position: relative; }
.bleed--tracks { background-image: url('../img/tracks.jpg'); background-position: center 38%; }
.bleed::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(2, 37, 28, 0.5), rgba(2, 37, 28, 0.15) 40%, rgba(2, 37, 28, 0.5)); }
.bleed--texture {
  background-image: url('../img/texture.jpg');
  height: auto; min-height: clamp(220px, 26vw, 340px);
  display: grid; place-content: center; text-align: center;
  padding: clamp(var(--space-10), 6vw, var(--space-20)) clamp(1.25rem, 6vw, 4rem);
}
.bleed--texture::after { background: linear-gradient(to bottom, rgba(2, 37, 28, 0.86), rgba(2, 37, 28, 0.7)); }
.bleed-quote {
  position: relative; z-index: 1; margin: 0 auto var(--space-4); max-width: 24ch;
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 300;
  font-style: italic; line-height: 1.3; color: #F3EFE4; text-wrap: balance;
}
.bleed-attrib {
  position: relative; z-index: 1; margin: 0;
  font-size: var(--text-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}

/* ---------- Requirements ---------- */
.req-grid { display: grid; gap: clamp(var(--space-8), 4vw, var(--space-12)); }
@media (min-width: 900px) { .req-grid { grid-template-columns: 1fr 1fr; } }
.req { border-top: 1px solid var(--iv-line); padding-top: var(--space-6); }
.req-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 400; margin-bottom: var(--space-6); }
.req-list li {
  position: relative; padding-left: var(--space-6); margin-bottom: var(--space-4);
  font-size: var(--text-sm); line-height: 1.65; color: var(--iv-muted);
}
.req-list li strong { color: var(--iv-text); font-weight: 600; }
.req-list li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 12px; height: 1px; background: var(--iv-accent); }
.req-src { font-size: var(--text-xs); line-height: 1.7; color: var(--iv-muted); border-top: 1px solid var(--iv-line); padding-top: var(--space-4); }
.req-src a { color: var(--iv-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.req-src a:hover { color: var(--iv-text); }
.req-note {
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
  padding: var(--space-5) var(--space-6);
  background: var(--iv-surface); border: 1px solid var(--iv-line); border-left: 2px solid var(--iv-accent);
  font-size: var(--text-sm); color: var(--iv-muted); max-width: 70ch;
}

/* ---------- Instructor ---------- */
.instructor-figure { margin: 0; position: relative; }
.instructor-figure img { border-radius: var(--radius); border: 1px solid rgba(200, 169, 106, 0.25); width: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.instructor-figure figcaption { margin-top: var(--space-3); font-size: var(--text-xs); letter-spacing: 0.08em; color: rgba(243, 239, 228, 0.55); }
.license-list { margin-top: var(--space-8); border-top: 1px solid rgba(200, 169, 106, 0.28); }
.license-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-4);
  padding: var(--space-4) 0; border-bottom: 1px solid rgba(243, 239, 228, 0.1);
}
.license-label { font-size: var(--text-sm); color: rgba(243, 239, 228, 0.78); }
.license-num { font-family: var(--font-display); font-size: var(--text-base); color: var(--gold-soft); letter-spacing: 0.04em; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.steps li { position: relative; padding-left: clamp(3.25rem, 6vw, 4.5rem); padding-bottom: var(--space-8); border-left: 1px solid var(--iv-line); margin-left: var(--space-3); }
.steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
.step-num {
  position: absolute; left: 0; top: 0; transform: translateX(-50%);
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--iv-bg); border: 1px solid var(--iv-accent); color: var(--iv-accent);
  display: grid; place-items: center; font-size: var(--text-xs); letter-spacing: 0.08em;
}
.steps h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; margin-bottom: var(--space-2); }
.steps p { font-size: var(--text-sm); color: var(--iv-muted); max-width: 46ch; margin-bottom: 0; }
.how-figure { margin: 0; }
.how-figure img { border-radius: var(--radius); border: 1px solid var(--iv-line); width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------- Contact + Form ---------- */
.contact-list { margin-top: var(--space-8); border-top: 1px solid rgba(200, 169, 106, 0.28); }
.contact-list li { padding: var(--space-5) 0; border-bottom: 1px solid rgba(243, 239, 228, 0.1); display: grid; gap: var(--space-1); }
.contact-label { font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.contact-value { font-family: var(--font-display); font-size: var(--text-lg); color: #F3EFE4; text-decoration: none; transition: color 0.3s var(--ease); overflow-wrap: anywhere; }
.contact-value:hover { color: var(--gold-soft); }
.contact-meta { font-size: var(--text-xs); color: rgba(243, 239, 228, 0.55); }

.waitlist-form {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(200, 169, 106, 0.3);
  border-radius: var(--radius); padding: clamp(var(--space-6), 3vw, var(--space-10));
  backdrop-filter: blur(4px);
}
.form-title { font-family: var(--font-display); font-size: var(--text-xl); margin-bottom: var(--space-6); color: #F3EFE4; }
.field { margin-bottom: var(--space-5); }
.field label { display: block; font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-2); }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(2, 37, 28, 0.45); border: 1px solid rgba(243, 239, 228, 0.18);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4);
  color: #F3EFE4; font-family: var(--font-body); font-size: var(--text-sm);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input::placeholder, .field textarea::placeholder { color: rgba(243, 239, 228, 0.38); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); background: rgba(2, 37, 28, 0.7); outline: none; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C8A96A' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: var(--space-10); }
.field select option { background: #04352A; color: #F3EFE4; }
.form-note { margin: var(--space-5) 0 0; font-size: var(--text-xs); line-height: 1.7; color: rgba(243, 239, 228, 0.68); }
.form-note a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.form-note.is-active { color: var(--gold-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #01201A; color: rgba(243, 239, 228, 0.62); padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-10); border-top: 1px solid rgba(200, 169, 106, 0.25); }
.footer-top { display: flex; flex-wrap: wrap; gap: var(--space-8); justify-content: space-between; align-items: center; padding-bottom: var(--space-8); border-bottom: 1px solid rgba(243, 239, 228, 0.1); }
.brand--footer .brand-name { color: #F3EFE4; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.footer-nav a { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: rgba(243, 239, 228, 0.6); transition: color 0.3s var(--ease); }
.footer-nav a:hover { color: var(--gold); }
.disclaimer {
  margin: var(--space-8) 0; padding: var(--space-5) var(--space-6);
  border: 1px solid rgba(200, 169, 106, 0.28); border-left: 2px solid var(--gold);
  font-size: var(--text-xs); line-height: 1.75; color: rgba(243, 239, 228, 0.78); max-width: 76ch;
  background: rgba(200, 169, 106, 0.05);
}
.footer-bottom p { margin: 0 0 var(--space-2); font-size: var(--text-xs); line-height: 1.7; }
.footer-bottom a { color: var(--gold-soft); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
.copyright { color: rgba(243, 239, 228, 0.45); margin-top: var(--space-4); }

/* ---------- Reveal ---------- */
.reveal, .js .anim { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in, .js .anim.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .js .anim { opacity: 1 !important; transform: none !important; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav {
    position: fixed; inset: 74px 0 auto; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--bg-alt); border-bottom: 1px solid var(--line);
    padding: var(--space-4) clamp(1.25rem, 5vw, 3rem) var(--space-8);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
    max-height: calc(100vh - 74px); overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { width: 100%; padding: var(--space-4) 0; border-bottom: 1px solid var(--line-soft); font-size: var(--text-sm); }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav-cta { display: inline-flex; width: 100%; margin-top: var(--space-5); border-bottom: 0; letter-spacing: 0.1em; }
  .nav a.nav-cta::after { display: none; }
  .nav a.nav-cta { color: var(--btn-text-on-gold); padding: var(--space-4) var(--space-6); }
}
@media (max-width: 560px) {
  .hero-title { max-width: 100%; }
  .hero-actions .btn { width: 100%; }
  .status-pill { border-radius: var(--radius); }
  .card-hours { flex-wrap: wrap; }
  .license-list li { flex-direction: column; gap: var(--space-1); }
  .footer-top { flex-direction: column; align-items: flex-start; gap: var(--space-6); }
}

/* ============================================================
   MULTI-PAGE EXTENSION — contextual content tokens
   Every new component below reads --c-* so it is correct in both
   themes and on both ivory and emerald section backgrounds.
   ============================================================ */
:root, [data-theme='dark'], [data-theme='light'] {
  --c-text: var(--text);
  --c-muted: var(--text-muted);
  --c-faint: var(--text-faint);
  --c-accent: var(--accent);
  --c-line: var(--line);
  --c-line-soft: var(--line-soft);
  --c-surface: var(--surface);
}
.section--ivory {
  --c-text: var(--iv-text);
  --c-muted: var(--iv-muted);
  --c-faint: #5C716A;
  --c-accent: var(--iv-accent);
  --c-line: var(--iv-line);
  --c-line-soft: rgba(11, 44, 35, 0.09);
  --c-surface: var(--iv-surface);
}
.section--emerald, .section--deep {
  --c-text: #F3EFE4;
  --c-muted: rgba(243, 239, 228, 0.8);
  --c-faint: rgba(243, 239, 228, 0.62);
  --c-accent: var(--gold);
  --c-line: rgba(200, 169, 106, 0.3);
  --c-line-soft: rgba(243, 239, 228, 0.14);
  --c-surface: rgba(255, 255, 255, 0.05);
}

/* ---------- shared content typography ---------- */
.shell.narrow { max-width: 50rem; }
.shell.center { text-align: center; }
.center-block { margin-inline: auto; }
.center-actions { justify-content: center; }

.section--ivory h2, .section--emerald h2, .section--deep h2,
.page-hero h2 { color: var(--c-text); }
.section h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-xl); letter-spacing: -0.01em;
  margin: clamp(var(--space-10), 5vw, var(--space-16)) 0 var(--space-5);
  text-wrap: balance;
}
.section h2:first-child { margin-top: 0; }
.section h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); margin-bottom: var(--space-3); color: var(--c-text); }
.section p { color: var(--c-muted); max-width: 68ch; }
.section a:not(.btn):not(.brand) { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.section a:not(.btn):not(.brand):hover { color: var(--c-text); }
.lede-para { font-size: var(--text-lg); font-weight: 300; line-height: 1.55; }
.small { font-size: var(--text-sm); line-height: 1.7; color: var(--c-muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.arrow-link { font-size: var(--text-sm); letter-spacing: 0.02em; }
.arrow-link::after { content: ' \203A'; }

/* ---------- page hero (subpages) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 4rem);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(110% 130% at 8% 0%, rgba(15, 92, 70, 0.5) 0%, rgba(4, 53, 42, 0) 62%);
  opacity: 1;
}
[data-theme='light'] .page-hero::before {
  background: radial-gradient(110% 130% at 8% 0%, rgba(200, 169, 106, 0.22) 0%, rgba(247, 244, 236, 0) 62%);
}
.page-hero--alert { border-bottom-color: var(--accent); }
.page-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--text-2xl); line-height: 1.06; letter-spacing: -0.02em;
  max-width: 34ch; margin-bottom: var(--space-5); text-wrap: balance; color: var(--text);
}
.page-lede { font-size: var(--text-lg); font-weight: 300; line-height: 1.55; color: var(--text-muted); max-width: 62ch; }
.hours-badge {
  display: inline-flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
  margin: var(--space-6) 0 0; padding: var(--space-3) var(--space-5);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
  background: var(--surface);
}
.hours-badge span { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; letter-spacing: 0; color: var(--accent); }

/* pending-status notice */
.status-note {
  display: flex; align-items: flex-start; gap: var(--space-3);
  margin: var(--space-6) 0 0; padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line); border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: var(--text-sm); line-height: 1.65; color: var(--text-muted); max-width: 74ch;
}
.status-note strong { color: var(--text); }
.status-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; margin-top: 0.55em; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { background: var(--bg); padding-block: var(--space-4); border-bottom: 1px solid var(--line-soft); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); font-size: var(--text-xs); letter-spacing: 0.08em; }
.breadcrumbs li { color: var(--text-faint); }
.breadcrumbs li + li::before { content: '/'; margin-right: var(--space-3); color: var(--line); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current='page'] { color: var(--accent); }

/* ---------- Q&A blocks (GEO direct answers) ---------- */
.qa { margin-bottom: clamp(var(--space-8), 4vw, var(--space-12)); }
.qa-q {
  font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl);
  line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 var(--space-4); color: var(--c-text);
  text-wrap: balance;
}
h3.qa-q { font-size: var(--text-lg); }
.qa-a {
  font-size: var(--text-base); line-height: 1.72; color: var(--c-text);
  border-left: 2px solid var(--c-accent); padding-left: var(--space-5); max-width: 68ch;
  margin-bottom: var(--space-4);
}
.qa-a strong { font-weight: 600; }
.qa-extra { font-size: var(--text-sm); line-height: 1.7; color: var(--c-muted); padding-left: var(--space-5); }

/* ---------- lists ---------- */
.check-list li, .flag-list li, .num-list li {
  position: relative; padding-left: var(--space-6); margin-bottom: var(--space-3);
  font-size: var(--text-sm); line-height: 1.7; color: var(--c-muted); max-width: 68ch;
}
.check-list li strong, .flag-list li strong, .num-list li strong { color: var(--c-text); font-weight: 600; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 12px; height: 1px; background: var(--c-accent); }
.check-list--boxed {
  border: 1px solid var(--c-line); border-left: 2px solid var(--c-accent);
  padding: var(--space-6) var(--space-6) var(--space-4);
  background: var(--c-surface); margin-bottom: var(--space-6);
}
.check-list--boxed li:last-child { margin-bottom: 0; }
.flag-list li { padding-left: var(--space-8); margin-bottom: var(--space-5); }
.flag-list li::before {
  content: '!'; position: absolute; left: 0; top: 0.15em;
  width: 1.35rem; height: 1.35rem; border-radius: 50%;
  border: 1px solid var(--c-accent); color: var(--c-accent);
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 600;
}
.num-list { counter-reset: n; }
.num-list li { counter-increment: n; padding-left: var(--space-8); margin-bottom: var(--space-4); }
.num-list li::before {
  content: counter(n); position: absolute; left: 0; top: 0.05em;
  font-family: var(--font-display); font-size: var(--text-base); color: var(--c-accent);
  width: 1.4rem; text-align: right;
}

/* ---------- module list ---------- */
.modules { counter-reset: m; margin-bottom: var(--space-8); }
.modules li {
  position: relative; padding-left: clamp(2.75rem, 5vw, 3.5rem);
  padding-bottom: var(--space-6); margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--c-line-soft);
}
.modules li:last-child { border-bottom: 0; margin-bottom: 0; }
.mod-num {
  position: absolute; left: 0; top: 0.1em;
  font-family: var(--font-display); font-size: var(--text-lg); color: var(--c-accent); letter-spacing: 0.02em;
}
.modules h3 { margin-bottom: var(--space-2); font-size: var(--text-lg); }
.modules p { font-size: var(--text-sm); line-height: 1.7; color: var(--c-muted); margin: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: var(--space-6) 0 var(--space-8); border: 1px solid var(--c-line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.ce-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 34rem; }
.ce-table caption {
  text-align: left; padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-accent); border-bottom: 1px solid var(--c-line);
}
.ce-table th, .ce-table td { padding: var(--space-4) var(--space-5); text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line-soft); }
.ce-table thead th { font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-faint); font-weight: 500; }
.ce-table tbody th { color: var(--c-text); font-weight: 500; line-height: 1.5; }
.ce-table tbody td { color: var(--c-muted); }
.ce-table tbody tr:last-child th, .ce-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- table of contents ---------- */
.toc {
  border: 1px solid var(--c-line); border-left: 2px solid var(--c-accent);
  background: var(--c-surface); padding: var(--space-6);
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.toc-h { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-accent); margin: 0 0 var(--space-4); font-weight: 500; }
.toc ul { display: grid; gap: var(--space-2); }
.toc li { font-size: var(--text-sm); line-height: 1.6; }

/* ---------- link box (internal linking) ---------- */
.linkbox {
  border-top: 1px solid var(--c-accent);
  padding-top: var(--space-6); margin: clamp(var(--space-12), 6vw, var(--space-20)) 0 var(--space-10);
}
.linkbox h2 { margin: 0 0 var(--space-5); font-size: var(--text-lg); }
.linkbox ul { display: grid; gap: var(--space-3); }
.linkbox li { font-size: var(--text-sm); line-height: 1.6; }

/* ---------- CTA strip ---------- */
.cta-strip {
  display: grid; gap: var(--space-6); align-items: center;
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  border: 1px solid var(--c-accent); border-radius: var(--radius);
  background: color-mix(in srgb, var(--c-accent) 8%, transparent);
  margin: var(--space-10) 0;
}
@media (min-width: 800px) { .cta-strip { grid-template-columns: 1.4fr 1fr; } }
.cta-strip h2 { margin: 0 0 var(--space-3); font-size: var(--text-lg); }
.cta-strip p { margin: 0; font-size: var(--text-sm); }
.cta-strip-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- last updated ---------- */
.updated {
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
  padding-top: var(--space-5); border-top: 1px solid var(--c-line);
  font-size: var(--text-xs); line-height: 1.75; color: var(--c-faint);
}
.updated-label { letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-accent); }

/* ---------- verify page ---------- */
.verify-grid { display: grid; gap: var(--space-5); margin-bottom: var(--space-8); }
@media (min-width: 700px) { .verify-grid { grid-template-columns: 1fr 1fr; } }
.verify-card {
  border: 1px solid var(--c-line); border-top: 2px solid var(--c-accent);
  padding: var(--space-6); background: var(--c-surface);
}
.verify-card h3 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-accent); margin-bottom: var(--space-3); font-weight: 500; }
.verify-value { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.3; color: var(--c-text); margin: 0 0 var(--space-2); overflow-wrap: anywhere; }
.verify-value a { color: var(--c-text) !important; }
.verify-note { font-size: var(--text-xs); color: var(--c-faint); margin: 0; }
.steps--compact li { padding-bottom: var(--space-6); }
.steps--compact p { margin-bottom: 0; }
.steps--compact .step-num { background: var(--c-surface); border-color: var(--c-accent); color: var(--c-accent); }
.section--ivory .steps li { border-left-color: var(--iv-line); }

/* ---------- legal pages ---------- */
.legal h2 { font-size: var(--text-lg); margin-top: clamp(var(--space-8), 4vw, var(--space-12)); }
.legal p, .legal li { font-size: var(--text-sm); line-height: 1.75; }
.agent-block {
  border: 1px solid var(--c-line); border-left: 2px solid var(--c-accent);
  padding: var(--space-5) var(--space-6); background: var(--c-surface); margin-bottom: var(--space-6);
}
.agent-block p { margin: 0; font-size: var(--text-sm); line-height: 1.9; color: var(--c-text); }
.legal code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--c-surface); padding: 0.1em 0.4em; border: 1px solid var(--c-line-soft); }

/* ---------- light-theme variants of dark components ---------- */
.instructor-figure--light img { border-color: var(--iv-line); }
.instructor-figure--light figcaption { color: var(--iv-muted); }
.license-list--light { border-top-color: var(--iv-accent); }
.license-list--light li { border-bottom-color: var(--iv-line); }
.license-list--light .license-label { color: var(--iv-muted); }
.license-list--light .license-num { color: var(--iv-accent); }
.contact-list--light { border-top-color: var(--iv-accent); }
.contact-list--light li { border-bottom-color: var(--iv-line); }
.contact-list--light .contact-label { color: var(--iv-accent); }
.contact-list--light .contact-value { color: var(--iv-text); }
.contact-list--light .contact-value:hover { color: var(--iv-accent); }
.contact-list--light .contact-meta { color: var(--iv-muted); }
.contact-value--plain { text-decoration: none; }

.waitlist-form--light { background: var(--iv-surface); border-color: var(--iv-line); }
.waitlist-form--light .form-title { color: var(--iv-text); }
.waitlist-form--light .field label { color: var(--iv-accent); }
.waitlist-form--light .field input,
.waitlist-form--light .field select,
.waitlist-form--light .field textarea {
  background: #FFFFFF; border-color: rgba(11, 44, 35, 0.22); color: var(--iv-text);
}
[data-theme='light'] .waitlist-form--light .field input,
[data-theme='light'] .waitlist-form--light .field select,
[data-theme='light'] .waitlist-form--light .field textarea { background: var(--ivory-2); }
.waitlist-form--light .field input::placeholder,
.waitlist-form--light .field textarea::placeholder { color: #7A8C85; }
.waitlist-form--light .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A6B31' stroke-width='1.4'/%3E%3C/svg%3E"); }
.waitlist-form--light .field select option { background: #FFFFFF; color: var(--iv-text); }
.waitlist-form--light .form-note { color: var(--iv-muted); }
.waitlist-form--light .form-note a { color: var(--iv-accent); }
.form-privacy {
  font-size: var(--text-xs); line-height: 1.7; color: var(--iv-muted);
  border-left: 2px solid var(--iv-accent); padding-left: var(--space-4); margin-bottom: var(--space-6);
}
/* Honeypot: hidden from sight, screen readers and tab order. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- card headings become links ---------- */
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover { color: var(--gold-soft); }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card { position: relative; }

/* ---------- footer (multi-page) ---------- */
.footer-trust {
  border: 1px solid rgba(200, 169, 106, 0.3); border-left: 2px solid var(--gold);
  background: rgba(200, 169, 106, 0.06);
  padding: var(--space-4) var(--space-5); margin-bottom: var(--space-10);
}
.footer-trust p { margin: 0; font-size: var(--text-xs); line-height: 1.75; color: rgba(243, 239, 228, 0.8); max-width: none; }
.footer-trust strong { color: var(--gold-soft); }
.footer-trust a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }

.footer-grid { display: grid; gap: clamp(var(--space-8), 4vw, var(--space-12)); padding-bottom: var(--space-10); border-bottom: 1px solid rgba(243, 239, 228, 0.1); }
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brandcol .brand { margin-bottom: var(--space-5); }
.footer-blurb { font-size: var(--text-xs); line-height: 1.85; color: rgba(243, 239, 228, 0.62); max-width: 34ch; margin-bottom: var(--space-4); }
.footer-blurb a { color: var(--gold-soft); text-decoration: none; }
.footer-blurb a:hover { text-decoration: underline; }
.footer-h { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-4); font-weight: 500; }
.footer-col ul { display: grid; gap: var(--space-3); }
.footer-col a { font-size: var(--text-xs); letter-spacing: 0.04em; text-decoration: none; color: rgba(243, 239, 228, 0.72); line-height: 1.5; }
.footer-col a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- misc ---------- */
img { background: transparent; }
@media (max-width: 560px) {
  .hours-badge { width: 100%; }
  .cta-strip-actions .btn { width: 100%; }
  .qa-a { padding-left: var(--space-4); }
}

/* ---------- Footer contrast fixes (footer is always dark emerald in BOTH themes,
   so it must never inherit the light-theme accent or low-alpha text) ---------- */
.brand--footer .brand-sub { color: var(--gold-soft); }
.site-footer .copyright { color: rgba(243, 239, 228, 0.68); }
.site-footer .disclaimer { color: rgba(243, 239, 228, 0.78); }
.site-footer .footer-nav a { color: rgba(243, 239, 228, 0.72); }
.site-footer a:not(.btn):not(.brand) { color: var(--gold-soft); }

/* Card titles are links but the whole card is the hit area — keep them clean */
.section .card h3 a:not(.btn), .card h3 a { text-decoration: none; color: inherit; }
.section .card h3 a:not(.btn):hover, .card h3 a:hover { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 4px; }
/* Breadcrumb + TOC links inherit the section underline rule; keep TOC readable */
.toc a { text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }

/* Status notice: block flow so mixed strong/plain text runs read as one paragraph
   (flex turned each text run into its own column) */
.status-note {
  display: block; position: relative;
  padding-left: calc(var(--space-5) + 1rem);
}
.status-note .dot { position: absolute; left: var(--space-5); top: 1.55em; margin: 0; }

/* The light-form background shorthand reset the select arrow positioning — restore it */
.waitlist-form--light .field select {
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px 8px;
  padding-right: var(--space-10);
}
.waitlist-form--light .field input:focus,
.waitlist-form--light .field select:focus,
.waitlist-form--light .field textarea:focus { border-color: var(--iv-accent); background-color: #FFFFFF; }

/* ---------- CE topic pages ---------- */
.topic-status { display: inline-block; margin-top: var(--space-4); padding: 0.5rem 1rem; border: 1px solid var(--gold);
  border-radius: 999px; font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.06em;
  color: var(--gold); }
.topic-status strong { font-weight: 500; }
.topic-tracks { margin: var(--space-5) 0 var(--space-4); }
.topic-tracks ul { display: grid; gap: var(--space-2); list-style: none; padding: 0; }
.topic-tracks li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4);
  padding: 0.85rem 1.1rem; border: 1px solid var(--c-line); border-radius: var(--radius); }
.topic-tracks a { text-decoration: none; color: inherit; font-weight: 500; }
.topic-tracks a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.track-hours { flex: none; font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--c-muted); }

/* ---------------------------------------------------------------- payment methods */
.pay-grid {
  display: grid;
  gap: var(--space-6);
  margin-block: var(--space-8);
}
@media (min-width: 640px) { .pay-grid { grid-template-columns: 1fr 1fr; } }
.pay-group { min-width: 0; }
.pay-label {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent-strong);
}
.section--emerald .pay-label, .section--deep .pay-label { color: var(--gold); }
.pay-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.pay-pill {
  display: inline-block;
  padding: 0.4em 0.85em;
  border: 1px solid color-mix(in srgb, currentColor 26%, transparent);
  border-radius: 999px;
  font-size: var(--text-sm);
  line-height: 1.3;
  white-space: nowrap;
  background: color-mix(in srgb, currentColor 5%, transparent);
}

/* ---------------------------------------------------------------- city links */
.city-links { margin-block: var(--space-6); }
.city-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
}
.city-links li { margin: 0; }
.city-links a {
  display: inline-block;
  padding: 0.4em 0.9em;
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  border-radius: 999px;
  font-size: var(--text-sm);
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.city-links a:hover,
.city-links a:focus-visible {
  border-color: currentColor;
  background: color-mix(in srgb, currentColor 8%, transparent);
}

/* footer city row */
.footer-cities { margin-top: var(--space-10); padding-top: var(--space-8); border-top: 1px solid rgba(243, 239, 228, 0.12); }
.footer-cities ul {
  list-style: none; margin: var(--space-4) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
}
.footer-cities li { margin: 0; }
.footer-cities a { font-size: var(--text-sm); text-decoration: none; }

/* ---------- guide pages: lead answer + numbered steps ---------- */
.qa.qa--lead {
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--accent-strong);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-8);
}
.qa.qa--lead .qa-a { margin: 0; }
ol.step-list {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: var(--space-4) 0 var(--space-6);
}
ol.step-list > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: var(--space-3);
}
ol.step-list > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  color: var(--accent-strong);
}

/* ---------- Language switch (English / Español) ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 0.34rem 0.78rem; font-size: var(--text-xs); letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-muted); text-decoration: none;
  white-space: nowrap; transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.lang-switch:hover { color: var(--accent); border-color: var(--accent); }
.lang-switch::after { display: none !important; }
.header-actions .lang-switch { display: none; }
@media (min-width: 1021px) {
  .header-actions .lang-switch { display: inline-flex; }
  .nav .lang-switch--nav { display: none; }
}
@media (max-width: 1020px) {
  .nav .lang-switch--nav {
    width: auto; align-self: flex-start; margin-top: var(--space-4);
    padding: 0.6rem 1.15rem; border: 1px solid var(--line-soft);
    font-size: var(--text-sm); letter-spacing: 0.09em;
  }
}
