/* ============================================================
   Team page. Reuses the shared page-hero and hero__art treatment
   in styles.css; this file adds the hero grid and the popover
   team-member cards.
   ============================================================ */

.team-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.team-hero__grid > * { min-width: 0; }

@media (max-width: 900px) {
  .team-hero__grid { grid-template-columns: 1fr; }
}

/* ---- Team member cards: a cut-out portrait "popping" above a sign card ---- */
#team-list { padding-top: clamp(24px, 4vw, 48px); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 420px));
  justify-content: center;
  gap: 72px 48px;
}

.teammate { position: relative; }

.teammate__photo {
  position: relative;
  z-index: 2;
  width: 62%;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.teammate__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform-origin: top center;
}

.teammate__info {
  position: relative;
  z-index: 1;
  padding: 28px 28px 34px;
  text-align: center;
  background: var(--panel);
  border: 2px solid var(--green-deep);
  border-radius: var(--radius);
  box-shadow: var(--lift);
  transition: box-shadow 0.3s var(--ease-out);
}
.teammate:hover .teammate__info { box-shadow: var(--lift), 0 0 0 2px var(--green-hair); }
.teammate__info::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid var(--green-hair);
  border-radius: 8px;
  pointer-events: none;
}

.teammate__name { position: relative; z-index: 1; font-size: 1.5rem; line-height: 1.25; }

.teammate__role {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 14px;
  border: 1.5px solid var(--gold-deep);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.teammate__social { position: relative; z-index: 1; display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.teammate__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 2px solid var(--green-deep);
  border-radius: 50%;
  color: var(--green-deep);
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.teammate__social a:hover { background: var(--green-deep); color: #fff; transform: translateY(-2px); }
.teammate__social svg { width: 19px; height: 19px; fill: currentColor; }

.teammate__profile-link { display: inline-block; margin-top: 14px; font-size: 0.9375rem; font-weight: 700; }

/* ============================================================
   Individual staff profile page (/team/<slug>). New layout, does
   not touch the grid/card rules above: a sticky aside (name, photo,
   links) beside a details column built from the member's markdown.
   ============================================================ */
.team-profile__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: clamp(32px, 5vw, 56px);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink-mute);
}
.team-profile__breadcrumb a { color: var(--green-deep); font-weight: 600; }
.team-profile__breadcrumb span[aria-hidden] { color: var(--green-line); }

.team-profile__layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 64px);
}

.team-profile__aside { position: static; text-align: center; }
.team-profile__name { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.15; }
.team-profile__role {
  display: flex;
  width: fit-content;
  margin: 10px auto 0;
  padding: 4px 14px;
  border: 1.5px solid var(--gold-deep);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gold-deep);
}
.team-profile__photo {
  width: 100%;
  max-width: 220px;
  margin: 20px auto 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--green-deep);
  box-shadow: var(--lift);
}
.team-profile__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-profile__aside .teammate__social { justify-content: center; margin-top: 20px; }

.team-profile__details { min-width: 0; padding-top: 0; }
.team-profile__details h2 {
  margin: 2em 0 1em;
  padding-block: 10px;
  border-top: 1px solid var(--green-line);
  border-bottom: 1px solid var(--green-line);
  color: var(--gold-deep);
}
.team-profile__details h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

@media (max-width: 860px) {
  .team-profile__layout { grid-template-columns: 1fr; }
}
