/* ==== button ==== */
button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
  box-shadow: var(--ring-surface);
}
/* Standalone links (design/DESIGN.md "Interaction"): no line at rest; a 2px underline fades in on
   hover and keyboard focus. Color and weight never change. The line is always drawn but transparent
   at rest, so it can fade with the shared transition. Links inside a sentence keep a visible
   underline (base.css), so they stay findable in running text. */
:where(.text-link,.link-button,.footer-links a,.legal-links a,.footer-contact a,.referrals a,.provider-profile-details>summary),
.site-header .header-actions .button-secondary {
  font-weight: var(--weight-medium);
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: var(--transition-interactive);
}
:where(.text-link,.link-button,.footer-links a,.legal-links a,.footer-contact a,.referrals a,.provider-profile-details>summary):is(:hover,:focus-visible),
.site-header .header-actions .button-secondary:is(:hover,:focus-visible) {
  text-decoration-color: currentColor;
}
/* A button that acts but reads as a standalone link (e.g. Cookie Preferences). */
.link-button {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--color-brand);
  border-radius: var(--radius-md);
  background: var(--color-brand);
  color: var(--color-white);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  box-shadow: var(--shadow-control);
  transition: var(--transition-interactive),transform var(--motion-fast) var(--ease-out);
}
/* Buttons share the header button's size: 12px/24px padding, 12px sides on phones. */
@media (max-width:480px) {
  .button {
    padding-inline: var(--space-3);
  }
}
/* Phones: buttons are 40px tall with 8px top and bottom (phone density, tokens.css). */
@media (max-width:600px) {
  .button {
    min-height: 40px;
    padding-block: var(--space-2);
  }
}
.button:hover {
  box-shadow: var(--shadow-raised);
  background: var(--color-brand-hover);
  color: var(--color-white);
  text-decoration: none;
}
.button-secondary {
  color: var(--color-brand);
  border-color: var(--color-brand-muted);
  background: var(--color-white);
  box-shadow: var(--shadow-control);
}
.button-secondary:hover {
  color: var(--color-brand);
  background: var(--color-neutral-100);
  border-color: var(--color-brand);
}
.icon-button {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--control-size);
  height: var(--control-size);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text);
  box-shadow: var(--shadow-control);
  transition: var(--transition-interactive);
}
.icon-button:hover {
  background: var(--color-neutral-100);
  color: var(--color-text);
}
.back-to-top {
  position: fixed;
  right: max(24px,env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: var(--z-control);
  box-shadow: var(--shadow-control);
  opacity: 1;
  transition: opacity var(--motion-ui) var(--ease-out),display var(--motion-ui) allow-discrete,background-color var(--motion-ui) var(--ease-ui),box-shadow var(--motion-ui) var(--ease-ui);
}
.back-to-top[hidden] {
  display: none;
  opacity: 0;
  pointer-events: none;
}
.control-icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media print {
  .back-to-top {
    display: none;
  }
  .button {
    color: var(--color-black);
    background: var(--color-white);
  }
}
.button:active {
  box-shadow: none;
}
@media (prefers-reduced-motion:reduce) {
  .button {
    transition: none;
  }
}
.button:not(.button-secondary):focus-visible {
  background: var(--color-brand-hover);
}
.button:not(.button-secondary):active {
  background: var(--color-brand-pressed);
  box-shadow: var(--shadow-control);
}
.icon-button:hover {
  box-shadow: var(--shadow-raised);
}
@starting-style {
  .back-to-top:not([hidden]) {
    opacity: 0;
  }
}

/* ==== media ==== */
.media-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-brand-tint) url("../assets/heale-care.svg") center/cover;
  min-width: 0;
}
.media-placeholder::before {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  display: none;
}
.media-placeholder::after {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: -1;
  display: none;
  transform: scaleX(-1);
}
.media-placeholder span {
  display: none;
}
.media-placeholder:has(>img) {
  background: none;
  border: 0;
}
.media-placeholder>img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-placeholder>img[data-photo=room] {
  object-position: center 75%;
}

/* ==== card ==== */
.card {
  min-width: 0;
  padding: var(--card-padding,var(--space-6));
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}
/* Text inside white containers is the dark body color (#222) on every band (2026-11-25), like the
   hero tiles and the contact card; muted #444 stays for section intros outside containers. */
:is(.card,.faq-list details,.location-card) {
  --color-text-muted: var(--color-neutral-900);
}
/* Info containers (design/DESIGN.md "Interaction"): cards, tiles (links or not), location cards, and
   question panels share one hover. The fill never changes, so text contrast holds; the border darkens
   and the shadow rises, like Tailwind's hover:shadow-md. A container with a larger resting shadow
   keeps it through --hover-shadow. Provider cards use the outline-free hover in "Provider profile". */
:is(.card,.location-tile,.location-card,.faq-list details,.getting-care-questions details) {
  transition: var(--transition-interactive);
}
@media (hover:hover) {
  :root :is(.card,.location-tile,.location-card,.faq-list details,.getting-care-questions details):hover {
    border-color: var(--color-brand-muted);
    box-shadow: var(--hover-shadow,var(--shadow-raised));
  }
}
.section-head {
  max-width: 760px;
  margin: 0 auto var(--space-8);
  text-align: center;
}
.section-head>h2 {
  margin-bottom: var(--space-3);
}
.section-head>p {
  margin: 0;
  line-height: 1.6;
  color: var(--color-text-muted);
}
/* Every card in a grid is the same size: rows take the tallest card's height. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-auto-rows: 1fr;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
/* Card type (design/DESIGN.md "Type roles"): every card title is 20px medium, every card body
   15px at 1.6 in muted text. Compact cards (provider, title-only, tiles) have their own sizes. */
.card>h3 {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  line-height: 1.3;
}
.card>p {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-muted);
}
.feature-icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-number {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: .08em;
  color: var(--color-accent);
}
/* A small heading between two card grids in one section ("Types of Therapists", "Approaches"). */
/* Four cards: one row of four on desktop (2 x 2 at 960px, from the rule below), never three plus one. */
@media (min-width:961px) {
  .feature-grid:has(>li:last-child:nth-child(4)) {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
}
.feature-grid-title {
  margin: 0 0 var(--space-4);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
}
.feature-grid+.feature-grid-title {
  margin-top: var(--space-10);
}
/* Title-only card: a check icon and one short label. The label is plain text, not a heading (the list
   already sits under one), at the FAQ question size: 15px medium in the heading color. */
/* Compact like the FAQ rows (2026-11-25): 12px top and bottom, 16px sides, 10px between cards, and a
   20px check, so a two-line card is about 66px tall. */
.feature-grid:has(>.feature-card--title) {
  gap: var(--space-2-5);
}
/* .card.feature-card--title so the phone card padding (.card at 760px and below) never overrides it. */
.card.feature-card--title {
  --card-padding: var(--space-3) var(--space-4);
  flex-direction: row;
  align-items: center;
  gap: var(--space-2-5);
}
.feature-card--title>.feature-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
}
.feature-card--title>.feature-card-label {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  color: var(--color-heading);
  text-wrap: wrap;
}
@media (max-width:960px) {
  .feature-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:600px) {
  .feature-grid {
    grid-template-columns: minmax(0,1fr);
  }
}
.actions>.text-link {
  align-self: center;
  font-size: var(--text-action-link);
}
.card :is(h2,h3,h4,.text-link) {
  color: var(--color-brand);
}
@media (max-width:760px) {
  .card {
    --card-padding: var(--space-5);
  }
}
/* Phones: 16px card padding. */
@media (max-width:600px) {
  .card {
    --card-padding: var(--space-4);
  }
}

/* ==== service-list ==== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--space-12);
  align-items: stretch;
}
.service-media {
  aspect-ratio: var(--photo-ratio);
  min-height: 0;
  align-self: start;
  background-image: url("../assets/heale-growth.svg");
  border: 0;
  border-radius: var(--radius-lg);
}
.equal-rows {
  display: grid;
  grid-auto-rows: 1fr;
}
.service-list {
  container-type: inline-size;
  --pill-height: 30px;
  --pill-padding: var(--space-2);
  --pill-font-size: var(--text-xs);
  --pill-min-width: 136px;
  list-style: none;
}
.service-list li {
  border-bottom: 1px solid var(--color-border);
}
.service-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 100%;
  line-height: 1.35;
  font-weight: var(--weight-bold);
  text-decoration: none;
  transition: var(--transition-interactive);
}
.service-list .service-row {
  min-height: 64px;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-xl);
}
.service-title {
  flex: 1;
  min-width: 0;
}
.service-list .service-title {
  white-space: nowrap;
  font-weight: var(--weight-medium);
  font-size: clamp(var(--service-title-min),calc((100cqi - var(--service-pill-reserve) - var(--service-title-gap) - 2 * var(--space-2)) / var(--service-title-measure)),var(--service-title-max));
}
.service-row:hover,
.service-row:focus-visible {
  background: var(--color-neutral-100);
}
.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--pill-min-width,auto);
  height: var(--pill-height,28px);
  padding: 0 var(--pill-padding,var(--space-2-5));
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-pill);
  font-size: var(--pill-font-size,11px);
  line-height: 1;
  white-space: nowrap;
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  background: transparent;
  transition: var(--transition-interactive);
}
.tagged-row {
  display: flex;
  align-items: center;
}
.pill>.text-label {
  display: flex;
  align-items: center;
  align-self: stretch;
  line-height: 1.2;
  text-box-trim: none;
}
.service-row:hover .pill,
.service-row:focus-visible .pill {
  font-weight: var(--weight-medium);
  border-color: var(--color-accent);
  box-shadow: none;
  background: transparent;
}
@media (max-width:760px) {
  .service-grid {
    grid-template-columns: minmax(0,1fr);
    gap: var(--space-4);
  }
  .service-media {
    aspect-ratio: var(--photo-ratio);
    min-height: 0;
  }
  .service-list .service-row {
    min-height: 60px;
  }
}
@media (max-width:380px) {
  .service-list .service-row.tagged-row {
    gap: var(--space-2);
  }
}
.template-page .service-grid>div>p+p {
  margin-top: var(--space-4);
}
.template-page .service-grid>div>h3 {
  margin-bottom: var(--space-3);
}
.template-page .service-row>span[aria-hidden] {
  flex: none;
}
.template-page .service-list+p {
  margin-top: var(--space-4);
}
.service-list:has(>li>p) {
  grid-auto-rows: auto;
  align-content: start;
}
.service-list>li:has(>p) {
  padding-block: var(--space-3) var(--space-4);
}
.service-list>li:has(>p)>.service-row {
  height: auto;
  min-height: 44px;
  padding-block: var(--space-1-5);
}
.service-list>li:has(>p)>p {
  margin: var(--space-1) var(--space-2) 0;
  line-height: 1.6;
}
.service-list>li:has(>p) .service-title,
.split:not(.split--fit) .service-title {
  white-space: normal;
}
.split--media-end {
  align-items: start;
}
.split-body {
  min-width: 0;
}
.split-body>p {
  margin: 0 0 var(--space-4);
  line-height: 1.6;
}
.split-body>.service-list {
  margin: 0;
  padding: 0;
}
.split-body>.service-list+.v2-note {
  margin-top: var(--space-4);
}
.split--middle>.split-body {
  align-self: center;
}
.split-body>.actions {
  margin-top: var(--space-6);
}
.split .service-list {
  align-self: start;
  align-content: start;
  grid-auto-rows: minmax(80px,auto);
  margin-block: 0;
}
.split .service-list>li {
  min-height: 80px;
}
.split .service-list .service-row {
  min-height: 80px;
  padding-block: var(--space-4);
}
.split .service-media {
  width: min(100%,var(--split-media-width,400px));
  aspect-ratio: var(--split-media-ratio,5/4);
  min-height: 0;
}
/* Overlap diagram (design/DESIGN.md "Split" → Overlap): the photo slot of a Split holds a two-circle
   Venn diagram, one circle per service, drawn as one inline SVG. Each circle has its own color, and the
   lens where they overlap is a third; each circle holds only its service's icon (no text). It takes the photo's box (400 x 320 on desktop) and
   scales with it. Colors follow the band. On dark: a white circle with a brand icon, a mid-green circle
   with a white icon, and a mint lens. On white: mint, mid green, and brand. */
.overlap-diagram {
  --venn-a: var(--color-brand-tint);
  --venn-a-ink: var(--color-brand);
  --venn-b: var(--color-brand-light);
  --venn-b-ink: var(--color-white);
  --venn-both: var(--color-brand);
  width: min(100%,var(--split-media-width,400px));
  aspect-ratio: var(--split-media-ratio,5/4);
  align-self: center;
  justify-self: center;
}
/* Phones: a smaller diagram, so the copy beside it starts sooner. */
@media (max-width:600px) {
  .overlap-diagram {
    width: min(100%,260px);
  }
}
.section-band-dark .overlap-diagram {
  --venn-a: var(--color-white);
  --venn-both: var(--color-brand-tint);
}
.venn {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.venn-a {
  fill: var(--venn-a);
}
.venn-b {
  fill: var(--venn-b);
}
.venn-both {
  fill: var(--venn-both);
}
.venn-icon {
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.venn-icon-a {
  stroke: var(--venn-a-ink);
}
.venn-icon-b {
  stroke: var(--venn-b-ink);
}
/* Two short definitions under a Split paragraph: one outlined card per service, side by side,
   stacked on phones. */
.split-body>.split-compare {
  --compare-line: var(--color-neutral-300);
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--space-4);
  margin: 0;
}
.section-band-dark .split-body>.split-compare {
  --compare-line: color-mix(in srgb,var(--color-white) 35%,transparent);
}
.split-compare>div {
  padding: var(--space-4);
  border: 1px solid var(--compare-line);
  border-radius: var(--radius-md);
}
.split-compare dt {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
}
.split-compare dd {
  margin: var(--space-1) 0 0;
  font-size: var(--text-sm);
  line-height: 1.55;
}
@media (max-width:600px) {
  .split-body>.split-compare {
    grid-template-columns: minmax(0,1fr);
    gap: var(--space-4);
  }
}
@media (min-width:761px) {
  .split {
    grid-template-columns: minmax(0,var(--split-media-width,400px)) minmax(0,1fr);
  }
  .split--media-end {
    grid-template-columns: minmax(0,1fr) minmax(0,var(--split-media-width,400px));
  }
}

/* Service index: one column per service group, a summary panel on top and the group's services listed below.
   Columns share rows (subgrid), so the three panels are one height and the lists start on one line. */
.service-index {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-template-rows: auto auto;
  gap: var(--space-5) var(--space-8);
}
.service-index-col {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  min-width: 0;
}
/* Lists keep their own row height; a shorter group does not stretch to match the longest. */
.service-index-col>.service-list {
  align-self: start;
  grid-template-columns: minmax(0,1fr);
}
/* Long names wrap inside the column, as in a split. */
.service-index .service-title {
  white-space: normal;
}
@media (max-width:960px) {
  .service-index {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: none;
    gap: var(--space-10);
    width: min(100%,560px);
    margin-inline: auto;
  }
  .service-index-col {
    grid-row: auto;
    grid-template-rows: none;
    gap: var(--space-4);
  }
}
/* Summary panel ("soft tint"): a light brand-tint header for a service group. The icon sits in a
   white circle, with the title and one or two short sentences below it in dark text. */
.summary-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  /* Same padding and corners as a card. */
  padding: var(--card-padding,var(--space-6));
  border-radius: var(--radius-md);
  background: var(--color-brand-tint);
  color: var(--color-neutral-900);
}
.summary-panel>.feature-icon {
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-1);
  padding: var(--space-2);
  border-radius: 50%;
  background: var(--color-white);
  stroke: var(--color-brand-accent);
}
.summary-panel-title {
  margin: 0;
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  line-height: 1.3;
  color: var(--color-brand);
}
.summary-panel>p {
  margin: 0;
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  /* Text on mint uses the dark body color, same as the office tile addresses. */
  color: var(--color-neutral-900);
}
/* Compact service list: 56px rows, 16px names, inset by half a pill so rows end before the photo gap. */
.service-list.service-list--compact {
  grid-auto-rows: minmax(56px,auto);
}
.split-body>.service-list.service-list--compact {
  width: calc(100% - var(--pill-min-width) / 2);
}
.service-list.service-list--compact>li {
  min-height: 56px;
}
.service-list.service-list--compact .service-row {
  min-height: 56px;
  padding-block: var(--space-2-5);
}
.service-list.service-list--compact .service-title {
  font-size: var(--text-lg);
}
@media (max-width:760px) {
  .split--media-end>.service-media {
    order: -1;
  }
  .split-body>.service-list.service-list--compact {
    width: 100%;
  }
}
.icon-service-strip.balanced-grid>a>span {
  width: min(82px,100%);
  height: auto;
  aspect-ratio: 1;
}
.clinical-services-page .service-grid {
  gap: var(--space-8);
  align-items: stretch;
}
.clinical-services-page .service-grid>.media-placeholder {
  min-height: 260px;
  aspect-ratio: auto;
}
.clinical-services-page .service-list {
  margin: 0;
  min-width: 0;
}
.clinical-services-page .service-list>li {
  min-width: 0;
  padding: 0;
  border-bottom: 1px solid var(--color-border);
}
.clinical-services-page .service-list .service-title {
  font-size: var(--text-xl);
  line-height: 1.4;
  font-weight: var(--weight-medium);
  white-space: normal;
  text-box-trim: none;
}
.clinical-services-page #specialty-treatments .service-list {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 0;
  grid-auto-rows: 1fr;
}
@media (max-width:960px) {
  .clinical-services-page .service-grid {
    gap: var(--space-6);
  }
}
@media (max-width:760px) {
  .clinical-services-page .service-grid>.media-placeholder {
    min-height: 240px;
    aspect-ratio: 16/10;
  }
  .clinical-services-page #specialty-treatments .service-list {
    grid-template-columns: minmax(0,1fr);
    gap: 0;
    grid-auto-rows: auto;
  }
}

/* ==== content ==== */
.contact-copy>p {
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
}
.contact-layout {
  --contact-form-padding: var(--space-8);
  display: grid;
  grid-template-columns: var(--split-intro-columns);
  gap: var(--split-intro-gap);
  align-items: start;
}
.referrals {
  --referral-heading-gap: var(--space-3);
  --referral-label-gap: var(--space-1);
  --referral-group-gap: var(--space-3);
  margin-top: var(--space-6);
}
.referrals h3 {
  margin-bottom: var(--referral-heading-gap);
}
.referrals dl {
  margin: 0;
}
.referrals dt {
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--referral-label-gap);
}
.referrals dd {
  margin: 0 0 var(--referral-group-gap);
  overflow-wrap: anywhere;
  color: var(--color-text-muted);
}
.referrals dd:last-child {
  margin-bottom: 0;
}
/* Contact card (design/DESIGN.md "Contact"): the referral emails and fax sit in a white .card beside
   the form. Like other cards, the title is 18px brand green and the labels are brand green, while
   values stay dark body text. */
.contact-copy .card.referrals {
  --referral-group-gap: var(--space-3);
  --referral-label-gap: var(--space-0-5);
  margin-top: var(--space-8);
  padding: var(--space-6);
}
.contact-copy .card.referrals h3 {
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
}
/* Labels match their values' size (15px, --contact-copy-font-size); only weight and color differ. */
.contact-copy .card.referrals dt {
  font-size: var(--contact-copy-font-size);
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
}
.contact-copy .card.referrals dd {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--color-neutral-900);
}
.contact-copy .card.referrals dd>:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* The copy button is the height of the text line (24px), so it adds no height between label and
   value. It sits 4px after the text and 2px up, level with the letters rather than the line box. */
.contact-copy .card.referrals .copy-button {
  margin-inline-start: var(--space-1);
  translate: 0 calc(var(--space-0-5) * -1);
}
/* Copy button: a compact 24px icon button with an 18px icon after a value (Interaction table). The copy icon
   swaps to a check for a moment after a successful copy. */
.copy-button {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-neutral-600);
  cursor: pointer;
  transition: var(--transition-interactive);
}
.copy-button:hover {
  background: var(--color-neutral-100);
  color: var(--color-brand);
}
.copy-button:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
.copy-button>svg {
  grid-area: 1/1;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.copy-button .copy-done,
.copy-button.is-copied .copy-icon {
  visibility: hidden;
}
.copy-button.is-copied .copy-done {
  visibility: visible;
  color: var(--color-brand);
}
.contact-copy .card.referrals dd a {
  color: inherit;
}
.contact-copy {
  padding-top: var(--space-6);
  --contact-copy-font-size: var(--text-base);
  font-size: var(--contact-copy-font-size);
}
.contact-copy>p,
.contact-copy .referrals h3,
.contact-copy .referrals dt,
.contact-copy .referrals dd {
  font-size: var(--contact-copy-font-size);
}
@media (max-width:1050px) {
  .contact-layout {
    --contact-form-padding: var(--space-6);
  }
}
@media (max-width:760px) {
  .contact-layout {
    grid-template-columns: minmax(0,1fr);
    gap: var(--space-8);
  }
  .contact-copy {
    padding-top: 0;
  }
  .contact-layout {
    --contact-form-padding: var(--space-4);
  }
  .referrals {
    --referral-heading-gap: var(--space-2);
    --referral-label-gap: var(--space-1);
    --referral-group-gap: var(--space-2);
    margin-top: var(--space-4);
  }
}
.template-grid {
  display: grid;
  gap: var(--space-6);
}
.template-grid-three {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.template-grid>article {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.template-grid>article>h3 {
  margin-bottom: var(--space-3);
}
.template-grid>article>p+p {
  margin-top: var(--space-3);
}
.template-grid>article>.text-link {
  margin-top: var(--space-5);
}
.template-grid>article>.button {
  margin-top: auto;
}
.template-grid>article>p:last-of-type {
  margin-bottom: var(--space-6);
}
.template-grid+.actions {
  margin-top: var(--space-10);
}
@media (max-width:760px) {
  .template-grid-three {
    grid-template-columns: minmax(0,1fr);
  }
}
.inner-page .v2-reading,
.inner-page .v2-resource-copy {
  width: 100%;
  max-width: none;
  min-width: 0;
  line-height: 1.6;
}
.inner-page .v2-reading>p,
.inner-page .v2-resource-copy>p {
  max-width: none;
}
.v2-reading {
  width: 100%;
  max-width: none;
}
.v2-reading p+p {
  margin-top: var(--space-4);
}
.v2-reading>.text-link {
  display: inline-block;
  margin-top: var(--space-5);
}
.v2-resource-copy {
  width: 100%;
  max-width: none;
}
.v2-resource-copy h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
}
.v2-resource-copy h3:first-child {
  margin-top: 0;
}
.v2-resource-copy p+p {
  margin-top: var(--space-2-5);
}
.v2-cards {
  align-items: stretch;
}
.v2-cards>article {
  display: flex;
  flex-direction: column;
}
.v2-cards>article>p {
  margin: var(--space-3) 0 var(--space-5);
}
.v2-cards>article>.text-link {
  margin-top: auto;
  padding-top: var(--space-1);
}
.v2-note {
  margin-top: var(--space-5);
  color: var(--color-neutral-700);
  font-size: inherit;
}
.inner-page {
  --section-bottom: var(--space-12);
}
.inner-page main>.section {
  padding-bottom: var(--space-12);
}
.inner-page main>.section>.container>.v2-reading:last-child {
  margin-bottom: 0;
}
.inner-page .v2-cards>article>p:last-child {
  margin-bottom: 0;
}
@media (max-width:760px) {
  .inner-page main>.section {
    padding-bottom: var(--space-8);
  }
}
.balanced-tags {
  row-gap: 0!important;
}
.balanced-tags>:not(.collection-break) {
  margin-top: var(--space-1);
  margin-bottom: var(--space-1);
}
.balanced-tags>.collection-break {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  height: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  list-style: none;
  pointer-events: none;
}
.balanced-grid[data-balance-tracks] {
  grid-template-columns: repeat(var(--balance-tracks),minmax(0,1fr));
}
.balanced-grid>[data-balance-span] {
  grid-column: span var(--balance-span);
}
.seo-related {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.4rem;
  padding-left: 1.2rem;
  margin-block: 1.25rem 0;
}
.seo-related li {
  padding-left: .1rem;
}
.seo-related a {
  text-underline-offset: .2em;
}
[id^="seo-"] .v2-reading {
  width: 100%;
  max-width: none;
}
@media (max-width:760px) {
  .seo-related {
    display: block;
  }
  .seo-related li + li {
    margin-top: .75rem;
  }
}
.clinical-services-page {
  --section-bottom: var(--space-12);
  --section-heading-gap: var(--space-5);
}
.clinical-services-page main>.section {
  padding-block: var(--space-12);
}
.clinical-services-page main>.section>.container>h2 {
  margin-bottom: var(--space-5);
}
.clinical-services-page .v2-reading {
  margin: 0 0 var(--space-5);
  line-height: 1.6;
}
.clinical-services-page .v2-note {
  margin: var(--space-4) 0 0;
  line-height: 1.6;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
}
.clinical-services-page .v2-note+.v2-note {
  margin-top: var(--space-2);
}
.clinical-services-page .contact-layout {
  gap: var(--space-10);
  align-items: start;
}
.clinical-services-page .contact-copy>h2 {
  margin-bottom: var(--space-5);
}
.clinical-services-page .contact-copy .referrals {
  margin-top: var(--space-6);
}
@media (max-width:760px) {
  .clinical-services-page main>.section {
    padding-block: var(--space-8);
  }
  .clinical-services-page .contact-layout {
    gap: var(--space-7);
  }
}

/* ==== form ==== */
input {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
select {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition-interactive);
  width: 100%;
  border: 1px solid var(--color-brand-muted);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-2-5);
  background: var(--color-white);
  min-height: 40px;
}
textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: var(--transition-interactive);
  display: block;
  width: 100%;
  border: 1px solid var(--color-brand-muted);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-2-5);
  background: var(--color-white);
  resize: none;
  min-height: 80px;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
  box-shadow: var(--ring-surface);
}
.contact-layout>form {
  min-width: 0;
  width: 100%;
  padding: var(--contact-form-padding);
  /* Top gap above "* Required" is 3/4 of the side padding, matching the form's section rhythm. */
  padding-top: calc(var(--contact-form-padding) * .75);
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-overlay);
}
/* Call-first card (design/DESIGN.md "Contact"; COMPLIANCE.md): stands in for the intake form, so the
   site collects no client information. Two equal columns: the contact copy, then this card. */
.contact-layout:has(>.start-care) {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.contact-layout>.start-care {
  --card-padding: var(--space-8);
  --hover-shadow: var(--shadow-overlay);
  display: grid;
  justify-items: start;
  align-content: start;
  gap: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-overlay);
}
.start-care>h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
}
.start-care .start-care-phone {
  min-height: 52px;
  padding-inline: var(--space-8);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
}
.start-care .start-care-hours {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
}
.start-care>p:last-child {
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-neutral-200);
  justify-self: stretch;
}
@media (max-width:760px) {
  .contact-layout:has(>.start-care) {
    grid-template-columns: minmax(0,1fr);
  }
  .contact-layout>.start-care {
    --card-padding: var(--space-6);
  }
}
@media (max-width:600px) {
  .contact-layout>.start-care {
    --card-padding: var(--space-5);
  }
  .start-care .start-care-phone {
    justify-self: stretch;
    min-height: 48px;
  }
}
/* Form section rhythm (design/DESIGN.md "Contact form"): one gap above and below the
   required note, around each section divider, and under each section title.
   --form-gap is 18px (3/4 of 24px); --form-title-gap is 12px. */
form {
  --form-gap: calc(var(--space-6) * .75);
  --form-title-gap: var(--space-3);
}
.required-note {
  font-size: var(--text-2xs);
  color: var(--color-text-muted);
  margin-bottom: calc(var(--form-gap) - var(--space-1));
}
.form-row {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  align-items: end;
}
.three-fields {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.two-fields {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1-5);
  min-width: 0;
}
.field>label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.5;
}
legend {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.5;
  padding: 0;
}
input:not([type=checkbox]) {
  transition: var(--transition-interactive);
  width: 100%;
  min-width: 0;
  border: 1px solid var(--color-brand-muted);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-2-5);
  background: var(--color-white);
  color: var(--color-neutral-900);
  font-size: var(--text-sm);
  min-height: 40px;
  box-shadow: var(--shadow-inset);
}
select,
textarea {
  min-width: 0;
  color: var(--color-neutral-900);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-inset);
}
.select-control {
  position: relative;
}
.select-control select {
  appearance: none;
  padding-right: var(--space-12);
}
.select-control::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--color-brand);
  border-bottom: 2px solid var(--color-brand);
  transform: translateY(-75%) rotate(45deg);
  pointer-events: none;
}
textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}
input[type=checkbox] {
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  flex: none;
  margin: calc((1lh - var(--checkbox-size)) / 2) 0 0;
  cursor: pointer;
  accent-color: var(--color-brand);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  /* Option labels match field labels (13px); consent fine print is 11px (.consents). */
  font-size: var(--text-sm);
  line-height: 1.5;
  cursor: pointer;
}
.form-row.phone-email-row {
  align-items: start;
  row-gap: var(--space-2);
  margin-bottom: var(--space-1);
}
.sms-opt-in-label {
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  line-height: 1.5;
  align-self: start;
}
.field>.newsletter {
  font-size: var(--text-2xs);
  color: var(--color-text);
}
fieldset {
  padding: 0;
  margin: 0 0 var(--space-6);
  border: 0;
  min-width: 0;
}
legend {
  margin-bottom: var(--space-1-5);
}
.consents {
  margin-bottom: var(--space-3);
}
.consents .check {
  font-size: var(--text-2xs);
  color: var(--color-text);
}
.consents .check+.check {
  margin-top: var(--space-2);
}
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
}
.checkbox-row+.checkbox-row {
  margin-top: var(--space-3);
}
.referral-options {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--space-2) var(--space-4);
}
.form-actions {
  margin-top: var(--space-7);
}
@media (max-width:760px) {
  .form-row {
    gap: var(--space-4);
  }
  .field input[type=date] {
    font-size: var(--text-2xs);
    padding-inline: var(--space-1-5);
  }
  .form-actions .button {
    width: 100%;
  }
}
@media (max-width:380px) {
  .three-fields {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .three-fields .field:last-child {
    grid-column: 1/-1;
  }
  .referral-options {
    grid-template-columns: minmax(0,1fr);
  }
}
input:not([type=checkbox]):focus,
select:focus,
textarea:focus {
  border-color: var(--color-neutral-600);
  box-shadow: var(--ring-field);
}
/* ==== form sections ==== */
.form-section {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.form-section+.form-section {
  margin-top: var(--form-gap);
  padding-top: var(--form-gap);
  border-top: 1px solid var(--color-neutral-200);
}
/* Floated so a legend title sits inside the section like a label title, below the divider. */
.form-section-title {
  float: left;
  width: 100%;
  display: block;
  margin: 0 0 var(--form-title-gap);
  padding: 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1.5;
  color: var(--color-accent);
}
.form-section-title+* {
  clear: both;
}
.form-section>:is(.form-row,fieldset,textarea) {
  margin-block: 0;
}
.form-section>:not(.form-section-title)+:not(.form-section-title) {
  margin-top: var(--space-4);
}
.form-section>.phone-email-row+.consents {
  margin-top: var(--space-1);
}
.form-section+.form-actions {
  margin-top: var(--space-8);
}
.inquiry-service-columns {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: var(--space-4);
}
.inquiry-service-columns>.inquiry-service-group {
  min-width: 0;
  margin: 0;
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: var(--space-1-5);
}
.inquiry-services .inquiry-service-columns .inquiry-service-group-label {
  align-self: end;
  margin: 0;
}
.inquiry-service-columns .checkbox-row {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.inquiry-service-columns .check {
  min-width: 0;
  align-items: flex-start;
}
/* A label wraps inside its column, never into the next one (long one-word names break at a slash). */
.inquiry-service-columns .check>span {
  min-width: 0;
  overflow-wrap: anywhere;
}
/* Phones: two columns of service groups (was one), so the form is shorter. */
@media (max-width:600px) {
  .inquiry-service-columns {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: var(--space-4) var(--space-3);
  }
  .inquiry-service-columns>.inquiry-service-group {
    display: block;
    grid-row: auto;
  }
  .inquiry-services .inquiry-service-columns .inquiry-service-group-label {
    margin-bottom: var(--space-1-5);
  }
}
.intake-form .inquiry-service-group-label,
.inquiry-services .inquiry-service-group-label {
  font-size: var(--text-sm,13px);
  font-weight: var(--weight-regular);
  line-height: 1.4;
  color: var(--color-neutral-600);
  margin: 0 0 var(--space-1-5);
}
.inquiry-services .checkbox-row {
  align-items: flex-start;
}
.inquiry-locations .checkbox-row {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: var(--space-2) var(--space-4);
}
@media (max-width:600px) {
  .inquiry-locations .checkbox-row {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
.inquiry-locations .check {
  min-width: 0;
  align-items: flex-start;
}
.inquiry-locations .inquiry-telehealth {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.5;
}
#intake-form textarea::placeholder {
  color: var(--color-neutral-600);
  opacity: 1;
}
#intake-form input[type="date"]:invalid {
  color: var(--color-neutral-600);
}
#intake-form .inquiry-services .inquiry-telehealth {
  margin: 0;
}
.referral-layout {
  display: grid;
  grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr);
  gap: var(--space-12);
  align-items: start;
}
.referral-copy h3 {
  font-size: var(--text-xl);
  margin: var(--space-6) 0 var(--space-3);
}
.referral-copy p {
  line-height: 1.6;
  margin: 0 0 var(--space-5);
}
#referral-form {
  --color-text: var(--color-neutral-900);
  --color-text-muted: var(--color-neutral-600);
  color: var(--color-neutral-900);
  background: var(--color-white);
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  min-width: 0;
  font-size: var(--text-sm);
}
#referral-form fieldset {
  margin: 0;
  padding: 0 0 var(--space-6);
  border: 0;
  border-bottom: 1px solid var(--color-neutral-300);
}
#referral-form fieldset+fieldset {
  margin-top: var(--space-6);
}
#referral-form legend {
  color: var(--color-brand);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
}
.referral-form-row {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--space-4);
}
#referral-form .field {
  min-width: 0;
  margin: 0 0 var(--space-4);
}
#referral-form input:not([type=checkbox]):not([type=radio]) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font: inherit;
  color: var(--color-neutral-900);
  background: var(--color-white);
  min-height: 46px;
}
#referral-form select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font: inherit;
  color: var(--color-neutral-900);
  background: var(--color-white);
  padding-right: var(--space-10);
  min-height: 46px;
}
#referral-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font: inherit;
  color: var(--color-neutral-900);
  background: var(--color-white);
  resize: vertical;
  min-height: 100px;
}
#referral-form .select-control {
  display: block;
}
#referral-form .check {
  font-size: var(--text-sm);
  line-height: 1.5;
  align-items: flex-start;
}
#referral-form .check input {
  flex: none;
  margin-top: var(--space-1);
}
.referral-field-label {
  margin: 0 0 var(--space-2);
}
.referral-service-options {
  margin: var(--space-1) 0 var(--space-5);
}
#referral-form .inquiry-service-group-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--color-neutral-600);
  margin: 0 0 var(--space-1-5);
  line-height: 1.4;
}
.referral-unsure {
  margin-top: var(--space-4);
}
.referral-permission {
  margin: var(--space-5) 0;
}
#referral-form .button {
  font-size: var(--text-md);
}
#referral-status {
  margin: var(--space-4) 0 0;
  padding: var(--space-3);
  background: var(--color-neutral-100);
  line-height: 1.5;
  border-radius: var(--radius-sm);
}
@media (max-width:960px) {
  .referral-layout {
    grid-template-columns: minmax(0,1fr);
    gap: var(--space-7);
  }
}
@media (max-width:600px) {
  .referral-form-row {
    grid-template-columns: minmax(0,1fr);
    gap: 0;
  }
  #referral-form {
    padding: var(--space-6) var(--space-4);
  }
}
.referral-page .referral-section {
  padding-top: 150px;
}
.referral-page .referral-layout {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: var(--space-12);
  align-items: start;
}
.referral-copy h1 {
  font-size: var(--text-display);
  line-height: 1.2;
  margin: 0 0 var(--space-6);
}
.referral-copy .lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}
.referral-copy h2 {
  font-size: var(--text-2xl);
  margin: var(--space-8) 0 var(--space-3);
}
.referral-copy .button-secondary {
  color: var(--color-brand);
  border-color: var(--color-brand);
  background: transparent;
}
.referral-copy .referral-self-link {
  margin-top: var(--space-7);
}
.referral-panel {
  padding: var(--space-6);
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  min-width: 0;
  color: var(--color-neutral-900);
}
.referral-panel>h2 {
  font-size: var(--text-3xl);
  line-height: 1.35;
  margin: 0 0 var(--space-2-5);
  color: var(--color-brand);
}
.referral-panel-intro {
  line-height: 1.6;
  margin: 0 0 var(--space-5);
}
/* Referral details (COMPLIANCE.md: no referral form until a BAA-covered intake is chosen). Label
   and value rows like the contact card, each value with its copy button. */
.referral-send {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin: 0;
}
.referral-send dt {
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
}
.referral-send dd {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
}
.referral-send dd>:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.referral-send .copy-button {
  margin-inline-start: var(--space-1);
}
@media (max-width:480px) {
  .referral-send {
    grid-template-columns: minmax(0,1fr);
    gap: 0;
  }
  .referral-send dd+dt {
    margin-top: var(--space-3);
  }
}
.referral-panel #referral-form {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#referral-form .referral-form-row {
  display: block;
}
#referral-form .referral-step {
  border: 0;
  padding: 0;
  margin: 0;
}
#referral-form .referral-step[hidden],
.referral-navigation [hidden] {
  display: none;
}
#referral-form .referral-step legend {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--color-brand);
  margin-bottom: var(--space-4);
}
#referral-form .referral-step legend:focus {
  outline: none;
}
#referral-form .referral-step+fieldset {
  margin-top: 0;
}
#referral-form .field {
  margin-bottom: var(--space-4);
}
.referral-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.referral-progress {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.referral-progress p {
  font-size: var(--text-sm);
  margin: 0 0 var(--space-1-5);
}
.referral-progress progress {
  display: block;
  width: min(100%,150px);
  height: 6px;
  border: 0;
  border-radius: var(--radius-pill);
  margin: auto;
  accent-color: var(--color-brand);
  background: var(--color-brand-wash);
}
.referral-progress progress::-webkit-progress-bar {
  background: var(--color-brand-wash);
  border-radius: var(--radius-pill);
}
.referral-progress progress::-webkit-progress-value,
.referral-progress progress::-moz-progress-bar {
  background: var(--color-brand);
  border-radius: var(--radius-pill);
}
.referral-first-time {
  margin: 0 0 var(--space-4);
}
.referral-first-time>p {
  font-size: var(--text-sm);
  margin: 0 0 var(--space-2);
}
.referral-choice {
  display: flex;
  gap: var(--space-2);
}
.referral-choice label {
  display: flex;
  align-items: center;
  gap: var(--space-1-5);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-brand-muted);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  cursor: pointer;
}
.referral-choice label:has(:checked) {
  background: var(--color-brand);
  color: var(--color-white);
  border-color: var(--color-brand);
}
.referral-choice input {
  width: auto;
  min-height: 0;
  accent-color: var(--color-brand);
}
@media (max-width:960px) {
  .referral-page .referral-layout {
    grid-template-columns: minmax(0,1fr);
    gap: var(--space-8);
  }
  .referral-page .referral-section {
    padding-top: 130px;
  }
}
@media (max-width:600px) {
  .referral-page .referral-section {
    padding-top: 120px;
  }
  .referral-panel {
    padding: var(--space-6) var(--space-4);
  }
  .referral-navigation {
    gap: var(--space-2-5);
    flex-wrap: wrap;
  }
  .referral-navigation .button {
    padding-inline: var(--space-4);
  }
  .referral-copy h2 {
    margin-top: var(--space-6);
  }
}

/* ==== faq ==== */
.faq-list {
  --faq-inline-padding: var(--space-5);
  --faq-icon-width: 24px;
  --faq-icon-gap: var(--space-4);
  --faq-answer-bottom-space: var(--space-6);
  /* Questions are 15px body text in a 62px row (2026-11-25; was 16px in 72px). */
  --faq-summary-height: 60px;
  --faq-summary-padding: var(--space-5);
  --faq-answer-gap: var(--space-2);
  display: grid;
  gap: var(--space-2-5);
}
.faq-list details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: var(--transition-interactive);
}
.faq-list summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0,1fr) var(--faq-icon-width);
  align-items: center;
  gap: var(--faq-icon-gap);
  min-height: var(--faq-summary-height);
  padding: var(--faq-summary-padding) var(--faq-inline-padding);
  overflow-wrap: anywhere;
  list-style: none;
  font-weight: var(--weight-medium);
  font-size: var(--text-base);
  line-height: 1.5;
  transition: var(--transition-interactive);
  border-radius: inherit;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: var(--faq-icon-width);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  line-height: 1;
}
.faq-list details[open] summary::after {
  content: "\2212";
}
.faq-list details[open] summary {
  min-height: var(--faq-summary-height);
}
.faq-answer {
  padding: 0 calc(var(--faq-inline-padding) + var(--faq-icon-width) + var(--faq-icon-gap)) var(--faq-answer-bottom-space) var(--faq-inline-padding);
  overflow-wrap: anywhere;
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1.6;
}
.faq-answer a {
  color: var(--color-text);
}
.getting-care-section {
  --color-text: var(--color-white);
  --color-text-muted: var(--color-white);
  --color-heading: var(--color-white);
  background: var(--color-brand);
  color: var(--color-text);
}
.faq-split {
  display: grid;
  grid-template-columns: var(--split-intro-columns);
  gap: var(--split-intro-gap);
  align-items: start;
}
.faq-split-intro>p {
  line-height: 1.6;
}
.faq-split-intro .actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-7);
}
/* FAQ directory (design/DESIGN.md "Split" → FAQ directory): the FAQ split with a search box and topic
   buttons under the intro, and the questions in titled groups, like Tailwind UI's "FAQ with
   categories". The intro column stays in view while the questions scroll on wide screens. Colors
   follow the band: white controls on dark, brand controls on white. */
.faq-directory {
  --topic-line: var(--color-brand-muted);
  --topic-text: var(--color-brand);
  --topic-hover: var(--color-neutral-100);
  --topic-on-fill: var(--color-brand);
  --topic-on-text: var(--color-white);
}
.section-band-dark .faq-directory {
  --topic-line: color-mix(in srgb,var(--color-white) 45%,transparent);
  --topic-text: var(--color-white);
  --topic-hover: color-mix(in srgb,var(--color-white) 12%,transparent);
  --topic-on-fill: var(--color-white);
  --topic-on-text: var(--color-brand);
}
@media (min-width:961px) {
  .faq-directory>.faq-split-intro {
    position: sticky;
    top: var(--header-clearance);
  }
}
.faq-tools {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.faq-search {
  position: relative;
  display: block;
}
.faq-search>svg {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  width: 18px;
  height: 18px;
  translate: 0 -50%;
  fill: none;
  stroke: var(--color-neutral-600);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.faq-search>input {
  min-height: 48px;
  padding-left: var(--space-10);
  font-size: var(--text-md);
}
.faq-topics {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}
.faq-topic {
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--topic-line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--topic-text);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.2;
  cursor: pointer;
  transition: var(--transition-interactive);
}
.faq-topic:hover {
  background: var(--topic-hover);
}
.faq-topic[aria-pressed=true] {
  border-color: var(--topic-on-fill);
  background: var(--topic-on-fill);
  color: var(--topic-on-text);
}
.faq-topic:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
.faq-groups {
  display: grid;
  gap: var(--space-10);
  min-width: 0;
}
.faq-group[hidden],
.faq-groups details[hidden] {
  display: none;
}
.faq-group-title {
  margin: 0 0 var(--space-4);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}
.faq-status:empty {
  display: none;
}
.faq-status,
.faq-empty {
  margin: 0;
  font-size: var(--text-sm);
}
.faq-empty a {
  color: inherit;
}
@media (max-width:960px) {
  .faq-topics {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
.getting-care-section .button {
  background: var(--color-white);
  color: var(--color-brand);
  border-color: var(--color-white);
}
.getting-care-section .button-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}
.getting-care-section .button:hover {
  background: var(--color-neutral-100);
  color: var(--color-brand);
  border-color: var(--color-neutral-100);
}
.getting-care-questions details {
  --color-text: var(--color-neutral-900);
  --color-text-muted: var(--color-neutral-900);
  color: var(--color-text);
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  background: var(--color-white);
}
@media (max-width:760px) {
  .faq-split {
    grid-template-columns: minmax(0,1fr);
    gap: var(--space-8);
  }
}
.template-page :is(.faq-list)+.button {
  margin-top: var(--space-6);
}
.section:has(.faq-list) {
  padding-top: var(--section-bottom);
  padding-bottom: var(--section-bottom);
}
.clinical-services-page #common-questions .faq-list {
  margin: 0;
}
.getting-care-section .button:not(.button-secondary):active {
  background: var(--color-neutral-200);
  color: var(--color-brand);
}
.getting-care-section .button:not(.button-secondary):focus-visible {
  background: var(--color-neutral-100);
  color: var(--color-brand);
}
.faq-list details[open] summary {
  padding-bottom: var(--faq-summary-padding);
}
@media (prefers-reduced-motion:reduce) {
  details::details-content {
    transition: none!important;
    animation: none!important;
  }
}

/* ==== steps ==== */
.process-section {
  background: var(--color-brand);
  color: var(--color-white);
}
.process-section>div>p {
  color: var(--color-white);
}

.model-letter {
  display: grid;
  place-items: center;
  width: var(--marker-size);
  height: var(--marker-size);
  border-radius: 50%;
  line-height: 1;
  position: relative;
}

.mission-copy {
  font-weight: var(--weight-medium);
  max-width: 640px;
  color: var(--color-text-muted);
}
#model .mission-copy {
  color: var(--color-white);
}
/* Our Model (homepage): five compact cards in one row, wider than the text column (option B in
   concepts/saved/homepage-model). The letter sits beside the title. Each card is a two-row subgrid of the
   list, so every title row is the same height and every description starts on the same line. */
.model-grid {
  --marker-size: 36px;
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  grid-template-rows: auto auto;
  gap: var(--space-3);
  width: min(1200px,calc(100vw - 2 * var(--page-gutter)));
  margin: var(--space-8) 0 0 50%;
  translate: -50% 0;
  list-style: none;
}
.model-grid>li.card {
  --card-padding: var(--space-5);
  display: grid;
  grid-row: span 2;
  grid-template-columns: auto minmax(0,1fr);
  grid-template-rows: subgrid;
  align-items: center;
  gap: var(--space-3);
}
.model-letter {
  background: var(--color-neutral-100);
  color: var(--color-brand);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-control);
}
/* Compact card title (18px, the person-name size) so all five fit one row. */
.model-grid>li.card>h3 {
  font-size: var(--text-xl);
}
.model-grid>li.card>p {
  grid-column: 1/-1;
  align-self: start;
  font-size: var(--text-md);
}
@media (max-width:960px) {
  .model-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
/* Phones: one compact row per value. A 28px letter sits left of both the title and the description,
   so the description no longer takes its own full-width row under the letter. */
@media (max-width:600px) {
  .model-grid {
    --marker-size: 28px;
    grid-template-columns: minmax(0,1fr);
    gap: var(--space-2);
    margin-top: var(--space-5);
  }
  .model-grid>li.card {
    --card-padding: var(--space-3) var(--space-4);
    grid-row: auto;
    grid-template-rows: auto auto;
    align-items: start;
    gap: var(--space-0-5) var(--space-3);
  }
  .model-letter {
    grid-row: 1/3;
    font-size: var(--text-base);
  }
  .model-grid>li.card>h3 {
    font-size: var(--text-lg);
    line-height: 1.75;
  }
  .model-grid>li.card>p {
    grid-column: 2;
  }
}
@media print {
  .process-section {
    color: var(--color-black);
    background: var(--color-neutral-100);
  }
  .process-section p {
    color: var(--color-neutral-900);
  }
}

@media (min-width:961px) {
  .model-intro {
    text-align: center;
  }
  .model-intro .mission-copy {
    margin-inline: auto;
  }
}

/* ==== insurance ==== */
.insurance-intro {
  margin-bottom: var(--space-10);
}
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: var(--space-1) var(--space-2-5);
  list-style: none;
}
.insurance-grid li {
  grid-column: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}
.insurance-grid img {
  display: block;
  width: 100%;
  height: 72px;
  object-position: center;
  object-fit: contain;
}
.coverage-action {
  margin-top: var(--space-12);
  text-align: center;
}
@media (max-width:960px) {
  .insurance-intro {
    margin-bottom: var(--space-6);
  }
  .coverage-action {
    margin-top: var(--space-8);
  }
  .insurance-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .insurance-grid li {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
.insurance-grid .insurance-name {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
  min-width: 0;
  font: 600 clamp(16px,2.2vw,26px) Inter,Arial,sans-serif;
  white-space: nowrap;
  color: var(--color-brand);
}
.insurance-grid .champva-wordmark {
  font-family: Arial,Helvetica,sans-serif;
  font-size: clamp(20px,2.6vw,32px);
  letter-spacing: -.04em;
  filter: grayscale(1);
  transition: filter var(--motion-ui) var(--ease-out),transform var(--motion-ui) var(--ease-out);
}
.champva-champ {
  color: #188baa;
  font-weight: var(--weight-regular);
  letter-spacing: -.02em;
}
.champva-text {
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}
.champva-text>span {
  display: inline;
  vertical-align: baseline;
  line-height: inherit;
  font-family: inherit;
  font-size: inherit;
}
.champva-va {
  color: #003f72;
  font-weight: 900;
  font-style: normal;
}
.insurance-grid li:hover .champva-wordmark {
  filter: grayscale(0);
  transform: scale(1.05);
}
@media (prefers-reduced-motion:reduce) {
  .insurance-grid .champva-wordmark {
    transition: none;
  }
  .insurance-grid li:hover .champva-wordmark {
    transform: none;
  }
}
.insurance-grid .ambetter-wordmark {
  filter: brightness(0) opacity(.65);
}
.insurance-grid li:hover .ambetter-wordmark {
  filter: brightness(0) saturate(100%) invert(18%) sepia(98%) saturate(3561%) hue-rotate(312deg) brightness(86%) contrast(95%);
}
.insurance-grid img.evernorth-wordmark {
  filter: grayscale(1) brightness(.25);
}
.insurance-grid li:hover img.evernorth-wordmark {
  filter: brightness(.25);
}
@media (min-width:761px) and (max-width:960px) {
  .insurance-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
}
/* Phones: four smaller logos per row with 4px between rows, every row the same height (the CHAMPVA
   wordmark included), so the list fits in about one screen. collection-balance.js evens the last row. */
@media (max-width:600px) {
  .insurance-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: var(--space-1) var(--space-2);
  }
  .insurance-grid li {
    min-height: 36px;
    padding: 0;
  }
  .insurance-grid img,
  .insurance-grid .insurance-name {
    height: 30px;
  }
  .insurance-grid .champva-wordmark {
    font-size: var(--text-md);
  }
}
.insurance-grid>li {
  min-width: 0;
}
.insurance-compact-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: center;
  gap: var(--space-8);
}
.insurance-compact-copy {
  min-width: 0;
}
.insurance-compact-copy h2 {
  margin: 0 0 var(--space-4);
}
.insurance-compact-copy p {
  margin: 0;
  line-height: 1.6;
  font-weight: var(--weight-medium);
}
.insurance-compact-copy .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-5);
  margin-top: var(--space-5);
}
.insurance-compact-logos {
  list-style: none;
  margin: 0;
  padding: var(--space-4);
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: var(--space-3) var(--space-4);
  background: transparent;
  border: 0;
  min-width: 0;
}
.insurance-compact-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 64px;
}
.insurance-compact-logos img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: 56px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter var(--motion-ui) var(--ease-out),transform var(--motion-ui) var(--ease-out);
}
.insurance-compact-logos .optum-wordmark {
  width: 88%;
  height: auto;
  aspect-ratio: 2500 / 724;
  object-fit: cover;
}
.insurance-compact-logos .evernorth-wordmark {
  filter: grayscale(1) brightness(.25);
}
@media (hover:hover) {
  .insurance-compact-logos li:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
  }
  .insurance-compact-logos li:hover .evernorth-wordmark {
    filter: brightness(.25);
  }
}
@media (max-width:760px) {
  .insurance-compact-layout {
    grid-template-columns: minmax(0,1fr);
    gap: var(--space-6);
  }
  .insurance-compact-logos {
    gap: var(--space-2-5) var(--space-4);
    padding: var(--space-3);
  }
}
@media (max-width:480px) {
  .insurance-compact-logos {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (prefers-reduced-motion:reduce) {
  .insurance-compact-logos img {
    transition: none;
    transform: none;
  }
}
.insurance-grid img {
  filter: grayscale(1);
  transform: scale(1);
  transition: filter var(--motion-ui) var(--ease-out),transform var(--motion-ui) var(--ease-out);
}
@media (hover:hover) {
  .insurance-grid li:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
  }
}
.insurance-grid li:focus-within img {
  filter: grayscale(0);
  transform: scale(1.05);
}
@media (prefers-reduced-motion:reduce) {
  .insurance-grid li:hover img,
  .insurance-grid li:focus-within img {
    transform: none;
  }
}

/* ==== header ==== */
.skip-link {
  position: absolute;
  left: 24px;
  top: -80px;
  z-index: var(--z-skip);
  padding: var(--space-3);
  background: var(--color-white);
}
.skip-link:focus {
  top: 12px;
}
/* Overlay surface (design/DESIGN.md "Header"): the header bar and its dropdowns share one edge,
   a white hairline and the overlay shadow, with no grey outline. */
.site-header,
.nav-dropdown {
  border: 1px solid var(--color-white);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-overlay);
}
.site-header {
  position: fixed;
  inset: 18px clamp(24px,2.5vw,40px) auto;
  z-index: var(--z-header);
  padding: var(--space-3) var(--space-6);
  transition: transform var(--motion-panel) var(--ease-out),box-shadow var(--motion-ui) var(--ease-ui);
}
.header-inner {
  --header-control-gap: var(--space-3);
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.header-inner>.brand {
  justify-self: start;
}
.header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: var(--header-control-gap);
}
.header-actions .button {
  white-space: nowrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-brand);
  letter-spacing: normal;
  font-size: var(--text-4xl);
  line-height: 1;
  font-weight: var(--weight-bold);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  flex: none;
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 50%;
  background: var(--color-brand);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px,3vw,40px);
}
.site-nav>a {
  font-weight: var(--weight-regular);
  text-decoration: none;
}
.site-nav>a:hover {
  text-decoration: none;
}
.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-2xl);
}
.site-header.header-scroll-hidden:not(:focus-within) {
  transform: translateY(calc(-100% - 24px));
}
.site-header .header-inner {
  width: 100%;
  max-width: none;
  min-height: 44px;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: var(--space-8);
}
.site-header .brand {
  font-size: var(--text-4xl);
  font-weight: var(--weight-medium);
  gap: var(--space-2-5);
  color: var(--color-black);
}
.site-header .brand-mark {
  width: 52px;
  height: 52px;
  background: transparent;
  border-radius: 0;
}
.site-header .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.site-header .site-nav {
  gap: var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}
.site-header .nav-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-semibold);
}
.site-header .nav-trigger:hover,
.site-header .nav-trigger[aria-expanded=true] {
  color: var(--color-text);
}
.site-header .site-nav .nav-menu>.nav-dropdown {
  left: 0;
  right: auto;
}
.site-header .nav-trigger svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-header .nav-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.site-header .header-actions {
  gap: var(--space-6);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
}
.site-header .header-actions .button-secondary {
  padding-inline: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
/* Patient Portal is a standalone link (shared link rule at the top of this file). */
.site-header .header-actions .button-secondary:hover {
  color: var(--color-brand);
  background: transparent;
  box-shadow: none;
}
@media (min-width:961px) and (max-width:1200px) {
  .site-header {
    padding-inline: var(--space-5);
  }
  .site-header .header-inner {
    gap: var(--space-4);
  }
  .site-header .brand {
    font-size: var(--text-3xl);
  }
  .site-header .brand-mark {
    width: 44px;
    height: 44px;
  }
  .site-header .site-nav {
    gap: var(--space-3);
  }
  .site-header .nav-trigger {
    gap: var(--space-1-5);
    white-space: nowrap;
  }
  .site-header .header-actions {
    gap: var(--space-4);
  }
  .site-header .header-actions .button {
    padding-inline: var(--space-4);
  }
  .site-header .header-actions .button-secondary {
    padding-inline: 0;
  }
}
@media (max-width:1150px) {
  .site-header .header-inner,
  .site-header .site-nav,
  .site-header .header-actions {
    gap: var(--space-4);
  }
}
@media (max-width:960px) {
  .site-header .header-inner {
    padding-block: 0;
  }
  /* The open menu scrolls inside itself, starting at the top. Centering it pushed an open
     Services list above the menu's top edge, where it could not be scrolled to (2026-11-24). */
  .site-header .site-nav {
    gap: 0;
    justify-content: flex-start;
    max-height: calc(100svh - 110px);
    overflow: auto;
    overscroll-behavior: contain;
  }
  .site-header .nav-trigger {
    width: 100%;
    min-height: 44px;
    padding-block: var(--space-2-5);
    justify-content: space-between;
  }
  /* While the menu is open (site.js sets html.menu-open) the page behind it stays put, and a dim
     layer separates the white menu from the white page. Tapping the dim layer closes the menu. */
  html.menu-open {
    overflow: hidden;
  }
  html.menu-open body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-header) - 1);
    background: var(--color-scrim);
  }
}
@media (max-width:600px) {
  .site-header {
    inset: 12px 18px auto;
    padding: var(--space-4) var(--space-4);
  }
  .site-header .header-inner {
    min-height: 44px;
    gap: var(--space-3);
  }
  .site-header .brand {
    font-size: var(--text-3xl);
    gap: var(--space-2);
  }
  .site-header .brand-mark {
    width: 36px;
    height: 36px;
  }
}
.footer-contact .brand {
  font-size: var(--text-4xl);
  margin-bottom: var(--footer-brand-gap);
}
.footer-contact .brand-mark {
  width: 44px;
  height: 44px;
  background: transparent;
  border-radius: 0;
}
.footer-contact .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
@media (max-width:1050px) {
  .site-nav {
    gap: var(--space-6);
  }
}
@media (max-width:960px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    padding-block: var(--space-4);
    gap: var(--header-control-gap);
  }
  .menu-toggle {
    display: block;
    order: 2;
    margin-left: 0;
  }
  .site-nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav>a {
    padding: var(--space-3) 0;
  }
  .js .site-nav[hidden] {
    display: none;
    pointer-events: none;
  }
  .header-actions {
    order: 1;
    width: auto;
    margin-left: auto;
  }
  .header-actions .button {
    flex: none;
  }
}
@media (max-width:760px) {
  .header-inner {
    min-height: 76px;
  }
  .site-nav {
    padding-top: var(--space-4);
  }
}
@media (max-width:480px) {
  .header-inner>.brand {
    flex-basis: auto;
  }
  .site-nav>.header-actions {
    margin: var(--space-2) 0 0;
    width: 100%;
    flex-wrap: wrap;
  }
  .site-nav>.header-actions .button {
    flex: 1;
  }
}
@media print {
  .menu-toggle {
    display: none;
  }
  .site-nav {
    display: flex!important;
  }
}
.nav-menu {
  position: relative;
}
.nav-trigger {
  border: 0;
  padding: var(--space-3) 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-weight: var(--weight-regular);
  white-space: nowrap;
  text-decoration: none;
}
.nav-trigger:hover,
.nav-trigger[aria-expanded=true] {
  color: var(--color-text);
  text-decoration: none;
}
/* Dropdown spacing (design/DESIGN.md "Header"): every menu uses the same panel padding and row
   padding, so text sits 24px in from the panel edge and from any column divider. */
.nav-dropdown {
  --nav-panel-pad: var(--space-4) var(--space-3);
  --nav-row-pad: var(--space-2) var(--space-3);
  position: absolute;
  top: 100%;
  left: 0;
  z-index: var(--z-dropdown);
  display: flex;
  gap: var(--space-3);
  min-width: 220px;
  padding: var(--nav-panel-pad);
  opacity: 1;
  transform: translateY(0);
}
.nav-dropdown[hidden] {
  display: none;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}
.nav-dropdown ul {
  list-style: none;
  min-width: 0;
}
.nav-dropdown a {
  display: block;
  padding: var(--nav-row-pad);
  line-height: 1.4;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition-interactive);
}
.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: var(--color-neutral-100);
  text-decoration: none;
}
.nav-menu:last-child>.nav-dropdown {
  right: 0;
  left: auto;
}
/* Services dropdown: three columns, one per homepage service group (icon, group heading, service rows).
   Each column is as wide as its longest name. Columns are subgrids of one five-row grid
   (heading + up to four services), so headings and row lines line up across columns. */
.nav-dropdown-services {
  display: grid;
  grid-template-columns: repeat(3,auto);
  grid-template-rows: repeat(5,auto);
  gap: 0;
  width: max-content;
  max-width: calc(100vw - 48px);
}
.nav-dropdown-services>ul {
  display: grid;
  grid-row: 1/-1;
  grid-template-rows: subgrid;
  margin: 0;
  padding: 0;
}
/* Divider centered in a 24px gutter: text is 24px from the divider on both sides. */
.nav-dropdown-services>ul+ul {
  margin-left: var(--space-3);
  padding-left: var(--space-3);
  border-left: 1px solid var(--color-neutral-200);
}
.nav-dropdown-services .nav-category-link {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: var(--space-2) var(--space-3);
  padding: var(--nav-row-pad);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  color: var(--color-heading);
}
/* Icon and "See All" share the top row; the group name gets the full column width below. */
.nav-dropdown-services .nav-category-link>.feature-icon {
  grid-row: 1;
  grid-column: 1;
}
.nav-dropdown-services .nav-category-link>.nav-see-all {
  grid-row: 1;
  grid-column: 2;
  align-self: center;
}
.nav-dropdown-services .nav-category-link>span:not(.nav-see-all) {
  grid-row: 2;
  grid-column: 1/-1;
}
/* One hairline per column, under the group heading; service rows have no dividers. */
.nav-dropdown-services>ul>li:nth-child(2) {
  border-top: 1px solid var(--color-neutral-200);
}
.nav-dropdown-services>ul>li:not(:first-child)>a {
  font-weight: var(--weight-medium);
}
@media (min-width:961px) {
  /* Centered under the whole header bar (not the trigger), so it never runs off screen. */
  .site-header .site-nav .nav-menu:has(>.nav-dropdown-services) {
    position: static;
  }
  .site-header .site-nav .nav-menu>.nav-dropdown-services {
    top: calc(100% + var(--space-2));
    left: 50%;
    translate: -50% 0;
  }
  .nav-dropdown:not(.nav-dropdown-services) {
    width: max-content;
    min-width: 0;
    max-width: calc(100vw - 48px);
  }
  .nav-dropdown:not(.nav-dropdown-services)>ul {
    flex: 1;
    margin: 0;
    padding: 0;
  }
  .site-header .site-nav {
    align-self: stretch;
    align-items: stretch;
  }
  .site-header .nav-menu {
    display: flex;
    align-items: center;
  }
  .site-header .nav-dropdown {
    top: calc(100% + 21px);
  }
  .site-header .nav-dropdown::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    top: -22px;
    height: 22px;
  }
}
@media (max-width:960px) {
  /* In the mobile menu the dropdown is open flat (no panel padding), with compact rows (2026-11-24):
     6px row padding, and each group heading puts its icon on the same line as the name. */
  .nav-dropdown-services {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: none;
    gap: var(--space-2);
    width: 100%;
    max-width: none;
  }
  .site-nav .nav-dropdown {
    --nav-row-pad: var(--space-1-5) var(--space-3);
  }
  .nav-dropdown-services .nav-category-link {
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
  }
  .nav-dropdown-services .nav-category-link>span:not(.nav-see-all) {
    grid-row: 1;
    grid-column: 2;
  }
  .nav-dropdown-services .nav-category-link>.nav-see-all {
    grid-column: 3;
  }
  .nav-dropdown-services>ul {
    display: block;
    grid-row: auto;
  }
  .nav-dropdown-services>ul+ul {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
  .nav-menu {
    width: 100%;
  }
  .nav-trigger {
    width: 100%;
    text-align: left;
  }
  .nav-dropdown {
    position: static;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: var(--space-2);
  }
  .nav-dropdown ul {
    min-width: 0;
  }
  /* Mobile menu tap feedback: no gray row highlight. The row's text gets the standalone-link underline
     (2px, 3px below) while pressed, hovered, or focused, so a tap shows which row was chosen. The
     group heading underlines its name only, not its icon or "See All". */
  .nav-dropdown a:is(:hover,:focus-visible,:active) {
    background: none;
  }
  .nav-dropdown a:not(.nav-category-link),
  .nav-dropdown-services .nav-category-link>span:not(.nav-see-all),
  .site-nav>a {
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: var(--transition-interactive);
  }
  .nav-dropdown a:not(.nav-category-link):is(:hover,:focus-visible,:active),
  .nav-dropdown-services .nav-category-link:is(:hover,:focus-visible,:active)>span:not(.nav-see-all),
  .site-nav>a:is(:hover,:focus-visible,:active) {
    text-decoration-color: currentColor;
  }
}
.nav-trigger {
  transition: var(--transition-interactive);
}
.nav-see-all {
  font-size: var(--text-sm);
  margin-left: auto;
  font-weight: var(--weight-medium);
  font-style: italic;
  line-height: 1.4;
  color: var(--color-accent);
  opacity: 0;
  transition: opacity var(--motion-fast) var(--ease-ui);
  white-space: nowrap;
}
.nav-category-link:hover .nav-see-all,
.nav-category-link:focus-visible .nav-see-all {
  opacity: 1;
}
@media (hover:none) {
  .nav-see-all {
    opacity: 1;
  }
}
.nav-dropdown {
  transition: opacity var(--motion-fast) var(--ease-out),transform var(--motion-ui) var(--ease-out),display var(--motion-ui) allow-discrete;
}
@starting-style {
  .nav-dropdown:not([hidden]) {
    opacity: 0;
    transform: translateY(4px);
  }
}
@media (max-width:960px) {
  .js .site-nav {
    opacity: 1;
    transform: translateY(0);
    transition: opacity var(--motion-fast) var(--ease-out),transform var(--motion-fast) var(--ease-out),display var(--motion-fast) allow-discrete;
  }
  .js .site-nav[hidden] {
    opacity: 0;
    transform: translateY(-3px);
  }
  /* site.js sets .menu-instant while it closes the menu on page load or resize: no fade. */
  .js.menu-instant .site-nav {
    transition: none;
  }
}
@media (max-width:960px) {
  @starting-style {
    .js .site-nav:not([hidden]) {
      opacity: 0;
      transform: translateY(-3px);
    }
  }
}

/* ==== footer ==== */
.site-footer {
  --footer-item-gap: var(--space-1);
  --footer-heading-gap: var(--space-1-5);
  --footer-brand-gap: var(--space-3);
  --footer-group-gap: var(--space-4);
  background: var(--color-white);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: 0;
  font-size: var(--text-md);
  border-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px,1.25fr) repeat(3,minmax(190px,1fr));
  gap: var(--space-8);
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-neutral-300);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition-interactive);
}
.footer-social a:hover {
  background: var(--color-neutral-100);
  box-shadow: var(--shadow-raised);
}
.footer-social svg {
  display: block;
  width: 19px;
  height: 19px;
}
.footer-contact p {
  margin: 0;
  line-height: 1.4;
}
.footer-contact p+p {
  margin-top: var(--footer-item-gap);
}
.footer-contact .footer-description+p {
  margin-top: var(--footer-brand-gap);
}
.footer-contact a {
  overflow-wrap: anywhere;
}
.footer-links h2,
.footer-links h3 {
  font-family: inherit;
  font-weight: var(--weight-semibold);
  font-size: var(--text-xl);
  line-height: 1.4;
  margin-bottom: var(--footer-heading-gap);
}
.footer-links ul {
  list-style: none;
  padding: 0;
}
.footer-links li+li {
  margin-top: var(--footer-item-gap);
}
.footer-links li {
  line-height: 1.4;
}
.footer-links a {
  line-height: 1.4;
}
.footer-links .subheading {
  font-size: var(--text-md);
  margin-top: var(--footer-group-gap);
  margin-bottom: var(--footer-heading-gap);
}
.footer-links .about-heading {
  margin-top: var(--footer-group-gap);
}
.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-top: var(--space-12);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.legal-links {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-1) var(--space-2-5);
  list-style: none;
  padding: 0;
  font-size: var(--text-xs);
}
@media (min-width:761px) {
  .footer-bottom>p {
    flex-shrink: 0;
    white-space: nowrap;
  }
}
@media (max-width:1050px) {
  .footer-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .footer-contact {
    grid-column: 1/-1;
  }
}
@media (max-width:760px) {
  .footer-grid {
    grid-template-columns: minmax(0,1fr);
    gap: var(--space-6);
  }
  .footer-contact {
    grid-column: auto;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-8);
  }
  .legal-links {
    justify-content: flex-start;
  }
  .site-footer {
    --footer-item-gap: var(--space-1);
    --footer-heading-gap: var(--space-1-5);
    --footer-brand-gap: var(--space-2);
    --footer-group-gap: var(--space-4);
    margin-top: var(--space-8);
  }
}
.footer-contact .footer-crisis {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-block: 1rem 0;
}
.footer-crisis p {
  margin: 0;
  font-size: var(--text-xs);
  line-height: 1.45;
}
.footer-crisis a {
  text-decoration: underline;
  text-underline-offset: .2em;
}
@media (min-width:961px) {
  .site-footer .footer-bottom {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: var(--space-4);
    align-items: start;
  }
  /* One row with dividers from about 1000px up. Narrower than that, the ten links wrap onto a
     second right-aligned row (2026-11-30: with nowrap and right alignment, the first links ran off
     the left edge of the screen at 961-1130px). */
  .site-footer .legal-links {
    grid-row: 1;
    width: 100%;
    flex-wrap: wrap;
    row-gap: var(--space-1-5);
    column-gap: 0;
    font-size: clamp(10.5px,1vw,12px);
    align-items: center;
  }
  .site-footer .legal-links>li {
    display: flex;
    align-items: center;
    flex: none;
    white-space: nowrap;
    margin: 0;
  }
  .site-footer .legal-links>li+li::before {
    content: "";
    display: block;
    height: .85em;
    border-left: 1px solid var(--color-neutral-500);
    /* 6px each side keeps all ten links on one line from about 1000px up. */
    margin-inline: var(--space-1-5);
  }
  .site-footer .legal-links>.collection-break {
    display: none;
  }
  .site-footer .footer-bottom>p {
    grid-row: 2;
    margin: 0;
  }
}

/* ==== hero ==== */
.homepage-hero {
  min-height: 100svh;
  place-items: center;
  --hero-copy-width: 820px;
  --hero-copy-gutter: 24px;
  --hero-art-height: clamp(250px,22vw,320px);
  --hero-art-gap: 0px;
  --hero-art-width: 100vw;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 0 0 clamp(24px,3vw,40px) clamp(24px,3vw,40px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--color-white);
}
.homepage-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(16 46 42 / 68%);
  pointer-events: none;
  content: none;
}
.homepage-hero-copy {
  max-width: 1000px;
  margin-top: var(--space-20);
  position: relative;
  top: 27px;
  z-index: 2;
  width: min(var(--hero-copy-width),calc(100% - 2 * var(--hero-copy-gutter)));
  text-align: center;
}
.homepage-hero h1 {
  font-family: var(--font-ui);
  font-weight: var(--weight-semibold);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.homepage-hero p {
  text-wrap: pretty;
}
.homepage-hero .actions {
  justify-content: center;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  width: max-content;
  gap: var(--space-3);
}
.homepage-hero .button {
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  font-weight: var(--weight-medium);
}
@media (max-width:600px) {
  .homepage-hero {
    padding: 160px var(--space-6) 90px;
  }
  .homepage-hero-copy {
    margin-top: var(--space-8);
  }
}
.hero-section {
  padding-block: var(--section-bottom);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,480px) minmax(0,486px);
  justify-content: space-between;
  gap: var(--space-12);
  align-items: start;
}
.hero-copy .lead {
  font-size: var(--text-xl);
  margin-top: var(--section-heading-gap);
}
/* Hero aside: the right column of a service-page hero lists where the service is offered. */
.hero-aside {
  align-self: center;
}
/* Intro line above the tiles: the same text style as a .section-head line. */
.hero-aside>p {
  margin: 0 0 var(--space-3);
  color: var(--color-text-muted);
}
/* Location tiles: 3 x 2 outlined tiles (pin, office name, street), 2 columns on phones.
   A sixth tile links to Telehealth so the grid stays even. */
.location-tiles {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-auto-rows: 1fr;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.location-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  height: 100%;
  padding: var(--space-4);
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  background: var(--color-white);
  text-decoration: none;
  transition: var(--transition-interactive);
}
.location-tile>.feature-icon {
  margin-bottom: var(--space-2);
}
/* Hero tiles keep one size (154 x 147px desktop, 148 x 166px phones) through a minimum height, not by
   reserving name lines: the address sits 4px under the name and spare room falls to the bottom. */
.location-tiles .location-tile {
  min-height: var(--location-tile-min-height,147px);
}
/* Hero tile colors (design/DESIGN.md "Containers"): office tiles are a mint fill; the Telehealth
   tile (.location-tile--virtual) is the dark brand fill, so virtual care reads apart from the offices.
   Full fills only, no accent bars. */
.location-tiles .location-tile {
  background: var(--color-brand-tint);
  border-color: var(--color-brand-tint);
}
.location-tiles .location-tile>.feature-icon {
  stroke: var(--color-brand);
}
/* Office tiles: the name keeps the brand green; the address uses the site's dark body text (#222). */
.location-tiles .location-tile .location-tile-detail {
  color: var(--color-neutral-900);
}
.location-tiles .location-tile--virtual {
  background: var(--color-brand);
  border-color: var(--color-brand);
}
.location-tiles .location-tile--virtual .location-tile-name {
  color: var(--color-white);
}
.location-tiles .location-tile--virtual .location-tile-detail,
.location-tiles .location-tile--virtual>.feature-icon {
  color: var(--color-brand-tint);
  stroke: var(--color-brand-tint);
}
.location-tile-name {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  color: var(--color-heading);
}
.location-tile-detail {
  min-height: calc(2 * 1.4em);
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--color-text-muted);
}
/* Tiles share the info-container hover in "card" (2026-11-24: tiles that are not links get it too). */
@media (max-width:600px) {
  .location-tiles {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  /* Phones: tiles fit their content; tiles in a row still match by the grid's row height. */
  .location-tiles {
    --location-tile-min-height: 0px;
  }
}
/* Service tiles: the tile look used for hero locations, applied to a location's services.
   Icon, name, short description, then a footer row with an optional Telehealth pill and an arrow. */
.service-tiles {
  display: grid;
  /* Same proportions as the homepage tile-row study: four 228px tiles, 24px apart (228 keeps every name to two lines). */
  grid-template-columns: repeat(4,minmax(0,228px));
  justify-content: center;
  grid-auto-rows: 1fr;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Fewer than four tiles: as many 228px columns as tiles, so the row stays centered under its heading. */
@media (min-width:961px) {
  .service-tiles:has(>li:last-child:nth-child(3)) {
    grid-template-columns: repeat(3,minmax(0,228px));
  }
  .service-tiles:has(>li:last-child:nth-child(2)) {
    grid-template-columns: repeat(2,minmax(0,228px));
  }
}
.service-tiles>li {
  min-width: 0;
}
.service-tile {
  gap: var(--space-1-5);
  padding: var(--space-4);
}
/* Every service tile is the same size: the name reserves two lines, the description three. */
.service-tile .location-tile-name {
  min-height: calc(2 * 1.3em);
  font-size: var(--text-base);
}
.service-tile .location-tile-detail {
  min-height: calc(3 * 1.5em);
  font-size: var(--text-xs);
  line-height: 1.5;
}
.service-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  min-height: 26px;
  margin-top: auto;
  padding-top: var(--space-4);
  box-sizing: content-box;
}
.service-tile-foot>.pill {
  --pill-height: 26px;
  --pill-font-size: var(--text-xs);
  min-width: 0;
}
.tile-arrow {
  flex: none;
  width: 18px;
  height: 18px;
  margin-left: auto;
  fill: none;
  stroke: var(--color-text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--motion-ui) var(--ease-ui);
}
@media (hover:hover) {
  .location-tile:hover .tile-arrow {
    transform: translateX(3px);
    stroke: var(--color-brand);
  }
}
.service-tiles-title {
  margin: 0 0 var(--space-4);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
}
.service-tiles+.service-tiles-title {
  margin-top: var(--space-10);
}
@media (max-width:960px) {
  .service-tiles {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
/* Phones keep two tiles per row (the 960px rule); the gap tightens to 12px. */
@media (max-width:600px) {
  .service-tiles {
    gap: var(--space-3);
  }
  .service-tile {
    padding: var(--space-3);
  }
  /* The whole tile is the link, so the arrow drops on phones and the pill gets the row. */
  .service-tile .tile-arrow {
    display: none;
  }
  .service-tile-foot>.pill {
    --pill-font-size: var(--text-2xs);
  }
}
/* The smallest phones: one service tile per row, so the Telehealth pill fits. */
@media (max-width:380px) {
  .service-tiles {
    grid-template-columns: minmax(0,1fr);
  }
}
@media (max-width:960px) {
  .hero-section {
    padding-block: var(--section-top) var(--section-bottom);
  }
}
@media (max-width:760px) {
  .hero-grid {
    grid-template-columns: minmax(0,1fr);
    gap: var(--space-6);
  }
  .hero-copy .lead {
    font-size: var(--text-xl);
  }
  .hero-copy .actions {
    flex-direction: column;
  }
}
.inner-page .hero-section {
  padding-top: 156px;
}
.inner-page .hero-section + .section:not(.template-surface) {
  --section-top: 0px;
}
.inner-page .hero-copy .lead {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-text);
}
/* Phones: the page title starts just below the floating header. */
@media (max-width:600px) {
  .inner-page .hero-section {
    padding-top: var(--header-clearance);
  }
}
.template-page .hero-copy>h1 {
  margin-bottom: var(--section-heading-gap);
}
.template-page .hero-copy>.muted {
  margin-top: var(--space-5);
}
.template-page .hero-copy>.actions {
  margin-top: var(--space-7);
}
.template-page .hero-copy>.lead {
  margin-top: 0;
}
.template-page .service-grid>.media-placeholder:not(.hero-media) {
  aspect-ratio: var(--photo-ratio);
  min-height: 0;
  align-self: start;
  background-image: url("../assets/heale-growth.svg");
  border: 0;
  border-radius: var(--radius-lg);
}
@media (max-width:760px) {
  .template-page .service-grid>.media-placeholder:not(.hero-media) {
    min-height: 0;
  }
}
.inner-page .hero-grid>* {
  min-width: 0;
}
.inner-page main>.section:not(.hero-section,.referral-section) {
  padding-top: var(--space-12);
}
@media (max-width:760px) {
  .inner-page main>.section:not(.hero-section,.referral-section) {
    padding-top: var(--space-8);
  }
}.referral-page .hero-section {
  padding-top: 150px;
}
.referral-page .hero-section .lead {
  max-width: 760px;
}
@media (max-width:960px) {
  .referral-page .hero-section {
    padding-top: 130px;
  }
}
@media (max-width:600px) {
  .referral-page .hero-section {
    padding-top: 120px;
  }
}
.homepage-hero {
  min-height: 0;
  padding: 241px 0 0;
  color: var(--color-brand);
}
.hero-landscape {
  position: absolute;
  inset: -70px 0;
  z-index: -3;
  pointer-events: none;
  background: url('../assets/hero/open-sky.png') center 55%/cover no-repeat;
  transform: translate3d(0,var(--landscape-y,0px),0);
}
.homepage-hero::after {
  content: none;
}
.homepage-hero-copy {
  margin: 0 auto;
}
.homepage-hero h1 {
  color: var(--color-black);
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(38px,4vw,56px);
  line-height: 1.12;
}
.homepage-hero p {
  max-width: 550px;
  margin: var(--space-6) auto 0;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-neutral-900);
}
.homepage-hero .actions {
  flex-wrap: wrap;
  margin-top: var(--space-6);
}
.homepage-hero .button {
  min-height: 46px;
  background: var(--color-white);
  border-color: var(--color-brand);
  color: var(--color-brand);
}
.homepage-hero .button:first-child {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-white);
}
.homepage-hero .button:hover {
  background: var(--color-neutral-100);
  border-color: var(--color-brand);
  color: var(--color-brand);
}
.homepage-hero .button:first-child:hover {
  background: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
  color: var(--color-white);
}
.hero-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: none;
  height: var(--hero-art-height);
  margin-top: var(--hero-art-gap);
}
.hero-building {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: var(--hero-art-width);
  max-width: none;
  height: auto;
  left: calc((100% - var(--hero-art-width)) / 2);
  bottom: calc(var(--hero-art-width) * -.20);
  mask-image: linear-gradient(to bottom,transparent,var(--color-black) 32px);
  transform: translate3d(0,var(--building-y,0px),0);
}
@media (min-width:1701px) {
  .homepage-hero {
    --hero-art-height: 18.824vw;
  }
}
@media (max-width:960px) {
  .homepage-hero {
    padding-top: 225px;
    --hero-art-width: 140vw;
    --hero-art-height: 280px;
  }
}
@media (max-width:600px) {
  .homepage-hero {
    /* Phones: the headline starts just below the floating header. */
    padding-top: 150px;
    --hero-art-width: 180vw;
    --hero-art-height: 200px;
  }
  .homepage-hero h1 {
    font-size: clamp(28px,8vw,34px);
  }
  .homepage-hero .actions>* {
    white-space: nowrap;
  }
  .homepage-hero p {
    margin-top: var(--space-5);
  }
  .homepage-hero .actions {
    margin-top: var(--space-6);
    width: min(100%,292px);
  }
}
@media (prefers-reduced-motion:reduce) {
  .hero-landscape,
  .hero-building {
    transform: none;
  }
}
.homepage-hero .actions {
  max-width: 100%;
  margin-inline: auto;
}
.homepage-hero .actions .button {
  padding-inline: var(--space-3);
}
@media (max-width:600px) {
  .homepage-hero .actions .button {
    min-height: 40px;
    padding-inline: var(--space-2-5);
  }
}
.inner-page .location-hero>.hero-grid {
  grid-template-columns: minmax(0,1fr) 37.5%;
  align-items: start;
  gap: var(--space-10);
}
.location-hero .hero-copy {
  min-width: 0;
}
@media (max-width:960px) {
  .inner-page .location-hero>.hero-grid {
    grid-template-columns: minmax(0,1fr);
    gap: var(--space-7);
  }
}
.clinical-services-page main>.hero-section {
  padding-top: 148px;
  padding-bottom: var(--space-12);
}
.clinical-services-page .hero-grid {
  gap: var(--space-10);
  align-items: center;
}
.clinical-services-page .hero-copy h1 {
  max-width: 18ch;
  font-size: clamp(34px,3.8vw,46px);
}
@media (max-width:960px) {
  .clinical-services-page .hero-grid {
    gap: var(--space-6);
  }
}
@media (max-width:760px) {
  .clinical-services-page main>.hero-section {
    padding-top: 132px;
    padding-bottom: var(--space-8);
  }
  .clinical-services-page .hero-copy h1 {
    max-width: none;
  }
}
.homepage-hero .button:first-child:active {
  background: var(--color-brand-pressed);
  color: var(--color-white);
}

/* ==== location-map ==== */
.homepage .section:is(.locations-section,.process-section) {
  --color-heading: var(--color-white);
}
.locations-section {
  --section-heading-gap: var(--space-8);
  --location-card-padding: var(--space-5);
  --location-control-size: var(--control-size);
  --location-control-icon-size: 22px;
  --location-control-gap: var(--space-3);
  --location-heading-controls-width: calc(2 * var(--location-control-size) + var(--location-control-gap) + 12px);
  --location-title-gap: var(--space-2);
  --location-detail-gap: var(--space-2);
  --location-address-font-size: var(--text-md);
  --location-label-weight: 600;
  --location-link-weight: 600;
  /* Desktop sizes (1051px+): card width, and the map's width inside its 520px column.
     The map sits at the column's right edge; at 412px the state is about 500px tall,
     a little taller than the card. Pins, labels and connectors scale with the map. */
  --location-card-width: 388px;
  --map-figure-width: 412px;
  --map-connector: var(--color-neutral-500);
  --color-border: var(--color-neutral-300);
  background: var(--color-brand);
  color: var(--color-white);
}
.locations-section .map-leader {
  stroke: var(--map-connector);
}
.locations-section .state-shape {
  fill: var(--color-cream);
  stroke: var(--color-cream);
}
.locations-section .map-pin {
  fill: var(--color-brand);
}
.locations-section .map-pin.active {
  fill: var(--color-brand-light);
}
.locations-section .map-label {
  border-color: var(--color-white);
}
.locations-section .map-label.active {
  background: var(--color-white);
  color: var(--color-brand);
  border-color: var(--color-white);
  box-shadow: var(--ring-surface), var(--shadow-raised);
  font-weight: var(--weight-semibold);
}
.locations-section .map-label:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  box-shadow: var(--shadow-raised);
}
.locations-section .location-card {
  --color-brand-wash: var(--color-neutral-100);
  --color-text: var(--color-neutral-900);
  --color-text-muted: var(--color-neutral-700);
  box-shadow: var(--shadow-overlay);
}
.locations-section .pill {
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.locations-section .icon-button:hover {
  background: var(--color-neutral-100);
  color: var(--color-text);
  border-color: var(--color-border);
}
.locations-section .location-card .button-secondary {
  border-color: var(--color-brand-muted);
  color: var(--color-brand);
}
.locations-section .location-card .button:not(.button-secondary) {
  color: var(--color-white);
}
.locations-section .location-card .button:not(.button-secondary):hover {
  background: var(--color-brand-hover);
  border-color: var(--color-brand-hover);
}
.location-layout {
  max-width: 992px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0,520px) minmax(0,var(--location-card-width,424px));
  gap: var(--space-12);
  align-items: start;
}
@media (min-width:961px) {
  .homepage .location-layout>.location-detail {
    margin-top: var(--space-3);
  }
}
.map-figure {
  position: relative;
  justify-self: end;
  width: min(100%,var(--map-figure-width,464px));
  min-width: 0;
}
.map-figure svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
@media (min-width:1051px) {
  .map-figure {
    /* Room for the 1.17 scale overflow below the figure: 18% of its width (84px at the old 464px). */
    margin-bottom: calc(var(--map-figure-width,464px) * .181);
  }
  .map-figure svg {
    transform: scale(1.17);
    transform-origin: 62.627% 7.682%;
  }
  .map-figure .map-leader {
    vector-effect: non-scaling-stroke;
  }
}
.state-shape {
  fill: var(--color-brand-tint);
  stroke: var(--color-border);
  stroke-width: 1;
}
.map-leader {
  stroke: var(--color-text-muted);
  stroke-width: 1;
  fill: none;
}
.map-pin {
  fill: var(--color-text-muted);
  transition: fill var(--motion-ui) var(--ease-ui);
}
.map-pin.active {
  fill: var(--color-brand);
}
.map-label {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: 30%;
  padding: var(--space-1-5) var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  font-size: var(--text-md);
  font-weight: var(--location-label-weight);
  line-height: 1.2;
  text-align: center;
  transition: var(--transition-interactive);
}
.map-label.active {
  background: var(--color-brand);
  color: var(--color-white);
}
.map-label:hover {
  border-color: var(--color-neutral-500);
}
.map-label[data-location="southaven"] {
  /* About 20px further left at desktop (2026-11-25), closer to its pin. */
  left: 30.5%;
  /* 2.5% higher than before (about 12px at desktop) so it clears the state's top edge. */
  top: -3.162%;
  width: 30.000%;
}
.map-label[data-location="ripley"] {
  left: 65.769%;
  top: 7.285%;
  width: 30.000%;
}
.map-label[data-location="saltillo"] {
  left: 65.769%;
  top: 20.861%;
  width: 30.000%;
}
.map-label[data-location="tupelo"] {
  left: 65.769%;
  top: calc(36.920530% - 28px);
  width: 30.000%;
}
.map-label[data-location="treatment-center"] {
  left: 65.769%;
  top: calc(36.920530% + 22px);
  width: 31.538%;
  min-height: 44px;
  font-size: var(--text-xs);
}
.map-label[data-location="columbus"] {
  left: 65.769%;
  top: 52.980%;
  width: 30.000%;
}
.location-detail {
  position: relative;
  min-width: 0;
}
.stable-stage {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-items: start;
}
.stable-sizing {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-items: start;
  visibility: hidden;
  pointer-events: none;
}
.stable-stage>*,
.stable-sizing>* {
  grid-area: 1/1;
  min-width: 0;
}
.location-cycle {
  display: flex;
  justify-content: flex-start;
  gap: var(--location-control-gap);
}
/* The arrows follow --location-control-size, so the phone sizes below shrink them. */
.location-cycle .icon-button {
  --control-size: var(--location-control-size);
}
.location-cycle .control-icon {
  width: var(--location-control-icon-size);
  height: var(--location-control-icon-size);
}
.card-cycle-top {
  position: absolute;
  top: var(--location-card-padding);
  right: var(--location-card-padding);
  margin: 0;
}
.location-card {
  --hover-shadow: var(--shadow-overlay);
  color: var(--color-text);
  container-type: inline-size;
  --single-line-reserve: var(--location-heading-controls-width);
  padding: var(--location-card-padding);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  min-width: 0;
  box-shadow: var(--shadow-overlay);
}
.location-card h3 {
  min-height: 28px;
  padding-right: var(--location-heading-controls-width);
  margin-bottom: var(--location-title-gap);
}
.location-title {
  font-size: var(--text-3xl);
}
.location-title>.text-link {
  font-weight: var(--location-link-weight);
}
.fit-single-line {
  --single-line-max-size: 23px;
  --single-line-width-ratio: 12;
  font-size: clamp(12px,calc((100cqi - var(--single-line-reserve,0px)) / var(--single-line-width-ratio)),var(--single-line-max-size));
  white-space: nowrap;
  text-wrap: nowrap;
}
.location-card address {
  font-style: normal;
  font-weight: var(--weight-medium);
  font-size: var(--location-address-font-size);
  line-height: calc(1.6em - 1px);
}
.location-card .directions {
  color: var(--color-accent);
  display: block;
  width: fit-content;
  font-size: var(--location-address-font-size);
}
.location-services {
  --pill-height: 30px;
  --pill-font-size: var(--text-xs);
  --pill-min-width: 136px;
  --row-padding-block: var(--space-2-5);
  list-style: none;
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.location-services .service-row {
  font-weight: var(--weight-semibold);
  justify-content: space-between;
  gap: var(--space-2);
  min-height: calc(var(--pill-height) + 2 * var(--row-padding-block) + 1px);
  padding: var(--row-padding-block) var(--space-2);
  font-size: var(--text-sm);
}
.location-services li+li {
  border-top: 1px solid var(--color-border);
}
.location-card .actions {
  margin-top: var(--space-8);
  gap: var(--space-3);
}
.location-card .button {
  flex: 1;
  padding-inline: var(--space-3);
}
@media (max-width:1050px) {
  .location-layout {
    grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
    gap: var(--space-8);
  }
  .map-figure {
    width: auto;
    justify-self: stretch;
  }
  .location-card .actions {
    flex-direction: column;
  }
}
@media (max-width:760px) {
  .location-layout {
    grid-template-columns: minmax(0,1fr);
    max-width: 430px;
    gap: var(--location-stack-gap);
  }
  .locations-section {
    --section-heading-gap: var(--space-12);
    --location-stack-gap: var(--space-1);
    /* Phones: smaller card arrows. */
    --location-control-size: 36px;
    --location-control-icon-size: 18px;
    --location-control-gap: var(--space-2);
  }
  /* Phones: a long name ("Heale Treatment Center") shrinks with the card down to 18px, then
     wraps to a second line. The heading's right padding keeps it clear of the arrows. */
  .location-card .fit-single-line {
    font-size: clamp(18px,calc((100cqi - var(--single-line-reserve,0px)) / var(--single-line-width-ratio)),var(--single-line-max-size));
    white-space: normal;
    text-wrap: balance;
  }
  /* Phones: smaller View Location and Get Started buttons (36px, 13px label). */
  .location-card .button {
    min-height: 36px;
    padding-block: var(--space-1-5);
    font-size: var(--text-md);
  }
  /* Phones: the card is only as tall as the office shown. The hidden sizing copies (which hold every
     card at the tallest office's height on wider screens) are dropped, so a short card leaves no gap. */
  .location-stage>.location-sizing {
    display: none;
  }
  .location-card .button {
    white-space: nowrap;
  }
  .map-label,
  .map-leader {
    display: none;
  }
  .map-figure svg {
    aspect-ratio: 347/564;
  }
  .map-figure {
    width: clamp(180px,60vw,280px);
    margin-inline: auto;
  }
  .location-card .actions {
    flex-direction: row;
  }
}
@media (max-width:380px) {
  .location-services {
    --pill-font-size: var(--text-2xs);
    --pill-min-width: 112px;
    --pill-padding: var(--space-2);
  }
  .locations-section {
    --location-card-padding: var(--space-4);
    --location-control-size: 32px;
    --location-control-icon-size: 16px;
  }
  .location-card .button {
    padding-inline: var(--space-2);
    font-size: var(--text-md);
  }
}
.locations-section .map-pin.hovered {
  fill: var(--color-brand-light);
}
.locations-section .map-leader.active {
  stroke: var(--color-brand-tint);
  stroke-width: 1.5;
}
.locations-section .map-label.active:hover {
  box-shadow: var(--ring-surface), var(--shadow-raised);
}

/* ==== location ==== */
.location-schedule {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  margin-top: var(--space-4);
}
.location-schedule>p {
  white-space: nowrap;
}
.location-hours {
  color: var(--color-text-muted);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
}
.appointment-note {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-muted);
}
.location-hub-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--space-6);
}
.location-hub-grid h3 {
  margin-bottom: var(--space-3);
}
.location-hub-grid address {
  font-style: normal;
  margin-bottom: var(--space-5);
  overflow-wrap: anywhere;
}
.location-hub-grid .actions {
  align-items: center;
  margin-top: var(--space-6);
}
.location-hub-grid .service-list {
  margin: 0;
}
@media (max-width:760px) {
  .location-hub-grid {
    grid-template-columns: minmax(0,1fr);
  }
}.location-hub-grid .service-row {
  height: auto;
  min-height: 54px;
  padding-block: var(--space-3);
  flex-wrap: wrap;
  font-weight: var(--weight-medium);
}
.location-hub-grid .service-title {
  font-size: var(--text-lg);
  line-height: 1.45;
  white-space: normal;
  flex: 1 1 180px;
}
.location-hub-grid .pill {
  min-width: 0;
}.location-embedded-map {
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-neutral-100);
  min-height: 300px;
}
/* Map embeds wait for consent: the placeholder holds the map's size until the visitor chooses (consent.js). */
.location-embedded-map {
  --map-height: 380px;
}
.map-consent,
.map-consent iframe {
  display: block;
  width: 100%;
  height: var(--map-height);
  border: 0;
}
.map-consent:not([data-loaded]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  text-align: center;
}
.map-consent>p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
@media (max-width:760px) {
  .location-embedded-map {
    --map-height: 320px;
  }
}
/* Consent card (consent.js): a compact card in the bottom-left corner. A title and one paragraph, then
   two stacked, equal buttons. The close X sits in the top-right corner beside the title (no logo
   header). Nothing expands. */
.consent-card {
  --consent-width: 360px;
  position: fixed;
  left: var(--space-4);
  bottom: var(--space-4);
  z-index: var(--z-header);
  width: min(var(--consent-width), calc(100vw - 2 * var(--space-4)));
  max-height: calc(100dvh - 2 * var(--space-4));
  overflow-y: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-overlay);
  color: var(--color-text);
}
/* 32px close button, 8px from the top and right edges, level with the title. */
.consent-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  display: grid;
  place-items: center;
  width: var(--space-8);
  height: var(--space-8);
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-interactive);
}
.consent-close:hover {
  background: var(--color-neutral-100);
  color: var(--color-text);
}
.consent-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.consent-body {
  padding: var(--space-4) var(--space-5) 0;
}
.consent-body>h2 {
  margin: 0 0 var(--space-1);
  /* Clears the close button. */
  padding-right: var(--space-8);
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}
.consent-body>p {
  margin: 0;
  font-size: var(--text-md);
  line-height: var(--leading-snug);
}
.consent-actions {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5);
}
@media (max-width:600px) {
  .consent-card {
    left: var(--space-2);
    right: var(--space-2);
    bottom: var(--space-2);
    width: auto;
  }
}
.location-hero .location-embedded-map {
  width: 100%;
  min-width: 0;
}
.location-visit-details {
  margin-top: var(--space-6);
}
.location-visit-details address {
  font-style: normal;
  font-size: var(--text-lg);
  line-height: 1.6;
  margin: 0;
}
.location-visit-details .directions {
  display: block;
  width: fit-content;
  margin-top: var(--space-0-5);
  color: var(--color-accent);
  font-size: var(--text-md);
}
.location-visit-details .location-schedule {
  margin-top: var(--space-4);
  gap: var(--space-1);
}
.location-visit-details .location-schedule>p {
  margin: 0;
  white-space: normal;
}
.location-visit-details .location-hours {
  font-size: var(--text-md);
}
.location-visit-details .appointment-note {
  font-size: var(--text-sm);
}
.location-hero .location-visit-details .actions {
  margin-top: var(--space-6);
  gap: var(--space-3);
}
@media (max-width:480px) {
  .location-visit-details {
    margin-top: var(--space-5);
  }
}

/* ==== legal ==== */
/* Legal pages (design/DESIGN.md "Legal page"): the title, a one-line lead and the "Last Updated" or
   "Effective Date" line, then the live policy text in one readable column. The wording is the live
   Squarespace text, word for word (tools/import_legal_pages.py); only the markup is new. */
.legal-page {
  --legal-measure: 720px;
}
.legal-hero .hero-copy {
  max-width: var(--legal-measure);
}
.legal-updated {
  margin-top: var(--space-3);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
}
.legal-prose {
  max-width: var(--legal-measure);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-neutral-200);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-text);
}
.legal-prose>*+* {
  margin-top: var(--space-4);
}
.section .legal-prose h2 {
  margin: var(--space-10) 0 0;
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  color: var(--color-heading);
}
.legal-prose h3 {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  color: var(--color-heading);
}
.section .legal-prose>:first-child {
  margin-top: 0;
}
.legal-prose>:is(h2,h3)+* {
  margin-top: var(--space-2);
}
.legal-prose :is(ul,ol) {
  padding-left: var(--space-5);
}
.legal-prose ul {
  list-style: disc;
}
.legal-prose ol {
  list-style: decimal;
}
.legal-prose li+li {
  margin-top: var(--space-1-5);
}
.legal-prose a {
  overflow-wrap: anywhere;
}
/* Contact details (Notice of Privacy Practices): label and value pairs in a white card. */
.legal-contact {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: var(--space-1) var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}
.legal-contact dt {
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
}
.legal-contact dd {
  margin: 0;
}
.legal-hero .actions {
  align-items: center;
}
/* Phone line under a legal page's actions (portal consent-forms page). */
.legal-help {
  margin-top: var(--space-4);
  font-size: var(--text-md);
  color: var(--color-text-muted);
}

/* ==== provider ==== */
@media (min-width:961px) {
  .provider-grid:has(>.provider-card:last-child:nth-child(2)) {
    grid-template-columns: repeat(2,minmax(0,1fr));
    max-width: 560px;
    margin-inline: auto;
  }
  .provider-grid:has(>.provider-card:last-child:nth-child(3)) {
    grid-template-columns: repeat(3,minmax(0,1fr));
    max-width: 840px;
    margin-inline: auto;
  }
}
.provider-intro {
  margin-bottom: var(--space-10);
}
.provider-grid {
  --provider-desktop-gap: var(--space-4);
  --provider-card-gap: var(--provider-desktop-gap);
  --provider-card-max-width: calc((var(--page-width) - 3 * var(--provider-desktop-gap)) / 4);
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: var(--provider-card-gap);
}
.carousel-controls {
  display: none;
}
.provider-card h3 {
  margin-top: var(--space-5);
}
.provider-card p {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.provider-actions {
  margin-top: var(--space-12);
}
/* Directory: the same cards and 4-column grid, wrapping onto rows at every width instead of a carousel. */
.provider-grid--directory {
  margin-top: var(--space-7);
}
@media (max-width:960px) {
  .provider-grid {
    --provider-card-gap: var(--space-5);
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(82%,var(--provider-card-max-width));
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    scrollbar-width: none;
  }
  .provider-grid.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
  }
  .provider-grid::-webkit-scrollbar {
    display: none;
  }
  .provider-grid--directory {
    grid-template-columns: repeat(2,minmax(0,1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
    scroll-snap-type: none;
    cursor: auto;
    user-select: auto;
  }
  .provider-card {
    scroll-snap-align: start;
  }
  .carousel-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
  }
  .provider-actions {
    margin-top: var(--space-6);
  }
  .provider-intro {
    margin-bottom: var(--space-6);
  }
}
@media (max-width:760px) {
  .provider-card h3 {
    font-size: var(--text-xl);
  }
  .provider-card p {
    font-size: var(--text-xs);
  }
  .provider-actions {
    flex-direction: column;
  }
}
.v2-people-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: var(--space-7) var(--space-6);
  margin-top: var(--space-7);
  align-items: start;
}
.v2-person {
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
  min-width: 0;
  scroll-margin-top: 120px;
}
.leadership-grid>.v2-person {
  border: 0;
}
.v2-person[hidden] {
  display: none;
}
.v2-person>img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4/4.5;
  object-fit: cover;
  object-position: center 22%;
  background: var(--color-neutral-100);
}
.v2-person-copy {
  padding: var(--space-5);
}
.v2-person h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: 1.35;
  color: var(--color-heading);
}
/* Role line under a person's name: same 15px muted body text as a card. */
.v2-person h3+p {
  margin-top: var(--space-1);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-muted);
}
.v2-person details {
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-neutral-300);
  padding-top: var(--space-4);
}
.v2-person summary {
  font-size: var(--text-md);
  cursor: pointer;
  line-height: 1.5;
}
.v2-person details>p {
  font-size: inherit;
  line-height: 1.6;
  margin-top: var(--space-4);
}
.v2-filters {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr) auto;
  gap: var(--space-4);
  align-items: end;
}
.v2-filters label {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-md);
}
.v2-filters input {
  width: 100%;
  min-width: 0;
}
.v2-filters select {
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}
.provider-grid--directory+p[hidden] {
  display: none;
}
#provider-count {
  font-size: var(--text-md);
}
@media (max-width:960px) {
  .v2-filters,
  .v2-people-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:480px) {
  /* Phones: people grids (leadership, provider directory) keep two columns; filters stack. */
  .v2-filters {
    grid-template-columns: minmax(0,1fr);
  }
  .v2-people-grid {
    gap: var(--space-4) var(--space-3);
  }
  .v2-person-copy {
    padding: var(--space-3);
  }
  .v2-person h3 {
    font-size: var(--text-lg);
  }
  .v2-person h3+p {
    font-size: var(--text-sm);
  }
  .v2-person>img {
    aspect-ratio: 4/4.2;
  }
}
.provider-profile {
  --provider-body-size: var(--text-sm);
  --provider-section-size: var(--text-md);
  /* One shape at every width: the card scales with its column but keeps 256 x 415 (the homepage desktop card),
     and the photo keeps its share of it. Open biographies scroll inside the card instead of growing it.
     min-height:auto lets a card grow only if its name and title would not fit (a few px at ~980px for the
     longest titles); every other card keeps the exact shape. The open view keeps that height too
     (see .provider-profile-rest below). */
  --profile-ratio: 256 / 415;
  --profile-photo-ratio: 222 / 217;
  position: relative;
  display: block;
  container-type: inline-size;
  aspect-ratio: var(--profile-ratio);
  min-height: auto;
  height: auto;
  padding: var(--space-4);
  min-width: 0;
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
  overflow: visible;
  color: var(--color-neutral-900);
  text-align: start;
  transition: var(--transition-interactive);
}
/* Provider hover (design/DESIGN.md "Interaction"): no outline change. Only the shadow rises,
   so the photo-led card lifts slightly without a frame around the headshot. */
@media (hover:hover) {
  .provider-profile:hover {
    box-shadow: var(--shadow-raised);
  }
}
/* A filtered-out card stays hidden even though the profile sets display. */
.provider-profile[hidden] {
  display: none;
}
.provider-profile>.provider-profile-photo {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 16px;
  width: calc(100% - 32px);
  height: auto;
  aspect-ratio: var(--profile-photo-ratio);
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius-md);
}
.provider-profile-rest {
  position: relative;
  padding-top: calc(100cqw / (var(--profile-photo-ratio)) + 12px);
  padding-bottom: var(--space-12);
  opacity: 1;
  visibility: visible;
}
.provider-profile .provider-profile-rest h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: 1.35;
  margin: 0 0 var(--space-1);
  color: var(--color-brand);
  overflow-wrap: anywhere;
}
.provider-profile .provider-profile-rest p {
  font-size: var(--provider-body-size);
  font-weight: var(--weight-regular);
  line-height: 1.45;
  margin: var(--space-0-5) 0 0;
  color: var(--color-neutral-900);
}
.provider-profile details.provider-profile-details {
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
}
.provider-profile .provider-profile-details>summary {
  position: absolute;
  z-index: 3;
  left: 16px;
  right: 16px;
  bottom: 16px;
  min-height: 28px;
  display: flex;
  align-items: center;
  padding: 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  color: var(--color-brand);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
}
.provider-profile-details>summary::-webkit-details-marker {
  display: none;
}
.provider-profile .provider-profile-details>summary:hover {
  background: transparent;
}
.provider-label-close,
.provider-profile-details[open] .provider-label-open {
  display: none;
}
.provider-profile-details[open] .provider-label-close {
  display: inline;
}
/* Open view fills the card above the "See less" control; the header stays put and the biography scrolls. */
.provider-profile .provider-profile-expanded {
  position: absolute;
  inset: 16px 16px 52px;
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: none;
  overflow: hidden;
  padding-bottom: 0;
}
.provider-profile .provider-profile-details::details-content {
  block-size: auto;
  max-block-size: none;
  overflow: visible;
}
.provider-profile-header {
  display: grid;
  grid-template-columns: 80px minmax(0,1fr);
  gap: var(--space-2-5);
  min-height: 94px;
  margin-bottom: var(--space-3);
}
.provider-profile .provider-profile-header h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  margin: 0 0 var(--space-1);
  color: var(--color-brand);
  overflow-wrap: anywhere;
}
.provider-profile .provider-profile-header p {
  font-size: var(--provider-body-size);
  font-weight: var(--weight-regular);
  line-height: 1.45;
  margin: var(--space-0-5) 0 0;
  color: var(--color-neutral-900);
}
.provider-profile .provider-profile-header {
  flex: none;
}
.provider-profile .provider-profile-bio {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: auto;
  padding-right: var(--space-1);
}
.provider-profile .provider-profile-bio h4 {
  font-size: var(--provider-section-size);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  margin: var(--space-3) 0 var(--space-1);
  color: var(--color-brand);
}
.provider-profile .provider-profile-bio h4:first-child {
  margin-top: 0;
}
.provider-profile .provider-profile-bio p {
  font-size: var(--provider-body-size);
  font-weight: var(--weight-regular);
  line-height: 1.45;
  margin: 0;
  color: var(--color-neutral-900);
}
.provider-profile:has(.provider-profile-details[open])>.provider-profile-photo {
  width: 80px;
  height: 94px;
}
/* Hidden but still holding its space (2026-11-30): a card whose name wraps is a little taller than the
   base shape, and display:none let it shrink back when Read more opened. visibility keeps the height
   and also hides the block from screen readers (the open header repeats the name and role). */
.provider-profile:has(.provider-profile-details[open])>.provider-profile-rest {
  visibility: hidden;
}
@keyframes provider-details-in{from{opacity:0}to{opacity:1}}
.v2-filters label {
  min-width: 0;
}
.v2-filters .select-control {
  display: block;
  min-width: 0;
}
.v2-filters select {
  padding-right: var(--space-12);
}
@media (prefers-reduced-motion:reduce) {
  .provider-profile>*,
  .provider-profile-expanded {
    transition: none!important;
    animation: none!important;
  }
}
.provider-profile>.provider-profile-photo {
  transition: none;
}
.provider-profile-details[open] .provider-profile-expanded {
  animation: none;
}
.provider-profile .provider-profile-header {
  gap: var(--space-2);
  margin-bottom: var(--space-2-5);
}
.provider-profile .provider-profile-bio h4 {
  margin-bottom: var(--space-1);
}
.provider-profile-details>summary,
.provider-profile-details>summary * {
  -webkit-user-select: none;
  user-select: none;
}
.provider-label-open::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: var(--space-2);
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(-45deg);
  vertical-align: -2px;
}
.provider-label-close::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: var(--space-2);
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(135deg);
  vertical-align: 2px;
}
.v2-person summary,
.v2-person {
  transition: var(--transition-interactive);
}
@supports (interpolate-size:allow-keywords) {
  details:not(.provider-profile-details) {
    interpolate-size: allow-keywords;
  }
  details:not(.provider-profile-details)::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size var(--motion-ui) var(--ease-out),content-visibility var(--motion-ui) allow-discrete;
  }
  details:not(.provider-profile-details)[open]::details-content {
    block-size: auto;
  }
}
@media (prefers-reduced-motion:reduce) {
  .provider-grid {
    scroll-behavior: auto;
  }
}
