.team-index a {
  position: relative;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.team-index a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--purple);
  transition: right 180ms ease;
}

.team-index a:hover,
.team-index a.is-current,
.team-index a[aria-current="location"] {
  color: var(--purple-dark);
  background: linear-gradient(90deg, rgb(110 69 255 / 7%), transparent 76%);
}

.team-index a.is-current::after,
.team-index a[aria-current="location"]::after {
  right: 0;
}

.team-index a.is-current span,
.team-index a[aria-current="location"] span {
  color: var(--purple-dark);
  font-weight: 700;
}

.team-index a:focus-visible {
  z-index: 1;
  outline: 3px solid var(--purple);
  outline-offset: -3px;
}

.team-member {
  --team-avatar-max: 245px;
  container-type: inline-size;
}

.team-member-photo,
.team-member-sheet {
  width: min(100%, var(--team-avatar-max));
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50% !important;
  clip-path: circle(50% at 50% 50%);
}

@supports (height: 100cqw) {
  .team-member-photo,
  .team-member-sheet {
    width: min(var(--team-avatar-max), 100cqw);
    height: min(var(--team-avatar-max), 100cqw);
    aspect-ratio: auto;
  }
}

.team-member-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 720px) {
  .team-member {
    --team-avatar-max: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-index a,
  .team-index a::after {
    transition: none;
  }
}
