/* =============================================================================
   Meet the Team (build-69)  -  page-templates/team.php
   Consumes the :root design tokens from inventory.css (enqueued first). Mobile-
   first: one column, then two at >=620px, three at >=960px. Navy/gold, warm
   paper, 3px radius, mono detail type, matching the rest of the platform.
   ========================================================================== */

/* ---- Intro ---- */
.team-intro__inner { max-width: 760px; }
.team-intro__title { margin: 14px 0 18px; }
.team-intro__lede {
  margin: 0;
  max-width: 60ch;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.team-intro__lede + .team-intro__lede { margin-top: 1.1em; }

/* ---- Roster grid ----
   Count-agnostic by design (reps come and go). auto-fit packs as many cards as
   fit between a 280px floor and a 340px cap, so the layout is 1 / 2 / 3 across as
   width allows with NO hardcoded member count. justify-content:center keeps an
   orphan last row (e.g. 7 members = 3 + 3 + 1) balanced under the row above
   instead of stranded left, and a card never stretches full-width on a small
   roster. The 1200px wrap caps it at 3 columns naturally (4 x 340 > 1200). The
   min(100%, 280px) floor prevents overflow on screens narrower than 280px. */
.team-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 340px));
  justify-content: center;
  gap: clamp(20px, 3vw, 32px);
}

/* ---- Card ---- */
.team-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.team-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(29, 44, 60, .08);
}

/* Square photo, top of the card. */
.team-card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--navy);
  overflow: hidden;
}
.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* No-photo fallback: initials on navy, gold glyphs. */
.team-card__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 58px);
  letter-spacing: 0.02em;
  color: var(--gold-light);
  background:
    radial-gradient(120% 120% at 30% 20%, var(--navy-600), var(--navy) 70%);
}

/* ---- Card body ---- */
.team-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 22px;
}
.team-card__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--navy);
}
.team-card__title {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.team-card__bio {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-soft);
}

/* ---- Empty state (before bios land) ---- */
.team-empty {
  max-width: 640px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: clamp(28px, 5vw, 44px);
}
.team-empty__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 3.2vw, 28px);
  color: var(--navy);
}
.team-empty__text {
  margin: 0 0 22px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.team-empty__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Closing CTA band ---- */
.team-cta { background: var(--navy); }
.team-cta__inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(40px, 6vw, 72px) 0;
}
@media (min-width: 820px) {
  .team-cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.team-cta__copy { max-width: 56ch; }
.team-cta__title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3.4vw, 32px);
  color: var(--paper);
}
.team-cta__text {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(247, 244, 236, .82);
}
.team-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
