/* Inner-page widths are content widths, excluding the two 24px gutters.
   Keep full-width section backgrounds and the shared navigation independent. */
@media (min-width: 992px) {
  body:not(.home-refined) #main {
    --inner-content-width: 1120px;
    --inner-product-width: 1080px;
    --inner-gutter: 24px;
  }

  body:not(.home-refined) #main :is(
    .solution-container, .mgr-container, .bpm-container, .lap-container,
    .blog-shell, .help-container, .explainer > .section, .explainer-hero
  ) {
    box-sizing: border-box;
    width: 100%;
    max-width: calc(var(--inner-content-width) + 2 * var(--inner-gutter));
    padding-inline: var(--inner-gutter);
    margin-inline: auto;
  }

  body:not(.home-refined) #main .partners-container {
    width: min(var(--inner-content-width), calc(100% - 48px));
    margin-inline: auto;
  }

  body:not(.home-refined) #main .blog-reading {
    max-width: var(--inner-content-width);
  }

  /* A width cap preserves smaller existing max-widths and split-column media.
     Screens already capped at 1040px keep that size. */
  body:not(.home-refined) #main :is(
    .solution-screen, .unified-screen, .mgr-real-screen, .bpm-product-screen,
    .ad-wide-proof, .unified-automation-proof, .unified-api-proof,
    .ad-hero-screen, .ec-hero-proof, .ma-hero-screen, .af-hero-screen
  ) {
    width: min(100%, var(--inner-product-width));
    margin-inline: auto;
  }
}
