/* Team directory: scoped to the homepage; individual profiles keep their styles. */
.team-section {
  background: var(--paper);
  border-top: 1px solid #d9d4cd;
  padding-top: 88px;
  padding-bottom: 88px;
}

.team-section .section-heading {
  margin-bottom: 44px;
}

.team-section .section-label {
  color: var(--purple);
}

.team-section .team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 12px;
}

.team-section .member-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
  min-height: 0;
  padding: 28px 0 32px;
  border-top: 1px solid #d9d4cd;
  background: transparent;
  box-shadow: none;
}

.team-section .member-card:after {
  background: var(--purple);
}

.team-section .member-photo {
  width: 144px;
  height: 184px;
  flex: 0 0 auto;
  background: #eeeae5;
}

.team-section .member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: none;
}

.team-section .member-photo.photo-vertical-frame img {
  object-position: 52% center;
}

.team-section .member-photo.photo-uncropped img {
  object-fit: contain;
  object-position: center;
}

.team-section .member-card:hover .member-photo img {
  transform: none;
}

.team-section .member-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  flex: 1;
}

.team-section .member-role {
  color: #69576d;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0;
}

.team-section .member-card h3 {
  margin: 5px 0 13px;
  font: 500 31px/1.35 var(--serif);
  letter-spacing: 0;
}

.team-section .member-card p {
  flex: 1;
  margin: 0;
  color: #625b63;
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.team-section .member-read {
  gap: 12px;
  margin-top: 22px;
  color: var(--purple);
  font-size: 13px;
  line-height: 1.7;
}

.team-section .member-read svg {
  width: 19px;
  height: 19px;
}

.team-section .member-card:hover h3,
.team-section .member-card:focus-visible h3 {
  color: var(--purple);
}

.team-section .member-card:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 7px;
}

@media (max-width: 1100px) {
  .team-section .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
    row-gap: 0;
  }

  .team-section .member-card {
    flex-direction: row;
    gap: 22px;
    padding: 28px 0;
  }

  .team-section .member-photo {
    width: 112px;
    height: 146px;
  }

  .team-section .member-card h3 {
    font-size: 29px;
    margin-bottom: 10px;
  }

  .team-section .member-read {
    margin-top: 18px;
  }
}

@media (max-width: 760px) {
  .team-section {
    padding-top: 58px;
    padding-bottom: 44px;
  }

  .team-section .section-heading {
    margin-bottom: 28px;
  }

  .team-section .team-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .team-section .member-card {
    gap: 22px;
    padding: 25px 0;
  }

  .team-section .member-photo {
    width: 96px;
    height: 128px;
  }

  .team-section .member-role {
    font-size: 13px;
  }

  .team-section .member-card h3 {
    font-size: 29px;
    margin: 4px 0 9px;
  }

  .team-section .member-card p {
    font-size: 14px;
    line-height: 1.85;
  }

  .team-section .member-read {
    margin-top: 14px;
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  .team-section .member-card {
    gap: 18px;
  }

  .team-section .member-photo {
    width: 80px;
    height: 112px;
  }

  .team-section .member-card h3 {
    font-size: 27px;
  }
}

@media (max-height: 500px) and (min-width: 761px) {
  .team-section {
    padding-top: 60px;
    padding-bottom: 54px;
  }

  .team-section .member-card {
    gap: 18px;
  }

  .team-section .member-photo {
    width: 96px;
    height: 128px;
  }
}

/* Keep each professional label intact while preserving the card's flex layout. */
.team-section .member-card p .member-specialty {display:inline-block;white-space:nowrap}
