/* One reading grid and type scale connect the membership, comparison and
   included chapters. The membership photographs keep their wider stage. */
body.refined.evolved {
  --section-reading-width: 1400px;
  --section-title-size: clamp(56px, 5vw, 76px);
  --section-heading-gap: clamp(24px, 2.5vw, 32px);
  --section-heading-top: 88px;
  --membership-page-insets: 48px;
}

body.refined.evolved .ways#ways {
  --ways-space: var(--section-gap);
  padding-top: var(--ways-space);
}

body.refined.evolved :is(.ways#ways, .compare#compare) {
  scroll-margin-top: calc(var(--section-heading-top) - 96px - var(--section-gap));
}

body.refined.evolved .included.recovery.recovery-stacking {
  scroll-margin-top: calc(var(--recovery-stick-top, var(--section-heading-top)) - 96px - var(--section-gap));
}

body.refined.evolved .ways#ways .section-head {
  width: min(var(--section-reading-width), calc(100% + var(--membership-page-insets) - var(--gutter) * 2));
  max-width: var(--section-reading-width);
  margin-inline: auto;
  padding-inline: 0;
}

body.refined.evolved .compare#compare,
body.refined.evolved .included.recovery.recovery-stacking {
  width: min(var(--section-reading-width), calc(100% - var(--gutter) * 2));
  max-width: var(--section-reading-width);
  margin-inline: auto;
  padding-inline: 0;
}

body.refined.evolved .ways#ways .section-head,
body.refined.evolved .compare#compare .compare-head,
body.refined.evolved .included.recovery.recovery-stacking .recovery-heading {
  margin-bottom: var(--section-heading-gap);
  text-align: left;
}

body.refined.evolved :is(#ways-title, #compare-title, #included-title) {
  min-width: 0;
  max-width: 21ch;
  margin: 0;
  padding: 0;
  font-size: var(--section-title-size);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-align: left;
  text-wrap: balance;
}

body.refined.evolved .compare#compare .compare-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

body.refined.evolved .compare#compare .compare-intro {
  max-width: 28ch;
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

@media (max-width: 1000px) {
  body.refined.evolved .compare#compare .compare-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  body.refined.evolved .compare#compare .compare-intro {
    max-width: 34ch;
    margin: 0;
  }
}

@media (max-width: 760px) {
  body.refined.evolved {
    --section-title-size: clamp(36px, 10vw, 44px);
    --section-heading-gap: 24px;
    --section-heading-top: 84px;
    --membership-page-insets: 32px;
  }

  body.refined.evolved .compare#compare .compare-intro {
    font-size: 16px;
  }
}

@media (max-width: 380px) {
  body.refined.evolved { --section-title-size: 30px; }
}
