.team-directory-page {
  background: #fff;
  color: #000;
}
.team-directory-page .header-sticky {
  background: #fff;
}
.team-breadcrumb {
  padding: 160px 0 14px;
  background: #fff8ee;
}
.team-breadcrumb nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #6f6864;
  font-size: 13px;
}
.team-breadcrumb a {
  color: var(--primary);
  font-weight: 700;
}
.team-hero {
  padding: 60px 0;
}
.team-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.team-kicker:before {
  width: 30px;
  height: 2px;
  background: var(--accent);
  content: "";
}
.team-hero .title {
  max-width: 900px;
  margin: 0;
}
.team-hero p {
  margin: 0;
  color: #000;
  font-size: 16px;
  line-height: 1.8;
}
.team-directory {
  padding: 70px 0;
  background: #fff;
}
.team-directory-heading {
  max-width: 820px;
  margin: 0 auto 45px;
  text-align: center;
}
.team-directory-heading p {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.8;
}
.team-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.team-profile-card {
  overflow: hidden;
  border: 1px solid #eadbc7;
  border-radius: 20px;
  background: #fff8ee;
  box-shadow: 0 18px 45px rgba(78, 0, 19, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-profile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(78, 0, 19, 0.12);
}
.team-profile-featured {
  grid-column: span 2;
}
.team-profile-visual {
  position: relative;
  display: flex;
  height: 310px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary);
  color: var(--accent);
}
.team-profile-visual > strong {
  font: 400 clamp(70px, 8vw, 120px) / 1 var(--title);
}
.team-profile-visual.has-photo {
  height: 410px;
  background: #3f121d;
}
.team-profile-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}
.team-profile-card:hover .team-profile-visual img {
  transform: scale(1.035);
}
.team-profile-status {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 9px 13px;
  border-radius: 30px;
  background: #fff;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.team-profile-content {
  padding: 25px;
}
.team-profile-content h3 {
  margin: 0 0 8px;
  font: 400 27px/1.25 var(--title);
}
.team-profile-content h3 a {
  color: var(--primary);
}
.team-profile-content > p {
  min-height: 48px;
  margin: 0 0 18px;
  color: #000;
  font-size: 13px;
  line-height: 1.65;
}
.team-profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}
.team-profile-tags span {
  padding: 6px 10px;
  border: 1px solid #e4d0b2;
  border-radius: 30px;
  background: #fff;
  color: #453e3a;
  font-size: 10px;
  font-weight: 700;
}
.team-profile-link {
  display: inline-flex;
  gap: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  border-bottom: 2px solid var(--accent);
}
.team-profile-link.is-muted {
  border: 0;
  color: #766e69;
}
.team-fit {
  padding: 70px 0;
  background: #fff8ee;
}
.team-fit-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  align-items: center;
  padding: 55px;
  border-radius: 24px;
  background: var(--primary);
  color: #fff;
}
.team-fit-panel .team-kicker,
.team-fit-panel .title {
  color: #fff;
}
.team-fit-panel p {
  max-width: 800px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}
.team-fit-panel .btn-default {
  background: var(--accent);
  color: var(--primary);
  white-space: nowrap;
}
.team-standards {
  padding: 70px 0;
  background: #fff;
}
.team-standards p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}
.team-standard-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.team-standard-list span {
  display: grid;
  min-width: 95px;
  height: 50px;
  place-items: center;
  border: 1px solid #dec9a8;
  border-radius: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}
.team-contact {
  padding: 70px 0;
  background: var(--primary);
  color: #fff;
  text-align: center;
}
.team-contact-inner {
  max-width: 850px;
  margin: auto;
}
.team-contact .title {
  color: #fff;
}
.team-contact p {
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  line-height: 1.8;
}
.team-contact .btn-default {
  background: var(--accent);
  color: var(--primary);
}
.team-contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 25px;
}
.team-contact-links a {
  color: #fff;
  font-weight: 700;
}
@media (max-width: 991px) {
  .team-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-profile-featured {
    grid-column: span 2;
  }
  .team-fit-panel {
    grid-template-columns: 1fr;
  }
  .team-breadcrumb {
    padding-top: 135px;
  }
}
@media (max-width: 767px) {
  .team-breadcrumb {
    padding-top: 120px;
  }
  .team-hero,
  .team-directory,
  .team-fit,
  .team-standards,
  .team-contact {
    padding: 50px 0;
  }
  .team-directory-grid {
    grid-template-columns: 1fr;
  }
  .team-profile-featured {
    grid-column: auto;
  }
  .team-profile-visual,
  .team-profile-visual.has-photo {
    height: 330px;
  }
  .team-fit-panel {
    padding: 35px 25px;
    border-radius: 18px;
  }
  .team-contact-links {
    flex-direction: column;
    gap: 8px;
  }
}

.team-hero .col-lg-7 > p {
  max-width: 850px;
  margin: 18px 0 0;
  color: #000;
  font-size: 15px;
  line-height: 1.8;
}
.team-hero-cta {
  padding: 38px;
  border: 1px solid #e4d0b2;
  border-radius: 20px;
  background: #fff8ee;
}
.team-hero-cta h2 {
  margin: 0 0 15px;
  color: var(--primary);
  font: 400 30px/1.3 var(--title);
}
.team-hero-cta p {
  margin: 0 0 20px;
}
.team-hero-cta p a {
  color: var(--primary);
  font-weight: 800;
}
.team-directory-grid-detailed .team-profile-content > p {
  min-height: 0;
}
.team-card-role {
  margin-bottom: 8px !important;
  color: #000 !important;
  font-weight: 700;
}
.team-card-credential {
  margin-bottom: 14px !important;
  color: var(--primary) !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.team-card-credential span {
  color: var(--accent);
}
.team-directory-grid-detailed .team-profile-content {
  display: flex;
  height: calc(100% - 310px);
  flex-direction: column;
}
.team-directory-grid-detailed .team-profile-featured .team-profile-content {
  height: auto;
}
.team-directory-grid-detailed .team-profile-link {
  margin-top: auto;
  align-self: flex-start;
}
.team-designations {
  padding: 70px 0;
  background: #fff8ee;
}
.team-section-intro {
  max-width: 920px;
  margin: 0 auto 42px;
  text-align: center;
}
.team-section-intro > p {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.8;
}
.team-designation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.team-designation-grid article {
  padding: 32px;
  border: 1px solid #e5d2b5;
  border-radius: 18px;
  background: #fff;
}
.team-designation-grid article > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.team-designation-grid h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font: 400 25px/1.35 var(--title);
}
.team-designation-grid p {
  margin: 0;
  color: #000;
  font-size: 14px;
  line-height: 1.75;
}
.team-insurance-note {
  margin: 28px 0 18px;
  padding: 19px 22px;
  border-left: 3px solid var(--accent);
  background: #fff;
  color: #000;
  font-size: 14px;
  line-height: 1.75;
}
.team-verification {
  padding: 70px 0;
  background: var(--primary);
  color: #fff;
}
.team-verification-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.team-verification .team-kicker,
.team-verification .title {
  color: #fff;
}
.team-verification p {
  margin: 0 0 17px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.8;
}
.team-languages {
  padding: 70px 0;
  background: #fff;
}
.team-languages p,
.team-match p {
  margin: 0 0 16px;
  color: #000;
  font-size: 15px;
  line-height: 1.8;
}
.team-language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}
.team-language-list span {
  padding: 10px 18px;
  border-radius: 30px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.team-populations {
  padding: 70px 0;
  background: #fff8ee;
}
.team-population-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.team-population-grid article {
  padding: 25px;
  border: 1px solid #e6d4b9;
  border-radius: 15px;
  background: #fff;
}
.team-population-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font: 400 23px/1.3 var(--title);
}
.team-population-grid p {
  margin: 0;
  color: #000;
  font-size: 13px;
  line-height: 1.65;
}
.team-match {
  padding: 70px 0;
  background: #fff;
}
.team-contact-address {
  display: flex;
  max-width: 520px;
  flex-direction: column;
  gap: 5px;
  margin: 30px auto 0;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}
.team-contact-address strong {
  margin-bottom: 4px;
  color: var(--accent);
  font: 400 20px/1.4 var(--title);
}
.team-contact-meta {
  font-size: 12px !important;
  font-style: italic;
}
.team-directory-page main > section {
  padding-top: 70px;
  padding-bottom: 70px;
}
@media (max-width: 991px) {
  .team-verification-panel {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .team-population-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-directory-grid-detailed .team-profile-content {
    height: auto;
  }
}
@media (max-width: 767px) {
  .team-directory-page main > section {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .team-hero-cta {
    padding: 28px 23px;
  }
  .team-designation-grid,
  .team-population-grid {
    grid-template-columns: 1fr;
  }
  .team-designation-grid article {
    padding: 26px 23px;
  }
  .team-verification-panel {
    gap: 18px;
  }
}

/* Editorial clinician directory: open rows instead of boxed profile cards. */
.team-directory-grid.team-directory-grid-detailed {
  display: block;
}

.team-directory-grid-detailed .team-profile-card,
.team-directory-grid-detailed .team-profile-card.team-profile-featured {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(35px, 6vw, 85px);
  margin: 0;
  padding: 55px 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid #dfd0ba;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.team-directory-grid-detailed .team-profile-card:first-child {
  padding-top: 0;
}

.team-directory-grid-detailed .team-profile-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.team-directory-grid-detailed .team-profile-card:hover {
  box-shadow: none;
  transform: none;
}

.team-directory-grid-detailed
  .team-profile-card:nth-child(even)
  .team-profile-visual {
  order: 2;
}

.team-directory-grid-detailed
  .team-profile-card:nth-child(even)
  .team-profile-content {
  order: 1;
}

.team-directory-grid-detailed .team-profile-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
}

.team-directory-grid-detailed .team-profile-visual,
.team-directory-grid-detailed .team-profile-visual.has-photo {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 0.82;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--primary), #3b0916);
}

.team-directory-grid-detailed .team-profile-visual.has-photo {
  padding: 0;
}

.team-directory-grid-detailed .team-profile-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
}

.team-directory-grid-detailed .team-profile-visual:not(.has-photo) {
  background: url("../img/coslyn-selby.webp") center top / cover no-repeat;
}

.team-directory-grid-detailed .team-profile-visual:not(.has-photo) > strong {
  display: none;
}

.team-directory-grid-detailed .team-profile-visual > strong {
  font-size: clamp(95px, 12vw, 170px);
}

.team-directory-grid-detailed .team-profile-content,
.team-directory-grid-detailed .team-profile-featured .team-profile-content {
  display: flex;
  height: auto;
  justify-content: center;
  flex-direction: column;
  padding: 15px 0;
}

.team-directory-grid-detailed .team-profile-content h3 {
  font-size: clamp(32px, 3vw, 48px);
}

.team-directory-grid-detailed .team-profile-content > p {
  margin-bottom: 13px;
  font-size: 14px;
  line-height: 1.75;
}

.team-directory-grid-detailed .team-card-role {
  font-size: 15px !important;
}

.team-directory-grid-detailed .team-profile-link {
  margin-top: 13px;
}

@media (max-width: 991px) {
  .team-directory-grid-detailed .team-profile-card,
  .team-directory-grid-detailed .team-profile-card.team-profile-featured {
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    gap: 35px;
    padding: 45px 0;
  }

  .team-directory-grid-detailed .team-profile-visual,
  .team-directory-grid-detailed .team-profile-visual.has-photo {
    height: auto;
    min-height: 0;
  }

  .team-directory-grid-detailed .team-profile-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 40%);
  }
}

@media (max-width: 767px) {
  .team-directory-grid-detailed .team-profile-card,
  .team-directory-grid-detailed .team-profile-card.team-profile-featured {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 38px 0;
  }

  .team-directory-grid-detailed
    .team-profile-card:nth-child(even)
    .team-profile-visual,
  .team-directory-grid-detailed
    .team-profile-card:nth-child(even)
    .team-profile-content {
    order: initial;
  }

  .team-directory-grid-detailed .team-profile-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .team-directory-grid-detailed .team-profile-visual,
  .team-directory-grid-detailed .team-profile-visual.has-photo {
    width: min(100%, 430px);
    height: auto;
    min-height: 0;
    margin: 0 auto;
    border-radius: 18px;
  }

  .team-directory-grid-detailed .team-profile-content,
  .team-directory-grid-detailed .team-profile-featured .team-profile-content {
    padding: 0;
  }
}

/* Profile photographs are image elements; the link retains the grid position. */
.team-directory-grid-detailed .team-profile-media {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
}
.team-directory-grid-detailed .team-profile-media img.team-profile-visual {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 0.82;
  margin: 0;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
  background: none;
}
.team-directory-grid-detailed
  .team-profile-card:nth-child(even)
  .team-profile-media {
  order: 2;
}
@media (max-width: 767px) {
  .team-directory-grid-detailed .team-profile-media {
    width: min(100%, 430px);
    margin: 0 auto;
    border-radius: 18px;
  }
  .team-directory-grid-detailed
    .team-profile-card:nth-child(even)
    .team-profile-media {
    order: initial;
  }
}
