.team-detail-page {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.team-detail-hero .container {
  padding-inline: calc(var(--container-padding) + var(--page-content-inset));
}

.team-detail-posts .container,
.team-detail-others .container {
  padding-inline: var(--container-padding);
}

/* ── Profile hero ── */
.team-detail-hero {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: var(--page-section-space);
}

.team-detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.team-detail-hero__media {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--page-image-radius);
}

.team-detail-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-detail-hero__name {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f00600;
}

.team-detail-hero__role {
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: var(--page-body-size);
  line-height: 1.35;
  color: var(--color-text);
}

.team-detail-hero__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  border-radius: 50%;
  background: var(--color-text);
  color: var(--color-white);
  transition: opacity var(--transition-fast);
}

.team-detail-hero__linkedin:hover,
.team-detail-hero__linkedin:focus-visible {
  opacity: 0.75;
}

.team-detail-hero__linkedin svg {
  width: 1rem;
  height: 1rem;
}

.team-detail-hero__facts {
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  padding: 0;
  list-style: none;
}

.team-detail-hero__facts li {
  font-size: var(--page-body-size);
  line-height: var(--page-body-lh);
}

.team-detail-hero__facts li + li {
  margin-top: 0.35rem;
}

.team-detail-hero__facts strong {
  font-weight: 600;
}

.team-detail-hero__rule {
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  border: 0;
  border-top: 1px solid var(--color-text);
}

.team-detail-hero__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.team-detail-hero__body p {
  margin: 0;
  font-size: var(--page-body-size);
  line-height: var(--page-body-lh);
}

.team-detail-hero__section-title {
  margin: clamp(0.5rem, 1.5vw, 1rem) 0 0;
  font-size: var(--page-body-size);
  font-weight: 600;
  line-height: var(--page-body-lh);
}

.team-detail-hero__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-detail-hero__list li {
  font-size: var(--page-body-size);
  line-height: var(--page-body-lh);
}

.team-detail-hero__list li + li {
  margin-top: 0.35rem;
}

/* ── Blog posts ── */
.team-detail-posts {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: var(--page-section-space);
  border-top: 1px solid var(--color-text);
}

.team-detail-posts__title {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding-top: clamp(0.75rem, 1.5vw, 1.25rem);
  font-size: var(--page-module-title-size);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.team-detail-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.875rem, 1.75vw, 1.5rem);
}

.team-detail-posts__grid .news-card {
  border-radius: var(--page-card-radius);
}

.team-detail-posts .news-card--post-cream {
  background: #f6f1ee;
}

.team-detail-posts .news-card--post-pale {
  background: #f1f2fb;
}

.team-detail-posts .news-card--post-sky {
  background: #9ebff2;
}

.team-detail-posts .news-card--post-mauve {
  background: #d9c9d9;
}

.team-detail-posts .news-card--post-lavender {
  background: #c1b1e8;
}

.team-detail-posts .news-card--mask-convex-rect .news-card__inner {
  clip-path: url(#clip-news-convex-rect);
  -webkit-clip-path: url(#clip-news-convex-rect);
}

.team-detail-posts .news-card--mask-circle .news-card__inner {
  clip-path: circle(47.5% at 50% 50%);
}

.team-detail-posts__grid .news-card__media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

/* ── Other team members ── */
.team-detail-others {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--color-text);
}

.team-detail-others__title {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding-top: clamp(0.75rem, 1.5vw, 1.25rem);
  font-size: var(--page-module-title-size);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.team-detail-others__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 1024px) {
  .team-detail-hero__grid {
    grid-template-columns: 1fr;
  }

  .team-detail-others__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .team-detail-hero .container,
  .team-detail-posts .container,
  .team-detail-others .container {
    padding-inline: var(--container-padding);
  }

  .team-detail-hero {
    padding-top: clamp(1.25rem, 3vw, 1.75rem);
    padding-bottom: clamp(2rem, 5vw, 3rem);
  }

  .team-detail-hero__grid {
    gap: clamp(1.5rem, 4vw, 2rem);
  }

  .team-detail-hero__media {
    width: 100%;
    margin-inline: 0;
    border-radius: var(--page-image-radius);
  }

  .team-detail-hero__name {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .team-detail-hero__role {
    margin-bottom: clamp(1rem, 3vw, 1.25rem);
  }

  .team-detail-hero__linkedin {
    margin-bottom: clamp(1.25rem, 3vw, 1.5rem);
  }

  .team-detail-hero__facts {
    margin-bottom: clamp(1.25rem, 3vw, 1.5rem);
  }

  .team-detail-hero__rule {
    margin-bottom: clamp(1.25rem, 3vw, 1.5rem);
  }

  .team-detail-posts__grid {
    grid-template-columns: 1fr;
    gap: var(--page-stack-gap);
  }

  /* Other Team Members — horizontal swipe */
  .team-detail-others__grid {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--container-padding));
    padding-inline: var(--container-padding);
    padding-bottom: 0.25rem;
  }

  .team-detail-others__grid::-webkit-scrollbar {
    display: none;
  }

  .team-detail-others__grid .team-card {
    flex: 0 0 min(78vw, 20rem);
    scroll-snap-align: start;
  }
}
