/* Team page (`/team`) layout: one card per person, and the page closes on the
   last one. The brand layer (`brand-fiat.css`) owns the palette, the serif, the
   card, and the chip; this file only places them.

   The older `.team-index__*` rules in `theme.css` still style the lead
   paragraph; the card grid they described is superseded by the full-width
   profile cards below, which carry a whole bio rather than a summary line. */

.team-index__intro {
  padding-block: clamp(2rem, 6vw, 3.5rem) 0;
}

.team-index__profiles {
  display: flex;
  flex-direction: column;
}

/* ---- One person -------------------------------------------------------- */

.team-profile-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.team-profile-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.team-profile-card__photo {
  flex: none;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  /* Desaturated so the three headshots read as one masthead despite being
     shot in different places. */
  filter: grayscale(1);
  box-shadow: 0 0 0 2px var(--fiat-brand-edge);
}

@media (min-width: 48rem) {
  .team-profile-card__photo {
    width: 6rem;
    height: 6rem;
  }
}

.team-profile-card__name {
  margin: 0 0 0.25rem;
  font-family: var(--fiat-serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.team-profile-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* The role sits inline with the profile links, so it drops the eyebrow's
   block margin. */
.team-profile-card__role {
  margin: 0;
  letter-spacing: 0.15em;
}

/* The profile links sit inside the role line, so they read as metadata rather
   than body links. `theme.css` colours every anchor through `.nav-theme a`, so
   these match that specificity to win. */
.nav-theme a.team-profile-card__link {
  color: var(--nav-color-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.nav-theme a.team-profile-card__link:hover,
.nav-theme a.team-profile-card__link:focus-visible {
  color: var(--fiat-brand);
  text-decoration: underline;
}

.team-profile-card__bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 48rem;
}

.team-profile-card__paragraph {
  margin: 0;
  line-height: 1.65;
  color: var(--nav-color-text);
  text-wrap: pretty;
}

.team-profile-card__paragraph strong {
  font-weight: 600;
}

/* The credential chips run smaller than the practice-area chips on the home
   page — they annotate the bio rather than list the practice. */
.team-profile-card .fiat-chip {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
}
