.block--team-listing .team-grid > .col {
  border-top: 1px solid transparent;
  padding-top: 0;
  margin-top: 0;
  transition: border-color 0.2s, padding-top 0.2s, margin-top 0.2s;
}

@media (max-width: 767.98px) {
  .block--team-listing .team-grid > .col:nth-child(n+2) {
    border-top-color: var(--bs-border-color);
    padding-top: 2rem;
    margin-top: 1.5rem;
  }
}
@media (min-width: 768px) {
  .block--team-listing .team-listing[data-columns="1"] .team-grid > .col:nth-child(n+2),
  .block--team-listing .team-listing[data-columns="2"] .team-grid > .col:nth-child(n+3),
  .block--team-listing .team-listing[data-columns="3"] .team-grid > .col:nth-child(n+4),
  .block--team-listing .team-listing[data-columns="4"] .team-grid > .col:nth-child(n+5) {
    border-top-color: var(--bs-border-color);
    padding-top: 2rem;
    margin-top: 1.5rem;
  }
}
.block--team-listing .team-member {
  height: 100%;
}

.block--team-listing .team-member__photo {
  overflow: hidden;
}

.block--team-listing .team-member__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center top;
     object-position: center top;
  border-radius: 0.5rem;
}

.block--team-listing .team-member__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.block--team-listing .team-member__title {
  font-size: 1rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0.25rem;
}

.block--team-listing .team-member__location {
  font-size: 1rem;
  color: var(--bs-tertiary-color);
  margin-bottom: 0.25rem;
}

.block--team-listing .team-member__certifications {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.block--team-listing .team-member__bio {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.block--team-listing .team-member__expertise {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.block--team-listing .team-member__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 1rem;
}

.block--team-listing .team-member__contact a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #003DA5;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
}

.block--team-listing .team-member__contact a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #003DA5;
  transition: width 0.4s ease;
}

.block--team-listing .team-member__contact a:hover::after, .block--team-listing .team-member__contact a:focus::after, .block--team-listing .team-member__contact a:active::after {
  width: 100%;
}

.block--team-listing .team-member__contact .team-member__email::before,
.block--team-listing .team-member__contact .team-member__phone::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.block--team-listing .team-member__contact .team-member__email::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23003DA5'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

.block--team-listing .team-member__contact .team-member__phone::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23003DA5'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}
