/* PeerHive. Trust-first clinic site: white and cool tint surfaces, deep teal as the single accent,
   Schibsted Grotesk headings + Source Sans 3 body, 6px radius everywhere. Light theme only
   (the CARF seal and state logo are supplied on light backgrounds). */

:root {
  --c-bg: #FFFFFF;
  --c-tint: #EFF4F5;
  --c-tint-2: #E3ECEE;
  --c-ink: #12303A;
  --c-ink-soft: #46616A;
  --c-line: #D5E1E4;
  --c-accent: #1A6576;
  --c-accent-hover: #124E5B;
  --c-accent-wash: #DCEBEE;
  --c-on-dark: #E9F1F3;
  --c-on-dark-soft: #B5C9CE;

  --f-head: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --t-body: 1.125rem;
  --t-small: 0.95rem;
  --t-h1: clamp(2.2rem, 1.6rem + 2.2vw, 3.3rem);
  --t-h2: clamp(1.75rem, 1.35rem + 1.4vw, 2.4rem);
  --t-h3: 1.25rem;

  --radius: 6px;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
  --sec: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --maxw: 1200px;

  --dur: 200ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 1px 2px rgba(18, 48, 58, 0.06), 0 12px 32px -18px rgba(18, 48, 58, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font: 400 var(--t-body)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-head); color: var(--c-ink); margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
h1 { font-size: var(--t-h1); font-weight: 700; }
h2 { font-size: var(--t-h2); font-weight: 700; }
h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: var(--c-accent); text-underline-offset: 3px; }
a:hover { color: var(--c-accent-hover); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 62ch; }
.muted { color: var(--c-ink-soft); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--c-ink); color: #fff; padding: 0.6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: rectangular, one accent */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.25rem; border-radius: var(--radius);
  font: 600 1.02rem/1.2 var(--f-body); text-decoration: none; white-space: nowrap;
  border: 2px solid var(--c-accent); cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); color: #fff; }
.btn-secondary { background: transparent; color: var(--c-accent); }
.btn-secondary:hover { background: var(--c-accent-wash); color: var(--c-accent-hover); }
.btn-light { background: #fff; border-color: #fff; color: var(--c-ink); }
.btn-light:hover { background: var(--c-on-dark); border-color: var(--c-on-dark); color: var(--c-ink); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

/* Crisis bar */
.crisis-bar { background: var(--c-ink); color: var(--c-on-dark); font-size: var(--t-small); }
.crisis-bar .wrap { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.crisis-bar p { margin: 0; }
.crisis-bar strong { color: #fff; font-weight: 600; }
.crisis-bar a { color: #fff; font-weight: 600; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--c-line); }
.hdr-in { display: flex; align-items: center; gap: 1.75rem; height: 76px; }
.brand { margin-right: auto; display: block; }
.brand img { width: 184px; height: auto; }
.nav { display: flex; gap: 1.5rem; }
.nav a { color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--c-accent); border-bottom-color: var(--c-accent); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 0.9rem; border: 1.5px solid var(--c-line); border-radius: var(--radius); font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--c-accent); color: var(--c-accent); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, 86vw); background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.5rem; display: grid; }
.menu-panel a { padding: 0.75rem 0.8rem; color: var(--c-ink); text-decoration: none; font-weight: 600; border-radius: 4px; }
.menu-panel a:hover { background: var(--c-tint); }

/* Hero */
.hero { position: relative; min-height: min(78dvh, 760px); display: grid; align-items: center; overflow: hidden; background: var(--c-ink); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 34, 41, 0.86) 0%, rgba(12, 34, 41, 0.62) 45%, rgba(12, 34, 41, 0.12) 100%); }
.hero-in { position: relative; z-index: 1; padding-top: 4.5rem; padding-bottom: 7.5rem; }
.hero-copy { max-width: 50rem; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero-sub { color: var(--c-on-dark); font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.video-toggle {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 5.5rem;
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0 0.85rem;
  background: rgba(12, 34, 41, 0.55); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--radius);
  font: 600 0.88rem/1 var(--f-body); cursor: pointer;
}
.video-toggle:hover { background: rgba(12, 34, 41, 0.8); }
.video-toggle svg { width: 14px; height: 14px; fill: currentColor; }

/* Routing bar, overlapping the hero */
.route { position: relative; z-index: 3; margin-top: -4rem; }
.route-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--c-line); border-top: 4px solid var(--c-accent); border-radius: var(--radius); box-shadow: var(--shadow); }
.route-list li + li { border-left: 1px solid var(--c-line); }
.route-list a { display: grid; gap: 0.25rem; height: 100%; padding: 1.35rem 1.5rem; text-decoration: none; color: var(--c-ink); transition: background-color var(--dur) var(--ease); }
.route-list a:hover { background: var(--c-tint); }
.route-t { font: 600 1.15rem/1.25 var(--f-head); display: flex; justify-content: space-between; gap: 1rem; }
.route-t::after { content: "\2192"; color: var(--c-accent); transition: transform var(--dur) var(--ease); }
.route-list a:hover .route-t::after { transform: translateX(4px); }
.route-d { color: var(--c-ink-soft); font-size: var(--t-small); }

/* Credentials */
.creds { padding: var(--sec) 0 calc(var(--sec) * 0.8); }
.creds h2 { font-size: 1.35rem; margin-bottom: 1.5rem; }
.creds-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.1fr 1.1fr 0.9fr; gap: 1rem; align-items: stretch; }
.creds-row > li { display: flex; }
.creds-row .cred { width: 100%; }
.cred { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.4rem; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; color: var(--c-ink); text-decoration: none; }
a.cred { transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
a.cred:hover { border-color: var(--c-accent); box-shadow: var(--shadow); color: var(--c-ink); }
.cred img { flex: none; }
.cred-carf img { width: 76px; height: 76px; }
.cred-dbh { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.cred-dbh img { width: 190px; height: auto; }
.cred-text { font-size: var(--t-small); line-height: 1.4; color: var(--c-ink-soft); }
.cred-text strong { display: block; color: var(--c-ink); font-size: 1.02rem; margin-bottom: 0.15rem; }
.cred-peer { background: var(--c-tint); border-color: var(--c-tint); }
.cred-link { color: var(--c-accent); font-weight: 600; }

/* Programs */
.programs { padding: var(--sec) 0; background: var(--c-tint); }
.programs-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.75rem; }
.programs-head h2 { margin-bottom: 0.5rem; }
.programs-head p { margin: 0; color: var(--c-ink-soft); max-width: 46ch; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 4px; }
.seg button { font: 600 0.98rem/1 var(--f-body); color: var(--c-ink); background: transparent; border: 0; border-radius: 4px; min-height: 42px; padding: 0 1rem; cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.seg button:hover { background: var(--c-tint); }
.seg button[aria-pressed="true"] { background: var(--c-accent); color: #fff; }
.prog-status { font-size: var(--t-small); color: var(--c-ink-soft); margin: 0 0 0.75rem; min-height: 1.4em; }
.prog-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.prog-table th, .prog-table td { text-align: left; vertical-align: top; padding: 1.3rem 1.5rem; }
.prog-table thead th { font: 600 0.85rem/1.2 var(--f-body); color: var(--c-ink-soft); background: #F8FAFB; border-bottom: 1px solid var(--c-line); letter-spacing: 0.02em; }
.prog-table tbody tr + tr th, .prog-table tbody tr + tr td { border-top: 1px solid var(--c-line); }
.prog-table tbody th { width: 26%; }
.prog-name { font: 600 1.2rem/1.25 var(--f-head); color: var(--c-ink); display: block; }
.prog-table td p { margin: 0; color: var(--c-ink-soft); }
.ages { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.age { font-size: 0.86rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 4px; background: var(--c-accent-wash); color: var(--c-accent-hover); white-space: nowrap; }
.age-only { background: var(--c-ink); color: #fff; }
.prog-table tr[hidden] { display: none; }
.programs-foot { margin-top: 1.25rem; color: var(--c-ink-soft); }

/* Getting started */
.start { padding: var(--sec) 0; }
.start-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.start h2 { margin-bottom: 0.75rem; }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 1.75rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 1.1rem; }
.steps li::before { content: counter(step); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent-wash); color: var(--c-accent-hover); font: 700 1.1rem/1 var(--f-head); }
.steps h3 { margin: 0.45rem 0 0.3rem; }
.steps p { margin: 0; color: var(--c-ink-soft); }
.bring { background: var(--c-tint); border-radius: var(--radius); padding: 1.75rem; position: sticky; top: 110px; }
.bring h3 { margin-bottom: 0.9rem; }
.bring ul { margin: 0 0 1.25rem; padding-left: 1.2rem; }
.bring li { margin-bottom: 0.45rem; }
.bring li::marker { color: var(--c-accent); }
.bring .note { font-size: var(--t-small); color: var(--c-ink-soft); margin: 0; padding-top: 1rem; border-top: 1px solid var(--c-line); }

/* Peer-run statement band */
.peer { background: var(--c-ink); color: var(--c-on-dark); padding: var(--sec) 0; }
.peer-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.peer h2 { color: #fff; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); }
.peer p { color: var(--c-on-dark-soft); }
.peer p strong { color: #fff; font-weight: 600; }
.mission { margin: 1.5rem 0 0; padding-left: 1.1rem; border-left: 3px solid var(--c-accent-wash); color: #fff; font-size: 1.15rem; }

/* Referral partners */
.refer { padding: var(--sec) 0; }
.refer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.refer h2 { margin-bottom: 0.75rem; }
.partner-types { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.partner-types li { font-size: 0.95rem; padding: 0.4rem 0.8rem; border: 1px solid var(--c-line); border-radius: var(--radius); }
.contact-card { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); }
.contact-card h3 { margin-bottom: 1rem; }
.contact-card dl { margin: 0 0 1.25rem; display: grid; gap: 0.9rem; }
.contact-card dt { font-size: 0.85rem; font-weight: 600; color: var(--c-ink-soft); }
.contact-card dd { margin: 0.1rem 0 0; font-size: 1.1rem; font-weight: 600; }
.contact-card dd a { text-decoration: none; }
.contact-card .note { font-size: var(--t-small); color: var(--c-ink-soft); margin: 0; }

/* Location */
.visit { padding: 0 0 var(--sec); }
.visit-grid { display: grid; grid-template-columns: 1fr 1.4fr; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.visit-info { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--c-tint); }
.visit-info h2 { margin-bottom: 1.25rem; }
.visit-info address { font-style: normal; font-size: 1.15rem; margin-bottom: 1.25rem; }
.visit-info .btn { margin-bottom: 1.5rem; }
.visit-info p { color: var(--c-ink-soft); font-size: var(--t-small); margin: 0; }
.map { min-height: 360px; background: var(--c-tint-2); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* FAQ */
.faq-teaser { padding: var(--sec) 0; background: var(--c-tint); }
.faq-teaser-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq-teaser h2 { margin-bottom: 0.75rem; }
.qa { border-top: 1px solid var(--c-line); }
.qa:last-of-type { border-bottom: 1px solid var(--c-line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font: 600 1.12rem/1.35 var(--f-head); color: var(--c-ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--c-accent-wash); color: var(--c-accent-hover); font: 600 1.2rem/1 var(--f-body); transition: transform var(--dur) var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--c-accent); }
.qa-body { padding: 0 2.5rem 1.25rem 0; color: var(--c-ink-soft); }
.qa-body p:last-child, .qa-body ul:last-child { margin-bottom: 0; }
.qa-body ul { padding-left: 1.2rem; }

/* FAQ page */
.page-head { padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0 2rem; background: var(--c-tint); border-bottom: 1px solid var(--c-line); }
.page-head h1 { margin-bottom: 0.75rem; }
.page-head p { color: var(--c-ink-soft); max-width: 58ch; margin: 0; }
.faq-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); padding-top: 3rem; padding-bottom: var(--sec); align-items: start; }
.toc { position: sticky; top: 110px; }
.toc h2 { font-size: 0.95rem; color: var(--c-ink-soft); margin-bottom: 0.6rem; font-family: var(--f-body); letter-spacing: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--c-line); }
.toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.toc a:hover { color: var(--c-accent); border-left-color: var(--c-accent); }
.faq-group { margin-bottom: 3rem; }
.faq-group > h2 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.urgent { background: var(--c-ink); color: var(--c-on-dark); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); margin-bottom: 3rem; }
.urgent h2 { color: #fff; font-size: 1.6rem; margin-bottom: 0.4rem; }
.urgent > p { color: var(--c-on-dark-soft); }
.urgent-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.14); border-radius: var(--radius); overflow: hidden; }
.urgent-list li { background: var(--c-ink); padding: 1rem 1.1rem 1rem 0; }
.urgent-list li:nth-child(odd) { padding-left: 0; }
.urgent-list li:nth-child(even) { padding-left: 1.25rem; }
.urgent-num { display: block; font: 700 1.35rem/1.2 var(--f-head); color: #fff; text-decoration: none; }
a.urgent-num:hover { color: var(--c-accent-wash); }
.urgent-list span { font-size: var(--t-small); color: var(--c-on-dark-soft); }
.res-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.res-list a { display: block; height: 100%; padding: 1.1rem 1.25rem; border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; color: var(--c-ink); transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.res-list a:hover { border-color: var(--c-accent); background: #FAFCFC; }
.res-list strong { display: block; font-family: var(--f-head); font-weight: 600; margin-bottom: 0.2rem; }
.res-list span { font-size: var(--t-small); color: var(--c-ink-soft); }
.faq-cta { background: var(--c-tint); border-radius: var(--radius); padding: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-cta p { margin: 0; font: 600 1.2rem/1.3 var(--f-head); }

/* Footer */
.foot { background: var(--c-tint); border-top: 1px solid var(--c-line); padding: 3.5rem 0 2rem; font-size: var(--t-small); color: var(--c-ink-soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.foot-logo { background: #fff; border-radius: var(--radius); padding: 0.6rem 0.8rem; display: inline-block; margin-bottom: 1rem; }
.foot-logo img { width: 170px; height: auto; }
.foot h2 { font: 600 0.95rem/1.3 var(--f-body); color: var(--c-ink); margin-bottom: 0.75rem; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.foot a { color: var(--c-ink); }
.foot address { font-style: normal; line-height: 1.6; }
.foot-crisis strong { color: var(--c-ink); }
.foot-creds { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.foot-creds img { height: auto; }
.foot-by { display: flex; align-items: center; gap: 1.25rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); }
.foot-by-card { display: block; flex: none; width: 150px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; transition: transform var(--dur) var(--ease); }
.foot-by-card:hover { transform: translateY(-2px); }
.foot-by-video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.foot-by-text { margin: 0; display: grid; gap: 0.1rem; }
.foot-by-text a { font-weight: 600; }
.foot-legal { margin-top: 1.25rem; font-size: 0.85rem; }

.callbar { display: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav, .hdr .btn-primary { display: none; }
  .menu { display: block; }
  .creds-row { grid-template-columns: 1fr 1fr; }
  .cred-peer { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .route-list { grid-template-columns: 1fr; }
  .route-list li + li { border-left: 0; border-top: 1px solid var(--c-line); }
  .start-grid, .peer-grid, .refer-grid, .faq-teaser-grid, .visit-grid, .faq-layout { grid-template-columns: 1fr; }
  .bring, .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 0.4rem; border: 0; }
  .toc a { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 0.45rem 0.75rem; margin: 0; }
  .creds-row { grid-template-columns: 1fr; }
  .res-list, .urgent-list { grid-template-columns: 1fr; }
  .urgent-list li:nth-child(n) { padding-left: 0; }

  /* Program table becomes stacked rows */
  .prog-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prog-table, .prog-table tbody, .prog-table tr, .prog-table th, .prog-table td { display: block; width: 100%; }
  .prog-table tbody th { width: 100%; padding-bottom: 0.4rem; }
  .prog-table td { padding-top: 0.4rem; padding-bottom: 0.4rem; }
  .prog-table tbody tr { padding: 0.9rem 0; }
  .prog-table tbody tr + tr { border-top: 1px solid var(--c-line); }
  .prog-table tbody tr + tr th, .prog-table tbody tr + tr td { border-top: 0; }
  .prog-table td:last-child { padding-bottom: 1rem; }
}

@media (max-width: 640px) {
  .crisis-bar .wrap { font-size: 0.88rem; }
  .hdr-in { height: 64px; }
  .brand img { width: 150px; }
  .hero { min-height: 0; }
  .hero-in { padding-top: 3rem; padding-bottom: 6.5rem; }
  .hero-scrim { background: linear-gradient(180deg, rgba(12, 34, 41, 0.55) 0%, rgba(12, 34, 41, 0.88) 100%); }
  .hero-actions .btn { width: 100%; }
  .video-toggle { top: 0.75rem; bottom: auto; right: 0.75rem; min-height: 36px; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 0 0.5rem; font-size: 0.92rem; }
  .cred { flex-direction: row; }
  .cred-dbh img { width: 160px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-by { flex-direction: column; align-items: flex-start; }
  .foot { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .callbar {
    display: block; position: fixed; inset: auto 0 0 0; z-index: 40;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--c-line);
  }
  .callbar .btn { width: 100%; }
}

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

/* Form pages (Jotform embed) */
.form-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); padding-top: 2.5rem; padding-bottom: var(--sec); align-items: start; }
.form-frame { min-height: 900px; }
.form-frame iframe { display: block; width: 100%; min-height: 1100px; border: 0; }
.form-aside { position: sticky; top: 110px; display: grid; gap: 1rem; }
.aside-box { background: var(--c-tint); border-radius: var(--radius); padding: 1.5rem; }
.aside-box h2 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.aside-box p { color: var(--c-ink-soft); font-size: var(--t-small); }
.aside-box p:last-child { margin-bottom: 0; }
.aside-box .btn { width: 100%; margin-bottom: 0.75rem; }
.aside-urgent { background: var(--c-ink); color: var(--c-on-dark); }
.aside-urgent h2 { color: #fff; }
.aside-urgent p { color: var(--c-on-dark-soft); }
.aside-urgent a { color: #fff; font-weight: 600; }
@media (max-width: 820px) {
  .form-layout { grid-template-columns: 1fr; }
  .form-aside { position: static; }
}
.contact-card .btn { width: 100%; margin-bottom: 1rem; }

/* ===== v3: multi-page, honeycomb brand system ===== */
:root {
  --c-honey: #E2A93B;
  --c-honey-wash: #FBF0D9;
  --c-honey-ink: #6B4A0E;
  --hex-clip: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.nav { gap: 1.25rem; }
@media (max-width: 1180px) { .nav, .hdr .hdr-cta { display: none; } .menu { display: block; } }

/* Hexagon badge, drawn like the logo: teal outline, tinted fill */
.hex { position: relative; flex: none; display: inline-grid; place-items: center; width: 56px; height: 64px; background: var(--c-accent); clip-path: var(--hex-clip); }
.hex::before { content: ""; position: absolute; inset: 2px; background: var(--c-accent-wash); clip-path: var(--hex-clip); }
.hex i { position: relative; font-size: 1.7rem; color: var(--c-accent-hover); }
.hex-honey { background: var(--c-honey); }
.hex-honey::before { background: var(--c-honey-wash); }
.hex-honey i { color: var(--c-honey-ink); }
.hex-dark { background: var(--c-ink); }
.hex-dark::before { background: #DDE6E8; }
.hex-dark i { color: var(--c-ink); }
.hex-sm { width: 42px; height: 48px; }
.hex-sm i { font-size: 1.3rem; }
.hex-lg { width: 76px; height: 88px; margin-bottom: 1rem; }
.hex-lg i { font-size: 2.3rem; }

/* Honeycomb grid (6 cells, rows of 3 offset into a comb) */
.comb { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); }
.cell { grid-column: span 2; aspect-ratio: 0.866; position: relative; clip-path: var(--hex-clip); background: var(--c-accent); display: grid; place-content: center; text-align: center; padding: 0 12%; margin: 0 3%; }
.cell::before { content: ""; position: absolute; inset: 2px; clip-path: var(--hex-clip); background: #fff; z-index: 0; }
.cell > * { position: relative; z-index: 1; }
.cell:nth-child(1) { grid-column: 1 / span 2; }
.cell:nth-child(2) { grid-column: 3 / span 2; }
.cell:nth-child(3) { grid-column: 5 / span 2; }
.cell:nth-child(4) { grid-column: 2 / span 2; margin-top: -8%; }
.cell:nth-child(5) { grid-column: 4 / span 2; margin-top: -8%; }
.cell:nth-child(6) { grid-column: 6 / span 2; margin-top: -8%; }
.cell:nth-child(even)::before { background: var(--c-honey-wash); }
.cell-native { font: 700 clamp(1rem, 0.8rem + 0.8vw, 1.35rem)/1.2 var(--f-head); color: var(--c-ink); }
.cell-en { font-size: 0.85rem; color: var(--c-ink-soft); margin-top: 0.2rem; }
.comb-lg { max-width: 760px; margin: 0 auto 3rem; }
.comb-youth .cell i { font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); color: var(--c-accent-hover); }
.comb-youth .cell:nth-child(even) i { color: var(--c-honey-ink); }

/* Language band */
.lang-band { padding: var(--sec) 0; }
.lang-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.lang-grid h2 { margin-bottom: 0.75rem; }
.lang-grid .btn { margin-top: 0.5rem; }

/* Program cards (bento) */
.progs { padding: var(--sec) 0; background: var(--c-tint); }
.progs h2 { margin-bottom: 0.5rem; }
.prog-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 2rem; }
.pcard { grid-column: span 2; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-ink); text-decoration: none; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.pcard:hover { border-color: var(--c-accent); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--c-ink); }
.pcard p { color: var(--c-ink-soft); margin: 0; }
.pcard .ages { margin-top: auto; padding-top: 0.5rem; }
.prog-bento > .pcard:nth-child(1) { grid-column: span 3; }
.prog-bento > .pcard:nth-child(2) { grid-column: span 3; }
.pcard-feature { background: var(--c-ink); border-color: var(--c-ink); }
.pcard-feature h3, .pcard-feature:hover { color: #fff; }
.pcard-feature p { color: var(--c-on-dark-soft); }
.pcard-youth { background: var(--c-honey-wash); border-color: #F1DDAF; }
.prog-bento-4 > .pcard:nth-child(n) { grid-column: span 3; }
.prog-bento-3 > .pcard:nth-child(n) { grid-column: span 2; }
.prog-bento-3 > .pcard:nth-child(1) { grid-column: span 2; }

/* What-we-treat chips */
.treat-band { padding: var(--sec) 0 calc(var(--sec) * 0.6); }
.treat-band h2 { margin-bottom: 1.5rem; }
.treat-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.treat-chips a { display: flex; align-items: center; gap: 0.7rem; min-height: 64px; padding: 0.75rem 1rem; border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-ink); font-weight: 600; text-decoration: none; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.treat-chips a:hover { border-color: var(--c-accent); background: var(--c-tint); }
.treat-chips i { font-size: 1.6rem; color: var(--c-accent); }

.peer .mission { margin-top: 1.5rem; }
.peer .btn { margin-top: 0.5rem; }

/* Inner pages */
.page-head-prog .wrap { display: grid; justify-items: start; }
.page-head .ages { margin: 0.5rem 0 0; }
.head-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.page-head-youth { background: var(--c-honey-wash); border-bottom-color: #F1DDAF; }
.youth-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.page-head-comb { background: var(--c-tint) var(--hexpat, none); }
.prog-body { padding: calc(var(--sec) * 0.75) 0; }
.prog-body h2 { margin-bottom: 0.25rem; }
.prog-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 0.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--c-ink-soft); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.side { display: grid; gap: 1rem; position: sticky; top: 110px; }
.incl { list-style: none; padding: 0 !important; display: grid; gap: 1.1rem; margin: 1rem 0; }
.incl li { display: flex; gap: 1rem; align-items: flex-start; margin: 0; }
.incl h3 { margin-bottom: 0.2rem; font-size: 1.1rem; color: var(--c-ink); }
.incl p { margin: 0; }

/* Signs to look for */
.signs { padding: var(--sec) 0; background: var(--c-tint); }
.signs-youth { background: #fff; }
.signs-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.signs h2 { margin-bottom: 0.75rem; }
.sign-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.sign-list li { position: relative; padding: 1rem 1rem 1rem 3rem; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.signs-youth .sign-list li { background: var(--c-honey-wash); border-color: #F1DDAF; }
.sign-list li::before { content: ""; position: absolute; left: 1rem; top: 1.15rem; width: 18px; height: 20px; background: var(--c-accent); clip-path: var(--hex-clip); }
.signs-youth .sign-list li::before { background: var(--c-honey); }
.urgent-line { position: relative; margin: 2rem 0 0; padding: 1.1rem 1.25rem 1.1rem 3.25rem; background: var(--c-ink); color: var(--c-on-dark); border-radius: var(--radius); }
.urgent-line i { position: absolute; left: 1.1rem; top: 1.05rem; font-size: 1.5rem; color: var(--c-honey); }
.urgent-line a { color: #fff; font-weight: 600; }

/* Level of care steps */
.loc, .refer-how { padding: calc(var(--sec) * 0.75) 0; }
.loc h2, .refer-how h2 { margin-bottom: 1.5rem; }
.loc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: loc; }
.loc-step { position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.loc-step + .loc-step::before { content: "\2192"; position: absolute; left: -0.95rem; top: 2.2rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; background: #fff; border: 1px solid var(--c-line); border-radius: 50%; font-size: 0.9rem; color: var(--c-accent); z-index: 1; }
.loc-step p { color: var(--c-ink-soft); margin: 0; }
.loc-step a { font-weight: 600; }
.loc-out { background: var(--c-tint); }
.loc-note { margin-top: 1.25rem; }

/* What we treat page */
.treat-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); padding-top: 3rem; padding-bottom: var(--sec); align-items: start; }
.conditions { display: grid; gap: 1rem; }
.cond { display: flex; gap: 1.25rem; padding: 1.5rem; border: 1px solid var(--c-line); border-radius: var(--radius); scroll-margin-top: 110px; }
.cond h2 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.cond h3 { font-size: 0.95rem; color: var(--c-ink-soft); margin: 0.9rem 0 0.4rem; font-family: var(--f-body); }
.cond p { margin: 0; color: var(--c-ink-soft); }
.cond ul { margin: 0; padding-left: 1.1rem; color: var(--c-ink-soft); columns: 2; column-gap: 2rem; }
.cond li { margin-bottom: 0.3rem; break-inside: avoid; }
.cond-help { margin-top: 1rem; padding: 1.75rem; background: var(--c-tint); border-radius: var(--radius); }
.cond-help h2 { margin-bottom: 0.6rem; }

/* About */
.about-mission { padding: calc(var(--sec) * 0.75) 0 0; }
.mission-lg { font: 600 clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem)/1.3 var(--f-head); max-width: 30ch; color: var(--c-ink); padding-left: 1.25rem; border-left: 4px solid var(--c-honey); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.about-card { padding: 1.75rem; border: 1px solid var(--c-line); border-radius: var(--radius); }
.about-card h2 { font-size: 1.35rem; margin: 1rem 0 0.5rem; }
.about-card p { color: var(--c-ink-soft); margin: 0; }
.about-card:first-child { background: var(--c-honey-wash); border-color: #F1DDAF; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.contact-tile { display: grid; gap: 0.3rem; justify-items: start; padding: 1.5rem; border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-ink); text-decoration: none; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.contact-tile:hover { border-color: var(--c-accent); box-shadow: var(--shadow); color: var(--c-ink); }
.ct-k { font-size: 0.9rem; color: var(--c-ink-soft); margin-top: 0.6rem; }
.ct-v { font: 600 1.1rem/1.3 var(--f-head); word-break: break-word; }
.note-line { margin-top: 1.25rem; font-size: var(--t-small); }

/* Legal pages */
.legal { padding: 3rem 0 var(--sec); }
.legal-prose { max-width: 760px; }
.legal-callout { padding: 1.5rem; background: var(--c-tint); border-left: 4px solid var(--c-accent); border-radius: var(--radius); margin-bottom: 2rem; }
.legal-callout h2 { margin-top: 0 !important; }
.agency-list { display: grid; gap: 1rem; margin: 1rem 0; }
.agency-list > div { padding: 1.1rem 1.25rem; border: 1px solid var(--c-line); border-radius: var(--radius); }
.agency-list dt { font-weight: 600; color: var(--c-ink); margin-bottom: 0.3rem; }
.agency-list dd { margin: 0; color: var(--c-ink-soft); }

/* Map placeholder (loads only on consent or click) */
.map-ph { height: 100%; min-height: 360px; display: grid; place-content: center; justify-items: center; gap: 0.75rem; padding: 1.5rem; text-align: center; color: var(--c-ink-soft); font-size: var(--t-small); }

/* Footer legal row + linklike buttons */
.foot-legal-nav { padding: 1.25rem 0; border-top: 1px solid var(--c-line); }
.foot-legal-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.9rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.foot .linklike { color: var(--c-ink); }
.foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; }

/* Cookie notice */
.cookie { position: fixed; z-index: 60; left: 1rem; bottom: 1rem; max-width: 440px; background: #fff; border: 1px solid var(--c-line); border-top: 4px solid var(--c-accent); border-radius: var(--radius); box-shadow: 0 18px 50px -20px rgba(18, 48, 58, 0.55); }
.cookie-in { padding: 1.25rem 1.35rem; }
.cookie h2 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.cookie p { font-size: 0.92rem; color: var(--c-ink-soft); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-actions .btn { min-height: 42px; padding: 0.5rem 1rem; }

@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .treat-chips { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .lang-grid, .prog-grid, .signs-grid, .treat-layout, .youth-head { grid-template-columns: 1fr; }
  .side { position: static; }
  .prog-bento > .pcard:nth-child(n), .prog-bento-3 > .pcard:nth-child(n) { grid-column: span 6; }
  .loc-steps, .about-grid { grid-template-columns: 1fr; }
  .loc-step + .loc-step::before { content: "\2193"; left: 1.5rem; top: -0.95rem; }
  .sign-list { grid-template-columns: 1fr; }
  .comb-youth { max-width: 360px; }
}
@media (max-width: 640px) {
  .comb { grid-template-columns: repeat(5, 1fr); max-width: 340px; margin-inline: auto; }
  .cookie-in { padding: 1rem; }
  .cookie p { font-size: 0.86rem; margin-bottom: 0.75rem; }
  .cell:nth-child(n) { margin-top: 0; }
  .cell:nth-child(1) { grid-column: 1 / span 2; }
  .cell:nth-child(2) { grid-column: 3 / span 2; }
  .cell:nth-child(3) { grid-column: 2 / span 2; margin-top: -11.5%; }
  .cell:nth-child(4) { grid-column: 4 / span 2; margin-top: -11.5%; }
  .cell:nth-child(5) { grid-column: 1 / span 2; margin-top: -11.5%; }
  .cell:nth-child(6) { grid-column: 3 / span 2; margin-top: -11.5%; }
  .treat-chips, .contact-grid { grid-template-columns: 1fr; }
  .cond { flex-direction: column; }
  .cond ul { columns: 1; }
  .foot-grid { grid-template-columns: 1fr; }
  .cookie { left: 0.5rem; right: 0.5rem; bottom: 4.75rem; max-width: none; }
}

/* ===== v4: people photography with a honeycomb accent ===== */
.photo { position: relative; margin: 0; }
.photo img { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; display: block; }
.photo-wide img { aspect-ratio: 4 / 3; }
.photo-tall img { aspect-ratio: 3 / 4; }
.photo::after { content: ""; position: absolute; width: 46px; height: 53px; right: -12px; bottom: -14px; background: var(--c-honey); clip-path: var(--hex-clip); box-shadow: none; }
.photo::before { content: ""; position: absolute; z-index: 1; width: 30px; height: 35px; right: 30px; bottom: -20px; background: var(--c-accent); clip-path: var(--hex-clip); }
.photo-honey-left::after { right: auto; left: -12px; }
.photo-honey-left::before { right: auto; left: 30px; }

/* Page header with a photo */
.head-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.head-split .photo img { max-height: 420px; }

/* Home welcome band */
.welcome { padding: var(--sec) 0; }
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.welcome h2 { margin-bottom: 0.75rem; }
.welcome .head-actions { margin-top: 1.25rem; }
.side .photo { margin-bottom: 1.25rem; }
.about-photo { padding: calc(var(--sec) * 0.6) 0 0; }
.about-photo .photo img { max-height: 480px; }

@media (max-width: 820px) {
  .head-split, .welcome-grid { grid-template-columns: 1fr; }
  .photo::after { right: -6px; }
  .photo-honey-left::after { left: -6px; }
}
.contact-photo { max-width: 640px; margin: 2rem 0 0; }
.prose .photo { margin: 2rem 0; }
