/* Lesson-scoped, immediate state changes also provide the reduced-motion equivalent. */
.bwcr [hidden]{display:none!important}
.bwcr{font-size:1.125rem;line-height:1.7}
.bwcr{box-sizing:border-box;max-width:58rem;margin:2rem auto;padding:1rem;color:#16253b;background:#fffaf0;overflow-wrap:anywhere}
.bwcr h1,.bwcr h2,.bwcr h3{color:#352653;line-height:1.25}
.bwcr h1{font-size:2rem}.bwcr h2{font-size:1.65rem}.bwcr h3{font-size:1.35rem}
.bwcr a{color:#503479}.bwcr section{scroll-margin-top:8rem}
.bwcr p,.bwcr legend,.bwcr label,.bwcr summary,.bwcr button,.bwcr select{font-size:1.125rem!important;line-height:1.7}
.bwcr button,.bwcr select,.bwcr summary,.bb-figure>a,#bb-image-dialog button{min-height:44px;min-width:44px}
.bwcr button,.bwcr select,#bb-image-dialog button{font:inherit;color:#16253b;background:#eee5fa;border:2px solid #66517e;border-radius:.5rem;padding:.5rem .8rem;white-space:normal;max-width:100%}
.bwcr button:disabled{color:#354359;background:#eeeae4;opacity:1}
.bwcr :focus-visible,#bb-image-dialog :focus-visible{outline:3px solid #8b4b13;outline-offset:4px}
.bb-controls{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center;margin:1rem 0}
.bb-controls label,.bb-controls p{flex-basis:100%}
.bb-model,.bwcr [data-bb-section-action]{border-left:4px solid #766194;padding:1rem;margin:1.5rem 0;background:#faf6ef;overflow-wrap:anywhere}
.bb-stage{max-width:32rem;margin:1rem auto;background:#fffaf0;border:1px solid #d6cbe0;border-radius:1rem}
.bb-stage svg{width:100%;height:auto;display:block;font:30px Arial,sans-serif;fill:#16253b}
.bb-figure{margin:1.5rem 0;max-width:42rem}
.bb-figure>a{display:block;width:100%;max-width:23rem;margin:auto;color:#352653;text-align:center;font-weight:700}
.bb-figure img{display:block;width:100%;height:auto;border:1px solid #c4b5d7;border-radius:1rem}
.bb-figure figcaption{margin-top:1rem}
.bb-reasoning ol{padding-left:1.5rem}
.bb-reasoning li{margin-bottom:1rem}
.bwcr [data-bb-fact]{border-left:3px solid #655180;padding-left:1rem}
.bwcr [data-bb-option-panel]{margin:1rem 0;padding:.6rem;border:1px solid #cabbd9;border-radius:.5rem}
.bwcr [data-bb-option-panel]>summary{font-weight:700}
.bwcr [data-bb-assessment] article{margin:2rem 0;padding:1rem;border:1px solid #c9bdd6;border-radius:.75rem;scroll-margin-top:10rem}
.bwcr [data-bb-assessment] fieldset{min-width:0;border:0;padding:0}
.bwcr [data-bb-assessment] legend{display:block;width:100%;font-weight:400}
.bwcr .bwcr-options{padding:0;list-style:none}
.bwcr .bwcr-options li{margin:.65rem 0}
.bwcr .bwcr-options label{display:flex;gap:.75rem;align-items:flex-start;min-height:44px;cursor:pointer;padding:.7rem;background:#fffaf0;border:1px solid #c9bdd6;border-radius:.5rem}
.bwcr .bwcr-options input{flex:0 0 auto;width:1.3rem;height:1.3rem;margin-top:.3rem}
.bwcr details>summary{cursor:pointer;padding:.5rem 0}
.bwcr [data-bb-model-fallback]{margin:1rem 0}
#bb-image-dialog{width:min(95vw,55rem);max-height:92dvh;overflow:auto;border:2px solid #66517e;border-radius:1rem;background:#fffaf0;color:#16253b;padding:1rem;font:1.125rem/1.7 Arial,sans-serif}
#bb-image-dialog::backdrop{background:rgba(15,23,42,.78)}
.bb-dialog-image{overflow:auto;max-height:65dvh;margin:1rem 0}
.bb-dialog-image img{display:block;width:720px;max-width:none;height:auto}
.bb-fixture-label{background:#fff0bc;color:#16253b;padding:1rem;font:18px/1.6 Arial,sans-serif}
@media(max-width:450px){.bwcr [data-bb-assessment] article,.bwcr [data-bb-section-action],.bb-model{padding:.7rem}.bb-stage svg{font-size:30px}}
@media(prefers-reduced-motion:reduce){.bwcr{scroll-behavior:auto}.bwcr *{animation:none!important;transition:none!important}}

/* Reflow surrounding text; preserve legible drawing text with local scrolling at large text sizes. */
.bb-stage{overflow:auto}
.bb-stage svg{min-width:16rem;font-size:28px}
.bb-stage svg text{stroke:none!important;stroke-width:0!important;font-weight:400;text-shadow:none!important}
.bb-figure>a{overflow-x:auto}
.bb-figure img{min-width:16rem}
.bb-dialog-image img{width:45rem}
.bb-dialog-image{overscroll-behavior:contain}
@media(max-width:450px){.bb-stage svg{font-size:28px}}
