/* Team: the Team section on About and the profile pages (about/<name>.html). */

/* About: Team section */
.team-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.team-head h2 { font-family: var(--font-display); font-size: min(1.7rem, 5vw); font-weight: 400; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 960px; margin: 0 auto; }
.team-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.team-card__photo { align-self: stretch; }
.team-card__photo { display: block; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--light-gray); margin-bottom: 24px; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card h3 { font-family: var(--font-body); font-size: 1.35rem; font-weight: 400; }
.team-card__role { color: var(--text-secondary); font-size: 15px; margin: 4px 0 14px; }
.team-card__text { color: var(--text-secondary); font-size: 15.5px; line-height: 1.75; margin-bottom: 22px; flex: 1; }
.team-card .btn { padding: 10px 20px; font-size: 13px; border-width: 1px; }
.team-name-note { max-width: 560px; margin: 56px auto 0; text-align: center; color: var(--text-secondary); font-size: 14px; line-height: 1.7; }
.team-name-note a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* Profile page */
.hero--profile { min-height: 0; padding-bottom: 168px; }
.hero__role { display: inline-block; margin-top: 8px; padding: 6px 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; font-size: 14px; color: rgba(255, 255, 255, .85); }
.profile-photo { width: 200px; height: 200px; border-radius: 50%; overflow: hidden; margin: -150px auto 40px; border: 6px solid var(--white); background: var(--light-gray); box-shadow: 0 10px 30px rgba(0, 12, 57, .18); position: relative; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-bio { max-width: 720px; margin: 0 auto 40px; }
.profile-bio p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.profile-next { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 16px 0 104px; }

@media (max-width: 860px) {
  .team-grid { grid-template-columns: 1fr; gap: 64px; }
}
