/* ── Team Grid ──────────────────────────────────────────────────── */

.bdc-v3 .bdc-team-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .bdc-v3 .bdc-team-grid {
    grid-template-columns: var(--bdc-team-cols, 1fr 1fr 1fr);
  }
}

.bdc-v3 .bdc-team-grid__card {
  background: var(--bdc-surface, #fff);
  border: 1px solid var(--bdc-line, #dcdcde);
  border-radius: var(--bdc-r-lg, 12px);
  padding: 0;
  box-shadow: var(--bdc-shadow-card, 0 2px 8px -2px rgba(0, 0, 0, 0.06));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Now an <a>: kill the default link styling so it still reads as a card. */
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.bdc-v3 .bdc-team-grid__card:hover,
.bdc-v3 .bdc-team-grid__card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(31, 63, 51, 0.18);
  border-color: var(--bdc-sage, #1f3f33);
  outline: none;
}

.bdc-v3 .bdc-team-grid__cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bdc-accent, #b86d3c);
  text-transform: uppercase;
}

/* ── Photo / placeholder ───────────────────────────────────────── */

.bdc-v3 .bdc-team-grid__photo {
  aspect-ratio: 1 / 1;
  background: var(--bdc-sage-soft, #e2ebe5);
  overflow: hidden;
}

.bdc-v3 .bdc-team-grid__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.bdc-v3 .bdc-team-grid__photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bdc-sage, #1f3f33);
  font-family: var(--bdc-serif, Newsreader, serif);
  font-weight: 600;
  font-size: 48px;
  letter-spacing: 0.04em;
  user-select: none;
}

/* ── Body — name / role / bio ──────────────────────────────────── */

.bdc-v3 .bdc-team-grid__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bdc-v3 .bdc-team-grid__name {
  margin: 0;
  font-family: var(--bdc-serif, Newsreader, serif);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--bdc-ink, #1a1f1a);
  letter-spacing: -0.2px;
}

.bdc-v3 .bdc-team-grid__role {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bdc-sage, #1f3f33);
  margin-top: -2px;
}

.bdc-v3 .bdc-team-grid__bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--bdc-ink-2, #4a524d);
  margin-top: 6px;
}

.bdc-v3 .bdc-team-grid__bio p {
  margin: 0;
  /* Clamp the bio to 2 lines regardless of word count — the full
     bio lives on the click-through profile page. Prefixed for Safari;
     unprefixed `line-clamp` shipped in Chrome 111 / Safari 16.4. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
