/* Shared sections follow document order when they stack. */
.layout-pair,
.home-opening,
.reward-examples,
.explore-grid,
.market-redemption {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
}

.layout-pair > *,
.home-opening > *,
.reward-examples > *,
.explore-grid > *,
.market-redemption > * {
  min-width: 0;
}

main > .layout-pair {
  margin-block: clamp(24px, 4vw, 42px);
}

main > .layout-pair > :is(.closing-note, .panel, .pathway-section, .signup) {
  margin-block: 0;
}

.layout-pair h2 {
  text-wrap: balance;
}

.home-opening {
  padding-block: clamp(24px, 4vw, 52px);
}

.simple-home .home-opening > :is(.hero, .achievement-hero) {
  width: 100%;
  padding: 0;
  margin: 0;
}

.simple-home .home-opening .hero {
  display: block;
  background: transparent;
}

.simple-home .home-opening h1 {
  font-size: clamp(2.5rem, 3.55vw, 3.55rem);
  text-wrap: balance;
}

.home-opening .hero-description {
  max-width: 42ch;
}

.reward-examples {
  margin-top: clamp(28px, 4vw, 44px);
}

.reward-examples .reward-journey {
  margin-top: 0;
}

#how-it-works .step .text-link {
  line-height: 1.45;
  margin-top: 8px;
  text-decoration: underline;
}

.explore-grid {
  gap: 16px;
  align-items: stretch;
}

.simple-home .explore-grid > .explore-detail {
  padding-inline: clamp(16px, 2.7vw, 30px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff05;
}

.simple-home .explore-grid > .explore-detail > summary {
  min-height: 104px;
  padding-block: 18px;
  gap: 14px;
}

.simple-home .team-section .team-profile {
  max-width: none;
  margin: 0;
}

.pathway-choices {
  margin-block: 20px 0;
  gap: 14px;
  align-items: stretch;
}

.pathway-choices > .pathway-details {
  margin: 0;
}

.school-summary-grid {
  gap: 18px;
}

.school-summary-card {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--border, #42785f);
  border-radius: 16px;
}

.school-summary-card > h2:first-child {
  margin-top: 0;
}

.market-redemption {
  margin-block: clamp(26px, 4vw, 48px);
}

.market-redemption h2 {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.3;
}

.market-redemption .journey {
  grid-template-columns: minmax(0, 1fr);
  margin-block: 12px 0;
}

.market-redemption .journey > div {
  min-width: 0;
}

.market-checkout {
  padding: clamp(16px, 2.6vw, 27px);
  border: 1px solid #c8ded0;
  border-radius: 16px;
  background: #edf5ee;
  color: #163127;
  scroll-margin-top: 24px;
}

.market-checkout > p,
.checkout-description p {
  max-width: 64ch;
  line-height: 1.65;
}

.market-checkout figure {
  margin: 16px 0 6px;
}

.market-checkout video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  background: #050f13;
}

.checkout-description summary {
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
}

.checkout-description p {
  margin: 8px 0 14px;
}

.footer-top nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 8px 20px;
}

@media (max-width: 1120px) {
  .js-enabled .header-inner nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 8px;
    gap: 0 16px;
  }

  .header-inner nav > a:not(.button) {
    white-space: normal;
  }
}

@media (min-width: 850px) {
  .layout-pair,
  .explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-pair > :is(.pathway-section, .closing-note) {
    align-self: stretch;
  }

  .explore-grid > details[open],
  .pathway-choices > details[open] {
    grid-column: 1 / -1;
  }

  .market-redemption {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

@media (min-width: 960px) {
  .signup-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

@media (min-width: 1050px) {
  .home-opening {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr);
    align-items: center;
  }

  .pogg-program {
    display: grid;
    grid-template:
      "heading artwork" auto
      "details artwork" auto
      / minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    align-content: center;
    gap: 12px 42px;
  }

  .pogg-program > .section-heading {
    grid-area: heading;
    margin: 0;
    align-self: end;
    text-align: left;
  }

  .pogg-program > .pogg-stage-art {
    grid-area: artwork;
    min-width: 0;
    margin: 0;
  }

  .pogg-program > .pogg-program-details {
    grid-area: details;
    align-self: start;
    margin: 0;
  }

  .pogg-program-details > summary {
    margin-inline: 0;
  }

  .reward-examples {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.9fr);
    align-items: center;
  }

  .reward-examples .reward-journey-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reward-examples .reward-journey-heading,
  .reward-examples .reward-journey-footer {
    flex-wrap: wrap;
    gap: 12px;
  }
}
