/* 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; }

/* ---------- Sleep guide: lavender-to-ice sky, faint crescent and tiny stars in the gutters only; the tool card, chips and moon bars stay on solid panels ---------- */
body {
  background-color: #f4f7fb;
  background-image: linear-gradient(#e8eaf6, #d3f1f5 36%, #f4f7fb 100%);
  background-repeat: no-repeat;
  background-attachment: scroll;
}
main { background-color: #fff; }
@media (min-width: 1000px) {
  main { box-shadow: -24px 0 0 #fff, 24px 0 0 #fff, -25px 0 0 #d5dde2, 25px 0 0 #d5dde2; }
}
@media (min-width: 1120px) {
  body {
    background-image:
      url("/assets/bg/sleep-crescent.svg"),
      url("/assets/bg/sleep-stars.svg"),
      linear-gradient(#e8eaf6, #d3f1f5 42%, #f4f7fb 100%);
    background-repeat: no-repeat, repeat-y, no-repeat;
    background-position: calc(50% + 500px) 100px, center top, 0 0;
    background-size: 280px 280px, 1280px 720px, auto;
    background-attachment: scroll, 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; }
}
