/* ============================================
   PEOPLE PAGE — page-specific styles
   ============================================ */

.team-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-16) var(--space-8);
}

/* Section heading with underline accent */
.team-section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-10);
  position: relative;
  padding-bottom: var(--space-4);
}

.team-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

/* Member card */
.team-member {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.team-member.inactive {
  background: var(--color-bg-alt);
  opacity: 0.75;
}

.team-member.inactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Photo circle */
.member-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto var(--space-6);
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  overflow: hidden;
  position: relative;
}

.team-member.inactive .member-photo {
  background: linear-gradient(135deg, #d3d3d3, #a0a0a0);
}

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

.member-photo .initials {
  position: relative;
  z-index: 1;
}

/* Text */
.member-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.team-member.inactive .member-name {
  color: var(--color-text-muted);
}

.member-institution {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}

/* Last institution before LinkedIn keeps the bottom gap */
.member-institution:last-of-type {
  margin-bottom: var(--space-4);
}

.team-member.inactive .member-institution {
  color: #aaa;
}

/* LinkedIn link */
.member-linkedin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #0077b5;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.member-linkedin:hover {
  color: #005885;
  text-decoration: underline;
}

.team-member.inactive .member-linkedin {
  color: #bbb;
  pointer-events: none;
}

/* Inactive section divider */
.inactive-section {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 2px dashed var(--color-border);
}

.inactive-section .team-section-title {
  color: var(--color-text-muted);
}

.inactive-section .team-section-title::after {
  background: var(--color-border);
}

/* Join CTA */
.join-section {
  text-align: center;
  margin-top: var(--space-16);
  padding: var(--space-12) var(--space-8);
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.join-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.join-section p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .team-section { padding: var(--space-12) var(--space-4); }
  .team-grid    { grid-template-columns: 1fr; gap: var(--space-6); }
}
