/* Unified team cards for the builder and the legacy home template. */
.delta-query-team,
.team-grid {
  align-items: stretch;
}

.delta-query-team .delta-team-card,
.team-grid .team-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 390px;
  height: 100%;
  padding: 28px 22px 24px;
  overflow: hidden;
  border: 1px solid #dce8e8;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(9, 72, 76, .09);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.delta-query-team .delta-team-card:hover,
.team-grid .team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 138, 143, .35);
  box-shadow: 0 22px 50px rgba(9, 72, 76, .14);
}

.delta-query-team .delta-team-card > img,
.team-grid .team-card > img {
  display: block;
  width: 180px !important;
  height: 180px !important;
  aspect-ratio: 1 !important;
  margin: 0 auto !important;
  border: 4px solid #fff !important;
  outline: 1px solid rgba(14, 138, 143, .2);
  border-radius: 50% !important;
  object-fit: cover;
  object-position: center 30%;
  background: #eef5f5;
  box-shadow: 0 12px 30px rgba(9, 72, 76, .14);
}

.delta-query-team .delta-team-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 0;
  text-align: center;
}

.delta-query-team .delta-team-card h3,
.team-grid .team-card h3 {
  margin: 0;
  color: #123f42;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.45;
}

.delta-team-role,
.team-grid .team-card > p {
  margin: 7px 0 0;
  color: var(--primary);
  font-size: .91rem;
  font-weight: 800;
}

.delta-team-specialty {
  margin-top: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #edf7f7;
  color: #456365;
  font-size: .78rem;
  line-height: 1.45;
}

.delta-team-experience,
.team-grid .team-card > small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  color: #637879;
  font-size: .8rem;
}

.team-grid .team-card > h3,
.team-grid .team-card > p,
.team-grid .team-card > small {
  margin-inline: 0;
  text-align: center;
}

.team-grid .team-card > h3 {
  margin-top: 20px;
}

.team-grid .team-card > small {
  margin-bottom: 0;
}

@media (max-width: 1024px) and (min-width: 641px) {
  .delta-query-team.columns-3,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .delta-query-team,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .delta-query-team .delta-team-card,
  .team-grid .team-card {
    width: min(100%, 390px);
    margin-inline: auto;
    border-radius: 20px;
  }

  .delta-query-team .delta-team-card > img,
  .team-grid .team-card > img {
    width: 154px !important;
    height: 154px !important;
  }
}
