:root {
  --bg: #FAF8F4;
  --surface: #F2EDE4;
  --surface2: #E8E0D4;
  --text: #1C1612;
  --text-secondary: #5C4F45;
  --text-muted: #9C8F87;
  --accent: #B05A35;
  --accent-light: #F0DDD1;
  --accent-dark: #7A3D21;
  --green: #3D6140;
  --green-light: #D4E4D0;
  --border: #DDD5C8;
  --shadow: rgba(28,22,18,0.08);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 10px;
  --max: 860px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  font-weight: 300;
}

/* NAV */
body > nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent-dark);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.nav-logo-mark {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.nav-logo:hover .nav-logo-mark { transform: rotate(-6deg); }
.nav-logo-text { display: flex; flex-direction: column; gap: 0px; }
.nav-logo-line1 { font-family: var(--font-display); font-size: 22px; font-style: italic; color: var(--accent-dark); letter-spacing: -0.5px; line-height: 1.1; }
.nav-logo-line2 { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; font-family: var(--font-body); font-weight: 500; color: var(--accent); line-height: 1; text-align: center; }
.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  display: inline-block;
  text-decoration: none;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--surface); color: var(--text); }
.nav-links a.active { background: var(--accent-light); color: var(--accent-dark); font-weight: 500; }

/* SECTIONS */
.section { display: none; }
.section.active { display: block; }

/* PAGE WRAPPER */
.page { max-width: var(--max); margin: 0 auto; padding: 60px 24px 100px; }
.page-wide { max-width: 1060px; margin: 0 auto; padding: 60px 24px 100px; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-light) 100%);
  padding: 80px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.2;
  color: var(--accent-dark);
  max-width: 700px;
  margin: 0 auto 24px;
  font-weight: 400;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
  font-weight: 300;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  margin-left: 12px;
}
.btn-ghost:hover { background: var(--accent-light); }

/* TYPOGRAPHY */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.3; }
h1 { font-size: clamp(28px, 4vw, 40px); color: var(--accent-dark); margin-bottom: 12px; }
h2 { font-size: clamp(22px, 3vw, 30px); color: var(--text); margin: 48px 0 16px; }
h2:first-child { margin-top: 0; }
h3 { font-size: 18px; color: var(--text); margin: 32px 0 10px; }
h4 { font-size: 15px; font-family: var(--font-body); font-weight: 500; margin: 24px 0 8px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; }
p { margin-bottom: 16px; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 500; color: var(--text); }
a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-light); }
a:hover { text-decoration-color: var(--accent); }

/* PAGE HEADER */
.page-header { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.page-header .eyebrow { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 10px; }

/* CARDS GRID */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 32px 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.1s;
}
.card:hover { box-shadow: 0 4px 16px var(--shadow); transform: translateY(-2px); }
.card-icon { font-size: 24px; margin-bottom: 12px; }
.card h3 { font-size: 16px; margin: 0 0 8px; }
.card p { font-size: 14px; }

/* CALLOUT */
.callout {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.callout-green {
  background: var(--green-light);
  border-left-color: var(--green);
}
.callout p { color: var(--text); margin: 0; font-size: 15px; }
.callout strong { color: var(--accent-dark); }

/* FAQ */
.faq-list { margin: 24px 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 18px 32px 18px 0;
  cursor: pointer;
  position: relative;
  line-height: 1.4;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-q.open::after { content: '−'; }
.faq-a { display: none; padding: 0 0 20px; font-size: 15px; color: var(--text-secondary); }
.faq-a.open { display: block; }

/* GLOSSARY */
.glossary-alpha { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0; }
.glossary-alpha button {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.1s;
}
.glossary-alpha button:hover { background: var(--accent-light); color: var(--accent-dark); }
.glossary-term { margin-bottom: 28px; }
.glossary-term dt {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 4px;
}
.glossary-term dd { font-size: 15px; color: var(--text-secondary); margin-left: 0; }
.glossary-letter { font-family: var(--font-display); font-size: 28px; color: var(--accent); margin: 36px 0 16px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }

/* RESOURCE CARDS */
.resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.resource-card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.resource-card h4 { font-family: var(--font-display); font-size: 16px; color: var(--text); font-weight: 400; margin: 0 0 4px; }
.resource-card .author { font-size: 12px; color: var(--accent); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.resource-card p { font-size: 14px; margin: 0; }

/* PODCAST TAG */
.tag {
  display: inline-block;
  background: var(--surface2);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 8px;
  margin-right: 4px;
}
.tag-green { background: var(--green-light); color: var(--green); }
.tag-accent { background: var(--accent-light); color: var(--accent-dark); }

/* QA */
.qa-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.qa-q { font-family: var(--font-display); font-size: 18px; color: var(--text); margin-bottom: 16px; font-style: italic; }
.qa-a { font-size: 15px; color: var(--text-secondary); }
.qa-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 500; margin-bottom: 12px; }

/* THERAPIST DIRECTORY */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.filter-bar select, .filter-bar input {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}
.therapist-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.therapist-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent-dark);
  flex-shrink: 0;
}
.therapist-info h4, .therapist-info h3 { font-size: 16px; font-family: var(--font-body); font-weight: 500; margin: 0 0 4px; color: var(--text); }
.therapist-info .creds { font-size: 12px; color: var(--accent); font-weight: 500; margin-bottom: 6px; }

/* SUBMIT FORM */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* SECTION TABS */
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 36px; overflow-x: auto; }
.tab-bar button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
}
.tab-bar button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }

/* DISCLAIMER */
.disclaimer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* DIVIDER */
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* HAMBURGER BUTTON */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--surface); }
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* MOBILE DRAWER */
.nav-drawer {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  overflow-y: auto;
  padding: 16px 24px 40px;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.2s ease;
}
.nav-drawer.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.nav-drawer a {
  display: block;
  text-decoration: none;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--text);
  padding: 16px 4px;
  cursor: pointer;
  transition: color 0.15s;
}
.nav-drawer a:hover { color: var(--accent); }
.nav-drawer a.active { color: var(--accent); }

/* RESPONSIVE */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 48px 20px; }
  .hero h1 { font-size: clamp(26px, 7vw, 40px); }
  .hero-sub { font-size: 15px; }
  .btn { padding: 11px 22px; font-size: 14px; }

  .page { padding: 36px 18px 80px; }
  .page-wide { padding: 36px 18px 80px; }

  h2 { font-size: clamp(20px, 5vw, 28px); margin: 36px 0 14px; }
  h3 { font-size: 17px; }

  .home-sections { grid-template-columns: 1fr 1fr; gap: 12px; }
  .home-section-card { padding: 16px; }
  .home-section-card h3 { font-size: 15px; }

  .card-grid { grid-template-columns: 1fr; }
  .therapist-card { flex-direction: column; }
  .resource-card { grid-template-columns: 1fr; }

  .filter-bar { flex-direction: column; }
  .filter-bar select, .filter-bar input { width: 100%; }

  .parts-grid { grid-template-columns: 1fr; }

  .tab-bar { gap: 0; }
  .tab-bar button { padding: 10px 12px; font-size: 13px; }

  .topic-nav { gap: 6px; }
  .topic-nav button { font-size: 12px; padding: 5px 10px; }

  .callout { padding: 16px 18px; }
  .qa-entry { padding: 20px; }
  .qa-q { font-size: 16px; }

  .glossary-alpha { gap: 4px; }
  .glossary-alpha button { padding: 3px 8px; font-size: 12px; }

  .nav-logo-line1 { font-size: 18px; }

  /* About page photo layout */
  .about-header-flex { flex-direction: column; align-items: flex-start !important; gap: 20px !important; }
  .about-header-flex img { width: 100px !important; height: 100px !important; }
}

@media (max-width: 420px) {
  .home-sections { grid-template-columns: 1fr; }
  .btn + .btn { margin-left: 8px; }
}

/* HOME GRID */
.home-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 48px 0;
}
.home-section-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.1s;
}
.home-section-card:hover { box-shadow: 0 4px 20px var(--shadow); transform: translateY(-2px); }
.home-section-card .num { font-size: 11px; font-weight: 500; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.home-section-card h3 { font-family: var(--font-display); font-size: 17px; color: var(--text); margin: 0 0 8px; }
.home-section-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* PURITY CULTURE HIGHLIGHT */
.topic-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.topic-nav button {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s;
}
.topic-nav button:hover, .topic-nav button.active { background: var(--accent-light); color: var(--accent-dark); border-color: var(--accent-light); }

/* IFS PARTS */
.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 24px 0; }
.part-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.part-card h4 { font-family: var(--font-display); font-size: 16px; color: var(--accent-dark); margin: 0 0 8px; }
.part-card p { font-size: 14px; margin: 0; }

/* ───────────────────────── App additions ───────────────────────── */
:root { --danger: #9B2C2C; --danger-light: #F6E1DE; }
.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; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--text-muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: wait; }
.btn-small { padding: 7px 14px; font-size: 13px; }
.btn-ghost.btn-small { margin-left: 0; }
.btn-quiet { background: none; border: none; color: var(--text-secondary); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.btn-quiet:hover { background: var(--surface); color: var(--text); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #7a1f1f; }
.btn-more { display: block; margin: 8px auto 24px; }
.btn-ghost.btn-more { margin-left: auto; }

/* Forms */
.rtc-form { max-width: 640px; }
.form-group select { width: 100%; }
.form-group .field-hint { font-size: 13px; color: var(--text-muted); margin: 6px 0 0; }
.form-group.has-error input, .form-group.has-error textarea, .form-group.has-error select { border-color: var(--danger); }
.field-error { font-size: 13px; color: var(--danger); margin: 6px 0 0; font-weight: 400; }
.form-status { font-size: 14px; margin: 0 0 14px; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }
.form-status.is-ok { color: var(--green); }
.form-done { background: var(--green-light); border-left: 3px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin: 8px 0 24px; }
.form-done p { color: var(--text); margin-bottom: 8px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400 !important; color: var(--text-secondary) !important; margin-bottom: 10px; cursor: pointer; }
.check-row input { width: auto !important; margin-top: 5px; flex-shrink: 0; accent-color: var(--accent); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 14px; }
.check-grid.states { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 12px; background: var(--bg); }
.check-grid .check-row { margin-bottom: 4px; }
fieldset.form-fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px 6px; margin: 0 0 24px; background: var(--surface); }
fieldset.form-fieldset legend { font-family: var(--font-display); font-size: 18px; color: var(--accent-dark); padding: 0 8px; }
fieldset.form-fieldset .form-group input, fieldset.form-fieldset .form-group textarea, fieldset.form-fieldset .form-group select { background: var(--bg); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 16px; }
.photo-field { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.photo-preview { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--accent-light); border: 1px solid var(--border); }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; margin: 16px 0 8px; }
.newsletter-form input[type=email] { flex: 1; min-width: 200px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-body); font-size: 15px; background: var(--bg); color: var(--text); }
.newsletter-form .form-status { flex-basis: 100%; margin: 0; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 24px 40px; }
.footer-inner { max-width: 1060px; margin: 0 auto; }
.footer-news { max-width: 560px; margin-bottom: 28px; }
.footer-news h3 { margin: 0 0 6px; }
.footer-news p { font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 20px; font-size: 14px; }
.footer-fine { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 200; box-shadow: 0 6px 24px var(--shadow); max-width: calc(100vw - 32px); }

/* Dialog */
dialog.rtc-dialog { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; max-width: 480px; width: calc(100vw - 32px); background: var(--bg); color: var(--text); box-shadow: 0 12px 40px rgba(28,22,18,0.2); }
dialog.rtc-dialog::backdrop { background: rgba(28,22,18,0.35); }
dialog.rtc-dialog h3 { margin: 0 0 12px; }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

/* Q&A answers, reader picks */
.qa-entry:target { box-shadow: 0 0 0 2px var(--accent-light); }
.qa-meta { font-size: 12px; color: var(--text-muted); margin-top: 14px; }
.reader-picks { margin-top: 32px; }

/* Directory */
.dir-count { font-size: 13px; color: var(--text-muted); margin: -12px 0 16px; }
.therapist-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center top; flex-shrink: 0; }
.therapist-card.featured { border: 1.5px solid var(--accent-light); }
.therapist-info { min-width: 0; flex: 1; }
.therapist-info p { font-size: 14px; margin: 4px 0 8px; }
.listing-meta { font-size: 13px; color: var(--text-secondary); margin: 4px 0; }
.listing-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; margin-top: 8px; }
.listing-contact a { word-break: break-all; }
.badge { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 0.3px; border-radius: 4px; padding: 1px 7px; vertical-align: middle; margin-left: 6px; }
.badge-verified { background: var(--green-light); color: var(--green); }
.badge-status { background: var(--surface2); color: var(--text-secondary); }
.dir-cta { border-style: dashed; }
.manage-status { margin-bottom: 24px; }

/* Community layout */
.community-page { padding-top: 36px; }
.community-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.community-header .eyebrow { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 8px; }
.community-header h1 { margin-bottom: 6px; }
.community-header p { margin: 0; }
.community-home-link { color: inherit; text-decoration: none; }
.community-account { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.community-account .who { font-weight: 500; color: var(--text); }
.inbox-count { display: inline-block; background: var(--accent); color: #fff; border-radius: 10px; font-size: 11px; font-weight: 500; padding: 0 7px; margin-left: 4px; line-height: 18px; }
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.community-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.side-new { text-align: center; }
.side-search input { width: 100%; font-family: var(--font-body); font-size: 14px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); }
.side-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.side-box h3 { font-size: 16px; margin: 0 0 6px; }
.side-box p { font-size: 13px; margin-bottom: 8px; }
.side-crisis { background: var(--green-light); border-color: var(--green-light); }
.c-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.c-title-row h2 { margin: 0; font-size: 24px; }
.c-desc { font-size: 14px; margin: -4px 0 16px; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--text-secondary); }
.empty-state { text-align: center; padding: 36px 16px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-secondary); font-size: 15px; }
.notice { background: var(--accent-light); border-radius: 8px; padding: 12px 16px; font-size: 14px; color: var(--text); margin-bottom: 16px; }
.notice-green { background: var(--green-light); }

/* Board directory */
.cat-block { margin-bottom: 28px; }
.cat-block h3 { margin: 0 0 2px; font-size: 19px; }
.cat-block h3 a { color: var(--text); text-decoration: none; }
.cat-block h3 a:hover { color: var(--accent); }
.cat-block > p { font-size: 14px; margin: 0 0 10px; }
.board-list { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.board-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 18px; border-top: 1px solid var(--border); text-decoration: none; color: inherit; }
.board-row:first-child { border-top: none; }
.board-row:hover { background: var(--surface2); }
.board-row .b-name { font-weight: 500; color: var(--text); font-size: 15px; }
.board-row .b-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.board-row .b-stats { font-size: 12px; color: var(--text-muted); text-align: right; white-space: nowrap; }
.board-row .b-latest { grid-column: 1 / -1; font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-block; font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.6px; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; background: var(--surface2); color: var(--text-secondary); }
.pill-green { background: var(--green-light); color: var(--green); }
.pill-accent { background: var(--accent-light); color: var(--accent-dark); }
.pill-danger { background: var(--danger-light); color: var(--danger); }

/* Sort tabs */
.sort-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 14px; }
.sort-tabs a, .sort-tabs button { font-size: 13px; padding: 5px 12px; border-radius: 16px; text-decoration: none; color: var(--text-secondary); border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-family: var(--font-body); }
.sort-tabs a.active, .sort-tabs button.active { background: var(--accent-light); border-color: var(--accent-light); color: var(--accent-dark); font-weight: 500; }

/* Thread rows */
.thread-list { display: flex; flex-direction: column; gap: 10px; }
.thread-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px 12px 8px; }
.thread-row.is-pinned { border-color: var(--accent-light); }
.thread-row.is-removed { opacity: 0.7; border-style: dashed; }
.thread-row h3 { font-family: var(--font-body); font-size: 16px; font-weight: 500; margin: 0 0 2px; line-height: 1.4; }
.thread-row h3 a { color: var(--text); text-decoration: none; }
.thread-row h3 a:hover { color: var(--accent-dark); text-decoration: underline; text-decoration-color: var(--accent-light); }
.meta { font-size: 12px; color: var(--text-muted); line-height: 1.6; }
.meta a { color: var(--text-secondary); text-decoration: none; }
.meta a:hover { text-decoration: underline; }
.excerpt { font-size: 14px; color: var(--text-secondary); margin: 4px 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.cw-label { display: inline-block; font-size: 12px; background: var(--danger-light); color: var(--danger); border-radius: 4px; padding: 1px 8px; margin: 4px 0 0; }
.role-badge { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; color: var(--green); background: var(--green-light); border-radius: 3px; padding: 0 4px; margin-left: 4px; }

/* Votes */
.vote { display: flex; flex-direction: column; align-items: center; gap: 0; }
.vote button { background: none; border: none; cursor: pointer; color: var(--text-muted); width: 30px; height: 24px; border-radius: 6px; font-size: 14px; line-height: 1; padding: 0; }
.vote button:hover { background: var(--surface2); color: var(--text); }
.vote button.on-up { color: var(--accent); }
.vote button.on-down { color: #4a5f8c; }
.vote .score { font-size: 13px; font-weight: 500; color: var(--text); min-width: 20px; text-align: center; }
.vote.inline { flex-direction: row; gap: 2px; }
.vote.inline button { width: 26px; height: 24px; }

/* Thread view */
.thread-view { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px 16px 8px; margin-bottom: 20px; }
.thread-view h2 { font-size: clamp(22px, 3vw, 28px); margin: 2px 0 6px; overflow-wrap: anywhere; }
.post-body { font-size: 15.5px; color: var(--text); margin-top: 14px; overflow-wrap: anywhere; }
.post-body p { color: var(--text); margin-bottom: 12px; }
.post-body blockquote { border-left: 3px solid var(--border); padding-left: 12px; color: var(--text-secondary); margin: 0 0 12px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 10px; align-items: center; }
.cw-gate { background: var(--danger-light); border-radius: 8px; padding: 14px 16px; margin-top: 12px; font-size: 14px; color: var(--text); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.removed-note { font-size: 13px; color: var(--danger); background: var(--danger-light); border-radius: 6px; padding: 6px 10px; margin-top: 10px; }
.mod-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--text-muted); }

/* Composer */
.composer textarea { width: 100%; font-family: var(--font-body); font-size: 15px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); min-height: 96px; resize: vertical; line-height: 1.6; }
.composer textarea:focus { outline: none; border-color: var(--accent); }
.composer-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.composer-hint { font-size: 12px; color: var(--text-muted); }
.cw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cw-chips button { font-size: 12px; padding: 3px 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); color: var(--text-secondary); cursor: pointer; font-family: var(--font-body); }
.cw-chips button:hover { background: var(--accent-light); }
.crisis-panel { background: var(--green-light); border-left: 3px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 18px; margin: 0 0 18px; font-size: 14px; color: var(--text); }
.crisis-panel p { color: var(--text); margin-bottom: 6px; font-size: 14px; }

/* Comments */
.comments-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 24px 0 12px; }
.comments-head h3 { margin: 0; }
.comment { margin-top: 14px; }
.comment-head { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.comment-head .c-author { color: var(--text); font-weight: 500; text-decoration: none; }
.collapse-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 12px; padding: 0 4px; font-family: var(--font-body); }
.comment-body { font-size: 15px; color: var(--text); margin: 4px 0 2px; overflow-wrap: anywhere; }
.comment-body p { color: var(--text); margin-bottom: 8px; font-size: 15px; }
.comment-body.is-gone { color: var(--text-muted); font-style: italic; }
.comment-actions { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.comment-children { margin-left: 14px; padding-left: 14px; border-left: 2px solid var(--border); }
.comment.is-collapsed > .comment-main, .comment.is-collapsed > .comment-children { display: none; }
.comment.is-highlight > .comment-main { background: var(--accent-light); border-radius: 8px; padding: 4px 8px; margin: -4px -8px; }
.reply-box { margin-top: 8px; }

/* Inbox, profile */
.inbox-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; }
.inbox-item.unread { border-left: 3px solid var(--accent); }
.inbox-item p { font-size: 14px; margin: 4px 0 0; color: var(--text); }
.guidelines h3 { margin-top: 28px; }
.guidelines li { margin: 0 0 8px 20px; color: var(--text-secondary); }
.auth-card { max-width: 460px; }

@media (max-width: 900px) {
  .community-layout { grid-template-columns: 1fr; }
  .community-side { position: static; }
}
@media (max-width: 720px) {
  .thread-row, .thread-view { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; padding-right: 12px; }
  .comment-children { margin-left: 6px; padding-left: 10px; }
  .board-row { grid-template-columns: 1fr; }
  .board-row .b-stats { text-align: left; }
  .community-header { align-items: flex-start; }
  .site-footer { padding: 36px 18px 32px; }
}

/* Admin */
.admin-page > nav .nav-inner { height: 56px; }
.admin-who { font-size: 13px; color: var(--text-secondary); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.admin-wrap { padding-top: 28px; }
.admin-tabs a { padding: 10px 14px; font-size: 14px; color: var(--text-secondary); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.admin-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }
.admin-tabs { margin-bottom: 24px; }
.admin-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; max-width: none; }
.admin-item summary { cursor: pointer; font-size: 14px; }
.admin-item-head { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.admin-item .form-group input, .admin-item .form-group textarea, .admin-item .form-group select { background: var(--bg); }
.admin-item p { font-size: 14px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.admin-dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 14px; font-size: 13px; margin: 0 0 12px; flex: 1; }
.admin-dl dt { color: var(--text-muted); }
.admin-dl dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.listing-admin { display: flex; gap: 16px; align-items: flex-start; }
.admin-changes { margin: 8px 0 8px 18px; font-size: 13px; }
.admin-changes li { margin-bottom: 4px; overflow-wrap: anywhere; }
.admin-changes .therapist-photo { width: 40px; height: 40px; vertical-align: middle; }
.report-preview { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 8px; max-height: 260px; overflow: auto; overflow-wrap: anywhere; }
.report-preview p { font-size: 14px; color: var(--text); margin: 6px 0 0; }
.admin-search { display: flex; gap: 8px; margin-bottom: 16px; max-width: 420px; }
.admin-search input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-body); font-size: 14px; background: var(--bg); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { color: var(--text-muted); font-weight: 500; }
.admin-row-actions { white-space: nowrap; }
.admin-cat { margin-bottom: 28px; }
.admin-cat > h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-family: var(--font-body); margin: 0 0 6px; }
.admin-boards { margin: 8px 0 0 24px; border-left: 2px solid var(--border); padding-left: 14px; }
.board-edit { display: grid; grid-template-columns: 1.3fr 1fr 64px 2fr auto auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.board-edit input, .board-edit textarea { font-family: var(--font-body); font-size: 13px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); width: 100%; }
.board-edit textarea { min-height: 34px; height: 34px; resize: vertical; }
.board-edit .board-flags { display: flex; flex-direction: column; }
.board-edit .check-row { font-size: 12px; margin: 0; white-space: nowrap; }
.board-edit.is-archived { opacity: 0.6; }
@media (max-width: 900px) { .board-edit { grid-template-columns: 1fr 1fr; } .listing-admin { flex-direction: column; } .admin-dl { grid-template-columns: 1fr; } }
.comments-head .sort-tabs { margin: 0; }

/* Nine nav links do not fit on one line below this width: use the drawer. */
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
.pull-quote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); }
.pull-quote p { font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.5; color: var(--accent-dark); margin-bottom: 6px; }
.pull-quote cite { font-size: 13px; color: var(--text-muted); font-style: normal; }

/* ───────────── Expansion: shared furniture ───────────── */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 12px; }
.quick-exit { flex-shrink: 0; margin-left: 10px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; min-height: 36px; font-family: var(--font-body); font-size: 13px; font-weight: 500; cursor: pointer; }
.quick-exit:hover { background: var(--accent-light); border-color: var(--accent-light); }
.nav-drawer .quick-exit-drawer { display: block; width: 100%; margin: 18px 0 6px; padding: 12px; font-style: normal; font-size: 15px; font-family: var(--font-body); text-align: center; border: 1px solid var(--border); }
.quick-exit-note { font-size: 13px; color: var(--text-muted); }
@media (max-width: 1120px) { .nav-inner > .quick-exit { margin-left: auto; margin-right: 8px; } }
@media (max-width: 420px) { .nav-inner > .quick-exit { padding: 6px 9px; font-size: 12px; } }

/* Hero banners: a photo with the heading over it, fading into the page. */
.page-hero, .home-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #3b2f27; }
.page-hero { min-height: 320px; display: flex; align-items: flex-end; padding: 72px 24px 64px; }
.page-hero--compact { min-height: 220px; padding: 48px 24px 44px; }
.page-hero-img, .home-hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before, .home-hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28,22,18,0.30) 0%, rgba(28,22,18,0.52) 55%, rgba(28,22,18,0.62) 100%); }
.page-hero::after, .home-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; z-index: -1;
  background: linear-gradient(180deg, rgba(250,248,244,0) 0%, var(--bg) 100%); }
.page-hero-inner { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; }
.page-hero-eyebrow, .hero-eyebrow { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; color: #F6E1D3; margin-bottom: 10px; text-shadow: 0 1px 8px rgba(0,0,0,0.35); }
.page-hero h1, .home-hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.35); margin-bottom: 10px; }
.page-hero-lede { color: rgba(255,255,255,0.94); font-size: 17px; max-width: 640px; margin: 0; text-shadow: 0 1px 10px rgba(0,0,0,0.4); }
.page-hero a, .home-hero a:not(.btn) { color: #fff; text-decoration-color: rgba(255,255,255,0.6); }
.photo-credit { position: absolute; right: 12px; bottom: 6px; z-index: 1; margin: 0; font-size: 10.5px; color: var(--text-muted); }
.home-hero { min-height: clamp(480px, 74vh, 660px); display: grid; place-items: center; text-align: center; padding: 96px 24px 110px; }
.home-hero-inner { position: relative; max-width: 760px; }
.home-hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.15; margin: 0 auto 22px; }
.home-hero h1 em { color: #F7D9C5; }
.home-hero .hero-sub { color: rgba(255,255,255,0.95); font-size: 17px; max-width: 600px; margin: 0 auto 30px; text-shadow: 0 1px 10px rgba(0,0,0,0.45); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-ghost, .page-hero .btn-ghost { margin-left: 0; color: #fff; border-color: rgba(255,255,255,0.85); background: rgba(28,22,18,0.15); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,0.18); }
@keyframes heroFade { 0% { opacity: 0; transform: scale(1.04); } 5% { opacity: 1; } 25% { opacity: 1; } 31% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .home-hero-slides img { animation: none; opacity: 0; }
  .home-hero-slides img:first-child { opacity: 1; }
  html { scroll-behavior: auto; }
}
@media (max-width: 720px) {
  .page-hero { min-height: 260px; padding: 56px 18px 52px; }
  .page-hero--compact { min-height: 190px; }
  .home-hero { padding: 80px 18px 96px; }
  .page-hero-lede, .home-hero .hero-sub { font-size: 15.5px; }
}

/* The consultation button and its short service note. */
.cta-block { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 4px 0; }
.btn-cta { min-height: 44px; display: inline-flex; align-items: center; }
.cta-note { font-size: 13px; color: var(--text-secondary); }
.practice-callout p { color: var(--text); }
.footer-mission { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 18px; display: grid; gap: 12px; max-width: 760px; }
.footer-mission p { font-size: 13.5px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 28px; margin: 6px 0 22px; }
.footer-cols .footer-links { flex-direction: column; gap: 6px; margin: 0; }
.footer-cols h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-body); font-weight: 500; color: var(--text-muted); margin: 0 0 4px; }
.about-profile { padding-bottom: 24px; }
.about-name { font-family: var(--font-display); font-size: 26px; color: var(--accent-dark); margin: 0 0 4px; }
.dir-notes { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin: -12px 0 24px; }
.dir-notes p { font-size: 14px; margin: 0 0 8px; }
.dir-notes p:last-child { margin: 0; }
.therapist-info .cta-block { margin-top: 12px; }
.consent-group { border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px 6px; }
.consent-group legend { font-size: 13px; font-weight: 500; color: var(--text); padding: 0 6px; }
.consent-line { margin: 6px 0; font-size: 13px; }

/* Community: two ways in, category cards, quiet boards, members-only spaces. */
.community-topbar { display: flex; justify-content: flex-end; margin: -8px 0 18px; }
.entry-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0 0 12px; }
.entry-card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: box-shadow 0.15s, transform 0.1s; }
.entry-card:hover { box-shadow: 0 4px 18px var(--shadow); transform: translateY(-2px); }
.entry-card h2 { font-size: 22px; margin: 4px 0 8px; }
.entry-card p { font-size: 14px; margin: 0; }
.entry-kicker { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.not-sure { display: block; text-decoration: none; color: var(--text); background: var(--green-light); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin: 0 0 30px; }
.not-sure:hover { filter: brightness(0.98); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0 0 18px; }
.cat-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.cat-card:hover { border-color: var(--accent-light); box-shadow: 0 3px 14px var(--shadow); }
.cat-card h3 { font-size: 16px; margin: 0 0 6px; color: var(--text); }
.cat-card p { font-size: 13px; margin: 0 0 10px; flex: 1; }
.cat-meta { font-size: 12px; color: var(--text-muted); }
.quiet-boards { margin-top: 10px; }
.quiet-boards > summary { cursor: pointer; font-size: 14px; color: var(--text-secondary); padding: 6px 0; }
.quiet-boards .board-list { margin-top: 8px; }
.pill-lock { background: #E7E2F0; color: #4B3F67; }
.members-gate { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.members-gate h3 { margin: 0 0 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; }
.tag-row .tag { text-decoration: none; margin: 0; }
.tags-fieldset .tag-h { margin: 12px 0 6px; font-size: 13px; }
.tag-picker { border-bottom: 1px solid var(--border); padding: 4px 0; }
.tag-picker > summary { cursor: pointer; font-size: 14px; padding: 4px 0; }
.tag-picker .check-row { margin: 2px 0 2px 14px; }
.admin-subcat { margin: 8px 0; }
.admin-subcat > h4 { margin: 4px 0; font-size: 11px; letter-spacing: 1px; color: var(--text-muted); }
.board-edit .board-note { grid-column: 1 / -1; min-height: 34px; }
.board-edit select { font-size: 12px; padding: 4px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); }
.page-hero--compact .page-hero-inner { max-width: 1060px; }

/* ───────────── Guides, worksheets and other article pages ───────────── */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; padding: 0; font-size: 13px; color: var(--text-muted); }
.breadcrumbs li + li::before { content: '›'; margin: 0 6px 0 2px; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-secondary); }
.doc-page { padding-top: 32px; }
.doc-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.review-badge { display: inline-block; background: var(--surface2); color: var(--text-secondary); border-radius: 4px; padding: 1px 8px; font-weight: 500; }
.review-badge.is-reviewed { background: var(--green-light); color: var(--green); }
.content-notice { background: var(--danger-light); color: var(--text); border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.answer-box { background: var(--accent-light); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 18px 0 26px; }
.answer-box h2 { font-size: 15px; font-family: var(--font-body); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-dark); margin: 0 0 6px; }
.answer-box p { color: var(--text); font-size: 16.5px; margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 20px; margin: 0 0 28px; }
.toc h2 { font-size: 14px; font-family: var(--font-body); font-weight: 500; margin: 0 0 6px; color: var(--text); }
.toc ol { margin: 0 0 0 18px; font-size: 14px; columns: 2 220px; }
.toc li { margin-bottom: 3px; }
.doc-body h2 { margin-top: 40px; }
.doc-body ul, .doc-body ol { margin: 0 0 18px 22px; color: var(--text-secondary); }
.doc-body li { margin-bottom: 6px; }
.doc-body blockquote { border-left: 3px solid var(--border); padding: 4px 0 4px 16px; margin: 0 0 18px; }
.cite { font-size: 11px; margin-left: 1px; }
.cite a { text-decoration: none; }
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.table-wrap table, .data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th, .table-wrap td, .data-table th, .data-table td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.table-wrap th, .data-table th { background: var(--surface); font-weight: 500; color: var(--text); }
.fill-table td { height: 38px; }
.doc-faqs { margin-top: 40px; }
details.faq { border-bottom: 1px solid var(--border); padding: 4px 0; }
details.faq summary { cursor: pointer; font-weight: 500; color: var(--text); padding: 12px 0; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: '+'; color: var(--accent); margin-right: 10px; font-size: 18px; }
details.faq[open] summary::before { content: '−'; }
.sources { margin-top: 40px; }
.sources ol { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.sources li { padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-secondary); overflow-wrap: anywhere; }
.sources li:target { background: var(--accent-light); }
.source-id { display: inline-block; min-width: 30px; font-weight: 500; color: var(--accent-dark); }
.support-box { background: var(--green-light); border-radius: var(--radius); padding: 18px 22px; margin: 36px 0; }
.support-box h2 { font-size: 18px; margin: 0 0 8px; }
.support-box ul { margin: 0 0 0 18px; font-size: 14.5px; }
.support-box li { margin-bottom: 4px; color: var(--text); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 10px 0 24px; }
.guide-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; transition: box-shadow 0.15s, transform 0.1s; }
.guide-card:hover { box-shadow: 0 4px 16px var(--shadow); transform: translateY(-2px); }
.guide-card h3 { font-size: 16px; margin: 4px 0 6px; color: var(--text); }
.guide-card p { font-size: 13px; margin: 0; }
.guide-topic { font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.guide-group { margin-top: 28px; }
.related { margin-top: 30px; }
.worksheets { margin: 0 0 36px; }
.print-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 0 0 18px; font-size: 13px; }
.write-lines { height: calc(var(--lines) * 34px); margin: 4px 0 18px; background-image: repeating-linear-gradient(to bottom, transparent 0 33px, var(--border) 33px 34px); }
.write-field { display: flex; gap: 10px; align-items: flex-end; margin: 6px 0 14px; font-size: 14.5px; color: var(--text); }
.write-field .write-line { flex: 1; border-bottom: 1px solid var(--text-muted); min-height: 24px; }
@media print {
  body > nav, .nav-drawer, .site-footer, .skip-link, .page-hero-img, .photo-credit, .print-bar, .support-box, .related, .breadcrumbs, .quick-exit, .toast { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .page-hero, .home-hero { background: none !important; color: #000; min-height: 0; padding: 0 0 12px; }
  .page-hero::before, .page-hero::after { display: none; }
  .page-hero h1, .page-hero-lede, .page-hero-eyebrow { color: #000 !important; text-shadow: none !important; }
  .page { padding: 0; max-width: none; }
  a { color: #000; text-decoration: none; }
  .write-lines { background-image: repeating-linear-gradient(to bottom, transparent 0 33px, #999 33px 34px); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sources a::after { content: ' ' attr(href); font-size: 9pt; }
}

/* ── News: case explorer, case pages, hubs ─────────────────────────────── */
.preview-banner { background: #FFF4D6; border: 1px solid #E8C96A; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 0 0 18px; }
.news-intro { margin: 0 0 22px; font-size: 15px; }
.news-intro p { margin: 0 0 8px; }
.news-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.news-filters { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; padding: 4px 8px 12px 0; font-size: 14px; }
.news-filters label { font-weight: 400; }
.filter-search label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.filter-search-row { display: flex; gap: 6px; }
.filter-search-row input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; font: inherit; background: #fff; }
.news-filters fieldset, .filter-group { border: 0; border-top: 1px solid var(--border); padding: 12px 0 6px; margin: 12px 0 0; }
.news-filters legend, .filter-group summary { font-size: 13px; font-weight: 500; color: var(--text); padding: 0; margin-bottom: 8px; cursor: pointer; }
.filter-group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: '+'; color: var(--text-muted); font-size: 16px; }
.filter-group[open] summary::after { content: '−'; }
.filter-options { max-height: 260px; overflow-y: auto; padding-right: 4px; }
.news-filters .check-row { margin-bottom: 4px; font-size: 13.5px; }
.news-filters .check-row.is-indented { padding-left: 18px; }
.filter-count { background: var(--accent); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 7px; margin-left: 6px; }
.filter-group-open.compact { padding-top: 8px; }
.date-pair { display: flex; gap: 8px; margin: 6px 0; }
.date-pair label { display: flex; flex-direction: column; font-size: 12px; flex: 1; }
.date-pair input { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; min-width: 0; }
.filter-sort { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.filter-sort label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.filter-sort select { width: 100%; font: inherit; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.filter-actions { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.result-count { font-size: 14px; color: var(--text-secondary); margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.chip { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; text-decoration: none; color: var(--accent-dark); background: var(--accent-light); border-radius: 14px; padding: 3px 11px; }
.chip:hover { background: #E8C9B6; }
.chip-clear { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.status-badge { display: inline-block; font-size: 11.5px; font-weight: 500; border-radius: 4px; padding: 2px 8px; white-space: nowrap; background: var(--surface2); color: var(--text-secondary); }
.status-pending { background: #FFF4D6; color: #6B5310; }
.status-resolved { background: var(--accent-light); color: var(--accent-dark); }
.status-ended { background: #E6EEF6; color: #2D4A66; }
.status-civil { background: var(--green-light); color: var(--green); }
.status-mixed { background: #EEE6F3; color: #553D66; }
.cases-table { display: none; }
.case-cards { list-style: none; display: grid; gap: 12px; margin: 0 0 18px; }
.case-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.case-card-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); }
.case-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.35; margin: 6px 0 4px; }
.case-card h3 a { color: var(--text); text-decoration: none; }
.case-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.case-facts { font-size: 13.5px; color: var(--text-secondary); margin: 0 0 6px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.case-tags .tag { margin: 0; font-size: 11px; }
.case-qual { font-size: 12.5px; color: var(--text-muted); margin: 6px 0 0; }
@media (min-width: 1100px) { .news-results .cases-table { display: table; margin-bottom: 18px; } .news-results .case-cards:not(.always) { display: none; } }
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 18px; font-size: 14px; }
.pager a, .pager span { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.pager span[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager span:not([aria-current]) { border: 0; }
.export-links { font-size: 13.5px; color: var(--text-secondary); }
.case-status-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px; font-size: 15px; }
.case-status-box .status-badge { margin-right: 6px; }
.status-note { font-size: 13.5px; color: var(--text-secondary); margin: 8px 0 0; }
.case-facts-grid, .facts { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 6px 18px; margin: 0 0 22px; font-size: 14.5px; }
.case-facts-grid dt, .facts dt { font-weight: 500; color: var(--text-secondary); }
.case-facts-grid dd, .facts dd { margin: 0; }
.case-details { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 22px; background: var(--bg); }
.case-details summary { cursor: pointer; font-size: 14.5px; }
.content-notice-inline { color: var(--danger); }
.details-cta { color: var(--accent); text-decoration: underline; margin-left: 4px; white-space: nowrap; }
.case-summary { font-size: 16px; margin: 10px 0 0; }
.case-details:not([open]) .case-summary { display: none; }
.timeline { list-style: none; border-left: 2px solid var(--border); margin: 0 0 24px 6px; padding: 0 0 0 20px; }
.timeline li { position: relative; margin: 0 0 16px; }
.timeline li::before { content: ''; position: absolute; left: -27px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text-muted); }
.timeline li.is-qualifying::before { background: var(--accent); border-color: var(--accent); }
.tl-date { display: block; font-size: 13px; color: var(--text-muted); }
.tl-type { display: block; font-weight: 500; font-size: 15px; }
.timeline p { margin: 2px 0 0; font-size: 14.5px; }
.src-ref { font-size: 12px; text-decoration: none; white-space: nowrap; }
.proceedings, .case-sources, .corrections { padding-left: 20px; font-size: 14px; margin: 0 0 22px; }
.proceedings li, .case-sources li, .corrections li { margin-bottom: 8px; }
.case-image { margin: 0 0 22px; max-width: 280px; }
.case-image img { width: 100%; border-radius: 6px; }
.case-image figcaption { font-size: 12px; color: var(--text-muted); }
.case-foot { font-size: 13.5px; color: var(--text-secondary); border-top: 1px solid var(--border); padding-top: 14px; margin: 26px 0; }
.reporting-list { list-style: none; display: grid; gap: 16px; margin: 0 0 24px; }
.reporting-list h3 { font-family: var(--font-display); font-size: 18px; margin: 0; }
.reporting-list p { margin: 2px 0 0; }

/* ── Data & Research ───────────────────────────────────────────────────── */
.lane-badge { display: inline-block; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.6px; border-radius: 4px; padding: 2px 8px; white-space: nowrap; }
.lane-direct { background: var(--accent-light); color: var(--accent-dark); }
.lane-contextual { background: #E6EEF6; color: #2D4A66; }
.lane-archive { background: var(--green-light); color: var(--green); }
.lane-explainer { background: var(--surface2); color: var(--text-secondary); }
.lane-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 10px; }
.lane-card { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; border-top: 3px solid var(--border); }
.lane-card.lane-direct { border-top-color: var(--accent); background: var(--surface); color: var(--text); }
.lane-card.lane-contextual { border-top-color: #2D4A66; background: var(--surface); color: var(--text); }
.lane-card.lane-archive { border-top-color: var(--green); background: var(--surface); color: var(--text); }
.lane-card p { margin: 8px 0 0; color: var(--text-secondary); }
.data-page section { margin: 0 0 40px; }
.data-page h2 { font-family: var(--font-display); font-size: 26px; font-weight: 400; margin: 0 0 14px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.info-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; transition: box-shadow 0.15s; }
.info-card:hover { box-shadow: 0 4px 14px var(--shadow); }
.info-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0; }
.info-card p { font-size: 13.5px; color: var(--text-secondary); margin: 0; }
.info-card .lane-badge { align-self: flex-start; }
.data-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 0 0 14px; font-size: 14px; }
.data-search label { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; font-weight: 500; }
.data-search input, .data-search select { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; min-width: 0; }
.data-search input[type="search"] { width: 240px; max-width: 100%; }
.stat-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0 0 14px; }
.stat-grid--sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.stat-card a { display: flex; flex-direction: column; gap: 4px; height: 100%; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat-card a:hover { box-shadow: 0 4px 14px var(--shadow); }
.stat-card .lane-badge { align-self: flex-start; }
.stat-value { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--accent-dark); line-height: 1.15; margin-top: 4px; }
.stat-value small { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--text-secondary); }
.stat-title { font-weight: 500; font-size: 14px; line-height: 1.4; }
.stat-finding { font-size: 13px; color: var(--text-secondary); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.stat-source { font-size: 12px; color: var(--text-muted); margin-top: auto; padding-top: 4px; }
.study-list { list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.study-list .muted { display: block; font-size: 13px; }
.data-gap { background: var(--surface); border-radius: var(--radius); padding: 18px 22px; }
.data-gap h2 { font-size: 20px !important; margin-bottom: 6px !important; }
.stat-hero { background: var(--surface); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 18px; }
.stat-big { font-family: var(--font-display); font-size: 46px; font-weight: 600; color: var(--accent-dark); line-height: 1.1; margin: 8px 0 6px; }
.stat-big small { font-family: var(--font-body); font-size: 16px; font-weight: 400; color: var(--text-secondary); }
.stat-finding-lg { font-size: 17px; margin: 0 0 8px; }
.stat-page h2, .study-page h2, .infographic-page h2 { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin: 26px 0 10px; }
.use-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.use-box > div { border-radius: var(--radius); padding: 14px 16px; font-size: 14.5px; }
.use-box > div:first-child { background: var(--green-light); }
.use-box > div:last-child { background: var(--danger-light); }
.use-box h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 500; margin: 0 0 4px; font-family: var(--font-body); }
.use-box p { margin: 0; }
.chart { margin: 0 0 24px; }
.chart svg { display: block; max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.chart figcaption { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.data-table caption { text-align: left; font-size: 13px; color: var(--text-muted); padding-bottom: 6px; }
.data-table th[scope="row"] { background: transparent; font-weight: 400; }

/* ── Policies ──────────────────────────────────────────────────────────── */
.policy-page .doc-body h2 { scroll-margin-top: 80px; }

@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; gap: 18px; }
  .news-filters { position: static; max-height: none; overflow: visible; padding: 0; }
  .news-filters-col { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
  .lane-cards { grid-template-columns: 1fr; }
  .use-box { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .case-facts-grid, .facts { grid-template-columns: 1fr; gap: 2px; }
  .case-facts-grid dd, .facts dd { margin-bottom: 8px; }
  .stat-big { font-size: 36px; }
  .data-search { flex-direction: column; align-items: stretch; }
  .data-search input[type="search"] { width: 100%; }
}
@media print {
  .news-filters-col, .chips, .pager, .export-links, .preview-banner { display: none !important; }
  .case-details .case-summary { display: block !important; }
}
.filters-summary { display: none; }
@media (max-width: 900px) {
  .filters-summary { display: block; cursor: pointer; font-weight: 500; font-size: 15px; }
  .news-filters-col[open] .filters-summary { margin-bottom: 10px; }
}
.gloss-src { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

.facts dd, .case-facts-grid dd, .case-sources li, .stat-page p { overflow-wrap: anywhere; }

/* A category's sourced introduction (community) */
.cat-intro { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 18px; font-size: 15px; }
.cat-intro summary { cursor: pointer; font-weight: 500; font-size: 15.5px; }
.cat-intro p { margin: 10px 0 0; line-height: 1.65; }
.cat-intro-notice { color: var(--danger); font-size: 14px; }
.cat-intro-sources { margin: 12px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-secondary); }
.cat-intro-sources li { margin-bottom: 4px; overflow-wrap: anywhere; }
.cat-intro .cite { font-size: 11px; }

/* ── Watercolor page covers (src/heroes.js) ─────────────────────────────────
   Wide screens: the whole cover, scaled to half the width (so about a sixth
   of the width tall), on the right; the heading on plain paper to its left.
   Below 1024px: a short band of the art above the heading.
   Child pages (compact): a 6:1 band of the parent's cover, heading below. */
:root { --hero-paper: #F7F1E7; --hero-ink: #263B32; --hero-ink-soft: #3E4F46; --hero-eyebrow: #7A3D21; }
.rtc-hero { position: relative; max-width: 1440px; margin-inline: auto; background: var(--hero-paper); color: var(--hero-ink); }
.rtc-hero__media { display: block; overflow: hidden; }
.rtc-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, 50% 50%); }
.rtc-hero:not(.rtc-hero--compact):not(.rtc-hero--plain) { display: flex; align-items: center; min-height: calc(min(100vw, 1440px) / 6); }
.rtc-hero:not(.rtc-hero--compact):not(.rtc-hero--plain) .rtc-hero__media {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 50%; aspect-ratio: 3 / 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%); mask-image: linear-gradient(to right, transparent 0, #000 24%); }
.rtc-hero__copy { position: relative; width: 50%; box-sizing: border-box; padding: 20px clamp(24px, 3vw, 40px) 20px clamp(24px, 4vw, 64px); }
.rtc-hero__eyebrow { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 500; color: var(--hero-eyebrow); margin: 0 0 8px; }
.rtc-hero h1 { color: var(--hero-ink); font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.12; margin: 0 0 0.5rem; text-shadow: none; }
.rtc-hero h1 em { color: var(--accent-dark); }
.rtc-hero__lede { color: var(--hero-ink-soft); font-size: 16px; line-height: 1.5; margin: 0; font-weight: 400; }
.rtc-hero__after { background: var(--hero-paper); max-width: 1440px; margin-inline: auto; }
.rtc-hero__after-inner { padding: 4px clamp(24px, 4vw, 64px) 24px; }
.rtc-hero__after-inner > * { max-width: 680px; }
.rtc-hero__after .rtc-hero__lede { font-size: 16.5px; }
.rtc-hero__after .hero-actions { margin-top: 14px; }
.rtc-hero__after .hero-actions .btn-ghost { color: var(--accent); border-color: var(--accent); background: transparent; }
/* Child pages: a short band of the parent's cover, heading below it. */
.rtc-hero--compact .rtc-hero__media { aspect-ratio: 6 / 1; }
.rtc-hero--compact .rtc-hero__copy, .rtc-hero--plain .rtc-hero__copy { width: auto; max-width: var(--max); margin: 0 auto; padding: 22px 24px 6px; }
.rtc-hero--compact h1, .rtc-hero--plain h1 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.rtc-hero--plain { background: var(--hero-paper); padding: 30px 0 18px; }
.rtc-hero--plain .rtc-hero__copy { padding-top: 6px; }
@media (max-width: 1023px) {
  .rtc-hero:not(.rtc-hero--compact):not(.rtc-hero--plain) { display: block; min-height: 0; }
  .rtc-hero:not(.rtc-hero--compact):not(.rtc-hero--plain) .rtc-hero__media { position: static; transform: none; width: auto; aspect-ratio: 4 / 1; -webkit-mask-image: none; mask-image: none; }
  .rtc-hero__media img { object-position: var(--hero-pos-mobile, 75% 50%); }
  .rtc-hero__copy { width: auto; padding: 18px 20px 16px; }
  .rtc-hero--compact .rtc-hero__media { aspect-ratio: 4 / 1; }
  .rtc-hero__after-inner { padding: 0 20px 20px; }
}
/* Editorial illustrations */
.rtc-illustration { margin: 0 0 14px; }
.rtc-illustration img { display: block; width: 100%; height: auto; border-radius: 8px; }
.rtc-illustration figcaption { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.side-illustration { margin: -4px -4px 12px; }
@media print {
  .rtc-hero__media, .rtc-illustration { display: none !important; }
  .rtc-hero, .rtc-hero__after { background: none !important; }
  .rtc-hero__copy { position: static !important; width: auto !important; background: none !important; padding: 0 0 12px !important; }
}
.rtc-hero__after .hero-actions { justify-content: flex-start; }
.rtc-illustration--inline { max-width: 560px; margin: 8px 0 26px; }

/* Data bank: statistics first, context in a side panel (below on phones). */
.data-page { padding-top: 24px; }
.data-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.data-main section { margin: 0 0 36px; }
.data-page .data-main h2 { margin-bottom: 8px; }
.data-lede { font-size: 15px; color: var(--text-secondary); margin: 0 0 14px; max-width: 680px; }
.data-side { display: grid; gap: 14px; }
.side-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; }
.data-page .side-panel h2 { font-family: var(--font-body); font-size: 13px !important; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text); margin: 0 0 10px !important; }
.side-panel p { margin: 6px 0 0; color: var(--text-secondary); line-height: 1.55; }
.lane-list, .chart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lane-list p { font-size: 13px; margin-top: 4px; }
.chart-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1.35; }
.chart-list a { font-weight: 500; }
.chart-list .lane-badge { font-size: 10px; padding: 1px 6px; }
.side-panel.data-gap { background: var(--surface); padding: 14px 16px; }
@media (max-width: 900px) {
  .data-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
/* One row of search controls on wide screens; two rows on phones. */
.data-main .data-search { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "q lane topic btn"; gap: 10px; align-items: end; margin-bottom: 8px; }
.data-main .data-search .ds-q { grid-area: q; } .data-main .data-search .ds-lane { grid-area: lane; } .data-main .data-search .ds-topic { grid-area: topic; }
.data-main .data-search .ds-btn { grid-area: btn; padding: 9px 18px; }
.data-main .data-search .ds-clear { grid-column: 1 / -1; font-size: 13px; }
.data-main .data-search input[type="search"] { width: 100%; }
.data-main .data-search select { width: 100%; }
.data-main .result-count { margin: 4px 0 10px; }
@media (max-width: 600px) {
  .data-page { padding-top: 12px; }
  .data-main .data-search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "q q btn" "lane topic topic"; flex-direction: row; align-items: end; }
  .data-lede { font-size: 14.5px; margin-bottom: 10px; }
}

/* Directory: the list first, the introduction and notes in a side column (below on phones). */
.dir-page { max-width: 1120px; padding-top: 28px; }
.dir-page #dir-join, .dir-page #dir-manage { max-width: 812px; margin: 0 auto; }
.dir-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.dir-side { display: grid; gap: 14px; }
.dir-side .callout, .dir-side .dir-notes { margin: 0; }
.dir-side .callout p, .dir-side .dir-notes p { font-size: 14px; line-height: 1.6; }
.dir-intro { font-size: 15px; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.dir-side .dir-cta { margin: 0; }
.dir-main .dir-count { margin-top: 0; }
@media (max-width: 900px) {
  .dir-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

.data-main .data-search input[type="search"], .data-main .data-search select { height: 42px; box-sizing: border-box; }
@media (max-width: 600px) {
  .dir-main .filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .dir-main .filter-bar input[type="search"] { grid-column: 1 / -1; }
}

/* News: the cases come first; a one-line note above, the introduction below. */
.news-page { padding-top: 24px; }
.news-note { font-size: 13.5px; color: var(--text-secondary); margin: 0 0 6px; }
.news-about { margin: 28px 0 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14.5px; }
.news-about h2 { font-family: var(--font-body); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; margin: 0 0 8px; }
.news-about p { margin: 0 0 8px; }
.news-about p:last-child { margin: 0; }

/* Ask Ashleigh: the questions first; the note and booking button in a side column (below on phones). */
.ask-page { max-width: 1120px; padding-top: 28px; }
.ask-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.ask-side { display: grid; gap: 14px; }
.ask-side .disclaimer { margin: 0; }
.ask-own h2 { font-family: var(--font-body); font-size: 15px; font-weight: 500; margin: 0 0 6px; color: var(--text); }
.ask-own p { font-size: 13.5px; }
.ask-own p:last-child { margin: 0; }
@media (max-width: 900px) {
  .ask-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
.ask-main .tab-bar { gap: 0; margin-bottom: 24px; }
.ask-main .tab-bar button { padding: 10px 12px; font-size: 14px; white-space: nowrap; }

/* ── Admin overview, posts and team ─────────────────────────────────────── */
.ov-section { margin: 0 0 28px; }
.ov-section h2 { font-family: var(--font-body); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-secondary); margin: 0 0 10px; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ov-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.ov-value { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--accent-dark); line-height: 1.1; }
.ov-label { font-size: 13.5px; font-weight: 500; color: var(--text); margin-top: 2px; }
.ov-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }
.ov-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ov-todo a { display: block; background: var(--accent-light); border-radius: 8px; padding: 8px 12px; text-decoration: none; color: var(--text); font-size: 14px; }
.ov-todo a:hover { background: #E8C9B6; }
.ov-todo strong { color: var(--accent-dark); margin-right: 4px; }
.ov-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ov-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; font-size: 13.5px; }
.ov-panel h3 { font-family: var(--font-body); font-size: 13px; font-weight: 500; margin: 0 0 8px; }
.ov-panel ol { margin: 0; padding-left: 18px; }
.ov-spark { width: 100%; height: 60px; display: block; fill: var(--accent); }
.ov-links { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.post-item .post-title { font-weight: 500; margin: 4px 0; }
.post-item .post-excerpt { font-size: 13.5px; color: var(--text-secondary); margin: 4px 0 8px; }
.team-add { margin-top: 24px; max-width: 720px; }
.team-add h3 { font-family: var(--font-body); font-size: 15px; font-weight: 500; margin: 18px 0 8px; }
.admin-row-actions select { font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.admin-temp-pw { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
@media (max-width: 700px) { .ov-row { grid-template-columns: 1fr; } }
.admin-tabs { flex-wrap: wrap; overflow-x: visible; row-gap: 2px; }

/* Resources: books, podcasts and channels first; worksheets in a side panel (below on phones). */
.res-page { max-width: 1120px; padding-top: 28px; }
.res-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.res-main .tab-bar { gap: 0; margin-bottom: 24px; }
.res-main .tab-bar button { padding: 10px 12px; font-size: 14px; white-space: nowrap; }
.res-side .worksheets { margin: 0; }
.res-side .worksheets h2 { font-family: var(--font-body); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; margin: 0 0 8px; }
.res-side .worksheets > p { font-size: 13px; color: var(--text-secondary); margin: 0 0 12px; line-height: 1.5; }
.worksheet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.worksheet-list a { font-weight: 500; font-size: 14px; line-height: 1.35; display: block; }
.worksheet-list span { display: block; font-size: 12.5px; color: var(--text-muted); line-height: 1.45; margin-top: 2px; }
@media (max-width: 900px) {
  .res-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* Glossary: terms first; the A-Z index in a side panel that stays in view
   (on phones, one scrolling row of letters above the terms). */
.gloss-page { max-width: 1140px; padding-top: 28px; }
.gloss-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.gloss-main .glossary-letter:first-child { margin-top: 0; }
/* The right column (letter index, then Ashleigh's card) stays in view while
   scrolling; on a short screen it scrolls on its own so nothing is cut off. */
.gloss-rail { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 92px); overflow-y: auto; padding: 2px; margin: -2px; }
.gloss-side h2 { font-family: var(--font-body); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.8px; margin: 0 0 10px; }
.gloss-side .glossary-alpha { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 0 0 12px; }
.gloss-side .glossary-alpha button { width: 100%; padding: 5px 0; }
.gloss-note { font-size: 12.5px; margin: 0; line-height: 1.5; }
@media (max-width: 900px) {
  /* Phones: the letters become a bar pinned under the header and the card
     moves below the terms. */
  .gloss-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .gloss-rail { display: contents; }
  .gloss-side { order: -1; position: sticky; top: 60px; z-index: 5; margin: 0 -18px; }
  .gloss-card { margin-top: 28px; max-width: 520px; }
  .gloss-side .side-panel { border-radius: 0; border-left: 0; border-right: 0; padding: 8px 18px; background: var(--bg); }
  .gloss-side h2, .gloss-note { display: none; }
  .gloss-side .glossary-alpha { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; margin: 0; scrollbar-width: none; }
  .gloss-side .glossary-alpha button { width: auto; flex: 0 0 auto; padding: 4px 9px; }
}
.gloss-main .glossary-letter, .gloss-main dt[id] { scroll-margin-top: 76px; }
@media (max-width: 900px) { .gloss-main .glossary-letter, .gloss-main dt[id] { scroll-margin-top: 112px; } }

/* Ask Ashleigh: the "About Ashleigh" card in the side column. */
.ask-about-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.ask-about-head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ask-about-head h2 { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.25; margin: 0; color: var(--text); }
.ask-about .cta-block { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.ask-about .cta-block .btn { justify-content: center; text-align: center; margin: 0; }
.ask-about .btn-site { color: var(--accent); border-color: var(--accent); background: transparent; min-height: 44px; display: inline-flex; align-items: center; }

/* The About Ashleigh card (src/site.js ashleighCardHtml), and pages with it in
   a right column that stays in view while the page scrolls. */
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }
.about-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.about-card-head img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.about-card-head h2 { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.25; margin: 0 !important; color: var(--text); border: 0; padding: 0; }
.about-card p { margin: 0 0 10px; font-size: 13.5px; }
.about-card .cta-block { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin: 4px 0 0; }
.about-card .cta-block .btn { justify-content: center; text-align: center; margin: 0; }
.about-card .btn-site { color: var(--accent); border-color: var(--accent); background: transparent; min-height: 44px; display: inline-flex; align-items: center; }
.about-card .cta-note { font-size: 12px; }
.about-card .about-card-fine { font-size: 12px; color: var(--text-muted); margin: 12px 0 0; line-height: 1.5; }
.page--aside { max-width: 1140px; }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
.with-aside-side { min-width: 0; }
.aside-sticky { position: sticky; top: 80px; }
@media (max-width: 960px) {
  .with-aside { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .aside-sticky { position: static; max-width: 520px; }
}
.about-card .cta-block .btn { padding: 10px 12px; font-size: 14px; white-space: nowrap; }
/* Narrow phones: if the consultation button wraps, split it into two even lines. */
@media (max-width: 480px) { .cta-block .btn-cta { text-wrap: balance; text-align: center; justify-content: center; } }

/* Links on resource cards: the title links to where the book, podcast or
   channel can be found, with a short action link under the description. */
.resource-card h4 a { color: inherit; text-decoration: none; }
.resource-card h4 a:hover, .resource-card h4 a:focus-visible { color: var(--accent); text-decoration: underline; }
.resource-go { display: inline-block; font-size: 13px; font-weight: 500; color: var(--accent); margin: 6px 14px 8px 0; }
.resource-go::after { content: " \2197"; }
.affiliate-note { font-size: 12.5px; color: var(--text-muted); margin: 14px 0; }
