/*
 * Therapists and mental health: the four questions.
 * Every class is prefixed th-. Oatmeal paper for reading, a quiet sage for the
 * headers and the answered state, terracotta for the highlights and the
 * missing answer, and the deep green of a lamp-lit room for the crisis chapter
 * and the close.
 */
.th-page {
  --th-paper: #f4f0e6;
  --th-sheet: #fffdf8;
  --th-ink: #232a26;
  --th-soft: #3d4640;
  --th-muted: #626c64;
  --th-rule: #dcd6c6;
  --th-graphite: #1f2f28;
  --th-graphite-2: #2a4036;
  --th-steel: #3e5a4c;
  --th-kraft: #b8674a;
  --th-kraft-deep: #86432b;
  --th-kraft-wash: #f4e0d6;
  --th-orange: #b8674a;
  --th-forest: #4f7766;
  --th-forest-deep: #2f5143;
  --th-wire: #b8674a;
  --th-wire-deep: #86432b;
  --th-wire-wash: #f4e0d6;
  --th-live: #4f7766;
  --th-live-deep: #2f5143;
  --th-live-wash: #dfeae3;
  --th-hot: #b8674a;
  --th-hot-deep: #86432b;
  --th-hot-wash: #f4e0d6;
  --th-on-dark: #ecf1ec;
  --th-on-dark-soft: #aebfb4;
  --th-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Courier New", monospace;
  --th-hand: "Bradley Hand", "Segoe Print", "Marker Felt", "Comic Sans MS", cursive;
  background: var(--th-paper);
  color: var(--th-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
}
.th-page *, .th-page *::before, .th-page *::after { box-sizing: border-box; }
.th-page ::selection { background: var(--th-wire); color: var(--th-ink); }
.th-page a:focus-visible,
.th-page summary:focus-visible,
.th-page [tabindex]:focus-visible { outline: 2px solid var(--th-live); outline-offset: 4px; }
.th-close a:focus-visible { outline-color: var(--th-wire); }
.th-page section[id] { scroll-margin-top: 130px; }
.th-wrap { width: min(100% - 80px, 1280px); margin-inline: auto; }

/* Availability is a reading aid, kept inside the existing website chapter. */
.th-availability { margin-top: 34px; padding: 30px 34px; background: var(--th-sheet); border-left: 4px solid var(--th-forest-deep); scroll-margin-top: 145px; }
.th-availability > p { margin-top: 14px; max-width: 78ch; }
.th-availability dl { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px 32px; margin-top: 24px; margin-bottom: 24px; }
.th-availability dl > div { border-top: 1px solid var(--th-rule); padding-top: 15px; }
.th-availability dt { color: var(--th-forest-deep); font-weight: 700; }
.th-availability dd { margin: 8px 0 0; }
.th-profile-eligibility { padding-left: 18px; border-left: 2px solid var(--th-kraft-deep); }
@media (max-width: 760px) {
  .th-availability { padding: 24px 20px; }
  .th-availability dl { grid-template-columns: 1fr; gap: 20px; }
}

.th-page h1, .th-page h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.th-page h2 { font-size: clamp(2.05rem, 3.3vw, 3.4rem); line-height: 1.08; }
.th-page h1 em, .th-page h2 em { font-style: italic; }
.th-page h3 { font-size: 1.06rem; font-weight: 700; line-height: 1.3; }
.th-section { padding: clamp(64px, 8vw, 108px) 0; }
.th-section p { max-width: 68ch; }
.th-section h2 + p { margin-top: 18px; }
.th-page p a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.th-page p a:hover { color: var(--th-live-deep); }
.th-tie { margin-top: 24px; font-weight: 500; }
.th-table-scroll { overflow-x: auto; margin-top: 30px; }

/* Chapter tag, like a flag tied to a branch */
.th-tag {
  display: inline-block; margin: 0 0 18px; padding: 5px 14px; background: var(--th-orange); color: #fff;
  border-radius: 3px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--th-wire-wash);
}

/* Buttons and quiet links */
.th-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 24px; }
.th-button {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 26px; border-radius: 999px;
  background: var(--th-graphite); color: #fff; font-weight: 700; font-size: 15.5px; text-decoration: none;
  box-shadow: 0 10px 22px -12px rgba(35, 40, 44, 0.85); transition: background-color 160ms ease-out, transform 160ms ease-out;
}
.th-button:hover { background: var(--th-live-deep); transform: translateY(-1px); }
.th-quiet-link {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: inherit; font-weight: 600; font-size: 15px;
  text-decoration: underline; text-decoration-color: rgba(31, 35, 38, 0.4); text-underline-offset: 5px;
}
.th-quiet-link:hover { text-decoration-color: currentColor; }
.th-close .th-button { background: var(--th-wire); color: var(--th-ink); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.7); }
.th-close .th-button:hover { background: #f6c64d; }
.th-close .th-quiet-link { text-decoration-color: rgba(236, 239, 240, 0.45); }

/* Hero */
.th-hero-shell {
  padding-top: 101px;
  background-color: var(--th-paper);
  background-image: radial-gradient(ellipse 55% 60% at 80% 44%, #fff4d6 0, rgba(255, 244, 214, 0) 72%);
  border-bottom: 4px solid var(--th-wire);
}
.th-hero {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 4vw, 60px);
  align-items: start; padding: clamp(36px, 4vw, 56px) 0 clamp(56px, 6vw, 84px);
}
.th-hero-copy { padding: 6px 0; }
.th-hero h1 { font-size: clamp(2.5rem, 4.3vw, 4.1rem); line-height: 1.03; color: var(--th-ink); }
.th-hero h1 .h1-kicker {
  display: block; margin-bottom: 20px; font-family: var(--font-sans); font-size: 12.5px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--th-wire-deep);
}
.th-h1-line { display: inline; }
.th-lede { margin-top: 22px; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--th-soft); max-width: 52ch; }
.th-price { display: grid; gap: 6px; margin-top: 22px; font-size: 15.5px; color: var(--th-soft); }
.th-price strong { color: var(--th-ink); font-weight: 800; margin-right: 6px; }

/* The signature: the four questions */
.th-qfig { margin: 0; }
.th-qradio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.th-thread { display: grid; gap: 10px; padding: 18px; background: #ebe5d5; border: 1px solid var(--th-rule); border-radius: 14px; }
.th-thread-head { margin: 0 0 2px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--th-muted); }
.th-bubble {
  display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; padding: 12px 18px; background: var(--th-sheet); border: 1px solid var(--th-rule);
  border-radius: 20px 20px 20px 6px; font-size: 15.5px; font-weight: 600; color: var(--th-ink); cursor: pointer;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}
.th-bubble:hover { background: var(--th-kraft-wash); }
.th-bubble-n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--th-forest); color: #fff; font-size: 13px; font-weight: 800; }
#th-q-open:checked ~ .th-thread label[for="th-q-open"],
#th-q-cost:checked ~ .th-thread label[for="th-q-cost"],
#th-q-where:checked ~ .th-thread label[for="th-q-where"],
#th-q-talk:checked ~ .th-thread label[for="th-q-talk"] { background: var(--th-forest-deep); border-color: var(--th-forest-deep); color: #fff; }
#th-q-open:checked ~ .th-thread label[for="th-q-open"] .th-bubble-n,
#th-q-cost:checked ~ .th-thread label[for="th-q-cost"] .th-bubble-n,
#th-q-where:checked ~ .th-thread label[for="th-q-where"] .th-bubble-n,
#th-q-talk:checked ~ .th-thread label[for="th-q-talk"] .th-bubble-n { background: #fff; color: var(--th-forest-deep); }
.th-qradio:focus-visible ~ .th-thread { outline: 2px solid var(--th-kraft); outline-offset: 4px; }
.th-answers { margin-top: 14px; }
.th-ans { display: none; padding: 18px 20px 20px; background: var(--th-sheet); border: 1px solid var(--th-rule); border-left: 5px solid var(--th-forest); border-radius: 8px; box-shadow: 0 18px 40px -30px rgba(35, 42, 38, 0.5); }
#th-q-open:checked ~ .th-answers .th-ans-open,
#th-q-cost:checked ~ .th-answers .th-ans-cost,
#th-q-where:checked ~ .th-answers .th-ans-where,
#th-q-talk:checked ~ .th-answers .th-ans-talk { display: block; }
.th-ans-label { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--th-live-deep); }
.th-ans-lives { margin: 6px 0 0; font-size: 15px; color: var(--th-ink); max-width: none; }
.th-ans-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.th-ans-pair p { margin: 0; padding: 12px 14px; border-radius: 6px; font-size: 14px; max-width: none; }
.th-ans-pair strong { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.th-ans-missing { background: var(--th-hot-wash); color: var(--th-hot-deep); }
.th-ans-answered { background: var(--th-live-wash); color: var(--th-live-deep); }
.th-qfig figcaption { margin-top: 12px; font-size: 13px; color: var(--th-muted); max-width: 60ch; }
.th-models { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: var(--th-muted); }
.th-model { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--th-ink); }
.th-model-maker { font-weight: 500; color: var(--th-muted); }

/* Jump nav */
.th-jump { position: sticky; top: 70px; z-index: 5; background: rgba(244, 241, 233, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--th-rule); }
.th-jump .th-wrap { display: flex; gap: 6px 22px; overflow-x: auto; scrollbar-width: none; }
.th-jump a { flex: none; display: inline-flex; align-items: center; min-height: 48px; font-size: 13.5px; font-weight: 700; color: var(--th-soft); text-decoration: none; white-space: nowrap; }
.th-jump a:hover { color: var(--th-live-deep); }

/* Intro */
.th-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.th-two p + p { margin-top: 16px; }
.th-aside { padding: 26px; background: var(--th-sheet); border: 1px solid var(--th-rule); border-top: 4px solid var(--th-wire); border-radius: 8px; }
.th-aside ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; font-size: 14.5px; color: var(--th-soft); }

/* Chapters */
.th-chapter { border-top: 1px solid var(--th-rule); }
.th-chapter-head { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: start; }
.th-chapter-head p + p { margin-top: 16px; }
.th-chapter-head .th-tag { justify-self: start; margin-top: 6px; }

/* Tables */
.th-crisis-table {
  width: 100%; border-collapse: collapse; background: var(--th-sheet); border: 1px solid var(--th-rule); font-size: 14.5px;
}
.th-crisis-table { min-width: 780px; }
.th-crisis-table th, .th-crisis-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--th-rule); }
.th-crisis-table thead th { background: var(--th-graphite); color: #fff; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.th-crisis-table tbody th { font-weight: 700; }
.th-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.th-pill { background: var(--th-live-wash); color: var(--th-live-deep); }

/* Search */
.th-pins { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.th-pins li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: start; padding: 18px; background: var(--th-sheet); border: 1px solid var(--th-rule); border-radius: 8px; }
.th-pin-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--th-orange); color: #fff; font-weight: 800; font-size: 13px; }
.th-pins div { display: grid; gap: 2px; font-size: 14.5px; color: var(--th-soft); }
.th-pins strong { color: var(--th-ink); }
.th-pins p { margin: 0; }

/* The page: six blocks */
.th-blocks { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.th-blocks li { position: relative; padding: 22px 22px 20px; background: var(--th-sheet); border: 1px solid var(--th-rule); border-top: 5px solid var(--th-forest); border-radius: 8px; }
.th-blocks li:nth-child(even) { border-top-color: var(--th-kraft); }
.th-block-n { position: absolute; top: 14px; right: 16px; font-family: var(--th-mono); font-size: 13px; font-weight: 700; color: var(--th-muted); }
.th-blocks p { margin-top: 6px; font-size: 14.5px; color: var(--th-soft); max-width: none; }

/* Reviews note */
.th-reviews { border-top: 1px solid var(--th-rule); }
.th-reviews p + p { margin-top: 16px; }

/* Group practices: the dark chapter */
.th-group { background: var(--th-graphite); color: var(--th-on-dark); }
.th-group h2 { color: #fff; }
.th-group > .th-wrap > p { color: var(--th-on-dark-soft); }
.th-group > .th-wrap > p + p { margin-top: 16px; }
.th-group > .th-wrap > p.th-tag { background: var(--th-kraft); color: #fff; }
.th-group a { color: #fff; }
.th-group .th-table-scroll { margin-top: 40px; }
.th-group .th-crisis-table { background: transparent; border-color: rgba(255, 255, 255, 0.16); color: var(--th-on-dark); }
.th-group .th-crisis-table thead th { background: rgba(255, 255, 255, 0.1); }
.th-group .th-crisis-table th, .th-group .th-crisis-table td { border-bottom-color: rgba(255, 255, 255, 0.1); }
.th-group .th-pill { background: rgba(255, 255, 255, 0.12); color: #fff; }
.th-group-foot { margin-top: 24px; font-family: var(--th-hand); font-size: 17px; color: #f0c9b7 !important; }
.th-group a:focus-visible { outline-color: #f0c9b7; }

/* HIPAA note */

/* Repeat accounts */

/* Answering, kinds */

/* How */
.th-steps { list-style: none; counter-reset: step; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; }
.th-steps li { counter-increment: step; position: relative; padding: 0 0 0 54px; }
.th-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--th-graphite); color: var(--th-wire); font-weight: 800; }
.th-steps p { margin-top: 4px; color: var(--th-soft); }

/* FAQ */
.th-faq { border-top: 1px solid var(--th-rule); }
.th-faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.th-faq-list { display: grid; gap: 0; border-top: 1px solid var(--th-rule); }
.th-faq-list details { border-bottom: 1px solid var(--th-rule); }
.th-faq-list summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; cursor: pointer; font-weight: 700; list-style: none; }
.th-faq-list summary::-webkit-details-marker { display: none; }
.th-faq-list summary span { flex: none; font-size: 22px; color: var(--th-live); transition: transform 160ms; }
.th-faq-list details[open] summary span { transform: rotate(45deg); }
.th-faq-list details p { padding: 0 0 22px; color: var(--th-soft); max-width: 70ch; }

/* Breadcrumb, close */
.th-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 22px 0 8px; font-size: 12.5px; color: var(--th-muted); }
.th-breadcrumb a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.th-breadcrumb a:hover { color: var(--th-ink); text-decoration: underline; }
.th-close { background: var(--th-graphite); color: var(--th-on-dark); padding: clamp(64px, 8vw, 100px) 0; }
.th-close-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.th-close h2 { color: #fff; font-size: clamp(2.1rem, 3.6vw, 3.6rem); }
.th-close p { margin-top: 18px; max-width: 58ch; color: var(--th-on-dark-soft); }
.th-close aside { display: grid; gap: 4px; align-content: start; }
.th-close aside strong { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--th-on-dark-soft); margin-bottom: 8px; }
.th-close aside a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); color: #fff; text-decoration: none; font-weight: 600; }
.th-close aside a:hover { color: var(--th-wire); }

/* Responsive */
/* Six systems: what fits a therapy practice */

@media (max-width: 1000px) {
  .th-hero, .th-two, .th-faq-grid, .th-close-grid { grid-template-columns: 1fr; }
  .th-chapter-head { grid-template-columns: 1fr; gap: 6px; }
  .th-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .th-wrap { width: min(100% - 32px, 1280px); }
  .th-hero-shell { padding-top: 88px; }
  .th-blocks { grid-template-columns: 1fr; }
  .th-ans-pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .th-button, .th-faq-list summary span, .th-bubble { transition: none; }
}

.th-clinician-brief { margin-block: 28px; padding-block: 10px; border-block: 1px solid var(--th-rule); scroll-margin-top: 150px; }
.th-clinician-brief summary { padding-block: 14px; cursor: pointer; font-weight: 700; }
.th-clinician-brief p { max-width: 78ch; margin-block: 16px; }
.th-clinician-brief ol { max-width: 78ch; padding-left: 24px; margin-block: 22px; }
.th-clinician-brief li { margin-block: 18px; padding-left: 8px; }
