/* Team (About page). Heading spacing comes from the shared "Section heading
   blocks" rule in birthdaybanner.css (.bb-team-head). */
.bb-team-head { text-align: center; }
.bb-team-sub { margin: 0; max-width: 640px; color: var(--bb-body); line-height: 1.6; text-wrap: pretty; }

.bb-team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .bb-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .bb-team-grid { grid-template-columns: minmax(0, 1fr); } }

.bb-team-card { display: flex; flex-direction: column; background: var(--bb-white); border: 1px solid var(--bb-border); border-radius: var(--bb-radius-card); box-shadow: var(--sh-card); overflow: hidden; transition: transform .25s var(--bb-ease), box-shadow .25s var(--bb-ease); }
.bb-team-card:hover { transform: translateY(-4px); }

/* Photo at the top of the card takes the card's corners (overflow above). */
.bb-team-photo { position: relative; aspect-ratio: 1 / 1; background: var(--bb-gradient-135); display: grid; place-items: center; }
.bb-scope .bb-team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.bb-team-initials { font-family: var(--bb-font-heading); font-size: clamp(40px, 5vw, 56px); font-weight: 600; letter-spacing: .02em; color: var(--bb-white); }

.bb-team-body { padding: 18px 20px 22px; display: grid; gap: 4px; }
.bb-scope .bb-team-name { margin: 0; font-family: var(--bb-font-heading); font-size: 18px; font-weight: 600; color: var(--bb-ink); }
.bb-team-role { margin: 0; font-family: var(--bb-font-heading); font-size: 13px; font-weight: 500; color: var(--bb-blue); }
.bb-team-line { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--bb-body); }

@media (prefers-reduced-motion: reduce) { .bb-team-card, .bb-team-card:hover { transition: none; transform: none; } }
