/* ==========================================================================
   MATH page background 2026-12-02 · Academic-Mathematics watermarks
   --------------------------------------------------------------------------
   Scope: the page canvas ONLY (`html body`), plus the already-transparent
   .body-light wrapper. Sidebar, header, footer and content cards keep their
   own CSS and are not touched here.

   Colours are the site's own tokens, no new palette invented:
     #F3EDF6  = var(--surface-purple)  · page ground (never pure white)
     #61617D  = var(--side-bg)         · watermark strokes, grey
     #9E76B4  = var(--science-purple)  · watermark strokes, purple
   Watermark tile is /images/v2/bg-math.svg (one cached request).
   ========================================================================== */

html body {
  background-color: #F3EDF6 !important;
  /* the later desktop.css shorthand resets background-image, so every longhand
     needs !important to survive it (verified in the live cascade). */
  background-image:
    radial-gradient(1400px 700px at 50% -10%, rgba(158, 118, 180, 0.12), rgba(243, 237, 246, 0) 70%),
    url("/images/v2/bg-math.svg") !important;
  background-repeat: no-repeat, repeat !important;
  background-size: 1400px 700px, 720px 720px !important;
  background-position: 50% -10%, 0 0 !important;
  background-attachment: scroll, scroll !important;
}

/* the legacy wrapper already carries `background: transparent !important` on
   desktop; make sure it stays transparent at every width so no white sheet or
   bg2.png band sneaks back in on top of the new ground. */
html body .body-light {
  background: transparent !important;
}
