/* Team uses the same metrics, gutters and flat register rhythm as eSigning.
   Keep these rules scoped: member permission forms have their own layout. */
.team-page { container-type: inline-size; }
.team-page .team-section { margin: 0; }
.team-page .team-section + .team-section { margin-top: 24px; }
.team-page .team-section .section-heading {
  padding: 0 0 12px;
  border: 0;
}
.team-page .section-heading h2 {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}
.team-page .section-heading p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.team-page .team-list {
  margin: 0;
  border-inline: 0;
  border-radius: 0;
}
.team-page .people-row {
  grid-template-columns: minmax(0, 2fr) minmax(80px, .7fr) minmax(80px, .7fr) minmax(0, 1.5fr) 24px;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  padding: 0 14px;
  border-radius: 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}
.team-page .people-row.head {
  min-height: 38px;
  background: #f7f9f8;
  font-size: 10px;
  line-height: 1.45;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}
.team-page .people-row > span { min-width: 0; }
.team-page .people-row > span:first-child > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.team-page .people-row strong,
.team-page .people-row small,
.team-page .people-row > span:nth-child(4) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-page .people-row strong { font-size: 12px; font-weight: 700; }
.team-page .people-row small {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 500;
}
.team-page .people-row .avatar { flex-shrink: 0; }
.team-page .team-row:focus-visible { outline-offset: -3px; }
@media (max-width: 1000px) {
  .team-page .people-row {
    grid-template-columns: minmax(0, 2fr) 85px 80px 24px;
  }
  .team-page .people-row > span:nth-child(4) { display: none; }
}
@media (max-width: 800px) {
  .team-page .people-row { grid-template-columns: minmax(0, 1fr) 85px 16px; gap: 8px; }
  .team-page .people-row > span:nth-child(3) { display: none; }
}
@container (max-width: 360px) {
  .team-page .page-head { flex-wrap: wrap; gap: 12px; }
  .team-page .people-row { grid-template-columns: minmax(0, 1fr) 16px; }
  .team-page .people-row > span:nth-child(2) { display: none; }
}
@media (max-width: 600px) {
  /* Team already has a dedicated search. Keep account controls in the viewport. */
  .shell:has(.team-page) .stage > header > strong,
  .shell:has(.team-page) .stage > header .search,
  .shell:has(.team-page) .stage > header .user-menu > span:not(.avatar) { display: none; }
  .shell:has(.team-page) .stage > header { justify-content: flex-end; }
}
