/* Executive Committee page — the roster only. The hero is the shared quilted
   spiral (hero-float.css), same as home, About and Registration.

   Layout is editorial rather than card-based: every entry is a hairline-ruled
   column, the three officers set at display size across a 3-column row, the
   deputies smaller across a 4-column row under them. Names carry the weight;
   roles sit above them as quiet uppercase kickers. */

.exec-section {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(5rem, 9vw, 8rem);
}

.exec-shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.exec-row {
  display: grid;
  gap: 2.75rem 3rem;
}

.exec-row--officers {
  grid-template-columns: repeat(3, 1fr);
}

.exec-row--deputies {
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.exec-entry {
  border-top: 1px solid var(--hairline);
  padding-top: 1.35rem;
}

/* the officers' rule is a touch darker, so the two bands read as two ranks
   without needing a label to say so */
.exec-row--officers .exec-entry {
  border-top-color: rgba(0, 0, 0, 0.18);
  padding-top: 1.6rem;
}

.exec-role {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.45;
  color: var(--ink-2);
}

.exec-names {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.exec-name {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--ink);
}

.exec-row--officers .exec-name {
  font-size: clamp(1.6rem, 2.5vw, 2.125rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Role titles run to very different lengths, so they wrap to one, two or
   three lines and would otherwise start every name at a different height.
   Subgrid hands the whole row one shared kicker band and one shared name
   band, so the names sit on a single line across the row whatever the
   titles do. Browsers without subgrid simply fall back to ragged names. */
@supports (grid-template-rows: subgrid) {
  .exec-row {
    grid-template-rows: auto auto;
    row-gap: 0; /* the two bands are spaced by .exec-role's margin instead */
  }

  .exec-entry {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
  }
}

/* ---------- reveal on scroll (matches the About page) ---------- */
.exec-reveal {
  opacity: 0;
  transform: translateY(16px);
}

.exec-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  .exec-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Below the desktop breakpoint the rows wrap onto several lines of entries,
   which subgrid's single shared band cannot span — go back to plain rows. */
@media (max-width: 991px) {
  .exec-shell {
    padding: 0 1.75rem;
  }

  .exec-row--officers,
  .exec-row--deputies {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2.25rem;
  }

  @supports (grid-template-rows: subgrid) {
    .exec-row--officers,
    .exec-row--deputies {
      grid-template-rows: none;
      row-gap: 2.5rem;
    }

    .exec-row--officers .exec-entry,
    .exec-row--deputies .exec-entry {
      display: block;
      grid-row: auto;
    }
  }
}

@media (max-width: 600px) {
  .exec-row--officers,
  .exec-row--deputies {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}
