/* Scoped to clinician cards; every rule requires the JS-added .has-readmore class, so no-JS shows full bios. */
.clinician.has-readmore .bio { overflow: hidden; transition: height .2s ease, opacity .2s ease; }
.clinician.has-readmore .bio.is-animating { opacity: .94; }
.clinician.has-readmore .bio p { line-height: 1.65; }
.clinician.has-readmore .bio.is-clamped > p:first-child {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4;
  overflow: hidden; max-height: calc(4 * 1.65em); margin-bottom: 0;
}
.clinician .bio-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 6px 0 0; padding: 0 2px;
  background: none; border: 0; cursor: pointer; font: 600 14px/1.4 var(--font-body);
  color: var(--navy); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.clinician .bio-toggle:hover { color: var(--blue); }
.clinician .bio-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.clinician .bio-toggle svg { width: 12px; height: 12px; flex: none; transition: transform .2s ease; }
.clinician .bio-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.clinician { min-width: 0; overflow-wrap: anywhere; align-self: start; }
.clinician.has-readmore.is-expanded {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 65ch);
  column-gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.clinician.has-readmore.is-expanded .clinician-head {
  grid-column: 1; grid-row: 2 / span 2;
  flex-direction: column; align-items: flex-start;
}
.clinician.has-readmore.is-expanded .bio { grid-column: 2; grid-row: 2; min-width: 0; }
.clinician.has-readmore.is-expanded .bio-toggle { grid-column: 2; grid-row: 3; justify-self: start; }
.clinician .bio-close {
  grid-column: 1 / -1; grid-row: 1; justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; margin: 0 0 16px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--sky); color: var(--navy);
  font: 600 14px/1.4 var(--font-body); cursor: pointer;
}
.clinician .bio-close[hidden] { display: none; }
.clinician .bio-close svg { width: 16px; height: 16px; flex: none; }
.clinician .bio-close:hover { background: var(--sky-2); border-color: var(--navy); }
.clinician .bio-close:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
@media (max-width: 700px) {
  .clinician-grid { grid-template-columns: minmax(0, 1fr); }
  .clinician.has-readmore.is-expanded { grid-template-columns: minmax(0, 1fr); }
  .clinician.has-readmore.is-expanded .clinician-head {
    grid-column: 1; grid-row: auto; flex-direction: row; align-items: center;
  }
  .clinician.has-readmore.is-expanded .bio,
  .clinician.has-readmore.is-expanded .bio-toggle { grid-column: 1; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .clinician.has-readmore .bio, .clinician .bio-toggle svg { transition: none; }
}
