/* Meet the Team — card grid. Loaded from the page template so CMS saves
   cannot strip the layout (inline <style> is removed by the sanitizer). */

.team-intro { margin-bottom: 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 0.5rem;
  align-items: stretch;
}

.team-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-grid + .team-grid { margin-top: 1.5rem; }

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 1.9rem 1.4rem 1.6rem;
  border: 1px solid var(--border, #dfe6ef);
  border-radius: 14px;
  background: var(--white, #ffffff);
  box-shadow: 0 10px 30px rgba(0, 43, 95, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 43, 95, 0.12);
}

.team-photo {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--fnd-navy, #002b5f), var(--fnd-magenta, #c9005a));
  color: #fff;
  box-shadow: 0 0 0 4px #ffffff, 0 0 0 7px #e3b34d, 0 12px 26px rgba(0, 43, 95, 0.18);
  margin-bottom: 1.15rem;
}

.team-initials { font-size: 2.6rem; font-weight: 800; letter-spacing: 0.04em; }

.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name { margin: 0.2rem 0; font-size: 1.3rem; color: var(--fnd-navy, #002b5f); }

.team-role {
  display: inline-block;
  margin-bottom: 0.95rem;
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  background: var(--pale, #fff1f7);
  color: var(--fnd-magenta, #c9005a);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.team-bio { color: var(--text, #26364d); text-align: left; width: 100%; flex: 1 1 auto; }
.team-bio p { margin-bottom: 0.8rem; }
.team-bio p:last-child { margin-bottom: 0; }

.team-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: auto;
  padding-top: 1.15rem;
  width: 100%;
}

.team-social {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border, #dfe6ef);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--fnd-navy, #002b5f);
  background: #fff;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.team-social svg { width: 18px; height: 18px; }
.team-social:hover { transform: translateY(-2px); }
.team-social.facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.team-social.tiktok:hover { background: #000000; border-color: #000000; color: #fff; }
.team-social.discord:hover { background: #5865f2; border-color: #5865f2; color: #fff; }

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

@media (max-width: 720px) {
  .team-grid,
  .team-grid--pair { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .team-photo { width: 144px; height: 144px; }
  .team-initials { font-size: 2.2rem; }
}

.team-section-head { margin: 2.1rem 0 0.9rem; }
.team-section-head:first-child { margin-top: 0.25rem; }
.team-section-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--fnd-navy, #002b5f);
}
.team-section-head p { margin: 0; color: var(--text, #26364d); max-width: 42rem; }
