/* PMTNM Design 3.0 — Pass 1 Main CSS
   Consolidated design tokens, base, layout, components, and pass1 extensions
   Fonts: Marcellus (serif, headings) · Nunito (sans, body/UI) — Google Fonts
   Color palette: MTNA-inspired burgundy + warm gray
*/

/* ─── Google Fonts ───────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Marcellus&family=Nunito:wght@400;500;600;700;800&display=swap');

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --color-primary:        #500000;
  --color-primary-light:  #6b1a1a;
  --color-primary-dark:   #3a0000;
  --color-gold:           #C9A227;
  --color-gold-light:     #d4af37;
  --color-gold-dark:      #a07d1a;
  --color-cream:          #fdfaf4;
  --color-cream-dark:     #f4efe2;
  --color-secondary:      #4c4545;
  --color-secondary-light:#7a7272;
  --color-warning-light:  #fff3cd;
  --color-slate-50:       #f9f9fb;
  --color-slate-100:      #f1f1f1;
  --color-slate-200:      #dfdfdf;
  --color-slate-300:      #c8c8c8;
  --color-slate-700:      #4c4545;
  --color-slate-800:      #2e2929;
  --color-white:          #ffffff;
  --color-success:        #28a745;
  --color-warning:        #fd7e14;
  --color-error:          #dc3545;

  --font-heading: "Marcellus", Georgia, "Times New Roman", serif;
  --font-display: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-xxl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.10);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-slate-700);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-slate-800);
  line-height: 1.2;
  text-wrap: pretty;
}
h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }

img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { color: var(--color-primary); }
ul, ol { list-style: none; }

/* ─── Layout Utilities ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}
.container-narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
}

/* ─── Navigation ─────────────────────────────────────────────────────────── */

/* Utility bar — top strip (MTNA style) */
.site-nav-utility {
  background-color: var(--color-slate-50);
  border-bottom: 1px solid var(--color-slate-200);
  padding: 6px 0;
}
.site-nav-utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-nav-utility .util-left {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-secondary);
  font-weight: 500;
}
.site-nav-utility .util-right {
  display: flex;
  gap: var(--space-md);
  font-family: var(--font-display);
  font-size: var(--text-xs);
}
.site-nav-utility .util-right a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
}
.site-nav-utility .util-right a:hover { color: var(--color-primary); }
.site-nav-utility .util-right a.util-parent-link { color: var(--color-gold-dark); }
.site-nav-utility .util-right a.util-parent-link:hover { color: var(--color-primary); }

/* Main nav bar */
.site-nav {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-slate-200);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,.07);
}
.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}
.nav-brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.nav-logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-primary);
  text-decoration: none;
  line-height: 1;
}
.nav-tagline {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 400;
  color: var(--color-secondary-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: var(--space-xs);
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--color-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links .nav-login {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-weight: 700;
}
.nav-links .nav-login:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}
.nav-mobile-toggle { display: none; }

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
  background-color: var(--color-slate-50);
  border-bottom: 1px solid var(--color-slate-200);
  padding: var(--space-sm) 0;
}
.breadcrumb ol {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-secondary);
  letter-spacing: 0.02em;
}
.breadcrumb ol li + li::before { content: "›"; margin-right: var(--space-sm); }
.breadcrumb ol a { color: var(--color-primary); text-decoration: none; }
.breadcrumb ol a:hover { text-decoration: underline; }

/* ─── Hero — Full Bleed ──────────────────────────────────────────────────── */
.hero-fullbleed {
  background-color: var(--color-primary-dark);
  background-image: linear-gradient(135deg, #3a0000 0%, #500000 55%, #6b1a1a 100%);
  color: var(--color-white);
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-fullbleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(201,162,39,0.07) 0%, transparent 65%);
}
.hero-fullbleed .container { position: relative; z-index: 1; }
.hero-fullbleed h1 {
  color: var(--color-white);
  font-size: var(--text-5xl);
  margin-bottom: var(--space-lg);
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-fullbleed .hero-sub {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}
.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.hero-badge {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  border: 1px solid rgba(201,162,39,0.5);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

/* ─── Photo Hero (homepage) ───────────────────────────────────────────────── */
.hero-photo {
  background-image: url("/images/hero_ptmnm_teacher_student.png");
  background-size: cover;
  background-position: center top;
  text-align: left;
  padding: var(--space-4xl) 0;
}
.hero-photo h1 {
  color: var(--color-white);
  font-size: var(--text-5xl);
  margin-bottom: var(--space-lg);
  max-width: 15ch;
  margin-left: 0;
  margin-right: 0;
}
.hero-photo .hero-sub {
  margin-left: 0;
  margin-right: 0;
  max-width: 50ch;
}
.hero-photo .hero-actions {
  justify-content: flex-start;
}

/* Hero video background */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  filter: brightness(0.6);
  transition: opacity 350ms cubic-bezier(0.22,1,0.36,1);
}
.hero-photo.hero-video-ready .hero-bg-video {
  opacity: 1;
}
@media (max-width: 768px) {
  .hero-photo {
    background-image: url("/images/hero_ptmnm_teacher_student_mobile.jpg") !important;
  }
  .hero-bg-video {
    inset: 0 auto auto 0;
    height: auto;
    aspect-ratio: 768 / 272;
    object-fit: cover;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo {
    background-image: url("/images/hero_ptmnm_teacher_student.png") !important;
  }
  .hero-bg-video { display: none; }
}


.hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

/* Left panel text */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-text h1 {
  text-shadow: 0 2px 20px rgba(0,0,0,0.7), 0 1px 6px rgba(0,0,0,0.5);
}
.hero-text .hero-sub {
  text-shadow: 0 1px 8px rgba(0,0,0,0.65);
}

/* Right panel — logo stack */
.hero-logos-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-lg);
}

/* PMTNM wordmark (CSS-rendered to avoid gray box issue) */
.pmtnm-wordmark {
  text-align: center;
}
.pmtnm-wordmark-letters {
  font-family: "Cormorant Garamond", var(--font-heading);
  font-size: 104px;
  font-weight: 600;
  line-height: 0.88;
  color: var(--color-white);
  display: block;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.pmtnm-wordmark-sub {
  font-family: "Cormorant Garamond", var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  display: block;
  margin-top: 8px;
  text-align: center;
  line-height: 1.1;
}
/* First letter of each word, 35% larger — matches the PMTNM logo treatment */
.pmtnm-wordmark-sub .initial {
  font-size: 1.35em;
  line-height: 0;
}

/* Horizontal rule between logos */
.hero-logos-hr {
  height: 1px;
  background: rgba(255,255,255,0.30);
  width: 100%;
  align-self: stretch;
}

/* MTNA logo */
.hero-mtna-logo {
  text-align: right;
}
.hero-mtna-logo img {
  height: 96px;
  width: auto;
  margin-left: auto;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}

/* ─── Hero Animations ────────────────────────────────────────────────────── */
@keyframes heroFadeLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroFadeRight {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-anim-text {
  animation: heroFadeLeft 0.75s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}
.hero-anim-logo1 {
  animation: heroFadeRight 0.65s cubic-bezier(0.22,1,0.36,1) 0.35s both;
}
.hero-anim-hr {
  animation: heroFadeUp 0.5s ease 0.65s both;
  opacity: 0;
}
.hero-anim-logo2 {
  animation: heroFadeRight 0.65s cubic-bezier(0.22,1,0.36,1) 0.75s both;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
  .hero-logos-stack {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-logos-hr { display: none; }
  .pmtnm-wordmark, .hero-mtna-logo { text-align: center; }
  .pmtnm-wordmark-letters { font-size: 64px; }
  .hero-mtna-logo img { margin: 0 auto; height: 64px; }
}

@media (max-width: 768px) {
  .hero-photo {
    background-color: var(--color-primary);
    background-image: none !important;
    padding: 0;
  }
  .hero-photo > .container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-split {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .hero-logos-stack {
    order: -1;
    width: 100%;
    aspect-ratio: 768 / 272;
    background-image: url("/images/hero_ptmnm_teacher_student_mobile.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-color: var(--color-primary-dark);
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(18px, 6vw, 40px);
    padding: var(--space-md) var(--space-lg);
  }
  .hero-photo.hero-video-ready .hero-logos-stack {
    background-image: none;
    background-color: transparent;
  }
  .pmtnm-wordmark-letters { font-size: 56px; }
  .pmtnm-wordmark-sub { font-size: 10px; }
  .hero-mtna-logo img { height: 56px; }
  .hero-text {
    background: var(--color-primary);
    padding: var(--space-xl) var(--space-lg) var(--space-3xl);
    width: 100%;
  }
  .hero-photo h1 {
    font-size: var(--text-4xl);
    max-width: 14ch;
  }
  .hero-photo .hero-sub {
    font-size: var(--text-base);
    max-width: 56ch;
  }
  .hero-photo .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .hero-photo .hero-actions .btn {
    min-height: 44px;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-logos-stack {
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
  }
  .pmtnm-wordmark-letters { font-size: 42px; }
  .pmtnm-wordmark-sub { font-size: 8px; }
  .hero-mtna-logo img { height: 42px; }
}

@media (max-width: 480px) {
  .hero-logos-stack {
    gap: 8px;
  }
  .pmtnm-wordmark-letters { font-size: 30px; }
  .pmtnm-wordmark-sub {
    display: block;
    font-size: 6px;
    letter-spacing: 0.01em;
    line-height: 1.05;
    max-width: 142px;
  }
  .hero-mtna-logo img { height: 36px; }
  .hero-text {
    padding: var(--space-xl) var(--space-md) var(--space-xxl);
  }
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }

.btn-navy {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-navy:hover { background-color: var(--color-primary-light); border-color: var(--color-primary-light); }

.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-primary-dark);
  border-color: var(--color-gold);
}
.btn-gold:hover { background-color: var(--color-gold-dark); border-color: var(--color-gold-dark); color: var(--color-white); }

.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background-color: rgba(255,255,255,0.12); border-color: var(--color-white); }

.btn-outline-navy {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline-navy:hover { background-color: var(--color-primary); color: var(--color-white); }

.btn-sm { padding: 8px 18px; font-size: var(--text-xs); }

/* ─── Sections ───────────────────────────────────────────────────────────── */
.section { padding: var(--space-3xl) 0; }
.section-lg { padding: var(--space-4xl) 0; }
.section-sm { padding: var(--space-xl) 0; }

.section-cream { background-color: var(--color-cream); }
.section-navy {
  background-color: var(--color-primary);
  color: var(--color-white);
}
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--color-white); }
.section-navy p { color: rgba(255,255,255,0.88); }
.section-primary-dark { background-color: var(--color-primary-dark); color: var(--color-white); }
.section-white { background-color: var(--color-white); }
.section-slate { background-color: var(--color-slate-50); }

.gold-rule {
  width: 60px;
  height: 3px;
  background-color: var(--color-gold);
  margin-bottom: var(--space-lg);
}

/* ─── Section Labels / Eyebrows ──────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-sm);
}
.section-navy .eyebrow { color: var(--color-gold-light); }

/* ─── Editorial / Authority Sections ────────────────────────────────────── */
.editorial-block {
  max-width: 68ch;
}
.editorial-block p {
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  color: var(--color-slate-700);
}
.section-navy .editorial-block p { color: rgba(255,255,255,0.88); }

.pull-quote {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-style: italic;
  line-height: 1.5;
  color: var(--color-primary);
  border-left: 4px solid var(--color-gold);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
}
.section-navy .pull-quote { color: rgba(255,255,255,0.95); border-left-color: var(--color-gold); }

.authority-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-3xl);
  align-items: start;
}
@media (max-width: 768px) {
  .authority-layout { grid-template-columns: 1fr; }
}
.authority-sidebar {
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-lg);
}
.authority-sidebar .eyebrow { margin-bottom: var(--space-md); }
.authority-year {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--color-primary);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-xs);
}

/* ─── Feature Columns ────────────────────────────────────────────────────── */
.feature-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-cream-dark);
  border-radius: var(--radius-md);
  font-size: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.feature-col h3 { font-size: var(--text-xl); color: var(--color-primary-dark); }
.feature-col p { font-size: var(--text-base); line-height: 1.7; }
.feature-col a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.feature-col a:hover { text-decoration: underline; }

/* ─── Certification Seal ──────────────────────────────────────────────────── */
.nctm-seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: #fcf9f2;
  border: 1.5px solid var(--color-gold-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 4px rgba(212,175,55,0.2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  white-space: nowrap;
}
.nctm-seal-icon {
  width: 18px;
  height: 18px;
  background-color: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--color-primary-dark);
  font-weight: 900;
  flex-shrink: 0;
}
.nctm-seal-lg {
  font-size: var(--text-sm);
  padding: 10px 24px;
}
.nctm-seal-lg .nctm-seal-icon {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

/* ─── Teacher Cards ──────────────────────────────────────────────────────── */
.teacher-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.teacher-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.teacher-card-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--color-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--color-secondary-light);
  overflow: hidden;
}
.teacher-card-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Small instrument icon inline after teacher name — gold-tinted, no large placeholder */
.teacher-instrument-icon {
  font-size: 0.8em;
  display: inline-block;
  margin-left: 0.3em;
  vertical-align: middle;
  line-height: 1;
  opacity: 0.7;
}

.ph-icon { font-size: inherit; vertical-align: middle; }
.ph-gold { color: #c9a227; }

.teacher-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.teacher-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: none;
}
.teacher-card-name:hover { text-decoration: underline; }
.teacher-card-city {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-secondary);
}
.teacher-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-slate-700);
  line-height: 1.6;
  flex: 1;
}
.teacher-card-actions { margin-top: auto; padding-top: var(--space-sm); }
.teacher-card-instruments {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.accepting-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-success);
  font-weight: 700;
}
.accepting-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-success);
  flex-shrink: 0;
}

/* ─── Instrument Filter Tabs ─────────────────────────────────────────────── */
.instrument-tabs {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.tab-btn {
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-full);
  background-color: var(--color-white);
  color: var(--color-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.tab-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.tab-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ─── Prose / Reading Typography ─────────────────────────────────────────── */
.prose {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  line-height: 1.8;
  max-width: 68ch;
}
.prose p { margin-bottom: var(--space-md); }
.prose h2 { margin-top: var(--space-xl); margin-bottom: var(--space-sm); font-size: var(--text-2xl); }
.prose h3 { margin-top: var(--space-lg); margin-bottom: var(--space-sm); font-size: var(--text-xl); }
.prose a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.prose ul { list-style: disc; padding-left: var(--space-xl); }
.prose ul li { margin-bottom: var(--space-sm); }
.prose ol { list-style: decimal; padding-left: var(--space-xl); }
.prose ol li { margin-bottom: var(--space-sm); }

/* ─── Terms / Legal Document Body ────────────────────────────────────────── */
/* Reusable reading-typography scope for DB-authored markdown/HTML (terms,
   acceptance modal). The markup is the .terms-body container plus whatever
   Parsedown emits inside it, so every descendant tag is styled here. */
.terms-body {
  max-width: 72ch;
  margin-inline: auto;
  padding: var(--space-xl);
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-secondary);
  text-wrap: pretty;
}
.terms-body > *:first-child { margin-top: 0; }
.terms-body > *:last-child { margin-bottom: 0; }
.terms-body p { margin-bottom: var(--space-md); }

.terms-body h1,
.terms-body h2,
.terms-body h3,
.terms-body h4 {
  font-family: var(--font-heading);
  color: var(--color-slate-800);
  line-height: 1.3;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  text-wrap: balance;
}
/* In-body h1 is down-ranked to title scale so it reads as a section, not a
   second page title competing with the .page-header h1 above it. */
.terms-body h1 { font-size: var(--text-2xl); }
.terms-body h2 {
  font-size: var(--text-xl);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-slate-200);
}
.terms-body h3 { font-size: var(--text-lg); }
.terms-body h4 { font-size: var(--text-base); letter-spacing: 0.01em; }

.terms-body ul,
.terms-body ol { margin-bottom: var(--space-md); padding-left: var(--space-xl); }
.terms-body ul { list-style: disc; }
.terms-body ol { list-style: decimal; }
.terms-body li { margin-bottom: var(--space-sm); }
.terms-body li::marker { color: var(--color-primary-light); }
.terms-body li > ul,
.terms-body li > ol { margin-top: var(--space-sm); margin-bottom: 0; }

.terms-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.terms-body a:hover { color: var(--color-primary-light); }
.terms-body strong { font-weight: 700; color: var(--color-slate-800); }
.terms-body em { font-style: italic; }

.terms-body blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-cream);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
  font-style: italic;
}
.terms-body blockquote p:last-child { margin-bottom: 0; }

.terms-body hr {
  border: 0;
  height: 1px;
  background-color: var(--color-slate-200);
  margin: var(--space-xl) 0;
}

.terms-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background-color: var(--color-slate-100);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}
.terms-body pre {
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background-color: var(--color-slate-100);
  border-radius: var(--radius-md);
  overflow-x: auto;
}
.terms-body pre code { padding: 0; background: none; }

.terms-body table {
  width: 100%;
  margin: var(--space-lg) 0;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.terms-body th,
.terms-body td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-slate-200);
  text-align: left;
}
.terms-body th {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
}
.terms-body tbody tr:nth-child(even) td { background-color: var(--color-slate-50); }

/* Meta line (version / effective date) sits above the card, aligned to it. */
.terms-meta {
  max-width: 72ch;
  margin: 0 auto var(--space-lg);
  color: var(--color-secondary-light);
  font-size: var(--text-sm);
}
.terms-meta strong { color: var(--color-secondary); }

/* ─── Five Standards (Certification page) ───────────────────────────────── */
.standard-block {
  padding: var(--space-xl);
  border-left: 4px solid var(--color-gold);
  background-color: var(--color-cream);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: var(--space-lg);
}
.standard-number {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-xs);
}
.standard-block h3 { font-size: var(--text-xl); margin-bottom: var(--space-sm); }
.standard-block p { font-size: var(--text-base); line-height: 1.7; }

/* ─── FAQ Blocks ─────────────────────────────────────────────────────────── */
.faq-block {
  border-bottom: 1px solid var(--color-slate-200);
  padding: var(--space-xl) 0;
}
.faq-block:first-child { border-top: 1px solid var(--color-slate-200); }
.faq-q {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-sm);
}
.faq-a {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-slate-700);
}
.faq-a a { color: var(--color-primary); }

/* ─── CTA Strip ──────────────────────────────────────────────────────────── */
.cta-strip {
  padding: var(--space-xxl) 0;
  text-align: center;
}
.cta-strip h2 { margin-bottom: var(--space-md); }
.cta-strip p { margin-bottom: var(--space-xl); font-size: var(--text-lg); }
.cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Page Header (simple pages) ─────────────────────────────────────────── */
.page-header {
  background-color: var(--color-slate-50);
  border-bottom: 1px solid var(--color-slate-200);
  padding: var(--space-xxl) 0;
}
.page-header h1 { margin-bottom: var(--space-sm); }
.page-header .page-header-sub {
  font-size: var(--text-lg);
  color: var(--color-secondary);
  max-width: 64ch;
  line-height: 1.7;
}

/* ─── Two-Column Profile Layout ──────────────────────────────────────────── */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xxl);
  align-items: start;
}
@media (max-width: 768px) {
  .profile-layout { grid-template-columns: 1fr; }
}

/* ─── Data Table ──────────────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
  line-height: 1.6;
}
.data-table th {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-primary);
  color: var(--color-white);
}
.data-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-slate-200);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background-color: var(--color-slate-50); }

/* ─── Detail List (key: value pairs) ────────────────────────────────────── */
.detail-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-sm) var(--space-lg);
  font-size: var(--text-base);
}
.detail-list dt {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-secondary);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.detail-list dd { color: var(--color-slate-700); }

/* ─── Search Box ──────────────────────────────────────────────────────────── */
.search-box {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  max-width: 860px;
  margin: 0 auto;
}
.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: var(--space-md);
  align-items: end;
}
@media (max-width: 700px) {
  .search-grid { grid-template-columns: 1fr; }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-slate-800);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px var(--space-md);
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-slate-800);
  background-color: var(--color-white);
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: auto;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(80,0,0,0.12);
}
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

/* ─── Member Area Nav ────────────────────────────────────────────────────── */
.member-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-xl);
  align-items: start;
  padding: var(--space-xl) 0;
}
@media (max-width: 768px) {
  .member-layout { grid-template-columns: 1fr; }
}
.member-sidebar {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.member-sidebar-header {
  background-color: var(--color-primary);
  padding: var(--space-lg);
  color: var(--color-white);
}
.member-sidebar-header h3 { color: var(--color-white); font-size: var(--text-base); }
.member-sidebar nav ul { padding: var(--space-sm) 0; }
.member-sidebar nav a {
  display: block;
  padding: 10px var(--space-lg);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.member-sidebar nav a:hover { background-color: var(--color-slate-50); color: var(--color-primary); }
.member-sidebar nav a.active { background-color: var(--color-cream); color: var(--color-primary); border-left: 3px solid var(--color-primary); padding-left: calc(var(--space-lg) - 3px); }

.member-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}
.member-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  min-width: 0;
}
.member-card .faq-grid,
.member-card .faq-section {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.member-card h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-slate-200);
}

/* ─── Status Indicators ──────────────────────────────────────────────────── */
.status-good { color: var(--color-success); font-weight: 700; }
.status-warn { color: var(--color-warning); font-weight: 700; }
.status-bad  { color: var(--color-error); font-weight: 700; }
.status-banner {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.status-banner-good { background-color: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.status-banner-warn { background-color: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.status-banner-bad  { background-color: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ─── Events Slim Band ────────────────────────────────────────────────────── */
.events-list { display: flex; flex-direction: column; gap: 0; }
.event-row {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-slate-200);
}
.event-row:last-child { border-bottom: none; }
.event-date {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  min-width: 90px;
}
.event-name {
  font-size: var(--text-base);
  color: var(--color-slate-800);
  flex: 1;
}
.event-location {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  white-space: nowrap;
}

/* ─── City Quick Links ────────────────────────────────────────────────────── */
.city-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.city-link {
  padding: 8px 20px;
  background-color: var(--color-white);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
}
.city-link:hover { background-color: var(--color-primary); color: var(--color-white); }

/* ─── Quick Action Grid ──────────────────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-primary-dark);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-align: center;
  transition: all 0.18s;
}
.quick-action:hover { border-color: var(--color-primary); background-color: var(--color-cream); }
.quick-action-icon { font-size: 28px; }

/* ─── Announcement Item ───────────────────────────────────────────────────── */
.announcement-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-slate-200);
}
.announcement-item:first-child { border-top: 1px solid var(--color-slate-200); }
.announcement-meta {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-sm);
}
.announcement-category {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  background-color: var(--color-primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.announcement-date {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-secondary);
}
.announcement-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary-dark);
  text-decoration: none;
  display: block;
  margin-bottom: var(--space-xs);
}
.announcement-title:hover { text-decoration: underline; }
.announcement-excerpt { font-size: var(--text-sm); color: var(--color-secondary); line-height: 1.6; }

/* ─── Webinar Item ────────────────────────────────────────────────────────── */
.webinar-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-slate-200);
}
@media (max-width: 600px) {
  .webinar-item { grid-template-columns: 1fr; }
}
.webinar-date-badge {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  min-width: 70px;
}
.webinar-month {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.webinar-day { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; line-height: 1; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: var(--space-3xl) 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-3xl);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-logo {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}
.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 32ch;
}
.footer-nav { display: flex; flex-direction: column; gap: 4px; }
.footer-nav h4 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: var(--space-sm);
}
.footer-nav a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: var(--text-sm);
  padding: 3px 0;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--color-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: var(--space-lg) 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}

/* ─── Utilities ──────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-navy { color: var(--color-primary); }
.text-muted { color: var(--color-secondary); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-xxl { gap: var(--space-xxl); }
.gap-3xl { gap: var(--space-3xl); }
.w-full { width: 100%; }
.hidden { display: none; }

/* ── Certification Authority Card ─────────────────────────────────────────── */
.certification-authority-card {
  margin-top: 0;
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.authority-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .authority-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.authority-text h3 {
  margin-top: 0;
  color: var(--color-primary);
}

.authority-text p {
  color: var(--color-slate-700);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.standard-link {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.standard-link:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}

.browse-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.browse-directory-links .browse-group h4 {
  margin: 0 0 0.75rem 0;
  color: var(--color-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.browse-directory-links .browse-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.browse-directory-links .browse-group a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.browse-directory-links .browse-group a:hover {
  color: var(--color-primary-light);
  text-decoration: underline;
}

/* ─── Page-specific layout classes (mobile-safe replacements for inline grids) ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
  align-items: start;
}
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  align-items: start;
}
.about-layout-center {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  align-items: center;
}
@media (max-width: 768px) {
  .about-layout,
  .about-layout-center { grid-template-columns: 1fr; }
}

/* ─── Utility nav mobile tweak ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .site-nav-utility .util-left { display: none; }
  .site-nav-utility .container { justify-content: flex-end; }
}

@media (max-width: 700px) {
  .site-nav .container { position: relative; }
  .nav-mobile-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-primary);
    font-size: 1.4rem;
    cursor: pointer;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    padding: 8px 16px 16px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-slate-200);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
  }
  .nav-links.is-open { display: grid; gap: 2px; }
  .nav-links a { display: block; padding: 12px; }
  .site-nav { padding: 10px 0; }
  .site-nav-utility .util-right { gap: 10px; font-size: .72rem; }
}

/* ─── Task 5: Callback Modal & Two-Tier Cards ───────────── */
.callback-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}
.callback-modal[hidden] {
  display: none !important;
}
.callback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.callback-modal__panel {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.callback-modal__x {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: var(--text-2xl);
  color: var(--color-secondary-light);
  cursor: pointer;
  line-height: 1;
}
.callback-modal__x:hover {
  color: var(--color-primary);
}
.callback-modal h2 {
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}
.callback-modal__sub {
  font-size: var(--text-sm);
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
}
.callback-modal form label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  font-size: var(--text-sm);
}
.callback-modal form input[type="text"],
.callback-modal form input[type="tel"],
.callback-modal form input[type="email"],
.callback-modal form textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-sm);
  margin-top: 4px;
  margin-bottom: var(--space-md);
  font-family: inherit;
}
.callback-modal form button[type="submit"] {
  width: 100%;
  margin-top: var(--space-sm);
}

.teacher-card--nctm {
  border-top: 4px solid var(--color-gold);
}
.teacher-card--member {
  border-top: 4px solid var(--color-slate-300);
}
.member-badge {
  display: inline-block;
  background-color: var(--color-slate-100);
  color: var(--color-secondary);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}
