/* ================================================================
   TEAM PAGE — unified Leadership / Board / Advisory person-card design
   Small circular avatars are used deliberately (source photos are low-res
   headshots) so images render crisp instead of being upscaled/blurred.
   ================================================================ */

/* ── Shared flex grid (handles uneven row counts + centers last row) ── */
.person-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px 30px;
}
.person-grid--leadership { max-width: 980px; margin: 0 auto; }
.person-grid--board { max-width: 1100px; margin: 0 auto; }
.person-grid--advisory { max-width: 700px; margin: 0 auto; }

/* ── Card ── */
.person-card {
  width: 260px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--r-lg);
  padding: 34px 22px 28px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(15,23,42,.05);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), border-color .3s, box-shadow .3s;
}
.person-card:hover {
  transform: translateY(-8px);
  border-color: rgba(44,76,253,.25);
  box-shadow: 0 24px 50px rgba(44,76,253,.14);
}

/* ── Avatar: fixed small size so ~130-190px source photos display crisp ── */
.person-avatar-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 20px;
}
.person-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  background: #eef1f8;
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(15,23,42,.08), 0 10px 26px rgba(15,23,42,.1);
}
.person-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  image-rendering: auto;
}
.person-card:hover .person-avatar { box-shadow: 0 0 0 1px rgba(44,76,253,.3), 0 14px 30px rgba(44,76,253,.2); }

.person-socials {
  position: absolute;
  bottom: -6px; left: 50%;
  transform: translateX(-50%) translateY(6px);
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity .3s, transform .3s;
}
.person-card:hover .person-socials { opacity: 1; transform: translateX(-50%) translateY(0); }
.person-socials a {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy-dark, #0f172a);
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  font-size: .68rem;
  border: 2px solid #ffffff;
  transition: background .25s, transform .25s;
}
.person-socials a:hover { background: var(--gold); transform: scale(1.1); }

/* ── Info ── */
.person-info h3 { color: #0f172a; font-size: 1.02rem; margin-bottom: 6px; }
.person-role {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(44,76,253,.08);
  color: var(--gold, #b8860b);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.person-bio {
  margin-top: 14px;
  font-size: .88rem;
  line-height: 1.6;
  color: #64748b;
}

/* ── Board of Directors section wrapper ── */
.board-section {
  position: relative;
  background: #f4f6fb;
  overflow: hidden;
}
.board-bg-glow {
  position: absolute;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44,76,253,.06) 0%, transparent 70%);
  pointer-events: none;
}
.board-section .container { position: relative; z-index: 1; }

/* ── Advisory Board section wrapper ── */
.advisory-section {
  position: relative;
  background: #ffffff;
}

@media (max-width: 640px) {
  .person-card { width: 100%; max-width: 300px; }
}

/* ── [data-theme="light"] parity (site is light-themed by default already,
     but keep explicit overrides in case dark base rules leak in) ── */
[data-theme="light"] .person-card { background: #ffffff; border-color: rgba(15,23,42,.08); }
[data-theme="light"] .person-info h3 { color: #0f172a; }
[data-theme="light"] .person-bio { color: #64748b; }
[data-theme="light"] .board-section { background: #f4f6fb; }
[data-theme="light"] .advisory-section { background: #ffffff; }
