/* Bone Wizardry learning surfaces: homepage identity without flattening teaching interactions. */
@font-face{font-family:'BW Learning Sans';src:url('/fonts/space-grotesk-latin-wght-normal-06408904.woff2') format('woff2');font-style:normal;font-weight:300 700;font-display:swap}
@font-face{font-family:'BW Learning Serif';src:url('/fonts/newsreader-latin-wght-normal-62981321.woff2') format('woff2');font-style:normal;font-weight:200 800;font-display:swap}
@font-face{font-family:'BW Learning Serif';src:url('/fonts/newsreader-latin-wght-italic-48bc8861.woff2') format('woff2');font-style:italic;font-weight:200 800;font-display:swap}
body[data-bw-learning-design='20260909']{
 --bw26-night:#10111b;--bw26-night-raised:#1a1b29;--bw26-paper:#f5f4f0;--bw26-white:#fffefa;
 --bw26-ink:#191923;--bw26-muted:#656571;--bw26-line:#deddda;--bw26-lilac:#c6b2f5;--bw26-purple:#7354a6;
 --bw26-sans:'BW Learning Sans',system-ui,sans-serif;--bw26-serif:'BW Learning Serif',Georgia,serif;
 margin:0;background:var(--bw26-paper)!important;color:var(--bw26-ink);font-family:var(--bw26-sans)!important;
 -webkit-font-smoothing:antialiased;overflow-x:hidden;color-scheme:light;
}
body[data-bw-learning-design='20260909']::before,body[data-bw-learning-design='20260909']::after{content:none!important}
body[data-bw-learning-design='20260909'] :is(.bg-blobs,.mesh,.grain){display:none!important}
body[data-bw-learning-design='20260909'] :is(h1,h2,h3,h4,.section-title){font-family:var(--bw26-sans)!important;text-transform:none!important;letter-spacing:-.035em!important}
body[data-bw-learning-design='20260909'] :is(p,li,td,th,label,button,input,select,textarea){font-family:var(--bw26-sans)}
body[data-bw-learning-design='20260909'] a{transition:color .16s ease,border-color .16s ease,background .16s ease}
body[data-bw-learning-design='20260909'] :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #9670d2!important;outline-offset:4px!important}
body[data-bw-learning-design='20260909'] :is(button,[role='button'],input,select,textarea,summary){min-height:44px}

/* Editorial frame: dark introduction, warm paper reading field. */
body[data-bw-learning-design='20260909'] .hero{
 min-height:auto!important;background:var(--bw26-night)!important;background-image:none!important;color:#f5f3ed!important;
 padding:clamp(48px,7vw,88px) max(20px,calc((100% - 980px)/2))!important;text-align:left!important;
 align-items:flex-start!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
body[data-bw-learning-design='20260909'] .hero::before,body[data-bw-learning-design='20260909'] .hero::after{content:none!important}
body[data-bw-learning-design='20260909'] .hero h1{
 max-width:23ch!important;margin:0 0 18px!important;color:#f5f3ed!important;background:none!important;
 -webkit-text-fill-color:currentColor!important;font:500 clamp(2.45rem,5.5vw,4.5rem)/1.04 var(--bw26-sans)!important;
 letter-spacing:-.055em!important;text-align:left!important;
}
body[data-bw-learning-design='20260909'] .hero h1 em{font-family:var(--bw26-serif)!important;font-weight:400!important;color:var(--bw26-lilac)!important}
body[data-bw-learning-design='20260909'] .hero :is(.subtitle,.lede,.hero-sub,p){max-width:66ch!important;margin-left:0!important;margin-right:0!important;color:#b8b3c5!important;text-align:left!important;font:400 1rem/1.75 var(--bw26-sans)!important}
body[data-bw-learning-design='20260909'] .back-link{position:static!important;display:inline-flex!important;align-items:center!important;min-height:44px!important;margin:12px max(20px,calc((100% - 980px)/2))!important;padding:8px 0!important;background:transparent!important;border:0!important;border-radius:0!important;color:var(--bw26-purple)!important;font:500 .82rem/1.5 var(--bw26-sans)!important;backdrop-filter:none!important}
body[data-bw-learning-design='20260909'] :is(.container,main.container,.content,.lesson-content){max-width:980px!important;margin-left:auto!important;margin-right:auto!important}
body[data-bw-learning-design='20260909'] .container{padding-left:clamp(18px,4vw,34px)!important;padding-right:clamp(18px,4vw,34px)!important}

/* Reading hierarchy stays open and calm; cards are used only where structure benefits. */
body[data-bw-learning-design='20260909'] .section{margin:clamp(42px,7vw,76px) 0!important;color:var(--bw26-ink)!important}
body[data-bw-learning-design='20260909'] .section-title{
 color:var(--bw26-ink)!important;border-bottom:1px solid var(--bw26-line)!important;padding-bottom:12px!important;margin-bottom:22px!important;
 font:500 clamp(1.45rem,2.8vw,2.1rem)/1.18 var(--bw26-sans)!important;
}
body[data-bw-learning-design='20260909'] .section :is(p,li,dd,dt){color:var(--bw26-muted);line-height:1.78}
body[data-bw-learning-design='20260909'] .section :is(strong,b){color:var(--bw26-ink)}
body[data-bw-learning-design='20260909'] :is(.teach-card,.info-card,.summary-card,.pearl-card,.concept-card){
 background:var(--bw26-white)!important;color:var(--bw26-ink)!important;border:1px solid var(--bw26-line)!important;
 border-radius:14px!important;padding:clamp(20px,3vw,28px)!important;box-shadow:none!important;
}
body[data-bw-learning-design='20260909'] :is(.teach-card,.info-card,.summary-card,.pearl-card,.concept-card) :is(h3,h4){color:var(--bw26-ink)!important}
body[data-bw-learning-design='20260909'] :is(.teach-card,.info-card,.summary-card,.pearl-card,.concept-card) :is(p,li){color:var(--bw26-muted)!important;font-size:.94rem!important}
body[data-bw-learning-design='20260909'] :is(.key-fact,.memory-hook,.pearl,.clinical-pearl){background:#eee9f5!important;color:var(--bw26-ink)!important;border:1px solid #d8cce8!important;border-left:4px solid var(--bw26-purple)!important;border-radius:10px!important;box-shadow:none!important}
body[data-bw-learning-design='20260909'] :is(.key-fact,.memory-hook,.pearl,.clinical-pearl) :is(p,strong,b){color:var(--bw26-ink)!important}
body[data-bw-learning-design='20260909'] :is(.board-trap,.trap-box,.warning-card){background:#f6e9e7!important;color:#703737!important;border:1px solid #d8b2af!important;border-left:4px solid #a24b49!important;border-radius:10px!important;box-shadow:none!important}
body[data-bw-learning-design='20260909'] :is(.board-trap,.trap-box,.warning-card) :is(p,strong,b){color:#703737!important}

/* Retrieval and stagecraft remain immersive; their mechanics and semantic colors are untouched. */
body[data-bw-learning-design='20260909'] :is(.challenge-box,.clue-game,.dt-node,.walkthrough,.walkthrough-card,.wt-card,.stagecraft,.sc-stage,.game-shell){
 --bw26-game-bg:#171824;--bw26-game-card:#20212f;--bw26-game-line:#454052;--bw26-game-ink:#f5f3ed;--bw26-game-muted:#bbb4c9;
 background:var(--bw26-game-bg)!important;color:var(--bw26-game-ink)!important;border-color:var(--bw26-game-line)!important;
 box-shadow:none!important;
}
body[data-bw-learning-design='20260909'] :is(.challenge-box,.clue-game,.dt-node,.walkthrough,.walkthrough-card,.wt-card,.stagecraft,.sc-stage,.game-shell) :is(h2,h3,h4,strong,b){color:var(--bw26-game-ink)!important}
body[data-bw-learning-design='20260909'] :is(.challenge-box,.clue-game,.dt-node,.walkthrough,.walkthrough-card,.wt-card,.stagecraft,.sc-stage,.game-shell) :is(p,li,.vignette,.clue-item,.feedback,.dt-q){color:var(--bw26-game-muted)!important}
body[data-bw-learning-design='20260909'] :is(.challenge-box,.clue-game,.dt-node) :is(.opt,.dt-opt,.reveal-btn,.clue-item){background:#20212f!important;border-color:#51475f!important;border-radius:10px!important;box-shadow:none!important}
body[data-bw-learning-design='20260909'] :is(.challenge-box,.clue-game,.dt-node) :is(.opt,.dt-opt,.reveal-btn):hover{border-color:var(--bw26-lilac)!important;background:#272333!important}
body[data-bw-learning-design='20260909'] :is(.challenge-box,.clue-game,.dt-node) :is(button,.opt,.dt-opt,.reveal-btn){font-family:var(--bw26-sans)!important}
body[data-bw-learning-design='20260909'] :is(.challenge-box,.clue-game,.dt-node) :is(.correct,[data-state='correct']){border-color:#78b88d!important;background:#193126!important;color:#b9e7c6!important}
body[data-bw-learning-design='20260909'] :is(.challenge-box,.clue-game,.dt-node) :is(.wrong,[data-state='wrong']){border-color:#b66a68!important;background:#372020!important;color:#f2c2bf!important}
body[data-bw-learning-design='20260909'] :is(.stagecraft,.sc-stage,.walkthrough,.walkthrough-card,.wt-card) :is(button,[role='button']){min-height:44px;font-family:var(--bw26-sans)!important}

/* Tables and passive comparisons read like the ivory reference surfaces. */
body[data-bw-learning-design='20260909'] :is(.compare-table,table:not(.stagecraft table):not(.sc-stage table)){
 width:100%;border-collapse:collapse;background:var(--bw26-white)!important;color:var(--bw26-ink)!important;border:1px solid var(--bw26-line)!important;border-radius:10px;overflow:hidden;
}
body[data-bw-learning-design='20260909'] :is(.compare-table,table:not(.stagecraft table):not(.sc-stage table)) :is(th,td){border-color:var(--bw26-line)!important;color:var(--bw26-ink)!important;background:transparent!important;padding:12px 14px!important;line-height:1.6}
body[data-bw-learning-design='20260909'] :is(.compare-table,table:not(.stagecraft table):not(.sc-stage table)) th{background:#eee9f5!important;font-weight:600!important}
body[data-bw-learning-design='20260909'] :is(.compare-table,table:not(.stagecraft table):not(.sc-stage table)) tr:hover{background:#f1eef4!important}
body[data-bw-learning-design='20260909'] :is(.tabs,.tab-row,.filter-row,.controls){font-family:var(--bw26-sans)!important}
body[data-bw-learning-design='20260909'] :is(.tab,.tab-btn,.filter-btn,.btn,.button):not(.correct):not(.wrong){border-radius:8px!important;box-shadow:none!important}
body[data-bw-learning-design='20260909'] :is(.btn-primary,.primary-btn,.primary-cta){background:var(--bw26-lilac)!important;color:#211b31!important;border-color:var(--bw26-lilac)!important}
body[data-bw-learning-design='20260909'] :is(.btn-primary,.primary-btn,.primary-cta):hover{background:#d4c5f7!important;border-color:#d4c5f7!important}
body[data-bw-learning-design='20260909'] :is(input:not([type='checkbox']):not([type='radio']):not([type='range']),select,textarea){background:var(--bw26-white)!important;color:var(--bw26-ink)!important;border:1px solid #cdc5d8!important;border-radius:8px!important;font:400 16px/1.5 var(--bw26-sans)!important;box-shadow:none!important}
body[data-bw-learning-design='20260909'] :is(input,textarea)::placeholder{color:#7d7583!important;opacity:1}

/* Shared ending treatment mirrors the homepage rather than reviving legacy chrome. */
body[data-bw-learning-design='20260909'] :is(.footer,.site-footer,.page-footer){background:var(--bw26-night)!important;color:#b8b3c5!important;border-top:1px solid #363140!important;box-shadow:none!important;font-family:var(--bw26-sans)!important}
body[data-bw-learning-design='20260909'] :is(.footer,.site-footer,.page-footer) :is(a,p,li,small,span){color:#b8b3c5!important;font-family:var(--bw26-sans)!important}
body[data-bw-learning-design='20260909'] :is(.footer,.site-footer,.page-footer) :is(h2,h3,strong){color:#f5f3ed!important;font-family:var(--bw26-sans)!important}
body[data-bw-learning-design='20260909'] :is(.footer,.site-footer,.page-footer) a:hover{color:#e6d8ff!important}
body[data-bw-learning-design='20260909'] img,body[data-bw-learning-design='20260909'] svg,body[data-bw-learning-design='20260909'] video{max-width:100%}
body[data-bw-learning-design='20260909'] :is(.container,.section,.teach-card,.challenge-box,.clue-game,.dt-node,.walkthrough,.wt-card)>*{min-width:0;max-width:100%}
@media(max-width:640px){
 body[data-bw-learning-design='20260909'] .hero{padding:42px 18px!important}
 body[data-bw-learning-design='20260909'] .hero h1{font-size:clamp(2.15rem,10vw,3rem)!important;max-width:100%!important}
 body[data-bw-learning-design='20260909'] .back-link{margin-inline:18px!important}
 body[data-bw-learning-design='20260909'] .container{padding-left:18px!important;padding-right:18px!important}
 body[data-bw-learning-design='20260909'] .section{margin:40px 0!important}
 body[data-bw-learning-design='20260909'] :is(.teach-card,.challenge-box,.clue-game,.dt-node,.walkthrough,.wt-card){padding:18px!important}
 body[data-bw-learning-design='20260909'] table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media(prefers-reduced-motion:reduce){body[data-bw-learning-design='20260909'] *,body[data-bw-learning-design='20260909'] *::before,body[data-bw-learning-design='20260909'] *::after{scroll-behavior:auto!important;transition:none!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}

/* Pair the toolkit's inherited ink and surface tokens with the paper canvas.
   Its legacy tokens otherwise remain near-white, including the AF rate-control title.
   Clinical SVG/image pixels are not recolored. Interactive dark surfaces own their palette. */
body[data-bw-learning-design='20260909'] main .bw-band {
 --bw-bg:#f5f4f0;--bw-surface:#fffefa;--bw-raise:#f0edf5;--bw-wash:#eee9f5;
 --bw-ink:#191923;--bw-ink2:#30303d;--bw-ink3:#535360;--bw-ink4:#595866;
 --bw-accent:#67428e;--bw-good:#17633b;--bw-gold:#77501b;--bw-line:#b4a8c2;--bw-hair:#d8d0df;
 background:#f5f4f0!important;color:#30303d!important;color-scheme:light;
}
body[data-bw-learning-design='20260909'] main .bw-band :is(.bw-h1,.bw-h2,.bw-h3){-webkit-text-fill-color:currentColor}
body[data-bw-learning-design='20260909'] main :is(.bw-question,.bw-activity) {
 --bw-bg:#10111b;--bw-surface:#171824;--bw-raise:#20212f;--bw-wash:#272333;
 --bw-ink:#f5f3ed;--bw-ink2:#e4dfed;--bw-ink3:#c5bfd1;--bw-ink4:#b1a8bf;
 --bw-accent:#d1b5ff;--bw-good:#b0e8c1;--bw-gold:#efcf83;--bw-line:#62576f;--bw-hair:#453e54;
 background:#171824!important;color:#e4dfed!important;color-scheme:dark;
}
body[data-bw-learning-design='20260909'] main :is(.bw-question,.bw-activity) .bw-option:disabled{opacity:1}
/* New header names were not included in older shipped app-wrapper selectors.
   Recognize both the web-view marker and extracted-reader stylesheet, even without JS. */
:is(html:is([data-bw-app-mode='1'],[data-bw-native-reader-ready='1'],:has(#bw-native-reader-style)) body[data-bw-learning-design='20260909'],
 body[data-bw-learning-design='20260909'].bw-ios-app-mode) {
 background:#f5f4f0!important;color:#191923!important;color-scheme:light;
 --bw-modern-header-height:0px;
}
:is(html:is([data-bw-app-mode='1'],[data-bw-native-reader-ready='1'],:has(#bw-native-reader-style)) body[data-bw-learning-design='20260909'],
 body[data-bw-learning-design='20260909'].bw-ios-app-mode) > :is(#bw-global-header,.bw26-site-header,.site-footer,footer){display:none!important}

:is(html:is([data-bw-app-mode='1'],[data-bw-native-reader-ready='1'],:has(#bw-native-reader-style)) body[data-bw-learning-design='20260909'],
 body[data-bw-learning-design='20260909'].bw-ios-app-mode) main {
 padding-top:env(safe-area-inset-top,0px)!important;
 padding-bottom:calc(max(8rem,var(--bw-native-bottom-inset,0px)) + env(safe-area-inset-bottom,0px))!important;
}
:is(html:is([data-bw-app-mode='1'],[data-bw-native-reader-ready='1'],:has(#bw-native-reader-style)) body[data-bw-learning-design='20260909'],
 body[data-bw-learning-design='20260909'].bw-ios-app-mode) main .bw-page-hero {padding-top:2rem}
:is(html:is([data-bw-app-mode='1'],[data-bw-native-reader-ready='1'],:has(#bw-native-reader-style)) body[data-bw-learning-design='20260909'],
 body[data-bw-learning-design='20260909'].bw-ios-app-mode) main [id] {scroll-margin-top:1rem;scroll-margin-bottom:8rem}
/* The reader's transformed table labels must use the light table palette too. */
html:has(#bw-native-reader-style) body[data-bw-learning-design='20260909'] :is(td,th)[data-bw-row-header]{color:#191923!important}
html:has(#bw-native-reader-style) body[data-bw-learning-design='20260909'] :is(td,th)::before{color:#593a87}
@media(max-width:480px){html:has(#bw-native-reader-style) body[data-bw-learning-design='20260909'] table thead{width:1px!important;max-width:1px!important}}

/* Account for legacy lessons without a main element and headers nested in a shell. */
:is(html:is([data-bw-app-mode='1'],[data-bw-native-reader-ready='1'],:has(#bw-native-reader-style)) body[data-bw-learning-design='20260909'],
 body[data-bw-learning-design='20260909'].bw-ios-app-mode){padding-bottom:calc(max(8rem,var(--bw-native-bottom-inset,0px)) + env(safe-area-inset-bottom,0px))!important}
:is(html:is([data-bw-app-mode='1'],[data-bw-native-reader-ready='1'],:has(#bw-native-reader-style)) body[data-bw-learning-design='20260909'],
 body[data-bw-learning-design='20260909'].bw-ios-app-mode) :is(#bw-global-header,.bw26-site-header,.back-link,.in-page-back){display:none!important}
/* Keep keyboard focus visible without shrinking interactive targets. */
body[data-bw-learning-design='20260909'] .bw-skip:focus{color:#191923!important;background:#d9c6ff!important}

/* Scroll decoration must not leave reading paragraphs transparent in app readers
   or when motion is disabled. This does not change display, hidden, or gate state. */
:is(html:is([data-bw-app-mode='1'],[data-bw-native-reader-ready='1'],:has(#bw-native-reader-style)) body[data-bw-learning-design='20260909'],
 body[data-bw-learning-design='20260909'].bw-ios-app-mode) .fade-in:not([hidden]){opacity:1!important;transform:none!important}
@media(prefers-reduced-motion:reduce){body[data-bw-learning-design='20260909'] .fade-in:not([hidden]){opacity:1!important;transform:none!important}}
