
/* Staff directory and office-specific team pages ------------------------- */
body.team-page-shell {
  background:
    radial-gradient(circle at 88% 8%, rgba(79, 148, 104, 0.10), transparent 25rem),
    linear-gradient(180deg, #edf4f8 0%, #f9fbfc 44%, #eef5f8 100%);
}

.team-page {
  width: min(100%, 1260px);
  box-sizing: border-box;
  margin: 42px auto 72px;
  padding: 0 28px;
}

.team-page:focus {
  outline: none;
}

.team-page h1,
.team-page h2,
.team-page h3 {
  color: var(--guide-navy-deep);
}

.team-page h1::after,
.team-page h2::after,
.team-page h3::after {
  content: none;
}

.team-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(430px, 1.06fr);
  align-items: center;
  gap: clamp(32px, 4.5vw, 64px);
  min-height: 540px;
  box-sizing: border-box;
  padding: clamp(35px, 5vw, 62px);
  overflow: hidden;
  border: 1px solid var(--guide-border-strong);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99) 0%, rgba(250, 253, 254, 0.99) 58%, rgba(238, 247, 241, 0.98) 100%);
  box-shadow: var(--guide-shadow);
}

.team-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--guide-blue) 0 67%, var(--guide-green) 67% 100%);
}

.team-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(79, 148, 104, 0.17);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px rgba(79, 148, 104, 0.034),
    0 0 0 72px rgba(47, 120, 183, 0.024);
  pointer-events: none;
}

.team-hero-copy,
.team-directory-collage,
.team-hero-photo {
  position: relative;
  z-index: 1;
}

.team-hero h1 {
  max-width: 14ch;
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4.9vw, 4.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.team-hero-actions,
.team-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 27px;
}

.team-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  box-sizing: border-box;
  padding: 11px 19px;
  border: 1px solid #3f7b58;
  border-radius: 999px;
  background: #3f7b58;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(48, 100, 69, 0.19);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.team-button:hover {
  background: #326747;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 11px 25px rgba(48, 100, 69, 0.26);
}

.team-button:focus-visible,
.team-text-link:focus-visible,
.team-selector-card:focus-visible,
.team-profile-card__link:focus-visible {
  outline: 3px solid rgba(47, 120, 183, 0.32);
  outline-offset: 3px;
}

.team-text-link {
  color: var(--guide-blue);
  font-size: 0.93rem;
  font-weight: 800;
  text-decoration: none;
}

.team-text-link span {
  display: inline-block;
  margin-left: 3px;
  transition: transform 180ms ease;
}

.team-text-link:hover span {
  transform: translateX(3px);
}

/* Directory hero collage */
.team-directory-collage {
  width: 100%;
  min-height: 405px;
  isolation: isolate;
}

.team-directory-collage__photo {
  position: absolute;
  width: 78%;
  height: 58%;
  margin: 0;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.98);
  border-radius: 22px;
  background: #e6eef2;
  box-shadow: 0 22px 42px rgba(17, 49, 72, 0.21);
}

.team-directory-collage__photo--dexter {
  z-index: 1;
  top: 20px;
  left: 12px;
  transform: rotate(-1.4deg);
}

.team-directory-collage__photo--poplar {
  z-index: 2;
  right: 9px;
  bottom: 18px;
  transform: rotate(1.1deg);
}

.team-directory-collage__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-directory-collage__photo span {
  position: absolute;
  right: 12px;
  bottom: 11px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,0.68);
  border-radius: 999px;
  background: rgba(16, 45, 67, 0.86);
  color: #ffffff;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  backdrop-filter: blur(7px);
}

/* Directory cards */
.team-selector-section {
  margin-top: 30px;
  padding: clamp(34px, 4.7vw, 58px);
  border: 1px solid var(--guide-border);
  border-radius: 24px;
  background: var(--guide-paper);
  box-shadow: var(--guide-shadow-soft);
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.team-section-heading,
.team-department-heading {
  max-width: 780px;
}

.team-section-eyebrow {
  margin: 0 0 7px;
  color: var(--guide-green);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-section-heading h2,
.team-department-heading h2,
.team-directory-footer h2,
.team-page-footer h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  line-height: 1.13;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.team-section-heading > p:last-child,
.team-department-heading > p:last-child,
.team-directory-footer > div > p:last-child,
.team-page-footer > div > p:last-child {
  max-width: 70ch;
  margin: 13px 0 0;
  color: #4a6272;
  font-size: 1rem;
  line-height: 1.7;
}

.team-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.team-selector-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cbdde7;
  border-radius: 22px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(17, 49, 72, 0.085);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.team-selector-card:hover {
  border-color: #a9cbdc;
  transform: translateY(-5px);
  box-shadow: 0 19px 37px rgba(17, 49, 72, 0.14);
}

.team-selector-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e8eff3;
}

.team-selector-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16, 45, 67, 0.25) 100%);
}

.team-selector-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.22, 0.78, 0.20, 1);
}

.team-selector-card:hover .team-selector-card__media img {
  transform: scale(1.025);
}

.team-selector-card__location {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 13px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  background: rgba(16,45,67,0.86);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  backdrop-filter: blur(7px);
}

.team-selector-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
}

.team-selector-card__eyebrow,
.team-profile-card__eyebrow {
  margin: 0 0 5px;
  color: var(--guide-green);
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.team-selector-card h3,
.team-profile-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.18;
}

.team-selector-card__body p:not(.team-selector-card__eyebrow) {
  margin: 10px 0 0;
  color: #4b6373;
  line-height: 1.65;
}

.team-selector-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e0e9ee;
  color: var(--guide-blue);
  font-size: 0.87rem;
  font-weight: 800;
}

.team-selector-card__cta svg {
  width: 20px;
  height: 20px;
  transition: transform 180ms ease;
}

.team-selector-card:hover .team-selector-card__cta svg {
  transform: translateX(3px);
}

.team-directory-footer,
.team-page-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
  padding: clamp(30px, 4vw, 45px);
  border: 1px solid #cde0d3;
  border-radius: 24px;
  background: linear-gradient(135deg, #fbfefc 0%, #edf7f0 100%);
  box-shadow: var(--guide-shadow-soft);
}

.team-directory-footer .team-footer-actions,
.team-page-footer .team-footer-actions {
  justify-content: flex-end;
  margin-top: 0;
}

/* Office-specific team pages */
.team-location-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: #526a79;
  font-size: 0.86rem;
  font-weight: 800;
}

.team-location-facts a {
  color: var(--guide-blue);
  text-decoration: none;
}

.team-hero-photo {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 7px solid rgba(255,255,255,0.98);
  border-radius: 24px 16px 24px 16px;
  background: #e6eef2;
  box-shadow: 0 22px 42px rgba(17,49,72,0.20);
  transform: rotate(0.5deg);
}

.team-hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.team-hero-photo figcaption {
  padding: 12px 15px;
  border-top: 1px solid #d7e4ec;
  background: #ffffff;
  color: #3d5667;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.team-departments {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.team-department {
  padding: clamp(32px, 4.5vw, 54px);
  border: 1px solid var(--guide-border);
  border-radius: 24px;
  background: var(--guide-paper);
  box-shadow: var(--guide-shadow-soft);
  scroll-margin-top: calc(var(--header-height) + 26px);
}

.team-department + .team-department {
  position: relative;
}

.team-roster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 27px;
}

.team-roster-grid > :only-child {
  grid-column: 1 / -1;
  max-width: 760px;
}

.team-profile-card {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-width: 0;
  min-height: 185px;
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid #d5e3ea;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 8px 20px rgba(17,49,72,0.055);
}

.team-profile-card__photo {
  width: 142px;
  height: 142px;
  overflow: hidden;
  border: 5px solid #ffffff;
  border-radius: 25px 15px 25px 15px;
  background: #e6eef2;
  box-shadow: 0 9px 20px rgba(17,49,72,0.13);
}

.team-profile-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-profile-card__copy > p:not(.team-profile-card__eyebrow) {
  margin: 10px 0 0;
  color: #4b6373;
  font-size: 0.91rem;
  line-height: 1.62;
}

.team-profile-card__link {
  display: inline-flex;
  margin-top: 13px;
  color: var(--guide-blue);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.team-profile-card__link span {
  margin-left: 4px;
  transition: transform 180ms ease;
}

.team-profile-card__link:hover span {
  transform: translateX(3px);
}

/* Staff biographies supplied by the practice. */
.team-roster-grid--bios > .team-profile-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: min(100%, 760px);
}

.team-profile-card--bio {
  align-items: start;
  min-height: 218px;
}

.team-profile-card--bio .team-profile-card__photo {
  margin-top: 2px;
}

.team-profile-card--bio .team-profile-card__copy > p:not(.team-profile-card__eyebrow) {
  font-size: 0.93rem;
  line-height: 1.66;
}

@media (max-width: 1050px) {
  .team-hero {
    grid-template-columns: 1fr;
  }

  .team-directory-collage {
    min-height: 520px;
  }

  .team-hero-photo {
    width: min(100%, 800px);
    justify-self: center;
  }
}

@media (max-width: 820px) {
  .team-selector-grid,
  .team-roster-grid {
    grid-template-columns: 1fr;
  }

  .team-roster-grid > :only-child {
    max-width: none;
  }

  .team-directory-footer,
  .team-page-footer {
    grid-template-columns: 1fr;
  }

  .team-directory-footer .team-footer-actions,
  .team-page-footer .team-footer-actions {
    justify-content: flex-start;
  }

  .team-roster-grid--bios > .team-profile-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .team-page {
    margin: 18px auto 48px;
    padding: 0 12px;
  }

  .team-hero {
    min-height: 0;
    gap: 27px;
    padding: 31px 20px 22px;
    border-radius: 20px;
  }

  .team-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }

  .team-hero-actions,
  .team-footer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .team-button {
    width: 100%;
  }

  .team-text-link {
    align-self: center;
    padding: 8px;
  }

  .team-directory-collage {
    min-height: 410px;
  }

  .team-directory-collage__photo {
    width: calc(100% - 32px);
    height: 48%;
    border-width: 5px;
    border-radius: 17px;
  }

  .team-directory-collage__photo--dexter {
    top: 12px;
    left: 10px;
  }

  .team-directory-collage__photo--poplar {
    right: 10px;
    bottom: 12px;
  }

  .team-selector-section,
  .team-department,
  .team-directory-footer,
  .team-page-footer {
    padding: 27px 19px;
    border-radius: 19px;
  }

  .team-selector-card {
    border-radius: 18px;
  }

  .team-selector-card__body {
    padding: 20px;
  }

  .team-profile-card {
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 15px;
    min-height: 0;
    padding: 16px;
  }

  .team-profile-card__photo {
    width: 105px;
    height: 105px;
    border-radius: 20px 12px 20px 12px;
  }

  .team-profile-card h3 {
    font-size: 1.35rem;
  }

  .team-profile-card__copy > p:not(.team-profile-card__eyebrow) {
    font-size: 0.86rem;
  }
}

@media (max-width: 420px) {
  .team-profile-card {
    grid-template-columns: 1fr;
  }

  .team-profile-card__photo {
    width: 116px;
    height: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-button,
  .team-text-link span,
  .team-selector-card,
  .team-selector-card__media img,
  .team-selector-card__cta svg,
  .team-profile-card__link span {
    transition: none;
  }
}

@media print {
  .team-page-shell .corner-logo-box,
  .team-page-shell > header,
  .team-page-shell > footer,
  .team-hero-actions,
  .team-footer-actions {
    display: none !important;
  }

  .team-page {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .team-hero,
  .team-selector-section,
  .team-department,
  .team-directory-footer,
  .team-page-footer {
    box-shadow: none;
    break-inside: avoid;
  }
}
/* Individual doctor profile pages -------------------------------------- */
body.doctor-profile-shell {
  background:
    radial-gradient(circle at 88% 8%, rgba(79, 148, 104, 0.10), transparent 25rem),
    linear-gradient(180deg, #edf4f8 0%, #f9fbfc 44%, #eef5f8 100%);
}

.doctor-profile-page {
  width: min(100%, 1220px);
  box-sizing: border-box;
  margin: 42px auto 72px;
  padding: 0 28px;
}

.doctor-profile-page:focus {
  outline: none;
}

.doctor-profile-page h1,
.doctor-profile-page h2,
.doctor-profile-page h3 {
  color: var(--guide-navy-deep);
}

.doctor-profile-page h1::after,
.doctor-profile-page h2::after,
.doctor-profile-page h3::after {
  content: none;
}

.doctor-profile-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.78fr);
  align-items: center;
  gap: clamp(34px, 5vw, 68px);
  min-height: 520px;
  box-sizing: border-box;
  padding: clamp(38px, 5vw, 66px);
  overflow: hidden;
  border: 1px solid var(--guide-border-strong);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.99) 0%, rgba(250,253,254,.99) 58%, rgba(238,247,241,.98) 100%);
  box-shadow: var(--guide-shadow);
}

.doctor-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--guide-blue) 0 67%, var(--guide-green) 67% 100%);
}

.doctor-profile-hero::after {
  content: "";
  position: absolute;
  right: -92px;
  bottom: -116px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(79,148,104,.17);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(79,148,104,.032), 0 0 0 76px rgba(47,120,183,.024);
  pointer-events: none;
}

.doctor-profile-hero__copy,
.doctor-profile-portrait {
  position: relative;
  z-index: 1;
}

.doctor-profile-hero h1 {
  max-width: 14ch;
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 4.9vw, 4.75rem);
  font-weight: 700;
  line-height: 1.015;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.doctor-profile-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 17px 0 0;
  color: var(--guide-green);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.doctor-profile-role span[aria-hidden="true"] {
  color: #9cb0bd;
}

.doctor-profile-lead {
  max-width: 62ch;
  margin-top: 24px;
  padding-left: 19px;
  border-left: 3px solid var(--guide-green);
}

.doctor-profile-lead p {
  margin: 0;
  color: #385165;
  font-size: clamp(1.03rem, 1.25vw, 1.16rem);
  line-height: 1.75;
}

.doctor-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-top: 28px;
}

.doctor-profile-portrait {
  width: min(100%, 390px);
  justify-self: end;
  margin: 0;
  transform: rotate(.55deg);
}

.doctor-profile-portrait__frame {
  position: relative;
  overflow: hidden;
  border: 8px solid rgba(255,255,255,.98);
  border-radius: 28px 18px 28px 18px;
  background: #e6eef2;
  box-shadow: 0 24px 46px rgba(17,49,72,.22);
}

.doctor-profile-portrait__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(16,45,67,.08);
  border-radius: inherit;
  pointer-events: none;
}

.doctor-profile-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.doctor-profile-portrait figcaption {
  width: fit-content;
  max-width: calc(100% - 30px);
  margin: -18px auto 0;
  padding: 9px 15px;
  position: relative;
  z-index: 2;
  border: 1px solid #d4e3e9;
  border-radius: 999px;
  background: #fff;
  color: #456071;
  font-size: .73rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 9px 20px rgba(17,49,72,.12);
}

.doctor-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 28px;
  margin-top: 30px;
}

.doctor-profile-story {
  display: grid;
  gap: 24px;
}

.doctor-profile-section,
.doctor-profile-fact-card,
.doctor-profile-location-card,
.doctor-profile-footer {
  border: 1px solid var(--guide-border);
  border-radius: 24px;
  background: var(--guide-paper);
  box-shadow: var(--guide-shadow-soft);
}

.doctor-profile-section {
  padding: clamp(32px, 4.5vw, 54px);
  scroll-margin-top: calc(var(--header-height) + 26px);
}

.doctor-profile-section__eyebrow {
  margin: 0 0 7px;
  color: var(--guide-green);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.doctor-profile-section h2,
.doctor-profile-fact-card h2,
.doctor-profile-location-card h2,
.doctor-profile-footer h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.13;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.doctor-profile-section > p:not(.doctor-profile-section__eyebrow) {
  margin: 17px 0 0;
  color: #425c6d;
  font-size: 1.01rem;
  line-height: 1.78;
}

.doctor-profile-section > p:not(.doctor-profile-section__eyebrow) + p {
  margin-top: 14px;
}

.doctor-profile-highlight {
  position: relative;
  margin: 0;
  padding: 28px 32px 28px 72px;
  overflow: hidden;
  border: 1px solid #cfe1d5;
  border-radius: 22px;
  background: linear-gradient(135deg, #fbfefc 0%, #edf7f0 100%);
  color: var(--guide-navy-deep);
  box-shadow: var(--guide-shadow-soft);
}

.doctor-profile-highlight::before {
  content: "“";
  position: absolute;
  top: 5px;
  left: 25px;
  color: rgba(79,148,104,.45);
  font-family: Georgia, serif;
  font-size: 5.2rem;
  line-height: 1;
}

.doctor-profile-highlight p {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.012em;
}

.doctor-profile-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 20px;
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.doctor-profile-fact-card,
.doctor-profile-location-card {
  padding: 27px;
}

.doctor-profile-fact-card ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.doctor-profile-fact-card li {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 12px;
  align-items: baseline;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid #e2eaee;
}

.doctor-profile-fact-card li::before {
  content: none !important;
}

.doctor-profile-fact-card li span {
  color: #71828e;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.doctor-profile-fact-card li strong {
  color: #314d60;
  font-size: .88rem;
  line-height: 1.45;
}

.doctor-profile-contact {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #d5e4ea;
  border-radius: 15px;
  background: #f5f9fb;
}

.doctor-profile-contact span,
.doctor-profile-contact a {
  display: block;
}

.doctor-profile-contact span {
  color: #6a7f8e;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.doctor-profile-contact a {
  margin-top: 4px;
  color: var(--guide-blue);
  font-size: 1.07rem;
  font-weight: 800;
  text-decoration: none;
}

.doctor-profile-location-card {
  background:
    radial-gradient(circle at 91% 10%, rgba(47,120,183,.08), transparent 8rem),
    linear-gradient(145deg, #fff 0%, #f4f9fb 100%);
}

.doctor-profile-location-card > p:not(.doctor-profile-section__eyebrow) {
  margin: 13px 0 0;
  color: #506878;
  line-height: 1.65;
}

.doctor-profile-location-card .team-button {
  width: 100%;
  margin-top: 20px;
}

.doctor-profile-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
  padding: clamp(30px, 4vw, 45px);
  border-color: #cde0d3;
  background: linear-gradient(135deg, #fbfefc 0%, #edf7f0 100%);
}

.doctor-profile-footer > div > p:last-child {
  max-width: 67ch;
  margin: 13px 0 0;
  color: #4a6272;
  line-height: 1.7;
}

.doctor-profile-footer .team-footer-actions {
  justify-content: flex-end;
  margin-top: 0;
}

@media (max-width: 1000px) {
  .doctor-profile-hero {
    grid-template-columns: 1fr;
  }

  .doctor-profile-portrait {
    justify-self: start;
    width: min(100%, 480px);
  }

  .doctor-profile-layout {
    grid-template-columns: 1fr;
  }

  .doctor-profile-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .doctor-profile-footer {
    grid-template-columns: 1fr;
  }

  .doctor-profile-footer .team-footer-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .doctor-profile-page {
    margin: 18px auto 48px;
    padding: 0 12px;
  }

  .doctor-profile-hero {
    min-height: 0;
    gap: 29px;
    padding: 32px 20px 24px;
    border-radius: 20px;
  }

  .doctor-profile-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.15rem);
  }

  .doctor-profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .doctor-profile-actions .team-button {
    width: 100%;
  }

  .doctor-profile-actions .team-text-link {
    align-self: center;
    padding: 8px;
  }

  .doctor-profile-portrait {
    width: 100%;
    transform: none;
  }

  .doctor-profile-portrait__frame {
    border-width: 5px;
    border-radius: 21px 14px 21px 14px;
  }

  .doctor-profile-section,
  .doctor-profile-fact-card,
  .doctor-profile-location-card,
  .doctor-profile-footer {
    padding: 27px 20px;
    border-radius: 19px;
  }

  .doctor-profile-highlight {
    padding: 26px 21px 25px 57px;
    border-radius: 18px;
  }

  .doctor-profile-highlight::before {
    left: 17px;
    font-size: 4rem;
  }

  .doctor-profile-aside {
    grid-template-columns: 1fr;
  }

  .doctor-profile-footer .team-footer-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media print {
  .doctor-profile-shell .corner-logo-box,
  .doctor-profile-shell header,
  .doctor-profile-shell footer,
  .doctor-profile-actions,
  .doctor-profile-footer {
    display: none !important;
  }

  .doctor-profile-shell {
    padding: 0 !important;
    background: #fff !important;
  }

  .doctor-profile-page {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .doctor-profile-hero,
  .doctor-profile-section,
  .doctor-profile-highlight,
  .doctor-profile-fact-card,
  .doctor-profile-location-card {
    box-shadow: none;
    break-inside: avoid;
  }

  .doctor-profile-aside {
    position: static;
  }
}

/* Quick access to each office's staff biographies. */
.team-department-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.team-department-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 18px;
  border: 1px solid var(--guide-border);
  border-radius: 999px;
  background: var(--guide-paper);
  color: var(--guide-blue);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.team-department-nav a:hover {
  background: #edf7f0;
}

.team-department-nav a:focus-visible {
  outline: 3px solid var(--guide-blue);
  outline-offset: 3px;
}

.team-location-shell .team-profile-card--bio .team-profile-card__copy > p:not(.team-profile-card__eyebrow) {
  font-size: 1rem;
}

@media print {
  .team-department-nav {
    display: none;
  }
}
