/* Team page */

.team-hero {
  padding: 80px 24px 72px;
  background: var(--bg-dark);
  color: rgba(255,255,255,0.85);
}
.team-hero__inner { max-width: var(--max-w); margin: 0 auto; }
.team-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 16px;
  max-width: 640px;
}
.team-hero__sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 560px;
}

.team-section { padding: 72px 24px; }
.team-section--alt { background: var(--bg-alt); }
.team-section__inner { max-width: var(--max-w); margin: 0 auto; }
.team-section__header { margin-bottom: 40px; }
.team-section__header h2 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.team-section__header p { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.65; max-width: 560px; }

/* Doctor grid — 3 columns */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-grid--wide { grid-template-columns: repeat(3, 1fr); }

.team-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}
.team-card--featured { border-color: rgba(232,93,42,0.25); }
.team-card__photo { position: relative; background: var(--bg-alt); line-height: 0; }
.team-card__photo img { width: 100%; height: 280px; object-fit: cover; object-position: top center; }
.team-card__avatar {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(232,93,42,0.6);
  background: rgba(232,93,42,0.06);
  letter-spacing: 0.02em;
}
.team-card__body { padding: 22px 20px 24px; }
.team-card__body h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 4px; }
.team-card__role { font-size: 0.8125rem; color: var(--orange); font-weight: 600; margin-bottom: 10px; }
.team-card__spec { font-size: 0.8125rem; color: var(--muted); line-height: 1.55; }
.team-card__bio { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.6; margin-top: 10px; }

/* Support staff — 4 columns, smaller cards */
.team-grid--support { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.team-card--support { border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 18px 16px; background: var(--bg); }
.team-card--support h3 { font-size: 0.875rem; font-weight: 700; margin-bottom: 3px; }
.team-card--support .team-card__role { font-size: 0.75rem; color: var(--muted); font-weight: 500; margin-bottom: 0; }

/* CTA */
.team-cta { padding: 72px 24px; background: var(--bg-dark); text-align: center; }
.team-cta__inner { max-width: 480px; margin: 0 auto; }
.team-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 12px;
}
.team-cta p { font-size: 0.9375rem; color: rgba(255,255,255,0.6); line-height: 1.65; margin-bottom: 28px; }
.team-cta .btn--outline { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.25); }
.team-cta .btn--outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); text-decoration: none; }
.team-cta__buttons { display: flex; gap: 12px; justify-content: center; }

/* Training accordion on featured card */
.team-card__training { margin-top: 12px; }
.team-card__training summary { font-size: 0.8125rem; font-weight: 600; color: var(--orange); cursor: pointer; user-select: none; }
.team-card__training summary:hover { opacity: 0.8; }
.team-card__training ul { margin: 8px 0 0 0; padding-left: 16px; list-style: disc; }
.team-card__training li { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 3px; }

/* Dark mode */
[data-theme="dark"] .team-card,
[data-theme="dark"] .team-card--support { background: var(--bg-alt); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) .team-card,
  html:not([data-theme="light"]):not([data-theme="dark"]) .team-card--support { background: var(--bg-alt); }
}

/* Responsive */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid--support { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-grid--support { grid-template-columns: 1fr 1fr; gap: 12px; }
  .team-cta__buttons { flex-direction: column; align-items: center; }
}
