/* Oregon Behavioral Health Pathways — site styles.
   Tokens are the Claude Design handoff's (warm, calm, unintimidating — the
   reader may be at a low moment). Vanilla CSS, no framework, mobile-first. */
:root {
  --bg: #F6F2EA; --paper: #FFFFFF; --cream: #FAF7F0;
  --ink: #33302A; --head: #23201B; --sec: #7A7263; --muted: #8A8171; --faint: #A39A87;
  --green: #2F5D50; --green-hover: #274D42; --green-deep: #29453C; --tint: #EDF2EF; --on-green: #F4F1E9;
  --terra: #B4886B; --terra-tint: #F5EBE3;
  --border: #E5DDCE; --border2: #E7DFD0; --border3: #DDD2BC; --dash: #EAE2D2; --tile: #EEE6D6;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --r-bubble: 18px; --r-card: 14px; --r-tile: 8px;
  --max: 1440px;
  /* the six certifying bodies — one hue each, same chroma family as the page */
  --b-mhacbo: #2F5D50; --b-oblpct: #3F6B9E; --b-blsw: #7A4E8C; --b-obop: #B4886B; --b-otlb: #2F8A8C; --b-thw: #B8892B;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
a:hover { color: var(--green-hover); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--head); line-height: 1.15; margin: 0 0 10px; }
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 12px; }
.eyebrow { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.sec { color: var(--sec); }
.muted { color: var(--muted); font-size: 13px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--head); }
.brand .mark { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: var(--on-green); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; flex: 0 0 auto; }
.brand .name { font-family: var(--serif); font-size: 19px; line-height: 1.1; }
.brand .tag { font-size: 12px; color: var(--sec); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 14px; padding: 8px 10px; border-radius: 999px; }
.nav a:hover, .nav a.active { background: var(--tint); color: var(--green); }
.nav a.cta { background: var(--green); color: var(--on-green); font-weight: 600; padding: 9px 14px; margin-left: 6px; }
.nav a.cta:hover { background: var(--green-hover); }
@media (max-width: 720px) { .nav a:not(.cta) { display: none; } .brand .tag { display: none; } }

.site-footer { border-top: 1px solid var(--border); margin-top: 56px; padding: 26px 0 40px; color: var(--sec); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer .credit { display: flex; align-items: center; gap: 10px; }
.site-footer .credit img { height: 30px; width: auto; opacity: 0.9; }
.site-footer nav a { margin-right: 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--green); background: var(--paper); color: var(--green); border-radius: 999px; padding: 10px 18px; font: 600 14px var(--sans); cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover { background: var(--tint); }
.btn.primary { background: var(--green); color: var(--on-green); }
.btn.primary:hover { background: var(--green-hover); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.chip { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--green); text-decoration: none; margin: 2px 4px 2px 0; }
.chip.warm { background: var(--terra-tint); color: #7d5a3f; }
.chip.plain { background: var(--cream); color: var(--sec); border: 1px solid var(--tile); font-weight: 500; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.badge.yes { background: var(--tint); color: var(--green); }
.badge.no { background: var(--cream); color: var(--sec); border: 1px solid var(--tile); }

/* ---------- cards & sections ---------- */
.card { background: var(--paper); border: 1px solid var(--border3); border-radius: var(--r-card); box-shadow: 0 2px 8px rgba(60,50,30,0.06); overflow: hidden; }
.card .band { background: var(--green); color: var(--on-green); padding: 16px 20px; }
.card .band .eyebrow { color: var(--on-green); opacity: 0.75; }
.card .band h2, .card .band h1 { color: var(--on-green); margin: 4px 0 0; }
.card .body { padding: 18px 20px; }
.tile { background: var(--cream); border: 1px solid var(--tile); border-radius: var(--r-tile); padding: 10px 13px; }
.tile .t { font-weight: 600; color: var(--head); font-size: 14px; }
.tile .s { font-size: 12.5px; color: var(--sec); }
.grid { display: grid; gap: 14px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.section { margin: 34px 0; }
.section > .eyebrow { margin-bottom: 10px; }
.callout { background: var(--tint); border-radius: 10px; padding: 14px 16px; color: var(--green-deep); }
.callout .eyebrow { color: var(--green); margin-bottom: 4px; }
.dots li { list-style: none; position: relative; padding-left: 16px; margin: 6px 0; font-size: 14px; color: #4A453B; }
.dots { padding: 0; margin: 0; }
.dots li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--terra); }
.kv { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }
.kv dd { margin: 0; color: #4A453B; }
.notice { font-size: 12.5px; color: var(--faint); }

/* ---------- landing ---------- */
.hero { padding: 56px 0 30px; display: grid; gap: 28px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.hero .lede { font-size: 18px; color: var(--sec); max-width: 560px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-art { border-radius: 18px; background: linear-gradient(135deg, #2F5D50 0%, #3f7466 55%, #B4886B 140%); min-height: 260px; position: relative; overflow: hidden; color: var(--on-green); padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-art .rung { background: rgba(246,242,234,0.14); border: 1px solid rgba(246,242,234,0.35); border-radius: 10px; padding: 9px 12px; margin-top: 8px; font-size: 13.5px; backdrop-filter: blur(2px); }
.hero-art .rung b { display: block; font-size: 14.5px; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; padding-top: 34px; } }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 16px 0 6px; border-top: 1px dashed var(--dash); border-bottom: 1px dashed var(--dash); margin-top: 12px; }
.stats .n { font-family: var(--serif); font-size: 26px; color: var(--green); line-height: 1; }
.stats .l { font-size: 12.5px; color: var(--sec); }
.entry { display: block; text-decoration: none; color: inherit; padding: 18px 18px 16px; background: var(--paper); border: 1px solid var(--border3); border-radius: var(--r-card); box-shadow: 0 1px 2px rgba(60,50,30,0.04); }
.entry:hover { border-color: var(--green); }
.entry h3 { margin-bottom: 6px; }
.entry .fast { margin-top: 10px; font-size: 13px; color: var(--green); font-weight: 600; }

/* ---------- ladders ---------- */
.family { background: var(--paper); border: 1px solid var(--border3); border-radius: var(--r-card); padding: 16px 18px; }
.family h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.family .track { font-size: 12px; color: var(--muted); font-weight: 500; font-family: var(--sans); }
.rung { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--dash); text-decoration: none; color: inherit; }
.rung:last-child { border-bottom: 0; }
.rung:hover .label { color: var(--green); }
.rung .num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--green); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; margin-top: 1px; }
.rung .label { font-weight: 600; color: var(--head); font-size: 14px; }
.rung .note { font-size: 12.5px; color: var(--sec); line-height: 1.4; }
.rung.hl { background: var(--tint); margin: 0 -8px; padding: 9px 8px; border-radius: 8px; }

/* ---------- wizard ---------- */
.wiz { background: var(--paper); border: 1px solid var(--border3); border-radius: var(--r-card); padding: 20px; }
.wiz .q { font-family: var(--serif); font-size: 22px; color: var(--head); margin-bottom: 4px; }
.wopts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 14px; }
.wopt { text-align: left; background: var(--cream); border: 1.5px solid var(--tile); border-radius: 10px; padding: 12px 14px; cursor: pointer; font-family: var(--sans); color: var(--ink); min-height: 44px; }
.wopt:hover { border-color: var(--green); background: var(--tint); }
.wopt b { display: block; font-size: 14.5px; color: var(--head); }
.wopt small { display: block; font-size: 12.5px; color: var(--sec); margin-top: 2px; }
.wback { background: none; border: 0; color: var(--sec); cursor: pointer; margin-top: 12px; font: 13px var(--sans); }

/* ---------- filters / lists ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 20px; }
.filters select, .filters input { font: 14px var(--sans); padding: 9px 12px; border: 1.5px solid var(--border3); border-radius: 10px; background: var(--paper); color: var(--ink); min-height: 42px; }
.filters input { min-width: 200px; flex: 1 1 200px; }
.filters select:focus, .filters input:focus { outline: none; border-color: var(--green); }
.list { display: grid; gap: 12px; }
.item { background: var(--paper); border: 1px solid var(--border3); border-radius: 12px; padding: 14px 16px; }
.item h3 { font-size: 17px; margin-bottom: 2px; }
.item .meta { font-size: 13px; color: var(--sec); }
.item .row { margin-top: 8px; }
.count { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

/* ---------- chat ---------- */
/* the chat is a fixed-height app surface: messages scroll inside, input stays pinned */
body.chat { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
body.chat .site-header { flex: 0 0 auto; position: static; }
body.chat .site-footer { display: none; }
.chat-page { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
body.embed .site-header, body.embed .site-footer, body.embed .dock { display: none; }
.chat-head { flex: 0 0 auto; padding: 16px 20px 12px; border-bottom: 1px solid var(--border); background: var(--bg); display: flex; justify-content: center; }
.chat-head .in { width: 100%; max-width: 760px; display: flex; align-items: center; gap: 14px; }
.chat-head .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: var(--bg); display: grid; place-items: center; font-family: var(--serif); font-size: 22px; flex: 0 0 auto; }
.chat-head .title { font-family: var(--serif); font-size: 21px; color: var(--head); line-height: 1.1; }
.chat-head .sub { font-size: 13px; color: var(--sec); }
.chat-head .spacer { flex: 1; }
.chat-head .reset { background: none; border: 1px solid var(--border3); border-radius: 999px; color: var(--sec); font: 12.5px var(--sans); padding: 6px 11px; cursor: pointer; }
.chat-head .reset:hover { border-color: var(--green); color: var(--green); }
.chat-scroll { flex: 1 1 auto; overflow-y: auto; display: flex; justify-content: center; padding: 24px 20px 12px; }
.chat-col { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; flex-direction: column; gap: 8px; }
.bubble.user { align-self: flex-end; max-width: 78%; background: var(--green); color: var(--on-green); padding: 11px 16px; border-radius: 18px 18px 4px 18px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.bubble.assistant { align-self: flex-start; max-width: 85%; background: var(--paper); border: 1px solid var(--border2); padding: 13px 18px; border-radius: 18px 18px 18px 4px; font-size: 15px; line-height: 1.55; box-shadow: 0 1px 2px rgba(60,50,30,0.04); }
.bubble.assistant p { margin: 0 0 10px; }
.bubble.assistant p:last-child { margin-bottom: 0; }
.bubble.assistant ul { margin: 6px 0 10px; padding-left: 20px; }
.bubble.assistant li { margin: 4px 0; }
.bubble.assistant strong { font-weight: 600; color: var(--head); }
.bubble.assistant.error { border-color: var(--terra); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.pill { font-size: 12px; font-weight: 600; color: var(--green); background: var(--tint); border-radius: 999px; padding: 4px 10px; }
.typing { align-self: flex-start; background: var(--paper); border: 1px solid var(--border2); padding: 14px 18px; border-radius: 18px 18px 18px 4px; display: flex; gap: 5px; align-items: center; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulseDot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulseDot { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) { .typing i { animation: none; opacity: 0.6; } }
.rec { align-self: stretch; max-width: 640px; background: var(--paper); border: 1px solid var(--border3); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(60,50,30,0.06); margin-top: 4px; }
.rec .band { background: var(--green); color: var(--on-green); padding: 16px 20px; }
.rec .band .eyebrow { color: var(--on-green); opacity: 0.75; }
.rec .band .headline { font-family: var(--serif); font-size: 24px; line-height: 1.2; margin-top: 3px; }
.rec .body { padding: 18px 20px; display: flex; flex-direction: column; gap: 18px; }
.rec .why { font-size: 14.5px; line-height: 1.55; color: #4A453B; }
.rec .sect { display: flex; flex-direction: column; gap: 8px; }
.rec .tiles { display: flex; flex-direction: column; gap: 6px; }
.rec .next { background: var(--tint); border-radius: 10px; padding: 12px 15px; }
.rec .next .eyebrow { color: var(--green); }
.rec .next div { font-size: 14px; color: var(--green-deep); font-weight: 500; }
.chat-input { flex: 0 0 auto; display: flex; justify-content: center; padding: 8px 20px 18px; background: linear-gradient(to bottom, rgba(246,242,234,0), var(--bg) 30%); }
.chat-input .in { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chipbtn { border: 1.5px solid var(--green); background: var(--paper); color: var(--green); border-radius: 999px; padding: 9px 16px; font: 600 13.5px var(--sans); cursor: pointer; min-height: 44px; }
.chipbtn:hover { background: var(--tint); }
.row-input { display: flex; gap: 10px; align-items: flex-end; }
.row-input textarea { flex: 1 1 auto; resize: none; border: 1.5px solid var(--border3); border-radius: 14px; padding: 13px 16px; font: 15px/1.4 var(--sans); background: var(--paper); color: var(--ink); min-height: 48px; max-height: 140px; }
.row-input textarea:focus { outline: none; border-color: var(--green); }
.row-input button { flex: 0 0 auto; height: 48px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--green); color: var(--on-green); font: 600 14.5px var(--sans); cursor: pointer; }
.row-input button:hover { background: var(--green-hover); }
.row-input button:disabled { opacity: 0.6; cursor: default; }
.disclaimer { font-size: 11.5px; color: var(--faint); text-align: center; }

/* ---------- dock ---------- */
.dock { position: fixed; right: 18px; bottom: 18px; z-index: 30; }
.dock .open { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: var(--on-green); border: 0; border-radius: 999px; padding: 12px 18px; font: 600 14px var(--sans); cursor: pointer; box-shadow: 0 6px 18px rgba(47,93,80,0.35); min-height: 48px; }
.dock .open:hover { background: var(--green-hover); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(35,32,27,0.35); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--bg); z-index: 41; box-shadow: -8px 0 30px rgba(35,32,27,0.25); display: flex; flex-direction: column; }
.drawer .bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.drawer .bar b { font-family: var(--serif); font-weight: 500; font-size: 17px; }
.drawer .bar button { background: none; border: 0; font: 20px var(--sans); color: var(--sec); cursor: pointer; }
.drawer iframe { flex: 1; border: 0; width: 100%; }

/* ---------- full-width layout (2026-08-30: the site was pinned to 1080px) ---------- */
.wrap { padding: 0 clamp(20px, 4vw, 56px); }
.hero { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: clamp(28px, 4vw, 64px); padding: clamp(36px, 5vw, 72px) 0 30px; }
.hero .lede { max-width: 640px; font-size: clamp(16px, 1.25vw, 19px); }
.hero-art { min-height: 300px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (min-width: 1200px) { .grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); } }
.site-header .wrap { min-height: 68px; }
.brand .mark { width: 42px; height: 42px; background: var(--green); display: grid; place-items: center; }
.brand .mark svg { width: 30px; height: 24px; display: block; }

/* ---------- board identity ---------- */
.b-mhacbo { --b: var(--b-mhacbo); } .b-oblpct { --b: var(--b-oblpct); } .b-blsw { --b: var(--b-blsw); }
.b-obop { --b: var(--b-obop); } .b-otlb { --b: var(--b-otlb); } .b-thw { --b: var(--b-thw); } .b-other { --b: var(--muted); }
.board { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--b, var(--muted)); }
.board::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--b, var(--muted)); flex: 0 0 auto; }
.board.pill { background: color-mix(in srgb, var(--b, var(--muted)) 12%, white); border: 1px solid color-mix(in srgb, var(--b, var(--muted)) 35%, white); border-radius: 999px; padding: 4px 10px 4px 8px; text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 14px 0 18px; }
.boards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.boards .b { background: var(--paper); border: 1px solid var(--border3); border-top: 4px solid var(--b, var(--muted)); border-radius: 10px; padding: 12px 14px; }
.boards .b .short { font-weight: 700; color: var(--b, var(--head)); font-size: 14px; }
.boards .b .name { font-size: 12.5px; color: var(--sec); margin-top: 2px; line-height: 1.35; }
.boards .b .what { font-size: 13px; color: #4A453B; margin-top: 8px; }
.card .band.boarded { background: var(--b, var(--green)); }

/* ladders: color by board, show the trajectory */
.family { border-top: 5px solid var(--b, var(--border3)); padding-top: 14px; }
.family h3 .board { margin-left: auto; }
.family .rung .num { background: color-mix(in srgb, var(--b, var(--green)) 14%, white); color: var(--b, var(--green)); }
.family .rung.hl { background: color-mix(in srgb, var(--b, var(--green)) 12%, white); box-shadow: inset 3px 0 0 var(--b, var(--green)); }
.family .rung.path { background: color-mix(in srgb, var(--b, var(--green)) 6%, white); }
.family .rung.path .num, .family .rung.hl .num { background: var(--b, var(--green)); color: #fff; }
.family .rung .credits { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px; }
.family .rung .credits .chip { font-size: 11.5px; padding: 2px 8px; background: var(--terra-tint); color: #7d5a3f; }
.family .rung .credits .lbl { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; align-self: center; }
.family .ceiling { margin-top: 10px; font-size: 12.5px; color: var(--sec); }

/* ---------- chat in the drawer / narrow widths ---------- */
.chat-head .reset { white-space: nowrap; flex: 0 0 auto; }
.chat-head .in { flex-wrap: nowrap; }
.chat-head .title { line-height: 1.15; }
.row-input textarea { overflow: hidden; }
body.embed .chat-head { padding: 10px 16px 8px; }
body.embed .chat-head .avatar { width: 34px; height: 34px; font-size: 18px; }
body.embed .chat-head .title { font-size: 17px; }
body.embed .chat-scroll { padding: 16px 14px 8px; }
body.embed .bubble.assistant { max-width: 94%; }
body.embed .bubble.user { max-width: 88%; }
body.embed .chat-input { padding: 6px 14px 12px; }
@media (max-width: 560px) {
  .chat-head .sub { display: none; }
  .chat-head .title { font-size: 17px; }
  .chat-head .avatar { width: 34px; height: 34px; font-size: 18px; }
  .row-input textarea { padding: 12px 14px; font-size: 15px; }
  .row-input button { padding: 0 16px; }
}
.drawer { width: min(480px, 100vw); }
