/* ============================================================
   team.css — Team listing page
   Depends on: global.css, doc.css (.doc-breadcrumb, .doc-error)
   ============================================================ */

/* ── Page wrapper ──────────────────────────────────────────── */
.team-page {
  min-height: calc(100vh - var(--nav-height));
  background: var(--footer-light, #f7f7f7);
  padding-bottom: 80px;
}

.team-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 80px 0;
}

/* ── Page header ───────────────────────────────────────────── */
.team-page-header {
  margin-bottom: 40px;
}

.team-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-black);
  margin: 0;
}

/* ── Section ───────────────────────────────────────────────── */
.team-section {
  margin-bottom: 48px;
}

.team-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary); /* was #888 — 7.1:1 ✓ AAA */
  margin: 0 0 20px;
}

/* ── Alumni note ───────────────────────────────────────────── */
.team-section--alumni .team-section-title {
  color: var(--color-gray-500); /* was #bbb — decorative label, dimmed intentionally */
}

.team-alumni-note {
  font-size: 0.82rem;
  color: var(--color-text-secondary); /* was #aaa — 7.1:1 ✓ AAA */
  margin: -12px 0 20px;
  line-height: 1.5;
}

/* ── Grid ──────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-grid--leadership {
  grid-template-columns: repeat(2, 1fr);
  max-width: 600px;
}

/* ── Card ──────────────────────────────────────────────────── */
.team-card {
  background: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.team-card:focus-visible {
  outline: 3px solid var(--color-black);
  outline-offset: 2px;
}

/* ── Photo ─────────────────────────────────────────────────── */
.team-card-photo-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-blue-light); /* was #e8eef6 */
}

.team-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.team-card:hover .team-card-photo {
  transform: scale(1.04);
}

/* ── Body ──────────────────────────────────────────────────── */
.team-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.team-card-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.3;
}

.team-card-role {
  font-size: 0.72rem;
  color: var(--color-accent-aaa); /* was #286499 — 7.2:1 ✓ AAA */
  font-weight: 600;
  line-height: 1.35;
}

.team-card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--color-text-secondary); /* was #aaa — 7.1:1 ✓ AAA */
  margin-top: 4px;
}

.team-card-location svg {
  flex-shrink: 0;
  color: var(--color-gray-400); /* was #ccc — decorative icon */
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .team-container {
    padding: 40px 40px 0;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .team-container {
    padding: 24px 20px 0;
  }

  .team-page-title {
    font-size: 1.35rem;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .team-grid--leadership {
    grid-template-columns: repeat(2, 1fr);
    max-width: unset;
  }

  .team-section {
    margin-bottom: 36px;
  }
}

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

  .team-grid--leadership {
    grid-template-columns: 1fr;
  }
}