:root {
  --sidebar-width: 22rem;
  --layout-gap: 6rem;
}

@media (min-width: 1300px) {
  :root {
    --sidebar-width: 27rem;
    --layout-gap: 8rem;
  }
}
.team-listing {
  overflow: hidden;
  padding-top: 6px;
}
p + .team-listing, h2 + .team-listing, h3 + .team-listing, h4 + .team-listing, h5 + .team-listing, h6 + .team-listing {
  margin-top: 3rem;
}
.team-listing + .team {
  margin-top: 3rem;
}
div + .team-listing {
  margin-top: 4rem;
}
.team-listing.team-fade .team-head:not(.open) .profile img {
  opacity: 0.8;
  filter: grayscale(90%);
}
.team-listing.team-fade .team-head:not(.open) h3, .team-listing.team-fade .team-head:not(.open) p, .team-listing.team-fade .team-head:not(.open) .team-details:after {
  opacity: 0.35;
}

.team-head {
  margin: 0 0 20px 0;
  position: relative;
  transition: transform 0.25s ease-in-out;
  cursor: pointer;
}
.team-head img {
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 6px;
  aspect-ratio: 1/1.1;
  object-fit: cover;
  transition: all 0.25s ease-in-out;
}
.team-head .profile {
  width: 100%;
}
.team-head .team-details {
  display: flex;
  width: 100%;
  margin: 0;
}
.team-head .team-details .title {
  width: 100%;
  position: relative;
}
.team-head .team-details .title:after {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  background-image: url("data:image/svg+xml,%3Csvg width='51' height='51' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='.652' y='1.222' width='49' height='49' rx='24.5' stroke-width='1.5' stroke='%23354093'/%3E%3Cpath d='m16.827 16.459 8.325 9.406-8.325 9.12m8.325-18.526 8.325 9.406-8.325 9.12' stroke='%23354093' stroke-width='2'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  top: 10px;
  right: 0;
  transition: all 0.25s ease-in-out;
}
.team-head .team-details h3 {
  font-size: var(--wp--preset--font-size--font-22);
  font-weight: 500;
  margin: 13px 50px 11px 0;
  color: #723489;
  transition: color 0.25s ease-in-out, opacity 0.25s ease-in-out;
}
.team-head .team-details p {
  font-size: 1.7rem;
  margin: 3px 0 0 0;
  color: #063854;
  transition: color 0.18s ease-in-out, font-weight 0.18s ease-in-out, opacity 0.18s ease-in-out;
}
.team-head.open, .team-head:hover {
  transform: translateY(-6px);
}
.team-head.open .profile img, .team-head:hover .profile img {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.team-head.open .team-details .title:after {
  transform: rotate(90deg);
}

.team-bio {
  width: 100%;
  height: 0;
  transition: height 0.3s ease-in-out, border 0.3s ease-in-out;
  overflow: hidden;
}
.team-bio .inner {
  margin: 0 0 50px 0;
  padding: 3rem !important;
  background: #e8e7e8;
  border-radius: 6px;
  opacity: 0;
}
@media (max-width: 782px) {
  .team-bio .inner {
    padding-top: 0;
  }
}
.team-bio .wp-block-columns {
  margin: 0;
}
.team-bio .wp-block-column:nth-child(2) {
  padding: var(--spacer);
  background: rgba(4, 89, 157, 0.3);
  border-radius: 4px;
}
.team-bio h3 {
  font-size: var(--wp--preset--font-size--font-22);
  font-weight: 400;
  margin-bottom: 1ch;
}
.team-bio p:last-of-type {
  margin: 0;
}
.team-bio.active-tab {
  height: auto;
}
.team-bio.active-tab .inner {
  animation: fadeIn 1s forwards 0.15s;
}

@media (min-width: 380px) {
  .team-listing {
    margin: 0 -18px 0px -8px;
  }
  .team-head {
    width: calc(50% - 23px);
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin: 0 7px 30px 8px;
  }
  .team-bio {
    float: left;
    padding-left: 8px;
    padding-right: 18px;
  }
}
@media (max-width: 699px) {
  .acc-panel {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}
@media (min-width: 700px) {
  .team-head {
    width: calc(33.33% - 23px);
  }
  .team-bio {
    padding-right: 21px;
  }
}
