:root {
  color-scheme: light;
  --bg: #fafbf7; --surface: #fff; --paper: #fbfdf8; --ink: #24302d;
  --muted: #5b6761; --line: #dce8dc; --line-soft: #e6e8de;
  --brand: #547a82; --brand-dark: #344d3d; --brand-soft: #eaf0e6;
  --warn: #a87122; --danger: #873d30; --ok: #476b58;
  --shadow: none; --radius: 8px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-Variable.ttf") format("truetype"); font-style: normal; font-weight: 200 800; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
button, textarea, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--brand-dark); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid rgba(168, 113, 34, .55); outline-offset: 3px; }
[hidden] { display: none !important; }
.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; }
.site-header { position: relative; z-index: 20; min-height: 72px; padding: 0 clamp(20px, 4vw, 56px); display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); background: rgba(250,252,248,.88); border-bottom: 1px solid rgba(41,75,60,.10); box-shadow: 0 1px 2px rgba(31,55,42,.035); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { display:flex; align-items:center; gap: 16px; margin-right: clamp(4px, 1.8vw, 18px); color: var(--brand-dark); text-decoration:none; white-space:nowrap; font: 750 20px/1.2 "Manrope", system-ui, sans-serif; letter-spacing: 0; }
.brand-mark { width: 48px; height: 34px; object-fit: contain; }
.site-nav { display:flex; align-items:center; gap:4px; margin-left:auto; font: 500 16px/1.25 "Manrope", system-ui, sans-serif; letter-spacing:-.012em; }
.site-nav a { padding:8px 11px; border:1px solid transparent; border-radius:999px; color:#34443a; text-decoration:none; transition:background-color .2s,border-color .2s,color .2s; }
.site-nav a:hover,.site-nav a:focus-visible { color:#214d38; background:#edf4ee; }
.site-nav a[aria-current="page"] { color:#214d38; background:#dfede2; border-color:rgba(33,77,56,.08); }
.site-nav a:last-child { margin-left:6px; padding-inline:16px; color:#fff; background:#315c47; border-color:#315c47; }
.menu-button { display:none; align-items:center; gap:8px; min-height:42px; padding:8px 13px; color:#173f2d; background:#f4f7f1; border:1px solid rgba(23,63,45,.38); border-radius:8px; font:700 14px "Manrope",system-ui,sans-serif; }
.menu-button::before { content:""; width:18px; height:12px; background:linear-gradient(currentColor 0 0) 0 0/100% 2px no-repeat,linear-gradient(currentColor 0 0) 0 50%/100% 2px no-repeat,linear-gradient(currentColor 0 0) 0 100%/100% 2px no-repeat; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: "Manrope", var(--font); }
h1 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.13; margin: 3px 0 8px; letter-spacing: -.035em; color: var(--brand-dark); font-weight: 780; }
h2 { font-size: clamp(23px, 2.6vw, 30px); line-height: 1.25; letter-spacing: -.025em; margin-bottom: 10px; color: var(--brand-dark); font-weight: 760; }
h3 { font-size: 18px; line-height: 1.25; margin-bottom: 8px; }
h4 { font-size: 16px; margin-bottom: 8px; }
.eyebrow, .step-label { color: var(--brand-dark); font-weight: 800; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 5px; }
.subtitle, .section-intro, .muted { color: var(--muted); }
.subtitle { margin: 0; }
.section-nav { display: flex; gap: 3px; padding: 10px 0 18px; overflow-x: auto; scrollbar-width: thin; }
.section-nav a { flex: 0 0 auto; white-space: nowrap; text-decoration: none; padding: 9px 13px; border-radius: 10px; font-weight: 700; color: var(--muted); }
.section-nav a:hover, .section-nav a:focus-visible { background: var(--brand-soft); color: var(--brand-dark); }
.surface { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); }
.main-section { margin-bottom: 16px; padding: 25px 28px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading .section-intro { margin-bottom: 0; max-width: 760px; }
.choice-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.choice-heading h3 { margin: 0; }
.choice-heading p { font-size: 13px; margin: 0; color: var(--muted); }
.choice-secondary { margin-top: 22px; }
.mode-grid { display: grid; gap: 10px; }
.mode-grid.classic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mode-grid.additional { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mode-option, .therapist-option { appearance: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-align: left; border-radius: 8px; min-height: 92px; padding: 15px 16px; transition: border-color .15s, background .15s; }
.mode-option:hover, .therapist-option:hover { border-color: var(--brand-dark); background: #f1f3e9; }
.mode-option[aria-pressed="true"], .therapist-option[aria-pressed="true"] { background: var(--brand-soft); border: 2px solid var(--brand-dark); padding: 14px 15px; }
.mode-option[aria-pressed="true"]::before, .therapist-option[aria-pressed="true"]::before { content: "✓ "; font-weight: 900; color: var(--brand-dark); }
.mode-name { display: inline; color: var(--brand-dark); font-weight: 800; font-size: 13px; }
.mode-option strong, .mode-option small { display: block; }
.mode-option strong { font-size: 16px; margin: 7px 0 6px; line-height: 1.25; }
.mode-option small { color: var(--muted); font-size: 13px; line-height: 1.3; }
.button { border: 1px solid var(--line); border-radius: 10px; min-height: 44px; padding: 9px 14px; font-weight: 750; background: var(--paper); color: var(--ink); line-height: 1.3; white-space: nowrap; }
.button:hover { border-color: var(--brand-dark); background: var(--brand-soft); }
.button.primary { background: var(--brand-dark); color: white; border-color: var(--brand-dark); }
.button.primary:hover { background: #354426; }
.button.ghost, .button.subtle { background: transparent; }
.button.compact { min-height: 40px; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.context-label { font-size: 13px; color: var(--muted); font-weight: 700; }
.empty-selection { background: #f3efe2; border: 1px dashed var(--line); padding: 22px; border-radius: 13px; }
.empty-selection p { margin: 0; max-width: 730px; }
.selected-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.selected-bar h3 { font-size: 21px; margin: 0; }
.selected-caption, .card-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 7px; }
.quick-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; align-items: stretch; }
.quick-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 8px; padding: 19px 20px; }
.main-quick { background: #f4f0e4; }
.primary-line { font-size: 18px; font-weight: 700; margin-bottom: 13px; }
.extra-space { margin-top: 18px; }
.phrase { margin: 0 0 16px; font-size: clamp(19px, 2.3vw, 23px); font-weight: 700; line-height: 1.38; letter-spacing: -.01em; }
.phrase.short { font-size: clamp(21px, 2.5vw, 25px); }
.side-quick { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.side-quick p:last-child { margin: 0; }
.safety-card { border-left: 4px solid var(--ok); }
.caution-card { border-left: 4px solid var(--warn); }
.clinical-note { font-size: 13px; color: var(--muted); margin: 15px 0 0; }
.detail-group, .source-details { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 13px; margin-top: 9px; }
.detail-group summary, .source-details summary { position: relative; padding: 16px 42px 16px 17px; font-weight: 750; cursor: pointer; list-style: none; }
.detail-group summary::-webkit-details-marker, .source-details summary::-webkit-details-marker { display: none; }
.detail-group summary::after, .source-details summary::after { content: "+"; position: absolute; top: 12px; right: 16px; font-size: 22px; color: var(--brand-dark); }
.detail-group[open] summary::after, .source-details[open] summary::after { content: "−"; }
.detail-group summary:hover, .source-details summary:hover { background: #f4f4eb; border-radius: 13px; }
.summary-hint { display: inline; font-size: 13px; font-weight: 400; margin-left: 10px; color: var(--muted); }
.detail-content { padding: 3px 18px 20px; }
.detail-content p { margin-bottom: 12px; }
.intervention-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 28px; }
.intervention-columns h4 { margin: 8px 0; }
.bullet-list { margin: 0; padding-left: 19px; }
.bullet-list li { margin-bottom: 7px; }
.therapist-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 15px 0; }
.therapist-option { padding: 11px 13px; min-height: 56px; font-size: 14px; font-weight: 700; }
.therapist-option[aria-pressed="true"] { padding: 10px 12px; }
.therapist-result { padding: 15px; background: #f3efe2; border-radius: 11px; margin-bottom: 12px; }
.therapist-result p { margin: 6px 0 0; }
.therapist-result .reset-line { font-weight: 700; color: var(--brand-dark); }
.privacy-note { font-size: 14px; background: #f1eddf; border: 1px solid var(--line-soft); border-radius: 11px; padding: 13px 15px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
textarea { display: block; width: 100%; min-width: 0; padding: 12px 13px; color: var(--ink); background: var(--paper); border: 1px solid #a8afa0; border-radius: 10px; resize: vertical; line-height: 1.48; font-weight: 400; }
textarea::placeholder { color: #636c59; opacity: 1; }
.session-choice { display: flex; gap: 12px; align-items: flex-start; padding: 15px 0; margin-top: 8px; font-size: 14px; }
.session-choice input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand-dark); flex: 0 0 auto; }
.session-choice strong, .session-choice small { display: block; }
.session-choice small { color: var(--muted); line-height: 1.45; margin-top: 3px; }
.summary-toolbar { padding-top: 19px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 13px; }
.summary-toolbar h3 { margin: 0 0 5px; }
.summary-toolbar p { font-size: 13px; margin: 0; }
.summary-textarea { min-height: 230px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.note-footer { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.source-details { margin-top: 18px; }
.source-details a { overflow-wrap: anywhere; }
.source-details li { margin-bottom: 6px; }
.feedback { margin: 0 0 14px; border-left: 4px solid var(--brand-dark); background: var(--paper); padding: 12px 15px; border-radius: 9px; }
.feedback.error { border-left-color: var(--danger); }
.undo-bar { padding: 12px 15px; margin-bottom: 14px; border-radius: 9px; background: var(--brand-soft); }
.inline-button { border: 0; padding: 3px; background: transparent; color: var(--brand-dark); text-decoration: underline; font-weight: 800; }
.site-footer { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 5px 4px 12px; color: var(--muted); font-size: 12px; }
.print-only { display: none; }
@media (max-width: 900px) {
  .site-header { min-height: 72px; }
  .menu-button { display: inline-flex; }
  .site-nav { position: absolute; top: calc(100% + 8px); right: 20px; display: none; width: min(245px, calc(100vw - 40px)); padding: 10px; flex-direction: column; align-items: stretch; background: #fbfdf8; border: 1px solid rgba(41,75,60,.12); border-radius: 12px; box-shadow: 0 14px 34px rgba(31,55,42,.10); }
  .site-nav.is-open { display: flex; }
  .site-nav a { display: flex; min-height: 44px; align-items: center; border-radius: 8px; }
  .site-nav a:last-child { justify-content: center; margin: 4px 0 0; }
  .menu-button[aria-expanded="true"] { color: #fff; background: #315c47; border-color: #315c47; }
}
@media (max-width: 850px) {
  .quick-layout { grid-template-columns: 1fr; }
  .side-quick { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-rows: none; }
  .summary-toolbar { flex-direction: column; }
  .therapist-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .brand { gap: 11px; font-size: 18px; }
  .brand-mark { width: 40px; height: 30px; }
  .site-header { padding-inline: 16px; }
  .site-nav { right: 16px; }
  .section-nav { padding: 7px 0 12px; }
  .section-nav a { padding: 10px 12px; }
  .main-section { padding: 19px 16px; margin-bottom: 11px; border-radius: 15px; }
  .section-heading { flex-direction: column; gap: 10px; }
  .mode-grid.classic, .mode-grid.additional { grid-template-columns: 1fr; }
  .mode-option { min-height: 0; padding: 13px 15px; }
  .mode-option[aria-pressed="true"] { padding: 12px 14px; }
  .mode-option strong { margin: 4px 0; }
  .choice-heading { display: block; }
  .choice-heading p { margin-top: 4px; }
  .selected-bar { align-items: flex-start; }
  .side-quick, .form-grid, .intervention-columns, .therapist-grid { grid-template-columns: 1fr; }
  .summary-hint { display: block; margin: 2px 0 0; }
  .button-row { width: 100%; }
  .summary-toolbar .button-row .button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .mode-option { transition: none; } }
@media print {
  @page { margin: 18mm; }
  body { background: white; color: black; font: 11pt/1.45 Arial,sans-serif; }
  .site-header, .article-breadcrumbs, .reading-hero, .reading-layout, .disclaimer, .site-footer, .article-skip { display: none !important; }
  .print-only { display: block !important; }
  .print-only h1 { font-size: 17pt; margin: 0 0 15px; }
  .print-only pre { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
}

/* Match the shared editorial frame used by the Acute GGZ intervention pages. */
.app-title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; }
.mbt-app-page .article-breadcrumbs .breadcrumb-item,.mbt-app-page .article-breadcrumbs .breadcrumb-current { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; white-space: nowrap; }
.mbt-app-page .article-breadcrumbs .breadcrumb-item > span { color: #a1a89c; }
.mbt-app-page .article-breadcrumbs .breadcrumb-current > span[aria-hidden="true"] { color: #a1a89c; }
.mbt-app-page .article-breadcrumbs [aria-current="page"] { color: #6d746b; }
.app-title-row .reading-subtitle { max-width: 760px; }
.app-title-row .button { flex: 0 0 auto; }
.app-content { font-size: 1rem; line-height: 1.7; }
.app-content > .main-section { margin: 0; padding: 30px 0 34px; border: 0; border-radius: 0; background: transparent; box-shadow: none; scroll-margin-top: 104px; }
.app-content > .main-section + .main-section { margin-top: 8px; padding-top: 38px; border-top: 1px solid #d6dfd4; }
.app-content .section-heading { margin-bottom: 24px; }
.app-content .section-intro { max-width: 62ch; line-height: 1.7; }
.app-content .mode-option,.app-content .therapist-option { border-color: #bfcfc2; border-radius: 6px; background: #fafbf7; }
.app-content .mode-option[aria-pressed="true"],.app-content .therapist-option[aria-pressed="true"] { color: #fff; background: #344d3d; border-color: #344d3d; }
.app-content .mode-option[aria-pressed="true"]::before,.app-content .therapist-option[aria-pressed="true"]::before,.app-content .mode-option[aria-pressed="true"] .mode-name { color: #eaf0e6; }
.app-content .mode-option[aria-pressed="true"] strong,.app-content .therapist-option[aria-pressed="true"] strong { color: #fff; }
.app-content .mode-option[aria-pressed="true"] small { color: rgba(255,255,255,.82); }
.app-content .button { border-radius: 6px; }
.app-content .button.primary { background: #344d3d; border-color: #344d3d; }
.app-content .button.primary:hover { background: #243e31; }
.app-content .button.subtle:hover { background: #eaf0e6; }
.app-content .empty-selection { background: #eaf0e6; border: 0; border-left: 3px solid #547a82; border-radius: 0 8px 8px 0; }
.app-content .main-quick { background: #f4f7f5; }
.app-content .quick-card { border-color: #d2dfdb; border-radius: 8px; }
.app-content .detail-group,.app-content .source-details { border-color: #d2dfdb; border-radius: 8px; }
.app-content .detail-group summary,.app-content .source-details summary { border-radius: 8px; }
.app-content .privacy-note { background: #f6f1e6; border-color: #e7decb; border-radius: 8px; }
.app-content .therapist-result { background: #eaf0e6; border-radius: 8px; }
.app-content > .app-version { margin: 32px 0 0; padding-top: 18px; border-top: 1px solid #d6dfd4; color: #617068; font-size: .82rem; }
.reading-sidebar .article-toc summary { font-size: 1rem; }
.reading-sidebar .article-toc nav.section-nav { display: grid; gap: 4px; margin-top: 10px; padding: 0; overflow: visible; }
.reading-sidebar .section-nav a { display: block; min-height: 44px; padding: 10px 12px; border-left: 3px solid transparent; border-radius: 0 6px 6px 0; color: #526159; font-size: .87rem; font-weight: 500; line-height: 1.5; text-decoration: none; white-space: normal; }
.reading-sidebar .section-nav a:hover,.reading-sidebar .section-nav a:focus-visible { color: #283e33; background: #edf1e8; }
.reading-sidebar .section-nav a[aria-current="location"] { color: #243c36; background: #eaf0ee; border-left-color: #547a82; font-weight: 750; }
.disclaimer { padding: 24px clamp(20px, 4vw, 56px); color: #5b6761; background: #f4f0e6; border-top: 1px solid #e5dfd1; font-size: .88rem; line-height: 1.7; }
.disclaimer-inner { max-width: 1180px; margin: 0 auto; }
.disclaimer strong { color: #344d3d; }
.site-footer { display: flex; justify-content: space-between; gap: 28px; padding: 38px clamp(24px, 6vw, 84px); color: rgba(255,255,255,.82); background: #17211d; font-size: 1rem; }
.site-footer p { max-width: 620px; margin-bottom: 0; font-size: .9rem; line-height: 1.55; }
.site-footer .footer-copyright { margin-top: 10px; color: rgba(255,255,255,.58); font-size: .78rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer nav { display: flex; align-items: flex-start; gap: 18px; }
.app-version { font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .app-title-row { align-items: flex-start; }
  .reading-sidebar .article-toc nav.section-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .app-title-row { grid-template-columns: 1fr; gap: 16px; }
  .app-title-row .button { justify-self: start; }
  .reading-sidebar .article-toc nav.section-nav { grid-template-columns: 1fr; }
  .app-content > .main-section { padding: 26px 0 28px; }
  .app-content > .main-section + .main-section { padding-top: 30px; }
  .site-footer { flex-direction: column; }
  .site-footer nav { flex-wrap: wrap; gap: 14px; }
  .disclaimer { padding: 22px 20px; }
}
