/* v36-bg: shared surfaces. The header strip and the footer link strip are opaque white bars; art never sits behind text. */
.site-header { background-color: #fff; background-image: none; }
.site-summary { background: #fff; border-top: 1px solid #d5dde2; }

/* ---------- BMI visualizer: cream canvas, tick rail and leaf sprigs in the gutters only, opaque white text shell ---------- */
body {
  background-color: #f7f4ee;
  background-image: linear-gradient(#f7f4ee, #ffffff 280px);
  background-repeat: no-repeat;
  background-attachment: scroll;
}
main { background-color: #fff; }
@media (min-width: 1000px) {
  /* white shell, 24 px wider on each side with no change to the content box (horizontal-only offset shadows, no blur, no vertical bleed) */
  main { box-shadow: -24px 0 0 #fff, 24px 0 0 #fff, -25px 0 0 #d5dde2, 25px 0 0 #d5dde2; }
}
@media (min-width: 1160px) {
  body {
    background-image:
      url("/assets/bg/bmi-leaves.svg"),
      url("/assets/bg/bmi-ticks.svg");
    background-repeat: no-repeat, repeat-y;
    background-position: center top, center top;
    background-size: 1280px 720px, 1280px 480px;
    background-attachment: scroll, scroll;
  }
}

/* ---------- print: plain white everywhere, no art ---------- */
@media print {
  body, .page, main, section, header, footer,
  .site-header, .site-summary, .text-shell,
  .five-home, .story, .media-hero {
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  .step::before, h2::before { content: none !important; display: none !important; background: none !important; }
}

/* ---------- reduced motion: the art is static; this is a guard only ---------- */
@media (prefers-reduced-motion: reduce) {
  body, .page, main, .media-hero, .five-home, .story {
    animation: none !important;
    transition: none !important;
    background-attachment: scroll !important;
  }
}

/* ---------- forced colors: drop the images ---------- */
@media (forced-colors: active) {
  body, .page, main, .media-hero, .five-home, .story, .step::before, h2::before {
    background-image: none !important;
  }
  .step::before { content: none !important; }
}
