/* ============================================
   DRAMA THERAPY RESOURCES — Global Styles
   Editorial slate palette — WCAG AA throughout
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Dark backgrounds */
  --slate:        #5C6478;   /* page headers — 5.4:1 w/ white */
  --slate-mid:    #4C5566;   /* cta-banner — 6.8:1 w/ white */
  --slate-dark:   #3A4156;   /* nav — 10:1 w/ white */
  --dark:         #1A1C20;   /* footer */

  /* Light backgrounds */
  --surface:      #FFFFFF;
  --surface-alt:  #F5F4F2;   /* alternating sections */
  --surface-tint: #EDEEF2;   /* callout boxes */

  /* Panel accent tones (light — use dark text) */
  --mauve-pale:   #F5EDEE;
  --powder-pale:  #EBF1F5;
  --sage-pale:    #EBF0EB;   /* kept for legacy class refs */

  /* Text */
  --text:         #1A1C20;   /* 14.8:1 on white */
  --text-muted:   #4A5166;   /* 7.8:1 on white, 4.6:1 on --surface-alt */
  --text-light:   rgba(26,28,32,0.46);

  /* White text variants (for dark backgrounds) */
  --white:        #FFFFFF;
  --off-white:    rgba(255,255,255,0.88);
  --muted-white:  rgba(255,255,255,0.58);

  /* Legacy aliases — kept so old class refs still resolve */
  --sage:         #5C6478;
  --sage-dark:    #3A4156;
  --sage-light:   #9DAF9E;
  --cream:        #F5F4F2;
  --cream-dark:   #EDEEF2;
  --peach:        #D4906A;   /* Amazon CTA button */
  --peach-dark:   #B87050;
  --charcoal:     #1A1C20;
  --charcoal-light: #5C6478;
  --border:       rgba(60,65,86,0.14);

  /* Elevation */
  --shadow:       0 2px 16px rgba(26,28,32,0.07);
  --shadow-hover: 0 6px 32px rgba(26,28,32,0.13);
  --radius:       12px;
  --radius-sm:    6px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  font-size: 16px;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  background-color: var(--surface-alt);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--text);
}

a {
  color: var(--slate-dark);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

a:hover {
  color: var(--slate);
}

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

/* Global focus ring */
:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Visually hidden (accessible labels) */
.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;
}

/* ============================================
   NAVIGATION
   ============================================ */

/* Announcement bar */
.nav-announce {
  background: var(--slate-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 40px;
}

.nav-announce-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
}

.nav-announce-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-announce-link:hover {
  color: var(--white);
  border-color: var(--white);
}

.nav {
  background: var(--slate-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 24px;
}

/* When announcement bar is present, stick below it */
.nav-announce + .nav {
  top: 0;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--white);
  transition: opacity 0.18s;
}

.nav-logo:hover { opacity: 0.82; }
.nav-logo:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 2px; }

/* Logo image mark */
.nav-logo-mark {
  height: 46px;
  width: 46px;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
}

/* Wordmark text stack */
.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-logo-top {
  font-family: 'Playfair Display', serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.nav-logo-bottom {
  font-family: 'Playfair Display', serif;
  font-size: 0.72rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.04em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-white);
  padding: 7px 11px;
  border-radius: 4px;
  transition: color 0.18s, background 0.18s;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* Solid white CTA pill */
.nav-cta {
  background: var(--white) !important;
  color: var(--dark) !important;
  padding: 9px 18px !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: opacity 0.18s !important;
}

.nav-cta:hover {
  background: var(--white) !important;
  color: var(--dark) !important;
  opacity: 0.88;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--off-white);
  border-radius: 1px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

/* Dropdowns (desktop) */
.nav-item {
  position: relative;
  list-style: none;
}

.nav-trigger {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-white);
  padding: 12px 14px;
  min-height: 44px;
  border-radius: 4px;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.18s, background 0.18s;
}

.nav-trigger:hover,
.nav-item--open .nav-trigger {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-chevron {
  width: 9px;
  height: 9px;
  transition: transform 0.2s ease;
}

.nav-item--open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--slate-dark);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  display: none;
  z-index: 1001;
}

.nav-item--open .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-white);
  padding: 9px 12px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}

.nav-dropdown a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav-dropdown--mega {
  display: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 8px 16px;
  min-width: 460px;
  padding: 14px;
}

.nav-item--open .nav-dropdown--mega {
  display: grid;
}

.nav-dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-dropdown-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 6px 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 4px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 11px 24px;
}

.breadcrumbs-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumbs-inner a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumbs-inner a:hover {
  color: var(--slate-dark);
}

.breadcrumbs-inner span.sep {
  color: rgba(60,65,86,0.3);
}

.breadcrumbs-inner span.current {
  color: var(--text);
  font-weight: 500;
}

/* ============================================
   PAGE HEADER (inner pages)
   ============================================ */

.page-header {
  background: var(--slate);
  padding: 64px 24px;
  text-align: center;
}

.page-header-inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 16px;
  color: var(--white);
  font-weight: 700;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--off-white);
  max-width: 560px;
  margin: 0 auto;
  font-family: 'Source Serif 4', serif;
  font-weight: 300;
  line-height: 1.75;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-white);
  margin-bottom: 12px;
}

/* ============================================
   CONTENT AREA
   ============================================ */

.content-section {
  background: var(--surface);
  padding: 72px 24px;
}

.content-section.alt {
  background: var(--surface-alt);
}

.content-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-muted);
  font-family: 'Source Serif 4', serif;
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 48px;
}

/* Prose article body */
.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.prose h2 {
  font-size: 1.65rem;
  margin-top: 52px;
  margin-bottom: 16px;
  color: var(--text);
}

.prose h3 {
  font-size: 1.25rem;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--text);
}

.prose p {
  margin-bottom: 20px;
  color: var(--text);
}

.prose ul, .prose ol {
  margin: 16px 0 24px 24px;
}

.prose li {
  margin-bottom: 10px;
  color: var(--text);
}

.prose a {
  color: var(--slate-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--slate);
}

/* Buttons inside .prose must not inherit the inline-link color/underline */
.prose a.btn-primary,
.prose a.btn-primary:hover {
  color: var(--white);
  text-decoration: none;
}
.prose a.btn-secondary,
.prose a.btn-secondary:hover {
  color: var(--text);
  text-decoration: none;
}

/* ============================================
   QUICK ANSWER BOX (featured snippet)
   ============================================ */

.quick-answer {
  background: var(--surface-tint);
  border-left: 3px solid var(--slate);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 24px 28px;
  margin: 0 auto 48px;
  max-width: 720px;
}

.quick-answer-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-answer p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin: 0;
}

.quick-answer ul {
  margin: 10px 0 0 20px;
}

.quick-answer ul li {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.95rem;
}

/* ============================================
   AFFILIATE DISCLOSURE
   ============================================ */

.disclosure {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 860px;
  margin: 0 auto 32px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.disclosure::before {
  content: 'ℹ';
  font-style: normal;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--slate);
}

/* ============================================
   BOOK CARDS
   ============================================ */

.book-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.book-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 32px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.book-cover {
  width: 130px;
  min-width: 130px;
  height: 195px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--surface-tint), var(--cream-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  overflow: hidden;
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-cover-fallback {
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.book-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

/* Honorable mentions grid */
.honorable-mentions {
  max-width: 1100px;
  margin: 80px auto 0;
  padding: 0 12px;
}
.honorable-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.honorable-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--slate-dark);
  margin: 0 0 10px;
}
.honorable-header p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.book-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.book-mini {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.18s, box-shadow 0.18s;
}
.book-mini:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.book-mini-cover {
  width: 78px;
  min-width: 78px;
  height: 118px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.book-mini-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-cover-stylized {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: linear-gradient(160deg, #2a3f5f 0%, #1a2940 100%);
  color: #f5e9d4;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.62rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.02em;
  border-left: 3px solid #c9a961;
  box-sizing: border-box;
}
.book-cover .book-cover-stylized { font-size: 0.95rem; padding: 14px; line-height: 1.25; }
.book-mini-info { flex: 1; min-width: 0; }
.book-mini-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.3;
}
.book-mini-info .book-author {
  font-size: 0.78rem;
  margin-bottom: 8px;
}
.book-mini-desc {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
  color: var(--text-muted);
  margin: 0 0 12px !important;
}
@media (max-width: 720px) {
  .book-mini-grid { grid-template-columns: 1fr; }
  .book-cover { width: 100px; min-width: 100px; height: 150px; }
}

.book-info {
  flex: 1;
}

.book-audience {
  display: inline-block;
  background: var(--surface-tint);
  color: var(--slate-dark);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.book-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: var(--text);
}

.book-author {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.book-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--peach);
  color: var(--white);
  padding: 11px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn-amazon:hover {
  background: var(--peach-dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   CTA / NEWSLETTER BANNER
   ============================================ */

.cta-banner {
  background: var(--slate-mid);
  padding: 72px 24px;
  text-align: center;
}

.cta-banner-inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--off-white);
  margin-bottom: 32px;
  font-size: 1.05rem;
  font-family: 'Source Serif 4', serif;
  font-weight: 300;
}

.cta-banner .btn-primary {
  background: var(--white) !important;
  color: var(--slate-dark) !important;
}

.cta-banner .btn-primary:hover {
  background: var(--off-white) !important;
  color: var(--slate-dark) !important;
}

.email-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.email-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 13px 18px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 0.95rem;
  font-family: 'Source Serif 4', serif;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: border-color 0.2s;
}

.email-form input[type="email"]::placeholder {
  color: var(--muted-white);
}

.email-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.14);
}

.email-form button {
  background: var(--white);
  color: var(--slate-dark);
  padding: 13px 26px;
  min-height: 44px;
  border-radius: 4px;
  border: none;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}

.email-form button:hover {
  background: var(--off-white);
  transform: translateY(-1px);
}

.form-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted-white);
  letter-spacing: 0.04em;
  margin-top: 14px;
}

.newsletter-embed {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  min-height: 56px;
}

/* ============================================
   SCROLL REVEAL (shared across all pages)
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--dark);
  padding: 56px 24px 32px;
  color: rgba(255,255,255,0.5);
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-tip {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  margin-bottom: 8px;
}

.footer-tip p {
  font-family: 'Source Serif 4', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255,255,255,0.55);
}

.footer-tip a {
  color: rgba(255,255,255,0.85);
  font-style: normal;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s, color 0.2s;
}

.footer-tip a:hover {
  color: var(--white);
  border-color: var(--white);
}

.footer-brand .nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
}

.footer-brand p {
  font-family: 'Source Serif 4', serif;
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
  font-weight: 300;
}

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-family: 'Source Serif 4', serif;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.44);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.7);
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
  max-width: 720px;
  margin: 0 auto;
}

details.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

details.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}

summary.faq-question {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  list-style: none;
}

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

summary.faq-question::after {
  content: '+';
  font-family: 'Source Serif 4', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-muted);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}

details.faq-item[open] > summary.faq-question::after {
  content: '\2212';
}

.faq-answer {
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  padding-top: 12px;
}

.faq-answer p {
  margin-bottom: 12px;
  color: var(--text-muted);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 8px 0 12px 20px;
}

.faq-answer ul li {
  margin-bottom: 6px;
  color: var(--text-muted);
}

/* ============================================
   FIND A THERAPIST — therapy cards
   ============================================ */

.therapy-options {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.therapy-options-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.therapy-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin: 16px 0 4px;
  position: relative;
}
.therapy-eyebrow::before,
.therapy-eyebrow::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 60px;
  height: 1px;
  background: var(--border);
  margin: 0 18px;
}

.therapy-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.therapy-card--featured {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  text-align: left;
  padding: 32px 40px;
  background:
    radial-gradient(circle at 8% 50%, rgba(196,139,69,0.08), transparent 40%),
    linear-gradient(180deg, #FAF7F1 0%, #F3EEE3 100%);
  border-color: rgba(196,139,69,0.35);
  border-left: 4px solid var(--sand);
}
.therapy-card--featured .therapy-icon {
  margin: 0;
  font-size: 3.2rem;
  flex-shrink: 0;
}
.therapy-card--featured .therapy-card-body {
  min-width: 0;
}
.therapy-card--featured .therapy-badge {
  margin-bottom: 10px;
}
.therapy-card--featured h3 {
  font-size: 1.45rem;
  margin: 0 0 10px;
}
.therapy-card--featured p {
  margin: 0;
  flex: 0;
  max-width: 56ch;
}
.therapy-card--featured .btn-primary {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .therapy-options-secondary { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .therapy-card--featured {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }
  .therapy-card--featured .therapy-icon { margin: 0 auto; }
  .therapy-card--featured p { margin: 0 auto; }
  .therapy-options-secondary { grid-template-columns: 1fr; }
}

.therapy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.therapy-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
}

.therapy-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text);
}

.therapy-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.therapy-badge {
  display: inline-block;
  background: var(--surface-tint);
  color: var(--slate-dark);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 16px;
}

/* ============================================
   GENERIC CARD GRID
   ============================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--surface-tint), var(--powder-pale));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 8px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}

.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.card-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--slate-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
  background: var(--slate-dark);
  color: var(--white);
  padding: 13px 30px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--slate);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: 12px 30px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid rgba(60,65,86,0.25);
  transition: border-color 0.2s, transform 0.15s;
  display: inline-block;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--slate);
  color: var(--slate-dark);
  transform: translateY(-2px);
}

/* ============================================
   STATS BAR
   ============================================ */

.stats {
  background: var(--slate);
  padding: 48px 24px;
}

.stats-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-white);
}

/* ============================================
   FEATURED SECTION (homepage fallback)
   ============================================ */

.featured {
  background: var(--surface-alt);
  padding: 72px 24px;
}

.featured-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.featured-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================
   AUDIENCE CHOOSER (homepage fallback)
   ============================================ */

.audience {
  background: var(--surface);
  padding: 72px 24px;
}

.audience-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.audience-card {
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  display: block;
  color: var(--text);
}

.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--slate);
  color: var(--text);
}

.audience-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

.audience-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.audience-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.audience-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--slate-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================
   HERO (old homepage fallback — not shown
   when index.html uses inline styles)
   ============================================ */

.hero {
  background: var(--slate);
  padding: 80px 24px 100px;
  text-align: center;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--off-white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 3px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}

.hero h1 em {
  font-style: italic;
  color: var(--off-white);
}

.hero p {
  font-size: 1.1rem;
  color: var(--off-white);
  max-width: 560px;
  margin: 0 auto 36px;
  font-family: 'Source Serif 4', serif;
  font-weight: 300;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .nav-announce {
    height: auto;
    min-height: 32px;
    padding: 6px 16px;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .nav-announce-text {
    font-size: 0.58rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--slate-dark);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    font-size: 0.8rem;
  }

  .nav-links .nav-cta {
    margin: 8px 24px 0 !important;
    text-align: center;
    border-radius: 4px !important;
    padding: 10px 20px !important;
  }

  .nav-item {
    width: 100%;
  }

  .nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 12px 24px;
    font-size: 0.8rem;
    border-radius: 0;
  }

  .nav-dropdown,
  .nav-dropdown--mega {
    position: static;
    border: 0;
    border-radius: 0;
    padding: 0 0 8px;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .nav-dropdown a {
    padding: 10px 24px 10px 40px;
    font-size: 0.72rem;
    white-space: normal;
  }

  .nav-dropdown-label {
    padding: 12px 24px 6px 40px;
    border-bottom: 0;
    margin-bottom: 0;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
  }

  .book-card {
    flex-direction: column;
  }

  .book-cover {
    width: 100%;
    height: 160px;
    min-width: unset;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
    max-width: 300px;
  }

  .email-form {
    flex-direction: column;
  }

  .email-form input[type="email"] {
    min-width: unset;
    width: 100%;
  }
}

/* Inline grid helpers used by homepage therapist teaser + how-to-become page */
@media (max-width: 700px) {
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   VISUAL COMPONENT LIBRARY (shared across inner pages)
   Tokens + classes for compare-table, data-table, callout,
   arc-strip, stat-strip, featured-photo, photo-placeholder,
   method-diagram, timeline-path, cond-grid.
   ============================================================ */

:root {
  --mauve:       #A4595F;
  --sand:        #C48B45;
  --powder:      #7A92AB;
  --sage-muted:  #7D9480;
  --plum:        #7B5A78;
  --teal:        #4E8A88;
  --olive:       #7D8652;
  --terracotta:  #B66B4F;
}

/* Visual section wrapper — use on any content section */
.vc-section {
  padding: 72px 40px;
  background: var(--surface);
}
.vc-section--alt { background: var(--surface-alt); }
.vc-inner {
  max-width: 1040px;
  margin: 0 auto;
}
.vc-section .section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.vc-section .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}
.vc-section .section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  color: var(--dark);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.vc-section .section-sub {
  font-family: 'Source Serif 4', serif;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

/* ── Comparison table (two columns, row-labelled) ── */
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Source Serif 4', serif;
}
.compare-table th, .compare-table td {
  padding: 18px 22px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--dark);
}
.compare-table thead th {
  background: var(--surface-alt);
  font-family: 'Playfair Display', serif;
  font-size: 1.04rem;
  color: var(--dark);
}
.compare-table thead .th-eyebrow {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 400;
}
.compare-table tbody th {
  background: var(--surface);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  width: 22%;
  vertical-align: top;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .td-highlight {
  background: linear-gradient(180deg, rgba(124,148,128,0.08), rgba(124,148,128,0.04));
  border-left: 3px solid var(--sage-muted);
}
@media (max-width: 720px) {
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr,
  .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table tbody th { border-bottom: none; padding-bottom: 2px; }
  .compare-table tbody td { padding-top: 8px; padding-bottom: 18px; }
  .compare-table tbody td[data-col]::before {
    content: attr(data-col);
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
  }
  .compare-table .td-highlight { border-left: 3px solid var(--sage-muted); }
}

/* ── Data table (with colored dot markers) ── */
.data-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Source Serif 4', serif;
}
.data-table thead th {
  background: var(--surface-alt);
  padding: 14px 18px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.data-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
  font-size: 0.94rem;
  line-height: 1.5;
  vertical-align: top;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-alt); }
.data-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: baseline;
  position: relative;
  top: 1px;
  background: var(--slate);
}
.data-dot.dot-rose      { background: #A4595F; }
.data-dot.dot-steel     { background: #5B7FA0; }
.data-dot.dot-sage      { background: #5C7A5D; }
.data-dot.dot-amber     { background: #C48B45; }
.data-dot.dot-mauve     { background: #8B6E9E; }
.data-dot.dot-gold      { background: #9B8A4E; }
.data-dot.dot-olive     { background: #7D8652; }
.data-dot.dot-terracotta{ background: #B66B4F; }
.data-dot.dot-plum      { background: #7B5A78; }
.data-dot.dot-teal      { background: #4E8A88; }
.data-dot.dot-powder    { background: #8BA2B8; }
.data-table a {
  color: var(--slate-dark);
  font-weight: 500;
  border-bottom: 1px dotted var(--border);
}
.data-table a:hover { border-bottom-color: var(--slate); }
@media (max-width: 760px) {
  .data-table thead { display: none; }
  .data-table tbody td { display: block; padding: 8px 16px; border-bottom: none; }
  .data-table tbody tr {
    display: block;
    padding: 14px 0 16px;
    border-bottom: 1px solid var(--border);
  }
  .data-table tbody tr:last-child { border-bottom: none; }
  .data-table tbody td[data-col]::before {
    content: attr(data-col) " · ";
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
  .data-table tbody td.data-cell-name::before { display: none; }
}

/* ── Callout box (pull-quote / key insight) ── */
.vc-callout {
  background: var(--surface);
  border-left: 4px solid var(--slate);
  border-radius: 0 12px 12px 0;
  padding: 26px 30px;
  margin: 36px 0;
  box-shadow: var(--shadow);
}
.vc-callout-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: block;
}
.vc-callout-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--dark);
  font-style: italic;
}
.vc-callout-attribution {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.vc-callout--mauve      { border-left-color: var(--mauve); }
.vc-callout--sand       { border-left-color: var(--sand); }
.vc-callout--sage       { border-left-color: var(--sage-muted); }
.vc-callout--plum       { border-left-color: var(--plum); }
.vc-callout--terracotta { border-left-color: var(--terracotta); }

/* ── Arc strip (4-step horizontal flow) ── */
.arc-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 32px 0;
}
.arc-step {
  background: var(--surface);
  padding: 28px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.arc-step-num, .arc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.arc-step-name, .arc-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.2;
}
.arc-step-desc, .arc-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.arc-step-icon, .arc-icon { width: 40px; height: 40px; color: var(--slate); margin-bottom: 4px; }
@media (max-width: 760px) {
  .arc-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .arc-strip { grid-template-columns: 1fr; }
}

/* ── Stat strip (3–5 big numbers) ── */
.vc-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin: 32px 0;
}
.vc-stat {
  background: var(--surface);
  padding: 28px 24px;
  text-align: center;
}
.vc-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  color: var(--dark);
  line-height: 1;
  margin-bottom: 6px;
  font-weight: 600;
}
.vc-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Featured photo placeholder ──
   Card-like treatment with subtle gradient so it reads as a photo slot,
   not dead space that blends into the page background. */
.featured-photo {
  position: relative;
  aspect-ratio: 21/9;
  max-width: 900px;
  margin: 44px auto;
  background:
    linear-gradient(135deg, rgba(60,65,86,0.04) 0%, rgba(60,65,86,0.10) 100%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.featured-photo--mauve  { background: linear-gradient(135deg, rgba(164,89,95,0.06), rgba(164,89,95,0.14)), var(--mauve-pale); }
.featured-photo--powder { background: linear-gradient(135deg, rgba(122,146,171,0.06), rgba(122,146,171,0.14)), var(--powder-pale); }
.featured-photo--sage   { background: linear-gradient(135deg, rgba(125,148,128,0.06), rgba(125,148,128,0.14)), var(--sage-pale); }
.featured-photo--alt    { background: linear-gradient(135deg, rgba(60,65,86,0.04), rgba(60,65,86,0.10)), var(--surface-alt); }
.featured-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph-box {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
}
.ph-box svg {
  opacity: 0.7;
  color: var(--slate);
}
.ph-box-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.85;
  line-height: 1.5;
  max-width: 32ch;
}
@media (max-width: 780px) {
  .featured-photo { aspect-ratio: 4/3; }
}

/* ── Side-by-side photo + prose split ── */
.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 48px 0;
}
.split-media__photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}
.split-media__text h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--dark);
  line-height: 1.22;
  margin-bottom: 14px;
}
.split-media__text p {
  font-family: 'Source Serif 4', serif;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.split-media--reverse .split-media__photo { order: 2; }
@media (max-width: 760px) {
  .split-media { grid-template-columns: 1fr; gap: 28px; }
  .split-media--reverse .split-media__photo { order: 0; }
  .split-media__photo { aspect-ratio: 16/10; }
}

/* ── Method diagram (labeled SVG block, generic wrapper) ── */
.method-diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 48px 32px;
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  box-shadow: var(--shadow);
}
.method-diagram svg { max-width: 520px; width: 100%; height: auto; }
.method-diagram-caption {
  font-family: 'Source Serif 4', serif;
  font-size: 0.94rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 540px;
  line-height: 1.6;
}

/* ── Horizontal timeline (for history / certification path) ── */
.vc-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--vc-tl-cols, 5), 1fr);
  gap: 8px;
  margin: 40px 0 48px;
  padding: 44px 28px 32px;
  background:
    radial-gradient(circle at 12% 18%, rgba(180,130,70,0.04), transparent 35%),
    radial-gradient(circle at 88% 78%, rgba(120,90,120,0.035), transparent 38%),
    linear-gradient(180deg, #FAF7F1 0%, #F3EEE3 100%);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 2px 18px rgba(60,40,20,0.05);
}
.vc-timeline::before {
  content: "";
  position: absolute;
  top: 58px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: linear-gradient(90deg,
    var(--terracotta) 0%,
    var(--sand) 22%,
    var(--olive) 42%,
    var(--sage-muted) 60%,
    var(--plum) 80%,
    var(--teal) 100%);
  opacity: 0.55;
  z-index: 0;
}
.vc-tl-node {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 6px;
  color: inherit;
  text-decoration: none;
  display: block;
  transition: transform 0.25s ease;
}
a.vc-tl-node:hover { transform: translateY(-2px); }
.vc-tl-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FAF7F1;
  border: 3px solid var(--slate);
  margin: 0 auto 18px;
  box-shadow:
    0 0 0 5px #FAF7F1,
    0 2px 8px rgba(60,40,20,0.12);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.vc-tl-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.25s ease;
}
a.vc-tl-node:hover .vc-tl-dot {
  transform: scale(1.18);
  box-shadow:
    0 0 0 5px #FAF7F1,
    0 4px 14px rgba(60,40,20,0.18);
}
a.vc-tl-node:hover .vc-tl-dot::after { opacity: 0.85; }
.vc-tl-node[data-tone="mauve"]      .vc-tl-dot { border-color: var(--mauve); color: var(--mauve); }
.vc-tl-node[data-tone="terracotta"] .vc-tl-dot { border-color: var(--terracotta); color: var(--terracotta); }
.vc-tl-node[data-tone="sand"]       .vc-tl-dot { border-color: var(--sand); color: var(--sand); }
.vc-tl-node[data-tone="olive"]      .vc-tl-dot { border-color: var(--olive); color: var(--olive); }
.vc-tl-node[data-tone="sage"]       .vc-tl-dot { border-color: var(--sage-muted); color: var(--sage-muted); }
.vc-tl-node[data-tone="plum"]       .vc-tl-dot { border-color: var(--plum); color: var(--plum); }
.vc-tl-node[data-tone="teal"]       .vc-tl-dot { border-color: var(--teal); color: var(--teal); }
.vc-tl-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.vc-tl-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 6px;
}
.vc-tl-desc {
  font-family: 'Source Serif 4', serif;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}
a.vc-tl-node:hover .vc-tl-name { color: var(--text); }
a.vc-tl-node:hover .vc-tl-desc { color: var(--text); }
@media (max-width: 820px) {
  .vc-timeline {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 22px;
  }
  .vc-timeline::before {
    top: 32px; bottom: 32px; left: 24px; right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg,
      var(--terracotta), var(--sand), var(--olive),
      var(--sage-muted), var(--plum), var(--teal));
  }
  .vc-tl-node { text-align: left; padding-left: 48px; }
  .vc-tl-dot { position: absolute; left: 12px; top: 4px; margin: 0; }
}

/* ── Condition/option tile grid (reusable) ── */
.vc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin: 32px 0;
}
.vc-tile {
  background: var(--surface);
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  transition: background 0.15s;
}
.vc-tile:hover { background: var(--surface-alt); }
.vc-tile-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vc-tile-body { flex: 1; min-width: 0; }
.vc-tile-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.06rem;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 4px;
}
.vc-tile-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.vc-tile:hover .vc-tile-link { color: var(--dark); }

/* ── Hero photo slot (reusable on inner pages) ── */
.page-hero-photo {
  position: relative;
  aspect-ratio: 3.4/1;
  max-width: 1040px;
  margin: 0 auto 44px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(155, 122, 140, 0.18), transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(124, 143, 122, 0.16), transparent 55%),
    linear-gradient(135deg, var(--surface-tint), var(--surface-alt));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 12px rgba(46, 50, 60, 0.04);
  overflow: hidden;
}
.page-hero-photo .ph-box {
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.page-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 780px) {
  .page-hero-photo {
    aspect-ratio: 2.2/1;
    margin: 0 16px 32px;
    border-radius: 12px;
  }
}

/* ── Evidence bar — horizontal bar chart for effect sizes / outcomes ── */
.evidence-bar {
  display: grid;
  gap: 18px;
  max-width: 720px;
  margin: 36px auto;
}
.evidence-row {
  display: grid;
  grid-template-columns: 170px 1fr 68px;
  align-items: center;
  gap: 16px;
}
.evidence-label {
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 500;
  line-height: 1.35;
}
.evidence-track {
  position: relative;
  height: 24px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.evidence-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
  background: linear-gradient(90deg, var(--slate), var(--slate-dark));
}
.evidence-fill.fill-rose       { background: linear-gradient(90deg, #A4595F, #8B3F45); }
.evidence-fill.fill-sage       { background: linear-gradient(90deg, #7C8F7A, #5C7A5D); }
.evidence-fill.fill-steel      { background: linear-gradient(90deg, #8BA2B8, #5B7FA0); }
.evidence-fill.fill-mauve      { background: linear-gradient(90deg, #9B7A8C, #7B5A78); }
.evidence-fill.fill-terracotta { background: linear-gradient(90deg, #C78875, #B66B4F); }
.evidence-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--dark);
  font-weight: 500;
  text-align: right;
}
.evidence-caption {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .evidence-row {
    grid-template-columns: 1fr 54px;
    grid-template-areas:
      "label label"
      "track value";
    gap: 6px 10px;
  }
  .evidence-label { grid-area: label; }
  .evidence-track { grid-area: track; }
  .evidence-value { grid-area: value; }
}

/* Skip link — visually hidden until focused via keyboard */
/* ── Recommended reading (per-page affiliate block) ── */
.rec-reading {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  margin: 48px auto;
  max-width: 760px;
}
.rec-reading-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.rec-reading h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--slate-dark);
  margin: 0 0 6px;
  line-height: 1.25;
}
.rec-reading-disclosure {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 24px;
}
.rec-books { display: grid; gap: 24px; }
.rec-book {
  display: flex;
  gap: 18px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.rec-book-cover {
  flex-shrink: 0;
  width: 88px;
  height: 132px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(26,28,32,0.16);
  background: var(--surface-tint);
}
.rec-book-meta { flex: 1; min-width: 0; }
@media (max-width: 480px) {
  .rec-book { gap: 14px; }
  .rec-book-cover { width: 64px; height: 96px; }
}
.rec-book h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.3;
}
.rec-book-author {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 8px;
}
.rec-book-why {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 12px;
}
.rec-book-buy {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}
.rec-book-buy a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-dark);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 4px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: background 0.18s;
}
.rec-book-buy a:hover { background: var(--surface-alt); }

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--slate-dark);
  color: var(--white);
  padding: 10px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  z-index: 9999;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ============================================
   BIBLIOGRAPHY PAGE
   ============================================ */
.bib-disclosure {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}
.bib-disclosure-inner {
  max-width: 1160px;
  margin: 0 auto;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.bib-disclosure-inner p {
  margin: 0;
  padding-left: 16px;
  border-left: 3px solid var(--slate);
}
.bib-disclosure-inner strong {
  color: var(--slate-dark);
  font-weight: 600;
}
.bib-disclosure-inner a {
  color: var(--slate);
  border-bottom: 1px solid var(--slate);
}
.bib-disclosure-inner a:hover {
  color: var(--slate-dark);
}

.bib-controls {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}
.bib-controls-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.bib-search {
  width: 100%;
  padding: 10px 14px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
}
.bib-search:focus {
  outline: 2px solid var(--slate);
  outline-offset: 1px;
  border-color: var(--slate);
}
.bib-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.bib-filter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.bib-filter:hover { color: var(--slate); border-color: var(--slate); }
.bib-filter.is-active {
  background: var(--slate);
  color: var(--white);
  border-color: var(--slate);
}
.bib-counter {
  grid-column: 1 / -1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.bib-counter strong { color: var(--slate); font-weight: 600; }

.bib-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
}
.bib-toc {
  position: sticky;
  top: 200px;
  align-self: start;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
}
.bib-toc-group {
  margin-bottom: 18px;
}
.bib-toc-group-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 0;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.bib-toc a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  color: var(--text);
  transition: color 0.15s;
}
.bib-toc a:hover { color: var(--slate); }
.bib-toc a .bib-toc-count {
  font-size: 0.62rem;
  color: var(--text-muted);
}
.bib-content { min-width: 0; }
.bib-section {
  margin-bottom: 56px;
  scroll-margin-top: 220px;
  /* Defer rendering of offscreen sections — browser skips layout/paint until scrolled near */
  content-visibility: auto;
  contain-intrinsic-size: 0 1200px;
}
.bib-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--slate-dark);
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.bib-section h2 .bib-section-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.bib-section-intro {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 0 20px;
}
.bib-list {
  border-top: 1px solid var(--border);
}

/* Letter-jump nav within long sections */
.bib-letter-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding: 10px 12px;
  margin: 0 0 14px;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: sticky;
  top: 196px;
  z-index: 50;
}
.bib-letter-jump-label {
  font-size: 0.56rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-right: 6px;
}
.bib-letter-jump a {
  color: var(--slate);
  padding: 3px 7px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  font-weight: 500;
  min-width: 18px;
  text-align: center;
}
.bib-letter-jump a:hover {
  background: var(--slate);
  color: var(--white);
}
.bib-letter-jump a.is-empty {
  color: var(--text-muted);
  opacity: 0.35;
  pointer-events: none;
  font-weight: 400;
}
.bib-letter-anchor {
  scroll-margin-top: 240px;
}

/* Back-to-top links at end of long sections */
.bib-section-back-top {
  text-align: right;
  margin: 18px 0 0;
}
.bib-section-back-top a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
}
.bib-section-back-top a:hover {
  background: var(--surface);
  color: var(--slate-dark);
}
.bib {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.bib-citation {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}
.bib-citation em { font-style: italic; color: var(--slate-dark); }
.bib-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--slate);
  text-decoration: none;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-left: 4px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.bib-link:hover {
  background: var(--slate);
  color: var(--white);
  border-color: var(--slate);
}

/* Affiliate buy chip — inline at end of citation, hover/focus reveals Amazon + Bookshop */
.bib-buy {
  position: relative;
  display: inline-block;
  margin-left: 4px;
  white-space: nowrap;
}
.bib-buy-trigger {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 7px 1px 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: baseline;
}
.bib-buy-trigger:hover,
.bib-buy:focus-within .bib-buy-trigger {
  background: var(--slate);
  color: var(--white);
  border-color: var(--slate);
}
.bib-buy-caret {
  font-size: 0.6rem;
  opacity: 0.7;
  transition: transform 0.15s;
  display: inline-block;
}
.bib-buy:hover .bib-buy-caret,
.bib-buy:focus-within .bib-buy-caret {
  transform: rotate(180deg);
}
.bib-buy-popover {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  z-index: 50;
  min-width: 140px;
  flex-direction: column;
}
.bib-buy:hover .bib-buy-popover,
.bib-buy:focus-within .bib-buy-popover {
  display: flex;
}
.bib-buy-popover a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--slate-dark);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 3px;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.bib-buy-popover a:hover {
  background: var(--surface);
  color: var(--slate);
}
.bib-buy-popover a:first-child:hover { color: #b8590f; }
.bib-buy-popover a:last-child:hover  { color: #1f7a4d; }
.bib-tags {
  margin: 8px 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.bib-tag {
  color: var(--text-muted);
  text-decoration: none;
  padding: 2px 8px 3px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
  cursor: pointer;
  display: inline-block;
  line-height: 1.4;
}
.bib-tag::before {
  content: "#";
  opacity: 0.55;
  margin-right: 1px;
}
.bib-tag:hover {
  color: var(--white);
  background: var(--slate);
  border-color: var(--slate);
}
.bib-tag:hover::before { opacity: 1; }
.bib-tag:active { transform: translateY(1px); }
.bib-tag:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 2px;
}
.bib-tag.is-active {
  color: var(--white);
  background: var(--slate-dark);
  border-color: var(--slate-dark);
  font-weight: 500;
}
.bib-tag.is-active::before { opacity: 1; }

/* Format chips — color-coded per format */
.bib-tag--fmt          { font-weight: 500; }
.bib-tag--fmt-book     { background: #F2EBDF; color: #6B4F2A; border-color: #E0D5C2; }
.bib-tag--fmt-book:hover     { background: #6B4F2A; color: #fff; border-color: #6B4F2A; }
.bib-tag--fmt-article  { background: #E9E5F1; color: #3D3567; border-color: #D5CFE3; }
.bib-tag--fmt-article:hover  { background: #3D3567; color: #fff; border-color: #3D3567; }
.bib-tag--fmt-thesis   { background: #E5EBE0; color: #3A5530; border-color: #D2DBC9; }
.bib-tag--fmt-thesis:hover   { background: #3A5530; color: #fff; border-color: #3A5530; }
.bib-tag--fmt-film     { background: #E1ECEB; color: #2C5454; border-color: #CADCDB; }
.bib-tag--fmt-film:hover     { background: #2C5454; color: #fff; border-color: #2C5454; }
.bib-tag--fmt-journal  { background: #ECE2EA; color: #5A2F4C; border-color: #DCCBD7; }
.bib-tag--fmt-journal:hover  { background: #5A2F4C; color: #fff; border-color: #5A2F4C; }
.bib-tag--fmt.is-active { font-weight: 600; }

/* Active filter chips bar in controls */
.bib-active-chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
}
.bib-active-chips[hidden] { display: none; }
.bib-active-label {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 2px;
}
.bib-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--slate-dark);
  color: var(--white);
  padding: 3px 4px 3px 9px;
  border-radius: 14px;
  letter-spacing: 0.03em;
}
.bib-active-chip-hash {
  opacity: 0.6;
  margin-right: -2px;
}
.bib-active-chip--fmt { background: var(--slate); }
.bib-active-chip--q { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.bib-active-chip-remove {
  appearance: none;
  background: rgba(255,255,255,0.18);
  color: inherit;
  border: 0;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  padding: 0;
}
.bib-active-chip--q .bib-active-chip-remove { background: var(--border); }
.bib-active-chip-remove:hover { background: rgba(255,255,255,0.35); }
.bib-active-chip--q .bib-active-chip-remove:hover { background: var(--slate); color: var(--white); }
.bib-clear-all {
  appearance: none;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 6px;
  margin-left: auto;
}
.bib-clear-all:hover { color: var(--slate-dark); }
.bib.is-hidden { display: none; }
.bib-section.is-empty { display: none; }
.bib-empty-state {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  padding: 60px 20px;
  font-style: italic;
}
@media (max-width: 900px) {
  .bib-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .bib-toc {
    position: static;
    max-height: none;
    overflow-y: visible;
    background: var(--surface);
    padding: 16px;
    border-radius: 6px;
    border: 1px solid var(--border);
  }
  .bib-controls-inner {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   RELATED READING — internal linking module at the bottom of content pages
   ============================================ */
.related-reading {
  max-width: 800px;
  margin: 64px auto 24px;
  padding: 28px 36px;
  background: var(--surface-tint);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.related-reading h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.related-reading ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px 28px;
}
.related-reading li {
  margin: 0;
  padding: 6px 0;
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  line-height: 1.5;
}
.related-reading li a {
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.related-reading li a:hover { border-bottom-color: var(--text); }
.related-reading li small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   PAGE META — visible "Last reviewed" line under page header
   ============================================ */
.page-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.page-header-inner .page-meta { color: rgba(255,255,255,0.6); }

/* ============================================
   ACCESSIBILITY — focus indicators, reduced motion
   ============================================ */
:focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 3px;
  border-radius: 2px;
}
.btn-primary:focus-visible,
.nav-cta:focus-visible {
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   PRINT STYLESHEET — clinicians print exercises and condition guides
   ============================================ */
@media print {
  .nav, .nav-announce, .footer, .footer-tip, .cta-banner,
  .breadcrumbs, .nav-hamburger, .skip-link,
  .exercises-rail, .therapy-card .btn-primary,
  .email-form, .form-note { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .content-inner, .page-header-inner { max-width: 100%; padding: 0 12pt; }
  .exercises-pane { display: block; }
  .exercises-detail .exercise-card {
    display: block !important;
    page-break-inside: avoid;
    border: 1px solid #999;
    box-shadow: none;
    margin-bottom: 16pt;
  }
  .exercise-card__room {
    background: #f5f4f2 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  a { color: black; text-decoration: underline; }
  /* Show URLs after external links so they survive printing */
  a[href^="http"]:not([href*="dramatherapyresources.com"])::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #666;
  }
  h1, h2, h3 { page-break-after: avoid; }
  .quick-answer { border: 1px solid #999; background: white; }
  img { max-width: 100% !important; }
  .page-hero-photo { display: none; }
  .crisis-callout {
    border: 1px solid #999;
    background: white !important;
  }
}

/* ============================================
   CRISIS CALLOUT — for YMYL pages (trauma, depression, addiction, etc.)
   ============================================ */
.crisis-callout {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 14px 22px;
  border-left: 3px solid var(--mauve);
  background: rgba(164,89,95,0.06);
  border-radius: 6px;
  font-family: 'Source Serif 4', serif;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}
.crisis-callout strong {
  color: var(--mauve);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.crisis-callout a {
  color: var(--mauve);
  border-bottom: 1px solid currentColor;
}

/* ============================================
   EDUCATIONAL DISCLAIMER — YMYL footer notice
   ============================================ */
.educational-disclaimer {
  max-width: 680px;
  margin: 64px auto 40px;
  padding: 22px 32px;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'Source Serif 4', serif;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}
.educational-disclaimer strong {
  color: var(--slate-dark);
  font-weight: 600;
}

/* ============================================
   EXERCISE CARD — plain-language layered exercise entry
   ============================================ */
.exercise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sand);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 36px 0;
  box-shadow: var(--shadow);
}
.exercise-card[data-phase="1"] { border-left-color: var(--terracotta); }
.exercise-card[data-phase="2"] { border-left-color: var(--sand); }
.exercise-card[data-phase="3"] { border-left-color: var(--olive); }
.exercise-card[data-phase="4"] { border-left-color: var(--plum); }
.exercise-card[data-phase="5"] { border-left-color: var(--teal); }

.exercise-card__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.exercise-card__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.exercise-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.exercise-card__meta {
  display: flex;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.exercise-card__meta span:not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  opacity: 0.5;
}

.exercise-card__label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.exercise-card__room {
  background: linear-gradient(180deg, #FAF7F1 0%, #F3EEE3 100%);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 22px;
}
.exercise-card__room p {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.exercise-card__do,
.exercise-card__why {
  margin-bottom: 20px;
}
.exercise-card__do p,
.exercise-card__why p {
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
}

.exercise-card__clinical {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.exercise-card__clinical p {
  margin: 8px 0 0;
  font-family: 'Source Serif 4', serif;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ============================================
   EXERCISES PANE — master/detail layout
   ============================================ */
.exercises-pane {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  margin: 24px 0 16px;
}

.exercises-rail {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}
.exercises-rail::-webkit-scrollbar { width: 6px; }
.exercises-rail::-webkit-scrollbar-thumb {
  background: rgba(60,65,86,0.18);
  border-radius: 3px;
}

.rail-phase { margin-bottom: 28px; }
.rail-phase:last-child { margin-bottom: 12px; }

.rail-phase__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.rail-phase__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.rail-phase__intro {
  font-family: 'Source Serif 4', serif;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--border);
}
.rail-list li { margin: 0; }

.exercises-rail__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 14px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-family: 'Source Serif 4', serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  line-height: 1.35;
}
.exercises-rail__item .rail-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-light);
  flex-shrink: 0;
}
.exercises-rail__item:hover {
  color: var(--text);
  background: var(--surface-tint);
}
.exercises-rail__item[aria-current="true"] {
  color: var(--text);
  font-weight: 600;
  border-left-color: var(--slate);
  background: var(--surface-tint);
}

.exercises-detail {
  min-width: 0;
}
/* All 20 exercises render in the page so AI crawlers and SEO see everything.
   The rail's anchor links scroll the user to the right card. The currently-
   linked card gets a subtle highlight via :target. */
.exercises-detail .exercise-card {
  display: block;
  margin: 0 0 28px;
  scroll-margin-top: 96px;
}
.exercises-detail .exercise-card:target {
  box-shadow: 0 0 0 2px var(--sand), var(--shadow-hover);
  transition: box-shadow 0.3s ease;
}

@media (max-width: 900px) {
  .exercises-pane {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .exercises-rail {
    position: static;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
    display: none;
  }
}

/* Hover-defined glossary terms */
.term {
  position: relative;
  border-bottom: 1px dotted var(--text-muted);
  cursor: help;
}
.term-def {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, 80vw);
  background: var(--dark);
  color: var(--white);
  font-family: 'Source Serif 4', serif;
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  z-index: 10;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  pointer-events: none;
  text-align: left;
}
.term-def::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--dark);
}
.term:hover .term-def,
.term:focus-within .term-def {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 720px) {
  .exercise-card { padding: 22px 22px; }
  .exercise-card__title { font-size: 1.25rem; }
}
