.page-team-detail {
  --hero-pad-top: 44px;
  --hero-pad-bottom: 48px;
}

.team-detail-subhero {
  isolation: isolate;
  text-align: center;
}

.page-team-detail .section-pad {
  padding-top: 56px;
  padding-bottom: 64px;
}

.team-detail-card {
  padding: 44px;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(28, 16, 64, 0.08);
}

.team-detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.team-detail-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.team-detail-photo {
  width: min(220px, 60vw);
  height: min(220px, 60vw);
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  box-shadow:
    0 0 0 6px rgba(107, 63, 160, 0.1),
    0 20px 40px rgba(28, 16, 64, 0.18);
}

.team-detail-group {
  margin: 0;
  color: #6b3fa0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-detail-role {
  margin: 0;
  color: #be4e39;
  font-size: clamp(22px, 0.6vw + 18px, 28px);
  line-height: 1.2;
  font-weight: 800;
}

.team-detail-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
}

.team-detail-links .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  border-radius: 13px;
  background: #6b3fa0;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
  text-decoration: none;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background-color 180ms ease;
}

.team-detail-links .btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.team-detail-links .btn.blue {
  background: transparent;
  border: 2px solid #6b3fa0;
  color: #6b3fa0;
}

.team-detail-links .btn.blue:hover {
  background: rgba(107, 63, 160, 0.08);
  opacity: 1;
}

.team-detail-copy h2 {
  margin: 0 0 16px;
  color: #1c1040;
  font-size: clamp(32px, 1.1vw + 24px, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.team-detail-copy p {
  margin: 0 0 18px;
  color: #3f4e66;
  font-size: clamp(16px, 0.3vw + 14px, 19px);
  line-height: 1.75;
}

.team-detail-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .team-detail-card {
    padding: 30px 24px;
  }

  .team-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .team-detail-links {
    flex-direction: row;
  }

  .team-detail-copy h2 {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .team-detail-links {
    flex-direction: column;
  }
}
