/* ============================================
   Experts + team-member card layout.

   .gs-wgs-experts is a 2-col grid (intro + cards on one side,
   contact form on the other, with `2fr 3fr` split — form column
   wider). Vertical-centered.

   On tablet/mobile (≤900px) the grid stacks AND caps the experts
   intro+cards column at 460px centered. The two team cards switch
   to a side-by-side 2-col layout within that capped column. Each
   card flips to vertical (photo on top, name + role + button
   below, all centered) so they're compact at half-column width.
   ============================================ */

.gs-wgs-experts {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: center;
}

.gs-wgs-experts__title {
  font-size: var(--text-h2);
  color: var(--color-fg);
  margin: 0 0 1rem;
  text-wrap: balance;
}

.gs-wgs-experts__lede {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-fg-body);
  margin: 0 0 2.5rem;
  text-wrap: pretty;
}

.gs-wgs-experts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gs-wgs-expert-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.gs-wgs-expert-card__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.gs-wgs-expert-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.gs-wgs-expert-card__name {
  font-size: var(--text-h5);
  color: var(--color-fg);
  margin: 0;
}

.gs-wgs-expert-card__role {
  font-size: 0.9rem;
  color: var(--color-fg-body);
  margin: 0 0 0.75rem;
}

/* ============================================
   Mobile / tablet
   ============================================ */

@media (max-width: 900px) {
  /* Stack to 1 column AND cap the section so content doesn't
     sprawl to full section width. Everything centers. */
  .gs-wgs-experts {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 460px;
    margin: 0 auto;
  }

  .gs-wgs-experts__title,
  .gs-wgs-experts__lede {
    text-align: center;
  }

  /* Two team-member cards sit side-by-side in a 2-col grid (within
     the 460px-capped column). Each card flips to vertical layout. */
  .gs-wgs-experts__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .gs-wgs-expert-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  /* Form heading + submit also center when the section stacks. */
  .gs-wgs-form__title {
    text-align: center;
  }
  .gs-wgs-form__submit {
    align-self: center;
  }
}
