/* Calculus additions to the supplied STEM-Master reader style. */
.calculus-intro{padding-block:34px!important}.calculus-intro h1{font-size:clamp(42px,6vw,64px)!important}.section-list a{grid-template-columns:54px 1fr auto}.section-number{white-space:nowrap}.course-reader main #all-sections{margin:20px 0 24px}.page-header nav{flex-wrap:wrap}.pdf-page{color:inherit;fill:currentColor}.pdf-page [fill="var(--paper, #fff)"]{fill:var(--panel)}
/* The original vector pages already use theme-aware ink. Keep grayscale fills
and line art readable against the panel in both explicit and system dark mode. */
:root[data-theme="dark"] .pdf-page{--paper:var(--panel)}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .pdf-page{--paper:var(--panel)}}
@media(max-width:781px){.section-list a{grid-template-columns:44px 1fr}.brand{letter-spacing:-1px}.section-navigation{flex-wrap:wrap}.section-navigation a{overflow-wrap:anywhere}.page-header nav a{min-height:32px}.course-reader main h1{letter-spacing:-.7px}}
@media print{.pdf-page{--ink:#000!important;--paper:#fff!important;color:#000!important}}

/* SVG glyphs and line art use currentColor directly in their presentation
   attributes. Dark Reader leaves that value alone, so letters follow the
   readable surrounding text instead of being classified as backgrounds.
   Only paper and grayscale diagram backgrounds need its neutral palette. */
@media screen {
  html[data-darkreader-mode="dynamic"][data-darkreader-scheme="dark"] .pdf-page {
    --panel: var(--darkreader-neutral-background, #181a1b);
    --paper: var(--darkreader-neutral-background, #181a1b);
  }
}
