/* assets/css/team.css
 * Layout for the Team page.
 *
 * The grid is built to look deliberate at any headcount. With one person the
 * card centres at a readable width rather than stranding itself in a corner
 * of a four-column grid; it fills out as people are added.
 */

.team-hero {
  display: flex;
  align-items: center;
  min-height: var(--hero-h);
  padding: 40px 0;
  background: var(--band);
}

.team-hero > .container {
  width: 100%;
  max-width: var(--hero-w);
}

/* The banner is 2.6:1, wider than the 2.1:1 the other split heroes carry,
   so it gets a larger share of the row. At a fixed 720px track it rendered
   275 tall in a 560 band and looked stranded. */
.team-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 56px;
  align-items: center;
}

.team-hero__title {
  /* FACE AND WEIGHT STATED, NOT INHERITED.
     These relied on the global `h1` rule for bold. That holds while the hero
     is an <h1> on a page that loaded base.css in the usual order — and stops
     holding the moment one is rendered from a React page, wrapped in another
     element, or reached with a different stylesheet order. A hero headline
     should not depend on which tag it happens to be in. */
  font-family: var(--font-heading);
  font-weight: 700;

  --hard-shadow-offset: 3px;
  font-size: var(--hero);
  line-height: var(--hero-lh);
}

.team-hero__lead {
  max-width: 430px;
  margin-top: 18px;
}

.team-hero__art {
  width: 100%;
  height: auto;
}

/* ---- The grid -------------------------------------------------------- */

.team {
  padding-top: 100px;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  gap: 40px 34px;
  margin-top: 56px;
}

.person-card {
  padding: 36px 30px 34px;
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
}

.person-card__face {
  width: 132px;
  height: 132px;
  margin: 0 auto 20px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--verde-100);
}

.person-card__name {
  font-size: var(--h6);
  line-height: var(--h6-lh);
}

.person-card__role {
  margin-top: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  line-height: 21px;
  color: var(--brand);
}

.person-card__body {
  margin-top: 12px;
  font-size: 15px;
  line-height: 23px;
  color: var(--ink-soft);
}

/* ---- Hiring note ------------------------------------------------------ */

.team-hiring {
  padding-top: 90px;
}

.team-hiring__box {
  max-width: 900px;
  margin-inline: auto;
  padding: 54px 60px 58px;
  border-radius: var(--radius);
  background: var(--forest);
  color: var(--white);
  text-align: center;
}

.team-hiring__title {
  font-size: var(--h4);
  line-height: var(--h4-lh);
  color: var(--white);
}

.team-hiring__lead {
  max-width: 540px;
  margin: 16px auto 0;
  color: var(--band);
}

.team-hiring__btn {
  margin-top: 30px;
}

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 1340px) {
  .team-hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 1100px) {
  .team-hero {
    min-height: 0;
    padding: 56px 0;
  }

  .team-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  

  .team-hero__title .marker {
    display: none;
  }

  .team-hero__art {
    max-width: 620px;
  }

  .team,
  .team-hiring {
    padding-top: 72px;
  }

  .team-hiring__box {
    padding: 40px 32px 44px;
  }
}

@media (max-width: 640px) {
  

  .team__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .team-hiring__box {
    padding: 32px 22px 36px;
  }
}
