.team-page-main {
  padding-bottom: 28px;
  padding-top: 28px;
}

.team-page-hero {
  background:
    radial-gradient(540px 260px at 8% -10%, rgba(20, 155, 215, 0.13), transparent 72%),
    radial-gradient(360px 240px at 92% 120%, rgba(10, 58, 89, 0.09), transparent 70%),
    #f7fbfe;
  border: 1px solid #dbe7f1;
  border-radius: 20px;
  margin-bottom: 18px;
  padding: 28px;
}

.team-page-hero h1 {
  color: #0b2233;
  font-family: "Sora", "Manrope", "Inter", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin: 0 0 12px;
  max-width: 720px;
}

.team-page-hero p:not(.eyebrow) {
  color: #3d5366;
  font-size: 16px;
  line-height: 1.62;
  margin: 0;
  max-width: 760px;
}

.team-grid-section,
.team-page-cta,
.team-empty-state {
  background: #ffffff;
  border: 1px solid #dce8f2;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(8, 36, 57, 0.04);
  margin-bottom: 16px;
  padding: 22px;
}

.team-page-cta h2,
.team-empty-state h2 {
  color: #0f2232;
  font-size: clamp(26px, 2.4vw, 34px);
  margin: 0 0 16px;
}

.team-grid-section {
  padding-top: 18px;
}

.team-grid-section-head {
  border-bottom: 1px solid #e6eef5;
  margin-bottom: 20px;
  padding: 0 0 14px;
}

.team-grid-section-head .eyebrow {
  margin-bottom: 8px;
}

.team-grid-section-head h2 {
  color: #0f2232;
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

.team-grid-section-head p:not(.eyebrow) {
  color: #486072;
  font-size: 15px;
  line-height: 1.6;
  margin: 8px 0 0;
  max-width: 62ch;
}

.team-photo {
  aspect-ratio: 4 / 5;
  border-bottom: 1px solid #d7e6f1;
  overflow: hidden;
  width: 100%;
}

.team-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.2s ease;
  width: 100%;
}

.team-profile-category {
  color: var(--avs-blue-dark, #075f9d);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  margin: 0;
  text-transform: uppercase;
}

.team-profile-role {
  color: var(--avs-blue-dark, #075f9d);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 4px 0 0;
}

.team-profile-location {
  color: var(--avs-text-muted, #586879);
  font-size: 13px;
  font-weight: 600;
  margin: 4px 0 0;
}

.team-page-cta p,
.team-empty-state p {
  color: var(--avs-text-muted, #586879);
  line-height: 1.7;
}

.team-cards-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1120px;
  margin: 0 auto;
}

.team-profile-card {
  background: var(--avs-surface, #ffffff);
  border: 1px solid var(--avs-border, #dfeaf3);
  border-radius: 16px;
  border-top: 3px solid var(--avs-blue, #149bd7);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.team-profile-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
}

.team-profile-body h3 {
  color: #0f2232;
  font-size: 21px;
  line-height: 1.15;
  margin: 6px 0 0;
}

.team-profile-bio {
  color: var(--avs-text-muted, #586879);
  -webkit-box-orient: vertical;
  display: -webkit-box;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 8px 0 0;
  overflow: hidden;
  -webkit-line-clamp: 5;
}

.team-profile-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.team-profile-bio.is-expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.team-profile-bio {
  overflow-wrap: anywhere;
}

.team-bio-toggle {
  align-self: flex-start;
  background: transparent;
  border: 0;
  color: var(--avs-blue-dark, #075f9d);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.team-bio-toggle[hidden] {
  display: none;
}

.team-bio-toggle:focus-visible {
  outline: 2px solid var(--avs-blue, #149bd7);
  outline-offset: 3px;
  border-radius: 3px;
}

.team-profile-links a {
  background: #ffffff;
  border: 1px solid var(--avs-border-strong, #c8d9e8);
  border-radius: 999px;
  color: var(--avs-blue-dark, #075f9d);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 7px 11px;
  text-decoration: none;
  text-transform: uppercase;
}

.team-profile-links a:focus-visible {
  outline: 2px solid var(--avs-blue, #149bd7);
  outline-offset: 2px;
}

.team-page-cta {
  align-items: start;
  display: grid;
  gap: 8px;
}

.team-page-cta p {
  font-size: 15px;
  margin: 0;
  max-width: 56ch;
}

.team-empty-state .btn,
.team-page-cta .btn {
  justify-self: start;
}

@media (hover: hover) {
  .team-profile-card:hover {
    border-color: #99c5de;
    box-shadow: 0 11px 22px rgba(9, 40, 64, 0.1);
    transform: translateY(-3px);
  }

  .team-profile-card:hover .team-photo img {
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-profile-card,
  .team-photo img {
    transition: none;
  }

  .team-profile-card:hover {
    transform: none;
  }
}

@media (max-width: 1024px) {
  .team-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .team-cards-grid {
    gap: 16px;
  }
}

@media (max-width: 780px) {
  .team-page-main {
    padding-top: 20px;
  }

  .team-page-hero,
  .team-grid-section,
  .team-page-cta,
  .team-empty-state {
    border-radius: 14px;
    padding: 16px;
  }

  .team-page-hero h1 {
    font-size: clamp(30px, 8vw, 40px);
  }
}

@media (max-width: 600px) {
  .team-cards-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

