/* Team / Board module styles. Tokens only (see docs/DESIGN-SYSTEM.md). */

.team-group + .team-group { margin-block-start: 4rem; }
.team-group-head { margin-block-end: 1.75rem; }
.team-group-head h2 { margin: 0; }

.team-card { display: flex; flex-direction: column; }
.team-card .team-photo-wrap { display: block; overflow: hidden; background: var(--surface-alt); }
.team-card:hover .team-photo { transform: scale(1.03); }
.team-photo-fallback {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 5; inline-size: 100%;
  background: var(--surface-alt); color: var(--ink-soft); font-size: 3rem;
}
.team-body { display: flex; flex-direction: column; flex: 1; }
.team-name a { color: inherit; text-decoration: none; }
.team-name a:hover { color: var(--primary); }
.team-links { display: flex; gap: .6rem; margin-block-start: .75rem; }
.team-links a { color: var(--ink-soft); font-size: 1.05rem; }
.team-links a:hover { color: var(--primary); }
.team-profile-link { margin-block-start: .5rem; font-size: .8rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.team-profile-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* Profile page */
.team-profile { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 780px) { .team-profile { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } }
.team-profile-photo { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.team-profile-photo img { display: block; inline-size: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.team-profile h1 { margin: 0 0 .25rem; }
.team-profile .team-role { font-size: 1rem; margin-block-end: 1.25rem; }
.team-profile-bio p { margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.75; }
.team-profile-bio ul { padding-inline-start: 1.25rem; margin: 0 0 1rem; color: var(--ink-soft); line-height: 1.75; }

/* Admin */
.team-admin-thumb { inline-size: 44px; block-size: 55px; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-alt); }
.team-admin-thumb-empty { display: inline-flex; align-items: center; justify-content: center; color: var(--ink-soft); }
.team-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
@media (max-width: 780px) { .team-admin-grid { grid-template-columns: minmax(0, 1fr); } }
.team-admin-grid .span-2 { grid-column: 1 / -1; }
.team-inline-form { display: inline; margin: 0; }
