/* =============================================
   TEAM FACES (subtle trust strip)
   ============================================= */
.team-faces {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-faces--form {
  padding: 12px 14px;
  margin-top: 4px;
  margin-bottom: 4px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}

.team-faces--inline {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.team-faces--footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.footer-panel--contact .team-faces--footer {
  width: 100%;
}

.team-faces--sidebar {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.team-faces--sidebar-cta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.team-faces--fab {
  gap: 10px;
  width: 100%;
}

/* Full-width avatar row — fills parent column with slight overlap */
.team-faces--form .team-faces-avatars,
.team-faces--inline .team-faces-avatars,
.team-faces--footer .team-faces-avatars,
.team-faces--sidebar .team-faces-avatars,
.team-faces--sidebar-cta .team-faces-avatars {
  display: flex;
  flex-direction: row-reverse;
  width: 100%;
  gap: 0;
  flex-shrink: 1;
  min-width: 0;
  --team-overlap: 12px;
}

.team-faces-avatars {
  display: flex;
  flex-shrink: 0;
  flex-direction: row-reverse;
}

.team-faces-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.15);
  margin-right: -14px;
}

.team-faces-avatar:last-child {
  margin-right: 0;
}

/* Equal share of row + overlap (4 avatars) */
.team-faces--form .team-faces-avatar,
.team-faces--inline .team-faces-avatar,
.team-faces--footer .team-faces-avatar,
.team-faces--sidebar .team-faces-avatar,
.team-faces--sidebar-cta .team-faces-avatar {
  /* Cap size: never grow beyond 52px even if parent is wide */
  flex: 0 0 min(52px, calc((100% + 3 * var(--team-overlap, 12px)) / 4));
  min-width: 0;
  width: min(52px, calc((100% + 3 * var(--team-overlap, 12px)) / 4));
  max-width: 52px;
  max-height: 52px;
  height: auto;
  aspect-ratio: 1;
  margin-right: calc(-1 * var(--team-overlap, 12px));
  position: relative;
}

.team-faces--form .team-faces-avatar:nth-child(1),
.team-faces--inline .team-faces-avatar:nth-child(1),
.team-faces--footer .team-faces-avatar:nth-child(1),
.team-faces--sidebar .team-faces-avatar:nth-child(1),
.team-faces--sidebar-cta .team-faces-avatar:nth-child(1) { z-index: 4; }

.team-faces--form .team-faces-avatar:nth-child(2),
.team-faces--inline .team-faces-avatar:nth-child(2),
.team-faces--footer .team-faces-avatar:nth-child(2),
.team-faces--sidebar .team-faces-avatar:nth-child(2),
.team-faces--sidebar-cta .team-faces-avatar:nth-child(2) { z-index: 3; }

.team-faces--form .team-faces-avatar:nth-child(3),
.team-faces--inline .team-faces-avatar:nth-child(3),
.team-faces--footer .team-faces-avatar:nth-child(3),
.team-faces--sidebar .team-faces-avatar:nth-child(3),
.team-faces--sidebar-cta .team-faces-avatar:nth-child(3) { z-index: 2; }

.team-faces--form .team-faces-avatar:nth-child(4),
.team-faces--inline .team-faces-avatar:nth-child(4),
.team-faces--footer .team-faces-avatar:nth-child(4),
.team-faces--sidebar .team-faces-avatar:nth-child(4),
.team-faces--sidebar-cta .team-faces-avatar:nth-child(4) { z-index: 1; }

.team-faces--form .team-faces-avatar:last-child,
.team-faces--inline .team-faces-avatar:last-child,
.team-faces--footer .team-faces-avatar:last-child,
.team-faces--sidebar .team-faces-avatar:last-child,
.team-faces--sidebar-cta .team-faces-avatar:last-child {
  margin-right: 0;
}

.team-faces--footer .team-faces-avatar,
.team-faces--sidebar-cta .team-faces-avatar {
  border-color: rgba(255, 255, 255, 0.9);
}

.team-faces-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.team-faces--inline .team-faces-text {
  font-size: 15px;
  color: var(--text-secondary);
}

.team-faces--dark .team-faces-text {
  color: rgba(255, 255, 255, 0.55);
}

.team-faces--sidebar-cta .team-faces-text {
  font-size: 13px;
  text-align: center;
}

.team-faces--light .team-faces-text {
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .team-faces--form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .team-faces--form .team-faces-avatars,
  .team-faces--inline .team-faces-avatars,
  .team-faces--footer .team-faces-avatars,
  .team-faces--sidebar .team-faces-avatars,
  .team-faces--sidebar-cta .team-faces-avatars {
    --team-overlap: 8px;
  }
}
