/* Shared native profile blocks, including their WordPress editor preview. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.team-profile { min-width: 0; }
.team-photo {
  margin: 0 0 24px !important;
}
.team-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
}
.team-profile h3 {
  margin: 0 0 4px;
  font-size: 28px;
  line-height: 1.3;
}
.team-profile .team-role {
  margin: 0 0 12px;
  color: var(--brand);
  font-weight: 650;
}
.team-profile .team-bio {
  margin: 0;
  color: var(--muted);
}
/* The team page gives each biography a full row; the homepage stays compact. */
.team-section-list .team-grid {
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1000px;
}
.team-section-list .team-profile {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 48px;
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
}
.team-section-list .team-profile:first-child { padding-top: 0; }
.team-section-list .team-profile:last-child { padding-bottom: 0; border-bottom: 0; }
.team-section-list .team-photo {
  grid-column: 1;
  grid-row: 1 / 4;
  margin: 0 !important;
}
.team-section-list .team-profile h3,
.team-section-list .team-role,
.team-section-list .team-bio { grid-column: 2; }
.team-section-list .team-bio { max-width: 65ch; }
@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-profile h3 { font-size: 25px; }
  .team-photo { margin-bottom: 20px !important; }
  .team-section-list .team-profile { display: block; }
  .team-section-list .team-photo { margin-bottom: 20px !important; }
}
