/* V19 - Make six standard marketing/library pages use 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"]
) main.site-main > .fluent-unified > :is(
  .cal-wrap, .cal-live-wrap, .cal-nm-wrap, .cal-inst-wrap
) {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

/* The three 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"]
) 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"]
) 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. */
