/* Committee rows shared by the homepage, about and contact pages. */

.team-section {
  background: white;
}

.team-grid {
  border-top: 1px solid var(--ink);
}

.team-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding-block: 1.7rem;
  border-bottom: 1px solid var(--line);
}

.team-role {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.team-grid-without-actions .team-card {
  grid-template-columns: minmax(0, 1fr);
}


.team-person {
  min-width: 0;
}

.team-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.team-card a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  text-decoration: none;
}

.team-card a:hover {
  text-decoration: underline;
}

.team-card a > span[aria-hidden] {
  font-size: 1.25rem;
  color: var(--accent-ink);
  transition: transform 220ms var(--motion-ease);
}

@media (max-width: 900px) {
  .team-card,
  .team-grid-without-actions .team-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem 1rem;
  }


  .team-card a {
    grid-column: 1;
    justify-self: start;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .team-card a:is(:hover, :focus-visible) > span[aria-hidden] {
    transform: translate(3px, -2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card a > span {
    transition: none;
  }
}

@media print {
  .team-card {
    break-inside: avoid;
  }
}
