/* V20 - Full page content width for the six requested routes.
   The V19 repair removed the outer background inset. These pages also had
   independent 74/80ch text limits, a 980px form wrapper, a split RAM intro,
   and viewport-based section gutters that left the content narrow.
   Keep a small responsive gutter and let the content use the available width.
   Other routes retain their existing reading widths and layouts. */

body:is(
  [data-route="/rand-ucla-method"], [data-route="/pricing"],
  [data-route="/terms"], [data-route="/privacy"],
  [data-route="/acceptable-uses"], [data-route="/security"]
) {
  --cal-page-gutter: clamp(20px, 2.2vw, 42px);
  --ds-gutter: var(--cal-page-gutter);
}

body:is(
  [data-route="/rand-ucla-method"], [data-route="/pricing"],
  [data-route="/terms"], [data-route="/privacy"],
  [data-route="/acceptable-uses"], [data-route="/security"]
) main#main-content > :is(
  .cal-page, .cal-ram-page, .cal-terms-page, .cal-privacy-page,
  .cal-aup-page, .cal-security-page
) > :is(
  .cal-wrap, .cal-ram-wrap, .cal-terms-wrap, .cal-privacy-wrap,
  .cal-aup-wrap, .cal-security-wrap
) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

body:is(
  [data-route="/rand-ucla-method"], [data-route="/pricing"],
  [data-route="/terms"], [data-route="/privacy"],
  [data-route="/acceptable-uses"], [data-route="/security"]
) main#main-content section {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: var(--cal-page-gutter) !important;
}

body:is(
  [data-route="/rand-ucla-method"], [data-route="/pricing"],
  [data-route="/terms"], [data-route="/privacy"],
  [data-route="/acceptable-uses"], [data-route="/security"]
) main#main-content section :is(p, ul, ol, li, h2, h3),
body:is(
  [data-route="/rand-ucla-method"], [data-route="/pricing"],
  [data-route="/terms"], [data-route="/privacy"],
  [data-route="/acceptable-uses"], [data-route="/security"]
) main#main-content [data-layout="hero"] :is(.site-hero-copy, .fluent-unified-hero-copy) {
  max-width: none !important;
}

/* Keep the RAM heading above its text; the old editorial column kept the
   explanation narrow even after the section background was widened. */
body[data-route="/rand-ucla-method"] main#main-content [data-layout="intro"] {
  display: block !important;
  grid-template-columns: none !important;
}
body[data-route="/rand-ucla-method"] main#main-content [data-layout="intro"] > * {
  grid-column: auto !important;
  grid-row: auto !important;
}
body[data-route="/rand-ucla-method"] main#main-content [data-layout="intro"] > h2 {
  position: static !important;
  margin-bottom: 24px !important;
}

body[data-route="/pricing"] main#main-content :is(.pricing-form-wrap, #pricing-form) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}
body[data-route="/pricing"] main#main-content .pricing-form-wrap {
  padding-inline: 0 !important;
}

/* This new stylesheet also carries the contrast repair so an older cached
   pricing.css cannot restore navy text on the navy summary band. */
body[data-route="/pricingpage"] main#main-content #pricing-start-title {
  color: #fff !important;
}
@media print {
  body[data-route="/pricingpage"] main#main-content #pricing-start-title {
    color: #000 !important;
  }
}
