/* Team page (people.html). Builds on css/refresh.css tokens. */

.team { margin-top: 6px; }

.team-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.team-tabs a {
  padding: 5px 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}
.team-tabs a:hover, .team-tabs a:focus { border-color: var(--vt-maroon); color: var(--vt-maroon); }

.team-section { scroll-margin-top: 70px; padding-top: 22px; }
.team-h { font-size: 24px; margin: 0 0 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.team-sub { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); margin: 18px 0 12px; }

/* ---------- faculty ---------- */
.faculty-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 26px;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.fc-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 10px; display: block; }
.fc-body h4 { font-size: 21px; margin: 0; }
.fc-body h4 a { color: var(--ink); }
.fc-body h4 a:hover { color: var(--vt-maroon); }
.fc-bio { color: var(--ink-soft); font-size: 14.5px; margin: 10px 0 14px; }
.fc-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--surface-alt);
  border-radius: 10px;
  font-size: 13.5px;
}
.fc-contact dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); font-weight: 700; }
.fc-contact dd { margin: 0; color: var(--ink); line-height: 1.45; }

/* ---------- students & alumni ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.person-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  transition: box-shadow .2s ease, transform .2s ease;
}
.person-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pc-photo { aspect-ratio: 1 / 1; background: var(--surface-alt); overflow: hidden; }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; transition: transform .4s ease; }
.person-card:hover .pc-photo img { transform: scale(1.03); }
.pc-body { padding: 12px 14px 14px; }
.pc-body h4 { font-size: 16px; margin: 0; }
.pc-body h4 a { color: var(--ink); }
.pc-body h4 a:hover { color: var(--vt-maroon); }
.pc-role { margin: 2px 0 6px; font-size: 13px; font-weight: 650; color: var(--vt-maroon); }
.pc-email { margin: 0 0 8px; font-size: 12.5px; color: var(--ink-muted); word-break: break-all; }
.pc-links { display: flex; gap: 6px; align-items: center; }
.pc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
  transition: border-color .15s ease, color .15s ease;
}
.pc-icon img { width: 16px; height: 16px; object-fit: contain; }
.pc-icon:hover { border-color: var(--vt-maroon); color: var(--vt-maroon); }
.pc-bio { margin-top: 10px; font-size: 13.5px; }
.pc-bio summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--vt-maroon);
  list-style: none;
  font-size: 13px;
}
.pc-bio summary::-webkit-details-marker { display: none; }
.pc-bio summary::after { content: ' +'; }
.pc-bio[open] summary::after { content: ' \2212'; }
.pc-bio p { margin: 8px 0 0; color: var(--ink-soft); line-height: 1.55; }

@media (min-width: 980px) {
  .people-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 979px) {
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .faculty-card { grid-template-columns: 1fr; padding: 16px; }
  .fc-photo { max-width: 220px; }
  .fc-contact { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .team-tabs { position: static; }
}
@media (max-width: 340px) {
  .people-grid { grid-template-columns: 1fr; }
}
