.clinic-staff {
  --staff-red:#bc3b30;
  --staff-ink:#39322e;
  --staff-line:#eee2dc;
  color:var(--staff-ink)
}
.clinic-staff__inner {
  max-width:1180px;
  padding:0 36px;
  margin:0 auto 120px
}
.clinic-staff__intro {
  text-align:center;
  margin:70px auto 56px
}
.clinic-staff__eyebrow {
  font-family:"Be Vietnam Pro",sans-serif;
  font-size:15px;
  letter-spacing:.12em;
  color:var(--staff-red);
  font-weight:600;
  margin-bottom:18px
}
.clinic-staff__intro h2 {
  font-size:34px;
  line-height:1.6;
  color:var(--staff-red);
  font-weight:700;
  margin-bottom:20px
}
.clinic-staff__intro>p:last-child {
  font-size:16px;
  line-height:1.9
}
.clinic-staff__grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:38px;
  align-items:stretch
}
.staff-card {
  display:flex;
  flex-direction:column;
  background:#fff;
  border-radius:34px;
  padding:22px;
  scroll-margin-top:135px;
  overflow:hidden
}
.staff-card__portrait {
  aspect-ratio:4/3;
  border-radius:22px;
  overflow:hidden;
  background:#f3efea
}
.staff-card__portrait img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 35%
}
.staff-card__portrait--illustration img {
  object-fit:contain
}
@media(min-width:768px) {
  .staff-card--director {
    grid-column:1/-1;
    display:grid;
    grid-template-columns:minmax(0, .85fr) minmax(0, 1.15fr);
    gap:0 32px;
    align-items:start
  }
  .staff-card--director .staff-card__body {
    display:contents
  }
  .staff-card--director .staff-card__portrait {
    grid-row:1/3
  }
  .staff-card--director .staff-card__heading {
    grid-column:2;
    margin-top:8px
  }
  .staff-card--director .staff-card__section {
    grid-column:2
  }
  .staff-card--director .staff-card__section:last-of-type {
    grid-column:1/-1;
    margin-top:26px
  }
  .staff-card--director .staff-card__button {
    grid-column:1/-1;
    max-width:360px;
    justify-self:center
  }
}
.staff-card__body {
  padding:27px 8px 8px;
  display:flex;
  flex:1;
  flex-direction:column
}
.staff-card__heading {
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:flex-start;
  justify-content:space-between;
  margin-bottom:25px
}
.staff-card__heading h2 {
  flex-shrink:0;
  max-width:100%;
  font-size:25px;
  line-height:1.5;
  font-weight:700;
  overflow-wrap:anywhere
}
.staff-role {
  display:inline-block;
  flex-shrink:0;
  background:var(--staff-red);
  color:#fff;
  border-radius:7px;
  padding:7px 13px;
  font-size:13px;
  line-height:1.65;
  font-weight:600;
  text-align:center
}
.staff-card__section {
  margin-bottom:23px
}
.staff-card__section h3,.staff-dialog__section h3 {
  border-left:4px solid var(--staff-red);
  padding-left:11px;
  font-size:17px;
  line-height:1.6;
  font-weight:700;
  margin-bottom:12px
}
.staff-card__section p {
  font-size:15px;
  line-height:1.95;
  overflow-wrap:anywhere
}
.staff-card__button {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  min-height:54px;
  width:100%;
  margin-top:auto;
  background:var(--staff-red);
  color:#fff;
  border:1px solid var(--staff-red);
  border-radius:10px;
  font:inherit;
  font-size:16px;
  font-weight:700;
  padding:12px 20px;
  cursor:pointer;
  transition:background .2s,color .2s
}
.staff-card__button:focus-visible {
  background:#fff;
  color:var(--staff-red)
}
.staff-card__button span {
  font-size:23px;
  font-weight:400
}
.staff-card__button:focus-visible,.staff-dialog button:focus-visible {
  outline:3px solid #28637b;
  outline-offset:4px
}
.staff-dialog {
  --staff-red:#bc3b30;
  --staff-ink:#39322e;
  --staff-line:#eee2dc;
  color:var(--staff-ink);
  border:0;
  padding:0;
  width:min(920px,calc(100% - 48px));
  max-width:920px;
  max-height:calc(100vh - 72px);
  max-height:calc(100dvh - 72px);
  margin:auto;
  border-radius:28px;
  background:#fff;
  box-shadow:0 20px 90px #231c1933;
  overflow:auto;
  overscroll-behavior:contain
}
.staff-dialog[open],.staff-dialog[open]::backdrop {
  animation:staff-dialog-enter 180ms ease-out
}
@keyframes staff-dialog-enter {
  from { opacity:0 }
  to { opacity:1 }
}
.staff-dialog::backdrop {
  background:rgba(49,39,34,.57)
}
.staff-dialog__top {
  position:sticky;
  top:0;
  z-index:1;
  display:flex;
  align-items:center;
  gap:20px;
  border-bottom:1px solid var(--staff-line);
  padding:27px 80px 24px 38px;
  background:#fff
}
.staff-dialog__top h2 {
  font-size:27px;
  line-height:1.5;
  font-weight:700;
  margin-right:auto;
  overflow-wrap:anywhere
}
.staff-dialog__close {
  position:absolute;
  right:18px;
  top:20px;
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  background:#f6f0ec;
  color:#53443d;
  font:inherit;
  font-size:30px;
  line-height:1;
  cursor:pointer
}
.staff-dialog__content {
  padding:30px 38px
}
.staff-dialog__section+.staff-dialog__section {
  border-top:1px solid var(--staff-line);
  padding-top:28px;
  margin-top:28px
}
.staff-dialog__section p {
  font-size:16px;
  line-height:2;
  overflow-wrap:anywhere
}
.staff-dialog__photos {
  display:grid;
  grid-template-columns:var(--photo-columns);
  width:100%;
  max-width:var(--photo-row-width);
  gap:14px;
  margin:24px auto 0;
  align-items:start
}
.staff-dialog__photos figure {
  margin:0;
  background:#f6f2ef;
  border-radius:13px;
  overflow:hidden
}
.staff-dialog__photos img {
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  object-position:center top
}
.staff-dialog__bottom-close {
  display:block;
  margin:30px auto 0;
  min-height:44px;
  background:#fff;
  border:1px solid #c6b7ae;
  border-radius:24px;
  padding:10px 36px;
  font:inherit;
  font-size:14px;
  cursor:pointer;
  color:var(--staff-ink)
}
@media(max-width:767px) {
  .clinic-staff__inner {
    padding:0 20px;
    margin-bottom:70px
  }
  .clinic-staff__intro {
    margin:38px auto 32px
  }
  .clinic-staff__intro h2 {
    font-size:26px
  }
  .clinic-staff__intro>p:last-child {
    font-size:14px
  }
  .clinic-staff__grid {
    grid-template-columns:minmax(0,1fr);
    gap:25px
  }
  .staff-card {
    padding:16px;
    border-radius:26px;
    scroll-margin-top:100px
  }
  .staff-card__portrait {
    border-radius:17px
  }
  .staff-card__body {
    padding:22px 5px 5px
  }
  .staff-card__heading {
    gap:10px;
    margin-bottom:22px
  }
  .staff-card__heading h2 {
    font-size:22px
  }
  .staff-role {
    font-size:12px;
    padding:6px 9px;
    max-width:100%
  }
  .staff-card__section p {
    font-size:15px
  }
  .staff-dialog {
    width:calc(100% - 24px);
    max-height:calc(100vh - 32px);
    max-height:calc(100dvh - 32px);
    border-radius:21px
  }
  .staff-dialog__top {
    padding:23px 60px 18px 21px;
    gap:10px;
    flex-wrap:wrap
  }
  .staff-dialog__top h2 {
    font-size:23px;
    width:100%
  }
  .staff-dialog__close {
    right:10px;
    top:14px
  }
  .staff-dialog__content {
    padding:24px 21px
  }
  .staff-dialog__section h3 {
    font-size:16px
  }
  .staff-dialog__section p {
    font-size:15px;
    line-height:1.95
  }
  .staff-dialog__photos {
    grid-template-columns:minmax(0,1fr);
    max-width:none;
    gap:15px
  }
  .staff-dialog__photos img {
    aspect-ratio:auto;
    max-height:420px
  }
}
/* Hover is limited to pointers that support it, avoiding sticky touch states. */
@media(hover:hover) {
  .staff-card__button:hover {
    background:#fff;
    color:var(--staff-red)
  }
  .staff-dialog__close:hover,.staff-dialog__bottom-close:hover {
    background:#eee2dc
  }
}
.staff-dialog__close,.staff-dialog__bottom-close {
  transition:background 150ms ease-out
}
.staff-dialog__close:focus-visible,.staff-dialog__bottom-close:focus-visible {
  background:#eee2dc
}
@media(prefers-reduced-motion:reduce) {
  .staff-card__button,.staff-dialog__close,.staff-dialog__bottom-close {
    transition:none
  }
  .staff-dialog[open],.staff-dialog[open]::backdrop {
    animation:none
  }
}

/* Balance short headings without altering manuscript text or layout. */
.clinic-staff__intro h2,.staff-dialog__section h3 {
  text-wrap:balance;
  line-break:strict
}
.staff-card__heading,.staff-dialog__top {
  row-gap:12px
}
.staff-card__section p,.staff-dialog__section p {
  line-break:strict
}

.staff-heading-phrase {
  display:inline-block;
  max-width:100%
}
.staff-dialog__photos .staff-photo--without-bars {
  aspect-ratio:3/4;
  width:100%
}
.staff-dialog__photos .staff-photo--without-bars img {
  height:100%;
  max-height:none;
  object-fit:cover;
  object-position:center
}
@media(max-width:767px) {
  .staff-dialog__photos .staff-photo--without-bars {
    max-width:315px;
    justify-self:center
  }
}
