/* cliveelliott.net — Editorial Calm theme
 * Hand-rolled CSS, zero deps. Tokens lifted from the design wireframe.
 */

/* -------- Tokens -------- */
:root {
  --navy: #0e1a2b;
  --navy-2: #16243a;
  --cream: #f4f1ea;
  --cream-2: #ecead9;
  --paper: #fbf9f4;
  --gold: #c9a96e;
  --gold-2: #b8965a;
  /* Darker gold for small-text accessibility — 4.7:1 vs cream, passes WCAG AA.
   * The lighter brand golds remain for large/decorative use on dark bg. */
  --gold-text: #84642f;
  /* Mid-dark gold — passes large-text 3:1 vs cream/paper. Used for hero h1 em
   * and the big pillar 01/02/03 numerals. */
  --gold-large: #9c7a3a;
  --ink: #1a1d24;
  --muted: #5b5f68;
  --rule: rgba(14, 26, 43, 0.12);
  --rule-light: rgba(244, 241, 234, 0.12);

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ui: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;

  --container: 1180px;
  --pad-x: 40px;
  --pad-x-mobile: 24px;

  --radius: 6px;
}

/* -------- Reset / base -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--navy);
  line-height: 1.1;
}
p { margin: 0; }

/* Skip link */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 14px;
  background: var(--navy);
  color: var(--cream);
}

/* -------- Layout helpers -------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
@media (max-width: 720px) {
  .container { padding: 0 var(--pad-x-mobile); }
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 700;
  margin: 0 0 14px;
}
.eyebrow.dark { color: var(--gold); }

/* .section-head is chrome-tier (full container width). The typographic
 * line-length constraint moves to the heading itself — the eyebrow + h2
 * read narrow, but the wrapper still spans chrome so the page-snap test
 * sees a single chrome-tier element. */
.section-head { max-width: none; }
.section-head h2 {
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.1;
  max-width: 640px;
}
.section-head.dark h2 { color: var(--cream); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.12s ease, background-color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
  background: transparent;
  line-height: 1.2;
}
.btn--primary {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.btn--primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--navy); }

.btn .icon { width: 14px; height: 14px; }

/* Pills (qualification chips) */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(14, 26, 43, 0.06);
  color: var(--navy);
  margin: 0 6px 6px 0;
}

/* TODO panel — clearly styled so Clive sees it */
.todo {
  display: block;
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: var(--cream);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  border-radius: 0 4px 4px 0;
}
.todo strong { color: var(--gold-text); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; font-weight: 700; }
.todo code { background: rgba(14, 26, 43, 0.06); padding: 1px 6px; border-radius: 3px; font-size: 0.92em; }
/* TODO inside the navy timetable section needs a flipped palette */
.timetable .todo {
  background: var(--navy-2);
  color: var(--cream);
  border-left-color: var(--gold);
}
.timetable .todo strong { color: var(--gold); }
.timetable .todo code { background: rgba(244, 241, 234, 0.10); color: var(--cream); }

/* -------- Utility bar -------- */
.utility {
  background: var(--navy);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
}
.utility-locations { opacity: 0.75; }
.utility-contact {
  display: flex;
  gap: 18px;
  opacity: 0.85;
}
.utility-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}
.utility-contact a:hover { opacity: 0.7; }
@media (max-width: 720px) {
  .utility-locations { display: none; }
  .utility .container { justify-content: center; }
}

/* -------- Header / nav -------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
}
.brand-mark { flex: 0 0 40px; width: 40px; height: 40px; }
.brand-text { line-height: 1.1; }
.brand-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  font-weight: 500;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 0.15s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { opacity: 1; }
/* Active-page highlight — the page sets aria-current="page" on the matching
 * nav link, this rule makes the state read visibly. Gold-text + heavier weight
 * + gold underline; passes 4.7:1 contrast on the cream nav bg. */
.site-nav a[aria-current="page"] {
  opacity: 1;
  color: var(--gold-text);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .site-header.is-open .site-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 16px var(--pad-x);
    gap: 14px;
    border-bottom: 1px solid var(--rule);
  }
}
@media (max-width: 720px) {
  .site-header.is-open .site-nav { padding: 16px var(--pad-x-mobile); }
}

/* -------- Hero (split) -------- */
/* ========== Hero — full-bleed with captured family-class image ========== */
.hero {
  position: relative;
  min-height: 620px;
  padding: 96px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
}
.hero-photo {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
/* Veil for legibility — Editorial Calm darken from navy bottom-left */
.hero-photo-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(14,26,43,0.78) 0%, rgba(14,26,43,0.62) 35%, rgba(14,26,43,0.30) 65%, rgba(14,26,43,0.10) 100%),
    linear-gradient(180deg, rgba(14,26,43,0.20) 0%, rgba(14,26,43,0.45) 100%);
}
/* The hero now uses a standard chrome-tier .container as its inner wrapper
 * (separate element from .hero-content). This anchors the text overlay at
 * the same left padding-edge as every other section on the page — preserving
 * page-snap. The previous v2.2 markup combined .container + .hero-content on
 * one element, which made the smaller .hero-content max-width (660) win and
 * .container's margin: 0 auto centred the whole 660 box, drifting the hero
 * text 300px right of the rest of the page's content (left=466 vs 166 at
 * 1512vw). Role gotcha #12. */
.hero > .container {
  position: relative;
  z-index: 1;
  /* Flex child — must explicitly take the full available width so its
   * 1180 max-width + auto margins still apply (same trap as .content-hero
   * .container; without width:100% it shrinks to its content ~616px and
   * drifts toward viewport-centre). Role gotcha (inherited from v2.2.1). */
  width: 100%;
}
.hero-content {
  max-width: 660px;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--cream);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
  display: block;
}
.eyebrow--light { color: var(--gold); }
.hero-body {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.85);
  max-width: 520px;
  margin-top: 24px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
/* Hero primary CTA — gold on navy text, the wireframe's full-bleed treatment.
 * 8.6:1 contrast (#c9a96e bg vs #0e1a2b text) — passes WCAG AAA. */
.hero-cta .btn--primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}
.hero-cta .btn--primary:hover,
.hero-cta .btn--primary:focus-visible {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: var(--navy);
}
.btn--ghost-light {
  border-color: rgba(244, 241, 234, 0.85);
  color: var(--cream);
  font-weight: 600;
  border-width: 1.5px;
  background: rgba(14, 26, 43, 0.18);
}
.btn--ghost-light:hover, .btn--ghost-light:focus-visible {
  border-color: var(--cream);
  color: var(--cream);
  background: rgba(14, 26, 43, 0.32);
}
.hero-stats {
  display: flex;
  gap: 14px;
  margin-top: 44px;
  flex-wrap: wrap;
}
/* Stats blocks — frosted-glass tint so they separate from the photo
 * without losing the hero's photographic feel. backdrop-filter is the
 * primary visual; the rgba navy fill is the fallback for browsers
 * that don't support backdrop-filter (older Firefox in particular). */
.stat {
  padding: 12px 18px;
  border-radius: var(--radius);
  background: rgba(14, 26, 43, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(244, 241, 234, 0.12);
}
.stat-n {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
}
.stat-l {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.78);
  margin-top: 6px;
}

@media (max-width: 1024px) {
  .hero { min-height: 540px; padding: 80px 0 64px; }
}
@media (max-width: 720px) {
  .hero { min-height: 520px; padding: 56px 0 56px; }
  .hero h1 { font-size: clamp(36px, 9vw, 56px); }
  .hero-stats { gap: 24px; }
}

/* -------- Pillars -------- */
.pillars {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.pillars .container {
  padding-top: 56px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.pillar { display: flex; gap: 18px; }
.pillar-n {
  font-family: var(--display);
  font-size: 36px;
  color: var(--gold-large);
  line-height: 1;
  font-weight: 600;
  flex: 0 0 auto;
}
.pillar-k {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--navy);
}
.pillar-v {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 1024px) {
  .pillars .container { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
}

/* -------- Instructors -------- */
.instructors { padding: 88px 0; background: var(--cream); }
.instructors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 48px;
}
.instructor {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
}
.instructor-photo {
  width: 180px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  background: var(--navy-2);
}
.instructor-role {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 700;
  margin-bottom: 6px;
}
.instructor h3 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 12px;
}
.instructor-bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 14px;
}
.instructor-quals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

@media (max-width: 1024px) {
  .instructors { padding: 64px 0; }
  .instructors-grid { grid-template-columns: 1fr; gap: 48px; }
  .instructor { grid-template-columns: 140px 1fr; gap: 22px; }
  .instructor-photo { width: 140px; }
}
@media (max-width: 480px) {
  .instructor { grid-template-columns: 1fr; }
  .instructor-photo { width: 160px; max-width: 100%; }
}

/* -------- Timetable -------- */
.timetable {
  background: var(--navy);
  color: var(--cream);
  padding: 88px 0;
}
.timetable .section-head h2 { color: var(--cream); }
.timetable-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 24px;
  flex-wrap: wrap;
}
.pdf-link {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pdf-link:hover { color: var(--cream); }
/* On light backgrounds (page-header on the timetable page), drop to the
   darker --gold-text token for 4.7:1 contrast vs paper. */
.page-header .pdf-link {
  color: var(--gold-text);
}
.page-header .pdf-link:hover { color: var(--navy); }

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.schedule-col-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 18px;
}
.schedule-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--rule-light);
}
.schedule-day {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  color: var(--cream);
}
.schedule-venue {
  font-size: 13px;
  color: rgba(244, 241, 234, 0.7);
  margin-bottom: 8px;
}
.schedule-time {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
  gap: 12px;
}
.schedule-time span:last-child {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: right;
  flex: 0 0 auto;
}
@media (max-width: 1024px) {
  .timetable { padding: 64px 0; }
  .schedule-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 480px) {
  .schedule-row { grid-template-columns: 56px 1fr; gap: 14px; }
}

/* -------- Pricing -------- */
/* -------- About (RESTORED from captured baseline) -------- */
.about {
  padding: 88px 0;
  background: var(--paper);
}
.about .container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.about-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}
.about-body p:first-child {
  font-size: 19px;
  color: var(--navy);
  font-weight: 500;
}
@media (max-width: 1024px) {
  .about { padding: 64px 0; }
  .about .container { grid-template-columns: 1fr; gap: 32px; }
}

/* -------- Contact (deferred form — Phase 3) -------- */
.contact {
  padding: 80px 0 96px;
  background: var(--cream);
  text-align: left;
}
.contact-blurb {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
}
.contact-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
@media (max-width: 720px) {
  .contact { padding: 56px 0 64px; }
}

/* -------- Location -------- */
.location {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.location .container {
  padding-top: 72px;
  padding-bottom: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.location-blurb {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 540px;
}
.venue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 0;
  list-style: none;
  padding: 0;
}
.venue-list li.venue {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink);
}
.venue-list .icon { color: var(--gold-text); margin-top: 2px; flex: 0 0 auto; }
.venue-info { min-width: 0; }
.venue-name { font-weight: 600; color: var(--navy); }
.venue-address { color: var(--muted); font-size: 13px; }
.btn--small {
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .venue-list li.venue {
    grid-template-columns: 20px 1fr;
    grid-template-areas:
      "icon info"
      ". cta";
    row-gap: 10px;
  }
  .venue-list li.venue .icon { grid-area: icon; }
  .venue-list li.venue .venue-info { grid-area: info; }
  .venue-list li.venue .btn { grid-area: cta; justify-self: start; }
}

.map-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cream-2), var(--paper));
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.map-placeholder svg { width: 100%; height: 100%; display: block; }
.map-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: rgba(251, 249, 244, 0.85);
  padding: 6px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

@media (max-width: 1024px) {
  .location .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
}

/* -------- Footer -------- */
.site-footer {
  background: var(--navy);
  color: var(--cream);
  padding: 48px 0;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-name { color: var(--cream); font-size: 16px; }
.footer-brand .brand-sub { color: rgba(244, 241, 234, 0.6); }
.footer-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 234, 0.2);
  color: var(--cream);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.footer-social a:hover {
  background: rgba(244, 241, 234, 0.08);
  border-color: rgba(244, 241, 234, 0.4);
}
.footer-legal {
  font-size: 12px;
  color: rgba(244, 241, 234, 0.5);
  margin-top: 8px;
  flex-basis: 100%;
  text-align: center;
}

/* -------- Icon helper -------- */
.icon { width: 16px; height: 16px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* -------- Reduce motion -------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* -------- Focus states -------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
 *  PHASE 3 — standalone page chrome + components
 *  Each new page reuses .container, .site-header, .site-footer, .btn etc.
 *  Below: page-level helpers used across the seven new pages.
 * ============================================================ */

/* Section "Read more" / cross-page link from a home-page section */
.section-more {
  margin-top: 22px;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.section-more a {
  color: var(--gold-text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.section-more a:hover {
  color: var(--navy);
  border-color: var(--gold);
}

/* Two PDF/full-timetable links side by side */
.timetable-cta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

/* -------- Page header (shared by all standalone pages) --------
 * v2.3 tier discipline: the .page-header .container is chrome-tier (full
 * 1180 width). Narrow-text feel is achieved via per-element max-widths on
 * the heading + subtitle. The .page-header-text wrapper is also chrome-tier
 * (no max-width); only the inner h1 + .page-subtitle have typographic widths.
 */
.page-header {
  background: var(--paper);
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--rule);
}
.page-header-text { max-width: none; }
.page-header h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  max-width: 880px;
}
.page-header .page-subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0;
}
/* Two-column page-header: text left, image right. Used on About + Timetable.
 * Falls back to single-column on mobile and on pages without an image. */
.page-header.has-image .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.page-header .header-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: var(--cream-2);
  display: block;
}
/* Logo lockup variant — square, no crop, no fill, breathing room around the seal. */
.page-header .header-image--logo {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  max-width: 480px;
  margin-inline: auto;
  padding: 8px;
}
.page-header .header-caption {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-top: 10px;
  display: block;
}
@media (max-width: 1024px) {
  .page-header.has-image .container { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .page-header { padding: 56px 0 40px; }
}

/* Generic page section wrapper */
.page-section {
  padding: 72px 0;
}
.page-section + .page-section { border-top: 1px solid var(--rule); }
.page-section.dark {
  background: var(--navy);
  color: var(--cream);
}
.page-section.dark h1,
.page-section.dark h2,
.page-section.dark h3 { color: var(--cream); }
/* Two-column contact section: text + brand-mark figure (home page). */
.contact.has-logo .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 1024px) {
  .contact.has-logo .container { grid-template-columns: 1fr; gap: 32px; }
}

/* -------- TODO panel (visible callouts for Clive) -------- */
.todo {
  display: block;
  margin: 24px 0;
  padding: 18px 22px;
  background: rgba(201, 169, 110, 0.12);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}
.todo strong {
  display: inline-block;
  margin-right: 8px;
  /* Darker than --gold-text — needed for 4.5:1 contrast on the tinted (.todo) bg */
  color: var(--navy);
  background: rgba(201, 169, 110, 0.4);
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
}

/* -------- Library page — placeholder + category cards -------- */
.library-placeholder {
  text-align: center;
  padding: 56px 32px;
  background: var(--paper);
  border: 1px dashed var(--rule);
  border-radius: 6px;
  margin-bottom: 40px;
}
.library-placeholder .placeholder-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  color: var(--gold);
}
.library-placeholder h2 {
  font-size: clamp(22px, 2.8vw, 28px);
  margin-bottom: 12px;
}
.library-placeholder p {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.category-card {
  padding: 28px 24px;
  background: var(--cream-2);
  border: 1px dashed var(--rule);
  border-radius: 6px;
  position: relative;
  transition: transform 0.15s ease;
  display: flex;
  flex-direction: column;
}
.category-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: var(--navy);
}
.category-card p {
  font-size: 13px;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}
.category-card .category-status {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  background: rgba(201, 169, 110, 0.35);
  padding: 4px 8px;
  border-radius: 3px;
}

/* -------- About page — team-intro line above the grid -------- */
.team-intro {
  margin: 16px 0 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-style: italic;
}

/* -------- About page — team grid (compact card pattern) -------- */
.team-grid {
  display: grid;
  /* 4 columns at desktop; auto-fit handles the responsive collapse on
   * narrower viewports (3 → 2 → 1). Min 220px keeps cards readable. */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.team-card {
  background: var(--paper);
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
}
.team-card.is-placeholder {
  border-style: dashed;
  background: var(--cream-2);
}
.team-card.is-placeholder .team-bio {
  color: var(--ink);
  font-style: italic;
}
.team-card .team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 18px;
  background: var(--cream-2);
}
.team-card.is-placeholder .team-photo-svg {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  margin-bottom: 18px;
  background: linear-gradient(180deg, var(--cream-2), var(--cream));
}
.team-card .team-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--gold-text);
  margin-bottom: 6px;
}
.team-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.team-card .team-bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}
.team-card .team-bio + .team-bio { margin-top: 10px; }

/* -------- About page — Clive long-form bio block (extra qualifications) -------- */
.bio-extras {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.bio-extras h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-text);
  margin-bottom: 10px;
  font-family: var(--ui);
  font-weight: 700;
}
.bio-extras ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 18px;
}
.bio-extras li {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
  position: relative;
  padding-left: 14px;
}
.bio-extras li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* -------- Timetable page — class-type sections -------- */
.timetable-page-section {
  padding: 56px 0;
}
.timetable-page-section + .timetable-page-section {
  border-top: 1px solid var(--rule);
}
.timetable-class-type-head {
  margin-bottom: 32px;
}
.venue-block {
  margin-bottom: 32px;
}
.venue-block .venue-block-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.venue-block .venue-block-addr {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.venue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.venue-table th,
.venue-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.venue-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-text);
  font-weight: 700;
  background: var(--paper);
}

/* -------- Location page — town cards -------- */
.town-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.town-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px;
}
.town-card h2 {
  font-size: 24px;
  margin-bottom: 8px;
}
.town-card .town-blurb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.town-venue {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--rule);
}
.town-venue .venue-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.town-venue .venue-address {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 8px;
}
.town-venue .classes-here {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.55;
}
.town-venue .classes-here a {
  color: var(--gold-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* -------- Row / column layout primitives (responsive grid) --------
 * Body content on every page sits inside .page-section .container, broken
 * into .row blocks. Each .row is a CSS Grid that stacks to a single column
 * on mobile and splits into named layouts at desktop. ONE source of truth
 * for content-area layout — no per-page float arithmetic.
 *
 * Row variants:
 *   .row             — single column, prose tier, anchored at chrome-content left
 *   .row--text-image — text on left, image on right (desktop); stacks on mobile
 *   .row--image-text — image on left, text on right (desktop); stacks on mobile
 *
 * Column types:
 *   .col--text       — body text (paragraphs, headings, pull-quotes)
 *   .col--media      — image, video, figure, etc.
 *
 * Tuning:
 *   --media-w        — desktop image-column width (default 360px)
 *                      override per row: <div class="row row--text-image"
 *                      style="--media-w: 440px">
 *
 * Why this shape: previously body content used .content-prose with floated
 * children. Floats are a one-image-at-a-time tool, don't compose into rows,
 * and break unpredictably on viewport changes. Grid gives us explicit rows,
 * predictable mobile collapse, and zero-arithmetic alignment.
 */
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin: 32px 0;
  align-items: start;
}
.row:first-child { margin-top: 0; }
.row > .col--text { max-width: 720px; }
/* When col--text is the only column in the row (no sibling media column),
 * let it fill the full row width. Prose-tier cap was useful only when the
 * right side had something else in it; otherwise it just orphans whitespace. */
.row > .col--text:only-child { max-width: none; }

@media (min-width: 720px) {
  .row {
    --media-w: 360px;
    gap: 48px;
  }
  .row--text-image {
    grid-template-columns: minmax(0, 720px) var(--media-w);
  }
  .row--image-text {
    grid-template-columns: var(--media-w) minmax(0, 720px);
  }
  .row--image-text > .col--media { grid-column: 1; grid-row: 1; }
  .row--image-text > .col--text  { grid-column: 2; grid-row: 1; }
}

/* col--text typography (replaces the old .content-prose > * rules) */
.col--text > p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 18px;
}
.col--text > p:last-child { margin-bottom: 0; }
.col--text > h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 32px 0 14px;
  color: var(--navy);
}
.col--text > h3 {
  font-size: clamp(20px, 2.4vw, 24px);
  margin: 24px 0 10px;
  color: var(--navy);
}
.col--text > h2:first-child,
.col--text > h3:first-child,
.col--text > p:first-child { margin-top: 0; }

.col--text ul,
.col--text ol {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 18px;
  padding-left: 1.5em;
}
.col--text li { margin-bottom: 6px; }
.col--text li::marker { color: var(--gold-text); }
.col--text a {
  color: var(--gold-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.col--text a:hover { color: var(--navy); }

.col--media img,
.col--media figure {
  margin: 0;
}
.col--media img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
/* col--frame modifier — when a logo image has content tight against its own
   white background, this wraps the column in a matching white frame so the
   text gets visible breathing room against the cream page bg. */
.col--media.col--frame {
  background: #fff;
  padding: 24px;
  border-radius: 6px;
}
.col--media figcaption {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

/* -------- FTS / Defendo — themed content pages -------- */
.content-hero {
  position: relative;
  min-height: 320px;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.content-hero img.content-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: saturate(0.85);
}
.content-hero .content-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 26, 43, 0.45), rgba(14, 26, 43, 0.85));
}
.content-hero .container {
  position: relative;
  padding-top: 72px;
  padding-bottom: 56px;
  /* Flex child: must explicitly take the full available width so that the
   * 1180 max-width + auto margins still apply. Without this, the .container
   * shrinks to its content (~407px) and breaks the page-snap edge alignment
   * with the rest of the page. */
  width: 100%;
}
.content-hero h1 {
  color: var(--cream);
  font-size: clamp(38px, 6vw, 64px);
  margin-bottom: 12px;
}
.content-hero .content-hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(244, 241, 234, 0.85);
  font-family: var(--display);
  font-style: italic;
  margin: 0;
}
/* Two-column hero variant: text left, branded logo right (used on Defendo). */
.content-hero--with-logo .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}
.content-hero-text { min-width: 0; }
.content-hero-logo {
  margin: 0;
  /* Cream backdrop so navy parts of the logo read against the dark veil. */
  background: var(--cream);
  border-radius: 6px;
  padding: 18px 22px;
}
.content-hero-logo img {
  display: block;
  width: 440px;
  max-width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  .content-hero--with-logo .container { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .content-hero-logo img { width: 320px; }
}

/* TIER SYSTEM (v2.3, gotcha #12):
 * .content-prose is a CHROME-tier wrapper (full container width, not narrowed).
 * Direct text children (p, h2, h3) are PROSE-tier (max-width 720, anchored at
 * container's left padding edge — never centred).
 * Direct media children (.photo-pair, .content-figure, .video-grid, .content-logo)
 * stay at chrome-tier (full container width).
 *
 * Why this shape: the v2.2 design had .content-prose itself at 720, which
 * meant figures/photos/videos inside it inherited 720 — creating multiple
 * visual right-edges per page (prose at 926, videos at 1306, chrome at 1346).
 * Now: only ONE additional right-edge (prose 810) on top of chrome (1190).
 */
.content-prose {
  max-width: none;
  margin: 0;
}
.content-prose > p,
.content-prose > h2,
.content-prose > h3,
.content-prose > .pull-quote {
  max-width: 720px;
  margin-left: 0;
  margin-right: 0;
}
.content-prose > p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 18px;
}
.content-prose > h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-top: 32px;
  margin-bottom: 14px;
  color: var(--navy);
  clear: right;
}
.content-prose > h3 {
  font-size: clamp(20px, 2.4vw, 24px);
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--navy);
}
.content-prose > p:first-child,
.content-prose > h2:first-child,
.content-prose > h3:first-child {
  margin-top: 0;
}

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 32px 0;
}
.photo-pair img,
.photo-pair figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
.photo-pair figure { margin: 0; }
.photo-pair figcaption {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 8px;
}
@media (max-width: 720px) {
  .photo-pair { grid-template-columns: 1fr; }
}

/* -------- Content-page logo (FTS / Defendo identity marks) --------
 * Logo image arranged separately above the body copy OR floated within prose.
 * Square logos (FTS) can float right of the first paragraph, giving the page
 * design rhythm. Wide banner logos (Defendo) sit above the body at chrome
 * tier — wide aspect doesn't float well.
 */
.content-logo {
  margin: 0 0 32px;
}
.content-logo img {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
}
.content-logo--wide img {
  max-width: 100%;
}
/* Float a square logo to the right of the first prose paragraph.
 * Reverts to a centred element on narrow viewports where float is too tight. */
.content-logo--float-right {
  float: right;
  width: 220px;
  max-width: 38%;
  margin: 4px 0 24px 32px;
  shape-outside: inset(0 round 6px);
}
.content-logo--float-right img {
  max-width: 100%;
  border-radius: 6px;
}
@media (max-width: 720px) {
  .content-logo--float-right {
    float: none;
    width: 60%;
    max-width: 220px;
    margin: 0 auto 24px;
  }
}

/* Wide-banner variant for landscape brand logos (Defendo). Fills the gutter
 * alongside the opening paragraph rather than sitting as a small badge.
 * margin-top:0 so the logo's top aligns with the adjacent paragraph's top. */
.content-logo--banner {
  float: right;
  width: 440px;
  max-width: 50%;
  margin: 0 0 24px 32px;
}
.content-logo--banner img {
  max-width: 100%;
  border-radius: 0;
}
@media (max-width: 720px) {
  .content-logo--banner {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
  }
}

/* -------- Pull-quote (Editorial Calm rhythm element) --------
 * Used in body copy where there's a quotable line. Sits between paragraphs.
 * Chrome-tier wrapper inside .content-prose, but capped at 720 to read as
 * a typographic element rather than a layout element. */
.pull-quote {
  margin: 36px 0 28px;
  padding-top: 18px;
  border-top: 1px solid var(--gold);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.35;
  color: var(--navy);
}
.pull-quote::before { content: '\201C'; color: var(--gold); margin-right: 4px; }
.pull-quote::after  { content: '\201D'; color: var(--gold); margin-left: 4px; }

/* -------- Section divider — gold accent rule -------- */
.section-divider {
  border: 0;
  border-top: 1px solid rgba(201, 169, 110, 0.45);
  margin: 48px 0;
  max-width: none;
}

/* -------- Content figure (inline supporting image with caption) -------- */
.content-figure {
  margin: 32px 0;
}
.content-figure img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.content-figure figcaption {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 8px;
  font-style: italic;
}

/* Float a landscape figure to the right of the prose flow.
   Mirrors content-logo float-right but at a wider footprint. */
.content-figure.float-right {
  float: right;
  width: 340px;
  max-width: 38%;
  margin: 4px 0 24px 32px;
}
.content-figure.float-right img {
  border-radius: 6px;
}
@media (max-width: 720px) {
  .content-figure.float-right {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 24px 0;
  }
}

/* -------- Video grid (Defendo two-up YouTube embed) -------- */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-2);
  border-radius: 6px;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-subscribe {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}
.video-subscribe a {
  color: var(--gold-text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.video-subscribe a:hover { color: var(--navy); border-color: var(--gold); }
@media (max-width: 720px) {
  .video-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* -------- Contact page — form layout -------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

.contact-info-block h2 {
  font-size: 22px;
  margin-bottom: 14px;
}
.contact-info-block p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 24px;
}
.contact-info-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink);
}
.contact-info-detail .icon { color: var(--gold-text); }
.contact-info-detail a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}
.contact-info-detail a:hover { color: var(--navy); }

.contact-form {
  background: var(--paper);
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.contact-form-group {
  margin-bottom: 18px;
}
.contact-form-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.contact-form-input,
.contact-form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--cream);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.contact-form-input:focus,
.contact-form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.contact-form-textarea {
  min-height: 140px;
  resize: vertical;
  font-family: var(--ui);
}
.contact-form-honeypot {
  position: absolute;
  left: -9999px;
  visibility: hidden;
  height: 0;
  width: 0;
}
.contact-form-error {
  display: none;
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(167, 35, 23, 0.08);
  border-left: 3px solid #a72317;
  color: #a72317;
  font-size: 14px;
  border-radius: 4px;
}
.contact-form-error.is-visible { display: block; }
.contact-form-success {
  text-align: center;
  padding: 32px 24px;
}
.contact-form-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-form-success h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.contact-form-success p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Submit button — reuse .btn .btn--primary */
.contact-form button[type="submit"] {
  width: 100%;
  justify-content: center;
}

/* ============================================================
 *  PHASE 3 redux — instructor compact card + modal overlay
 *  About page: each .team-card--compact is a button that opens
 *  a <dialog> modal containing the full bio. Native <dialog>
 *  gives focus management and Esc-to-close for free.
 * ============================================================ */
.team-card--compact {
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.team-card--compact:hover,
.team-card--compact:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 26, 43, 0.08);
  outline: none;
}
.team-card--compact .team-photo,
.team-card--compact .team-photo-svg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
  margin: 0 0 0 0;
  background: var(--cream-2);
  display: block;
}
.team-card--compact .team-role,
.team-card--compact h3,
.team-card--compact .team-summary,
.team-card--compact .team-card-readmore {
  padding-left: 22px;
  padding-right: 22px;
}
.team-card--compact .team-role {
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--gold-text);
}
.team-card--compact h3 {
  font-size: 22px;
  margin: 0 0 10px;
  padding-left: 22px;
  padding-right: 22px;
}
.team-card--compact .team-summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}
.team-card--compact .team-card-readmore {
  display: block;
  padding-bottom: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-text);
  letter-spacing: 0.04em;
}
.team-card--compact.is-placeholder {
  cursor: default;
  border-style: dashed;
  background: var(--cream-2);
}
.team-card--compact.is-placeholder:hover,
.team-card--compact.is-placeholder:focus-visible {
  transform: none;
  box-shadow: none;
  border-color: var(--rule);
}
.team-card--compact.is-placeholder .team-bio,
.team-card--compact.is-placeholder .team-summary {
  color: var(--ink);
  font-style: italic;
}

/* ============================================================
 *  team-card--mini — assistant + junior instructor cards
 *  Photo + name only. No bio, no role line, no read-more. Used
 *  in two grids on the About page below the senior team. The
 *  parent grid (.team-grid--mini) tightens column min-width so
 *  more cards fit per row at desktop.
 * ============================================================ */
.team-grid--mini {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.team-card--mini {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0;
}
.team-card--mini .team-photo,
.team-card--mini .team-photo-svg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
  display: block;
  background: var(--cream-2);
}
.team-card--mini h3 {
  font-size: 16px;
  margin: 14px 16px 14px;
  color: var(--navy);
}
.team-card--mini.is-placeholder {
  border-style: dashed;
  background: var(--cream-2);
}

/* ============================================================
 *  Per-instructor object-position overrides (square cards)
 *  Tuned by eye against 1:1 cover-crop. Applies to both the grid
 *  card photo and the modal photo so the two stay in sync.
 * ============================================================ */
.team-photo[src*="/kaz.jpg"],     .modal-photo[src*="/kaz.jpg"]     { object-position: 70% center; }
.team-photo[src*="/karl.jpg"],    .modal-photo[src*="/karl.jpg"]    { object-position: 30% center; }
.team-photo[src*="/steve.jpg"],   .modal-photo[src*="/steve.jpg"]   { object-position: 30% center; }
.team-photo[src*="/ellena.jpg"],  .modal-photo[src*="/ellena.jpg"]  { object-position: 10% center; }
.team-photo[src*="/hannah.jpg"],  .modal-photo[src*="/hannah.jpg"]  { object-position: 70% center; }
.team-photo[src*="/harvey.jpg"],  .modal-photo[src*="/harvey.jpg"]  { object-position: 10% center; }
.team-photo[src*="/josh.jpg"],    .modal-photo[src*="/josh.jpg"]    { object-position: 10% center; }
.team-photo[src*="/maya.jpg"],    .modal-photo[src*="/maya.jpg"]    { object-position: 30% center; }

/* Modal — uses native <dialog>. The element styles are simple; the
 * native UA gives us aria-modal, focus trap, Esc-to-close.
 * Backdrop tint via ::backdrop. */
.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(720px, 92vw);
  width: 100%;
  margin: auto;
  color: var(--ink);
}
.modal::backdrop {
  background: rgba(14, 26, 43, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.modal-inner {
  background: var(--paper);
  border-radius: 8px;
  padding: 36px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--rule);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--cream);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1;
}
.modal-close:hover,
.modal-close:focus-visible {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
  outline: none;
}
.modal-photo {
  width: 160px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 0 18px;
  display: block;
}
.modal-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--gold-text);
  margin: 0 0 6px;
}
.modal-title {
  font-size: clamp(28px, 4vw, 36px);
  margin: 0 0 18px;
  color: var(--navy);
}
.modal-body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 14px;
}
.modal-body .bio-extras {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 720px) {
  .modal-inner { padding: 28px 22px; }
  .modal-photo { width: 140px; }
}

