/* A lesson has one scroll owner: the current page. */
html.cw-flow-ready .cw-flow-slide {
  box-sizing: border-box !important;
  height: var(--cw-flow-height) !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto !important;
  overscroll-behavior: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: #b5bec8 #fff !important;
  background: #fff !important;
}
html.cw-flow-ready .cw-flow-slide::-webkit-scrollbar,
html.cw-flow-document body::-webkit-scrollbar { display: block !important; width: 8px !important; height: 8px !important; }
html.cw-flow-ready .cw-flow-slide > * { flex-shrink: 0; }
html.cw-flow-ready .cw-flow-content {
  overflow: visible !important;
  height: auto !important;
  min-height: min-content !important;
  max-height: none !important;
  flex-shrink: 0 !important;
  overscroll-behavior: auto !important;
}
html.cw-flow-ready .cw-flow-slide :is(p,li,td,th,h1,h2,h3,h4) { overflow-wrap: anywhere; }
html.cw-flow-ready .cw-flow-slide :is(.katex-display,mjx-container) { overflow: visible !important; max-width: 100%; }
html.cw-flow-ready .cw-flow-slide .katex-display > .katex { white-space: normal; }
html.cw-flow-ready .cw-flow-slide table { max-width: 100%; }
html.cw-flow-ready .cw-flow-grid { min-width: 0 !important; }
html.cw-flow-ready .cw-flow-grid > * { min-width: 0 !important; }
html.cw-flow-ready .cw-flow-grid.cw-flow-stack { grid-template-columns: minmax(0,1fr) !important; grid-template-rows: auto !important; }
html.cw-flow-ready .cw-flow-wrap { flex-wrap: wrap !important; }
html.cw-flow-ready .cw-flow-slide :is(.chalkboard,.left-content,.right-content) { width: auto !important; height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; }
html.cw-flow-ready .cw-flow-slide > .visualization { height: auto !important; min-height: 380px !important; overflow: visible !important; }
html.cw-flow-ready .cw-flow-slide > .visualization > svg { min-height: 320px !important; height: clamp(320px,55vh,560px) !important; }
html.cw-flow-ready .cw-flow-slide.cw-fullvisual > .visualization { position: relative !important; inset: auto !important; }
html.cw-flow-ready .cw-flow-slide.cw-single > .slide-container.cover { position: relative !important; inset: auto !important; min-height: 100%; }
html.cw-flow-ready .cw-flow-slide :is(.cv-r,.cover-right) { overflow: visible !important; background: #f7f9fb !important; color: #243248 !important; }
html.cw-flow-ready .cw-flow-slide :is(.cv-r,.cover-right) :is(h1,h2,h3,p,li,b,strong) { color: inherit !important; }
html.cw-flow-ready .cw-flow-slide .cv-big { display: none; }
html.cw-flow-ready .cw-flow-slide .deco-circle { display: none; }
html.cw-flow-ready .cw-flow-slide:is(.title-slide,.slide-title,.section-divider)::before,
html.cw-flow-ready .cw-flow-slide:is(.title-slide,.slide-title,.section-divider)::after { content: none !important; }
html.cw-flow-ready .cw-flow-slide.section-divider .section-num { display: none; }
html.cw-flow-ready .cw-flow-slide.title-slide { color: #243248 !important; }
html.cw-flow-ready .cw-flow-slide.title-slide :is(h1,h2,h3,p,.subtitle,.title,.tagline,.chapter-label) { color: inherit !important; -webkit-text-fill-color: currentColor; }
.cw-formula-flow { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: .3em .15em; max-width: 100%; white-space: normal; }
.cw-formula-piece { display: inline-flex; max-width: 100%; min-width: 0; align-items: center; }
.cw-formula-piece > svg { display: block; max-width: 100%; height: auto; }
.cw-formula-piece .katex { white-space: nowrap; }
html.cw-flow-ready #cwZoomControls.cw-flow-zoom { position: static !important; inset: auto !important; z-index: auto !important; border: 0 !important; margin: 0 !important; padding: 0 !important; background: transparent !important; flex: 0 0 auto; }
html.cw-flow-ready #cwUnifiedFooter,
html.cw-flow-ready :is(.toolbar,.controls,#bar,#finalDock).cw-flow-footer { display: flex !important; flex-wrap: wrap !important; align-items: center !important; justify-content: center !important; gap: 5px 10px !important; height: auto !important; min-height: 48px !important; padding: 5px 8px !important; background: #fff !important; }
html.cw-flow-document,html.cw-flow-document body { height: auto !important; min-height: 100%; overflow-y: auto !important; scrollbar-width: thin !important; background: #fff; }
html.cw-flow-document body { padding-bottom: var(--cw-flow-footer-height,60px) !important; }
html.cw-flow-document :is(main,.wrap) { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; }
@media(max-width:800px) {
  html.cw-flow-ready .cw-flow-slide :is(.slide-container,.content-grid,.two-col,.two-columns,.split-layout,.slide-content) { min-width: 0 !important; max-width: 100% !important; }
  html.cw-flow-ready .cw-flow-slide > .visualization { min-height: 320px !important; }
  html.cw-flow-ready .cw-flow-slide > .visualization > svg { min-height: 280px !important; }
  html.cw-flow-ready .cw-flow-slide table { table-layout: fixed; }
  html.cw-flow-ready .cw-flow-slide :is(th,td) { white-space: normal; }
}
@media print {
  html.cw-flow-ready .cw-flow-slide { height: auto !important; overflow: visible !important; }
}

/* Decorative cover shapes must not extend the reading surface. */
html.cw-flow-ready .cw-flow-slide :is(.orbit,.floating-symbols,.bg-symbols) { display:none !important; }
html.cw-flow-ready .cw-flow-slide :is(.slide-body,.slide-content) > * { flex-shrink:0; }
@media(max-width:800px) {
  html.cw-flow-ready .cw-flow-slide :is(.nw,.q-text,.q-body,.question-body) { white-space:normal !important; min-width:0 !important; }
  html.cw-flow-ready .cw-flow-slide :is(.content-col,.wide) { width:auto !important; flex-basis:auto !important; }
  html.cw-flow-ready .cw-flow-slide .chapter-mark { font-size:4rem !important; }
}

html.cw-flow-ready mjx-assistive-mml { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; overflow:hidden !important; clip:rect(1px,1px,1px,1px) !important; white-space:nowrap !important; }
html.cw-flow-ready .cw-formula-piece > svg { max-width:100% !important; height:auto !important; }

@media(prefers-reduced-motion:reduce) { html.cw-flow-ready .cw-flow-slide, html.cw-flow-ready .cw-flow-slide * { animation-duration:.001ms !important; transition-duration:.001ms !important; } }

@media(max-width:800px) { html.cw-flow-ready .cw-flow-slide .content-row:has(> .content-col) { flex-direction:column !important; gap:20px !important; } }

html.cw-flow-ready .cw-flow-slide :is(div,section,article,p,table,aside) { box-sizing:border-box; }
html.cw-flow-ready .cw-flow-slide svg:not(mjx-container svg) { max-width:100%; box-sizing:border-box; }
@media(max-width:800px) {
 html.cw-flow-ready .cw-flow-slide :is(.content-row,.row,.slide-body):has(> .content-col) { flex-direction:column !important; gap:20px !important; }
 html.cw-flow-ready .cw-flow-slide :is(.content-row,.row,.slide-body) > .content-col { width:100% !important; }
 html.cw-flow-ready .cw-flow-slide table { width:100% !important; min-width:0 !important; table-layout:fixed !important; }
 html.cw-flow-ready .cw-flow-table,html.cw-flow-ready .cw-flow-table tbody,html.cw-flow-ready .cw-flow-table tr { display:block; width:100%; }
 html.cw-flow-ready .cw-flow-table :is(thead,.cw-flow-table-head) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 html.cw-flow-ready .cw-flow-table tr { margin-bottom:20px; }
 html.cw-flow-ready .cw-flow-table td { display:block; width:100% !important; padding:8px 0; text-align:left; }
 html.cw-flow-ready .cw-flow-table .cw-cell-label {  display:block; color:#536477; font-size:.8em; margin-bottom:5px; font-weight:600; }
}

html.cw-flow-ready .cw-flow-slide .title-deco { display:none !important; }
html.cw-flow-ready .progress-bar { height:4px !important; max-height:4px !important; pointer-events:none; }

html.cw-flow-ready .cw-native-formula-flow { display:inline-flex; flex-wrap:wrap; align-items:baseline; white-space:normal; }
html.cw-flow-ready .cw-native-formula-flow > .base { white-space:nowrap; }

@media(max-width:800px) { html.cw-flow-ready .cw-flow-slide :is(.content-row,.row,.slide-body):has(> .content-col) { flex-wrap:nowrap !important; height:auto !important; min-height:0 !important; max-height:none !important; } }

html.cw-flow-ready .cw-flow-slide { transform:none !important; translate:none !important; }

@media(prefers-reduced-motion:reduce) { html.cw-flow-document main * { animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; } }

html.cw-flow-ready .cw-flow-slide :is(.slide-content,.content-area,.left-content,.right-content,.right-visual) { min-width:0 !important; max-width:100% !important; }
@media(min-width:801px) { html.cw-flow-ready .cw-flow-slide :is(.left-content,.right-content,.right-visual) { flex:1 1 0 !important; } }

.cw-cell-label { display:none; }
html.cw-flow-ready .cw-flow-math-item { flex:1 1 220px !important; min-width:min(100%,180px) !important; }

html.cw-flow-ready .cw-flow-stack > * { grid-column:auto !important; grid-row:auto !important; justify-self:stretch !important; }

/* Apply the same responsive flow when the lesson is enlarged in a desktop window. */
html.cw-flow-ready .cw-flow-slide.cw-flow-narrow :is(.slide-container,.content-grid,.two-col,.two-columns,.split-layout,.slide-content) { min-width: 0 !important; max-width: 100% !important; }
  html.cw-flow-ready .cw-flow-slide.cw-flow-narrow > .visualization { min-height: 320px !important; }
  html.cw-flow-ready .cw-flow-slide.cw-flow-narrow > .visualization > svg { min-height: 280px !important; }
  html.cw-flow-ready .cw-flow-slide.cw-flow-narrow table { table-layout: fixed; }
  html.cw-flow-ready .cw-flow-slide.cw-flow-narrow :is(th,td) { white-space: normal; }
html.cw-flow-ready .cw-flow-slide.cw-flow-narrow :is(.nw,.q-text,.q-body,.question-body) { white-space:normal !important; min-width:0 !important; }
  html.cw-flow-ready .cw-flow-slide.cw-flow-narrow :is(.content-col,.wide) { width:auto !important; flex-basis:auto !important; }
  html.cw-flow-ready .cw-flow-slide.cw-flow-narrow .chapter-mark { font-size:4rem !important; }
html.cw-flow-ready .cw-flow-slide.cw-flow-narrow .content-row:has(> .content-col) { flex-direction:column !important; gap:20px !important; }
html.cw-flow-ready .cw-flow-slide.cw-flow-narrow :is(.content-row,.row,.slide-body):has(> .content-col) { flex-direction:column !important; gap:20px !important; }
 html.cw-flow-ready .cw-flow-slide.cw-flow-narrow :is(.content-row,.row,.slide-body) > .content-col { width:100% !important; }
 html.cw-flow-ready .cw-flow-slide.cw-flow-narrow table { width:100% !important; min-width:0 !important; table-layout:fixed !important; }
 html.cw-flow-ready .cw-flow-table,html.cw-flow-ready .cw-flow-table tbody,html.cw-flow-ready .cw-flow-table tr { display:block; width:100%; }
 html.cw-flow-ready .cw-flow-table :is(thead,.cw-flow-table-head) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 html.cw-flow-ready .cw-flow-table tr { margin-bottom:20px; }
 html.cw-flow-ready .cw-flow-table td { display:block; width:100% !important; padding:8px 0; text-align:left; }
 html.cw-flow-ready .cw-flow-table .cw-cell-label {  display:block; color:#536477; font-size:.8em; margin-bottom:5px; font-weight:600; }
html.cw-flow-ready .cw-flow-slide.cw-flow-narrow :is(.content-row,.row,.slide-body):has(> .content-col) { flex-wrap:nowrap !important; height:auto !important; min-height:0 !important; max-height:none !important; }

html.cw-flow-ready .cw-flow-slide { overflow-wrap:anywhere; }

@media(min-width:801px) { html.cw-flow-ready .cw-flow-slide.ts { padding-inline:24px !important; } }
