/* Team directory, scoped to this page in the desktop edition. */
.team-page {
  --team-ink: #173f59;
  --team-green: #407a61;
  background: #fffdf8;
  color: var(--team-ink);
}

.team-page .site-header.is-scrolled { animation: none; }
.team-page .desktop-nav a[aria-current="location"] { color: var(--team-green); }
.team-page .desktop-nav a[aria-current="location"]::after { right: 0; }
.team-page #mobile-sheet a[aria-current="location"] {
  color: var(--team-green);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.team-main { padding: 80px 0 88px; }
.team-container { width: min(1380px, calc(100% - 112px)); margin-inline: auto; }
.team-intro { padding: 42px 0 38px; }
.team-breadcrumb { display: flex; align-items: center; gap: 12px; color: #5f7584; font-size: .8rem; margin-bottom: 22px; }
.team-breadcrumb a { color: var(--team-green); }
.team-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.team-intro h1 { font-size: clamp(2.8rem, 4.25vw, 4rem); font-weight: 400; line-height: 1.14; letter-spacing: -.055em; }
.team-intro > p { max-width: 760px; margin-top: 17px; color: #5f7584; font-size: 1rem; line-height: 1.7; text-wrap: pretty; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 30px; padding: 0; margin: 0; list-style: none; }
.team-member { display: flex; flex-direction: column; min-width: 0; }
.team-member__portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: #eaf2ed; }
.team-member__details { flex: 1; min-height: 112px; padding: 20px 0 24px; border-bottom: 1px solid #cfdee6; }
.team-member__details h2 { font-size: clamp(1.08rem, 1.45vw, 1.35rem); font-weight: 600; line-height: 1.35; letter-spacing: -.035em; text-wrap: balance; }
.team-member__details p { margin-top: 8px; color: var(--team-green); font-size: .875rem; font-weight: 500; line-height: 1.5; text-wrap: balance; }

@media (min-width: 1001px) {
  .team-grid > .team-member:nth-last-child(2):nth-child(4n + 1) { grid-column: 2; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .team-main { padding-top: 112px; }
}
@media (max-width: 1150px) {
  .team-container { width: calc(100% - 76px); }
  .team-grid { gap: 28px 22px; }
}
@media (max-width: 1000px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-member__details h2 { font-size: 1.25rem; }
}
@media (max-width: 760px) {
  .team-main { padding: 75px 0 52px; }
  .team-intro { padding: 28px 0; }
  .team-container { width: calc(100% - 40px); }
  .team-breadcrumb { margin-bottom: 18px; font-size: .75rem; }
  .team-intro h1 { font-size: 2.6rem; }
  .team-grid { gap: 26px 18px; }
  .team-member__portrait { border-radius: 12px; }
  .team-member__details { min-height: 112px; padding: 14px 0 18px; }
  .team-member__details h2 { font-size: 1.05rem; }
  .team-member__details p { font-size: .8rem; }
}
@media (max-width: 420px) {
  .team-main { padding-top: 68px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-member__details { min-height: 0; }
  .team-member__details h2 { font-size: 1.25rem; }
  .team-member__details p { font-size: .875rem; }
}
