/*
 * People-page bespoke overrides — MSEED Education
 *
 * Covers page-people.php and page-leadership.php.
 * Most layout is handled by _people-grid.css and _person-card.css.
 * This file adds page-level section spacing only.
 *
 * All values via var(--*). Breakpoints use raw px.
 */

/* Underline accent bar below the person-card name — people-template pages
   only (moved out of the global _person-card.css so it doesn't apply
   site-wide). */
.person-card__name:after {
  content: "";
  display: block;
  width: 6rem;
  height: 2px;
  background: var(--c-blue-500);
  margin: 4px auto 10px;
}

/* ══════════════════════════════════════════════════════════════════════
   PEOPLE GRID PAGE — section padding + content-none spacing
═══════════════════════════════════════════════════════════════════════ */

.people-grid {
  padding-block: var(--sp-9);
}

@media (max-width: 768px) {
  .people-grid {
    padding-block: var(--sp-7);
  }
}

/* Content-none on people pages — centred, generous padding */

.people-grid + .no-results {
  padding-block: var(--sp-9);
  text-align: center;
}

/* ══════════════════════════════════════════════════════════════════════
   PEOPLE SECTION — board-of-directors / industry-council / mentor-board
   grid: 3-col person-card grid. alternating: full-width stacked list
   (person-card--alternating provides the row/photo styling itself).
═══════════════════════════════════════════════════════════════════════ */

.people-section {
  padding-block: var(--sp-9);
  padding-bottom: 3rem;
  background-color: var(--c-white);
}

@media (max-width: 768px) {
  .people-section {
    padding-block: var(--sp-7);
  }
}

.people-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Card chrome lives on the <li> wrapper (photo-top grid cards). */
.people-section__grid li {
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  overflow: hidden;
}

@media (max-width: 768px) {
  .people-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .people-section__grid {
    grid-template-columns: 1fr;
  }
}

.people-section__list {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

/* ══════════════════════════════════════════════════════════════════════
   FOUNDERS PAGE
═══════════════════════════════════════════════════════════════════════ */

.founders {
  padding-block: var(--sp-9);
  background-color: var(--c-white);
}

.founders__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-8);
  align-items: start;
  padding-block: var(--sp-8);
  border-bottom: 1px solid var(--c-line-200);
}

.founders__row:last-child {
  border-bottom: none;
}

.founders__row--reverse {
  grid-template-columns: 1.4fr 1fr;
}

.founders__row--reverse .founders__portrait {
  order: 2;
}

.founders__row--reverse .founders__content {
  order: 1;
}

@media (max-width: 768px) {
  .founders__row,
  .founders__row--reverse {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .founders__row--reverse .founders__portrait,
  .founders__row--reverse .founders__content {
    order: unset;
  }
}

.founders__portrait {
  position: relative;
  max-width: 24rem;
}

.founders__portrait img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--c-accent-500);
  border-radius: var(--r-card);
  object-fit: cover;
}

.founders__play {
  position: absolute;
  bottom: var(--sp-3);
  left: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--c-accent-500);
  color: var(--c-white);
}

.founders__play svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 2px; /* optical centering for play triangle */
}

.founders__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.founders__name {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--c-navy-900);
  margin: 0;
  line-height: var(--lh-snug);
}

.founders__role {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--c-accent-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.founders__bio {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.founders__bio p {
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--c-ink-500);
  margin: 0;
}
