/* V19 - Keep standard marketing, library and policy pages on the same edge-to-edge
   section backgrounds as the approved Home, Delphi Services and Features pages.
   The V6 progressive-enhancement sheet added horizontal padding to each page's
   outer *-wrap; combined with the page section gutters this produced a white
   strip at both viewport edges. Remove that outer inset only on these routes.
   Inner copy retains its section gutters. */

body:is(
  [data-route="/medical-consensus-research"],
  [data-route="/core-outcome-set-delphi"],
  [data-route="/live-consensus"],
  [data-route="/medical-references"],
  [data-route="/nonmedical-references"],
  [data-route="/institutions"],
  [data-route="/rand-ucla-method"],
  [data-route="/pricing"],
  [data-route="/terms"],
  [data-route="/privacy"],
  [data-route="/acceptable-uses"],
  [data-route="/security"]
) main.site-main > .fluent-unified > :is(
  .cal-wrap, .cal-live-wrap, .cal-nm-wrap, .cal-inst-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;
}

/* Pages with generated topic panels previously inherited their text
   gutters from that outer wrapper. Restore the gutters on the content, rather
   than on the entire page background (which stays edge-to-edge). */
body:is(
  [data-route="/medical-consensus-research"],
  [data-route="/core-outcome-set-delphi"],
  [data-route="/live-consensus"],
  [data-route="/rand-ucla-method"]
) main.site-main .fluent-unified .fluent-unified-panel > section {
  box-sizing: border-box !important;
  padding-left: var(--ds-gutter, 32px) !important;
  padding-right: var(--ds-gutter, 32px) !important;
}

body:is(
  [data-route="/medical-consensus-research"],
  [data-route="/core-outcome-set-delphi"],
  [data-route="/live-consensus"],
  [data-route="/rand-ucla-method"]
) main.site-main .fluent-unified .fluent-unified-tabs-intro {
  padding-left: var(--ds-gutter, 32px);
  padding-right: var(--ds-gutter, 32px);
}

/* When the generated tabs are in anchor-only mode, sections remain directly
   under the page wrapper and already receive their native section gutters. */
