/** Meet the Team overlay, Template 09.

    Thin overlay on main.css + rev2-4.css + rev2-6.css + category.css.
    Bands, breadcrumb, masthead, prose and help strip are reused. This
    file only covers the blocks those pages do not have. */

.team-page main {
  background: var(--page-bg);
}

/* ---------------------------------------------------------------
   Intro
--------------------------------------------------------------- */

.team-intro .cat-mast__title {
  margin-bottom: var(--sp5);
}

.team-intro__lede {
  width: 66.666%;
  max-width: none;
}

.team-intro__lede p {
  max-width: none;
}

@media (max-width: 720px) {
  .team-intro__lede { width: 100%; }
}

.team-head {
  align-items: baseline;
}

/* The group shot is a lineup. Crop it to a wide strip so the
   people hold the frame, not the tarmac or the sky. */
.team-strip {
  margin: 0;
  overflow: hidden;
  background: #111;
}

.team-strip img {
  display: block;
  width: 100%;
  height: clamp(168px, 26vw, 260px);
  object-fit: cover;
  object-position: center 52%;
}

/* ---------------------------------------------------------------
   Portrait grid
--------------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp6);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 1100px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: minmax(0, 1fr); }
}

.team-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--white);
}

.team-card__media {
  margin: 0;
  background: #1a1a1a;
}

.team-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
}

.team-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp5);
}

.team-card__name {
  margin: 0 0 var(--sp1);
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.25;
}

.team-card__role {
  margin: 0 0 var(--sp4);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange);
}

.team-card__body p {
  margin: 0 0 var(--sp3);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text-muted);
}

.team-card__body p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------
   CTA
--------------------------------------------------------------- */

.team-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp3);
}

.team-page .cat-band:not(.cat-band--dark) .btn-white {
  border: 1px solid var(--nav-border);
  color: var(--text);
  background: var(--white);
}

.team-page .cat-band:not(.cat-band--dark) .btn-white:hover,
.team-page .cat-band:not(.cat-band--dark) .btn-white:focus-visible {
  border-color: var(--text);
}
