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

/* ---------- Meditation: calm waves in the gutters below the video, a wave band under the video, opaque white column ---------- */
body {
  background-color: #eaf6f8;
  background-image: url("/assets/bg/meditation-waves.svg");
  background-repeat: no-repeat;
  /* the waves start where the video block ends: header + 16:9 frame (capped by the viewport height) + caption rows */
  background-position: center calc(69px + min(min(100vw, 1280px) * 0.5625, 100vh - 88px) + 112px);
  background-size: 1280px 900px;
  background-attachment: scroll;
}
.media-hero {
  background-color: #d3f1f5;
  background-image: url("/assets/bg/meditation-caption.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 1280px 160px;
}
.media-hero .media-caption,
.media-hero .credit {
  background-color: #d3f1f5;
  padding-top: 6px;
  padding-bottom: 6px;
}
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 (max-width: 720px) {
  body {
    background-size: 900px 640px;
    background-position: center top;
  }
  .media-hero { background-size: 900px 120px; }
}

/* ---------- 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,
  .media-hero .media-caption, .media-hero .credit {
    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; }
}
