/* =============================================================================
   Core Team page. The heading block reuses page-work.css (.work-page__head);
   this file is only the roster.
   One row per discipline, people listed beside it, so a shared role is said
   once instead of repeated on every card. Avatars are small on purpose: the
   names carry the page. No photos yet, so each avatar shows initials; drop an
   <img> inside .roster__avatar and it covers them.
   ============================================================================= */

/* the red count badge anchors to "Team." (the second line), not the h1's top corner */
.team-page__word {
  position: relative;
}

/* an inline box starts above the capitals; a % offset tracks the heading size at every breakpoint */
.team-page__word .work__number {
  top: 22%;
}

.roster {
  border-bottom: 1px solid var(--grey-100);
}

.roster__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.5rem;
  align-items: center;
  padding-block: 2rem;
  border-top: 1px solid var(--grey-100);
}

.roster__people {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roster__person {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.roster__avatar {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
  border: 1px solid var(--grey-100);
  border-radius: 50%;
  background: var(--grey-50);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  color: var(--grey-600);
}

.roster__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roster__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
}

@media (max-width: 767px) {
  .roster__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-block: 1.5rem;
  }

  .roster__people {
    flex-direction: column;
    gap: 1rem;
  }

  .roster__avatar {
    width: 3rem;
    height: 3rem;
    font-size: 0.875rem;
  }

  .roster__name {
    font-size: 1.375rem;
  }
}
