/* Shared multi-select therapist filter (dark green pill bar, dropdown panels, bottom sheet on phones).
   Rules copied from /home-options/home-options.css (Concept C) so the Clinical Team page can use the same filter
   without loading the home concept styles. Class names match Concept C (ho-*), so C can switch to this file later.
   Loaded by /clinical-team/ with /js/team-filter.js. */
/* ===================== Filter: shared ===================== */
.ho-filter__title { font: var(--font-h6); font-weight: 400; margin: 0 0 6px; color: inherit; letter-spacing: -.3px; }
.ho-trigger { font: var(--font-body); cursor: pointer; }
.ho-trigger__badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--color-primary-dark); color: var(--color-white); font: var(--font-accent); font-size: 12px; }
.ho-trigger svg { flex: none; width: 10px; height: 6px; transition: transform .2s; }
.ho-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.ho-panel[hidden] { display: none; }
.ho-panel { background: var(--color-white); color: var(--color-secondary-dark); border-radius: 24px; }
.ho-panel:focus { outline: none; }
.ho-panel__head, .ho-panel__foot { display: none; }
.ho-panel__title { margin: 0; font: var(--font-accent); letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-primary-dark); }
.ho-panel__opts { display: grid; gap: 2px; }
.ho-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; font: var(--font-body-small); color: var(--color-secondary-dark); }
.ho-opt:hover { background: var(--color-background); }
.ho-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ho-opt__box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--color-primary); background: var(--color-white); color: transparent; transition: background .15s, border-color .15s; }
.ho-opt__box svg { width: 14px; height: 14px; }
.ho-opt input:checked + .ho-opt__box { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: var(--color-white); }
.ho-opt input:checked ~ .ho-opt__text { color: var(--color-heading); font-weight: 600; }
.ho-opt input:focus-visible + .ho-opt__box { outline: 2px solid var(--color-secondary-dark); outline-offset: 2px; }
.ho-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-height: 40px; }
.ho-status__count { margin: 0; font: var(--font-body-small); }
.ho-status__count strong { font-weight: 600; }
.ho-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ho-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px 7px 14px; border: 0; border-radius: var(--radius-pill); background: var(--color-primary-dark); color: var(--color-white); font: var(--font-body-small); cursor: pointer; }
.ho-tag svg { width: 12px; height: 12px; }
.ho-tag:hover, .ho-tag:focus-visible { background: var(--color-secondary-dark); outline: 2px solid transparent; }
.ho-clearall { padding: 0; border: 0; background: none; color: var(--color-primary-dark); font: var(--font-body-small); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ho-clearall:hover { color: var(--color-secondary-dark); }

/* Bottom sheet (phones, all concepts) */
.ho-backdrop { position: fixed; inset: 0; z-index: 140; background: color-mix(in srgb, var(--color-secondary-dark) 55%, transparent); }
.ho-backdrop[hidden] { display: none; }
body.ho-sheet-open { overflow: hidden; }
.ho-panel.is-sheet { position: fixed !important; z-index: 150; left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: auto !important; max-height: 82vh; display: flex; flex-direction: column; margin: 0; padding: 0; border-radius: 24px 24px 0 0; box-shadow: none; transform: none; }
.ho-panel.is-sheet .ho-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 8px; }
.ho-panel.is-sheet .ho-panel__head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--color-cream); }
.ho-panel.is-sheet .ho-panel__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--color-background); color: var(--color-secondary-dark); cursor: pointer; }
.ho-panel.is-sheet .ho-panel__close svg { width: 16px; height: 16px; }
.ho-panel.is-sheet .ho-panel__opts { display: block; overflow: auto; padding: 4px 12px 12px; columns: 1; flex: 1; }
.ho-panel.is-sheet .ho-opt { padding: 14px 12px; }
.ho-panel.is-sheet .ho-panel__foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-cream); }
.ho-panel.is-sheet .ho-panel__clear { padding: 12px 8px; border: 0; background: none; color: var(--color-primary-dark); font: var(--font-body-small); font-weight: 600; text-decoration: underline; cursor: pointer; }
.ho-panel.is-sheet .ho-panel__done { flex: 1; min-height: 52px; }


/* ----- Filter C: green pill bar overlapping the hero edge, wide panel ----- */
.ho-filter--c { position: relative; z-index: 6; margin-top: -64px; padding-bottom: 8px; }
.ho-fc__bar { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 8px 28px; align-items: center; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 14px 14px 14px 36px; border-radius: var(--radius-pill); background: var(--color-secondary-dark); color: var(--color-white); }
.ho-fc__title { font: var(--font-h5); font-size: 24px; font-weight: 300; color: var(--color-white); white-space: nowrap; }
.ho-filter--c .ho-fc__title .heading-accent { color: var(--color-secondary); }
.ho-fc__fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.ho-filter--c .ho-trigger--field { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l c" "v c"; align-items: center; gap: 2px 10px; padding: 8px 24px; border: 0; border-left: 1px solid color-mix(in srgb, var(--color-white) 22%, transparent); border-radius: 0; background: transparent; color: var(--color-white); text-align: left; }
.ho-filter--c .ho-trigger--field:first-child { border-left: 0; }
.ho-filter--c .ho-trigger__label { grid-area: l; font: var(--font-accent); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--color-primary); }
.ho-filter--c .ho-trigger__value { grid-area: v; font: var(--font-body-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-filter--c .ho-trigger svg { grid-area: c; }
.ho-filter--c .ho-trigger--field:hover, .ho-filter--c .ho-trigger--field.is-open { background: color-mix(in srgb, var(--color-white) 10%, transparent); }
.ho-filter--c .ho-trigger--field.has-selection .ho-trigger__value { color: var(--color-secondary); font-weight: 600; }
.ho-fc__go { display: inline-flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 28px; border-radius: var(--radius-pill); background: var(--color-secondary); color: var(--color-secondary-dark); text-decoration: none; font: var(--font-body-small); white-space: nowrap; }
.ho-fc__go svg { width: 18px; height: 18px; }
.ho-fc__go:hover, .ho-fc__go:focus-visible { background: var(--color-white); }
.ho-filter--c .ho-panel:not(.is-sheet) { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 14px); padding: 24px 28px; border: 1px solid var(--color-cream); max-height: 420px; overflow: auto; }
.ho-filter--c .ho-panel:not(.is-sheet) .ho-panel__opts { grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.ho-filter--c .ho-panel--client:not(.is-sheet) .ho-panel__opts, .ho-filter--c .ho-panel--location:not(.is-sheet) .ho-panel__opts { grid-template-columns: repeat(3, 1fr); }
.ho-filter--c .ho-status { padding: 22px 8px 0; justify-content: center; }
@media (max-width: 1024px) {
  .ho-fc__bar { grid-template-columns: 1fr auto; border-radius: 40px; padding: 14px 14px 14px 28px; }
  .ho-fc__title { grid-column: 1 / -1; }
  .ho-fc__fields { grid-column: 1; }
}
@media (max-width: 767px) {
  .ho-filter--c { margin-top: -52px; }
  .ho-fc__bar { grid-template-columns: 1fr; border-radius: 32px; padding: 20px 16px 16px; width: calc(100% - 32px); }
  .ho-fc__title { padding: 0 8px; font-size: 22px; }
  .ho-fc__fields { grid-template-columns: 1fr; }
  .ho-filter--c .ho-trigger--field { padding: 12px 8px; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--color-white) 22%, transparent); }
  .ho-filter--c .ho-trigger--field:first-child { border-top: 0; }
  .ho-fc__go { justify-content: center; }
  .ho-filter--c .ho-status { justify-content: flex-start; padding: 18px 20px 0; }
}


.ho-fc__go { justify-content: center; font-weight: 600; }
.ho-empty { margin: 8px 0 0; padding: 40px; text-align: center; border-radius: var(--radius); background: var(--color-white); }
body.ho-sheet-open .ho-filter { z-index: auto; }

/* ===================== Clinical Team page (grid instead of slider) ===================== */
.tf [hidden], .tf-results [hidden], .ho-empty[hidden], .ho-panel[hidden], .ho-clearall[hidden], .ho-trigger__badge[hidden] { display: none !important; }
.team-finder .section-intro { margin-bottom: 36px; }
.ho-filter--c.tf { margin-top: 0; padding-bottom: 0; z-index: 30; }
button.ho-fc__go { border: 0; cursor: pointer; }
.ho-fc__go:focus-visible { outline: 2px solid var(--color-white); outline-offset: 3px; }
.tf-status { justify-content: center; padding: 22px 8px 0; min-height: 62px; }
.tf-status .ho-status__count { color: var(--color-text); }
.tf-results { padding-top: 6px; }
.tf-results .clinician-grid { margin-top: 24px; }
.tf-results .clinician-grid { scroll-margin-top: 120px; }
.tf-results .clinician-grid:focus { outline: none; }
.tf-empty { margin: 0 auto 8px; max-width: 760px; }
.tf-empty p { margin: 0 0 16px; }
.tf-empty p:last-child { margin-bottom: 0; }
@media (max-width: 1024px) { .tf-results .clinician-grid { scroll-margin-top: 104px; } }
@media (max-width: 767px) {
  .team-finder .section-intro { margin-bottom: 28px; }
  .tf-status { justify-content: flex-start; padding: 18px 4px 0; }
  .tf-results { padding-top: 2px; }
  .tf-results .clinician-grid { margin-top: 18px; }
  .tf-empty { padding: 28px 20px; }
}
.ho-fc__title { margin: 0; }
