/* One RQ identity across marketing, account, simulator, and checkout. */
:root{--rqg-height:68px;--rqg-navy:#102b3d;--rqg-deep:#0c2331;--rqg-cream:#f5f9f8;--rqg-gold:#efd098;--rqg-muted:#c2d6db;--rqg-teal:#a7e5db;--rqg-edge:#45616e}
html:has(body[data-rq-global-shell]){scroll-padding-top:calc(var(--rqg-height) + 16px)!important}
body[data-rq-global-shell]{padding-top:var(--rqg-height)!important}
body[data-rq-global-shell] [data-rq-old-shell],body[data-rq-global-shell] [data-rq-retired-link]{display:none!important}
body[data-rq-global-shell] #rqGlobalHeader,body[data-rq-global-shell] #rqGlobalFooter{font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:normal;color:var(--rqg-cream);background:var(--rqg-navy);box-sizing:border-box;text-align:left}
#rqGlobalHeader *,#rqGlobalFooter *{box-sizing:border-box}
body[data-rq-global-shell] #rqGlobalHeader{position:fixed;left:0;right:0;top:0;width:100%;height:var(--rqg-height);z-index:999;isolation:isolate;box-shadow:0 2px 12px #00152225;border-bottom:1px solid #ffffff1c}
#rqGlobalHeader .rqg-bar{position:relative;z-index:3;max-width:1440px;margin:0 auto;height:100%;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(14px,3vw,36px);gap:20px;background:var(--rqg-navy)}
#rqGlobalHeader .rqg-brand,#rqGlobalFooter .rqg-brand{display:inline-flex;align-items:center;flex-shrink:0;gap:10px;color:var(--rqg-cream)!important;text-decoration:none!important;font-weight:500!important;line-height:1}
#rqGlobalHeader .rqg-mark,#rqGlobalFooter .rqg-mark{font:normal 32px/1 Georgia,'Times New Roman',serif;letter-spacing:-.055em;color:var(--rqg-gold)!important}
#rqGlobalHeader .rqg-wordmark,#rqGlobalFooter .rqg-wordmark{border-left:1px solid #6a8894;padding-left:10px;font:600 10px/1.3 system-ui,sans-serif;letter-spacing:.105em;color:#e1eaec!important;white-space:nowrap}
#rqGlobalHeader .rqg-desktop{display:flex;align-items:center;gap:clamp(4px,1vw,16px);margin-left:auto;flex-wrap:nowrap}
#rqGlobalHeader nav a,#rqGlobalFooter nav a{color:var(--rqg-cream)!important;text-decoration:none!important;font:500 14px/1.45 system-ui,sans-serif;letter-spacing:normal;display:flex;align-items:center;padding:10px 9px;border-radius:8px;white-space:normal}
#rqGlobalHeader nav a[aria-current="page"],#rqGlobalHeader nav a:hover{background:#244653;color:#fff!important}
#rqGlobalHeader .rqg-controls{display:flex;align-items:center;flex-shrink:0;gap:8px}
#rqGlobalHeader .rqg-controls button{font:600 13px/1.2 system-ui,sans-serif!important;letter-spacing:0!important;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:44px;margin:0!important;padding:8px 12px!important;border:1px solid #6d8c97!important;box-shadow:none!important;border-radius:10px!important;background:transparent!important;color:#f3f9fa!important;cursor:pointer;white-space:nowrap}
#rqGlobalHeader .rqg-theme-icon{font:22px/1 system-ui,sans-serif;display:block}
#rqGlobalHeader .rqg-menu{display:none!important}
#rqGlobalHeader .rqg-hamburger{width:18px;display:grid;gap:4px}
#rqGlobalHeader .rqg-hamburger i{display:block;height:2px;background:#f2f8f9;border-radius:2px}
#rqGlobalHeader [hidden]{display:none!important}
#rqGlobalHeader #rqGlobalBackdrop{position:fixed;inset:var(--rqg-height) 0 0;background:#00131e8a;z-index:0}
#rqGlobalHeader #rqGlobalDrawer{position:absolute;top:calc(var(--rqg-height) + 8px);left:12px;right:12px;max-height:calc(100dvh - var(--rqg-height) - 24px);overflow:auto;overscroll-behavior:contain;display:grid;gap:4px;padding:12px;background:#102b3d;border:1px solid #446470;border-radius:14px;box-shadow:0 18px 42px #00131e65;z-index:2}
#rqGlobalHeader #rqGlobalDrawer a{min-height:49px;padding:13px 16px;font-size:16px;border-radius:9px}
#rqGlobalHeader :focus-visible,#rqGlobalFooter :focus-visible{outline:2px solid var(--rqg-gold)!important;outline-offset:3px!important}
body[data-rq-global-shell] #rqGlobalFooter{margin:0;width:100%;max-width:none;border-top:3px solid #b99b65;padding:0}
#rqGlobalFooter .rqg-footer-inner{max-width:1200px;margin:auto;padding:38px clamp(22px,5vw,54px) 24px;display:grid;gap:28px}
#rqGlobalFooter .rqg-footer-brand p{color:var(--rqg-muted)!important;margin:10px 0 0;font:14px/1.6 system-ui,sans-serif}
#rqGlobalFooter .rqg-footer-brand .rqg-stages{color:var(--rqg-teal)!important;font-size:13px}
#rqGlobalFooter .rqg-footer-links{display:grid;grid-template-columns:1fr 1fr;gap:24px}
#rqGlobalFooter nav{display:grid;grid-template-columns:1fr;align-content:start;gap:4px}
#rqGlobalFooter nav a{padding:9px 0;min-height:41px;color:#e0edf0!important;overflow-wrap:anywhere}
#rqGlobalFooter nav a:hover,#rqGlobalFooter .rqg-footer-end a:hover{color:var(--rqg-gold)!important;text-decoration:underline!important}
#rqGlobalFooter .rqg-footer-end{border-top:1px solid #496270;padding-top:18px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#c5d6db;font-size:13px}
#rqGlobalFooter .rqg-footer-end a{color:var(--rqg-teal)!important;text-decoration:none;overflow-wrap:anywhere}
@media(max-width:1020px){:root{--rqg-height:66px}#rqGlobalHeader .rqg-desktop{display:none!important}#rqGlobalHeader .rqg-menu{display:inline-flex!important}#rqGlobalHeader .rqg-bar{gap:10px}#rqGlobalHeader .rqg-theme-word{display:none}}
@media(max-width:360px){#rqGlobalHeader .rqg-brand{gap:6px}#rqGlobalHeader .rqg-wordmark{font-size:8px;padding-left:6px}#rqGlobalHeader .rqg-mark{font-size:29px}#rqGlobalHeader .rqg-controls{gap:5px}#rqGlobalHeader .rqg-controls button{padding:8px!important}#rqGlobalHeader .rqg-bar{padding-inline:10px}}
@media(min-width:850px){#rqGlobalFooter .rqg-footer-inner{grid-template-columns:1fr 1.15fr;gap:36px}#rqGlobalFooter .rqg-footer-end{grid-column:1/-1}}
@media print{body[data-rq-global-shell]{padding-top:0!important}#rqGlobalHeader,#rqGlobalFooter{display:none!important}}
/* shared dark palette: match simulator's existing deep blue and teal, preserve
   semantic colors and all clinical image/diagram assets. */
html[data-rq-theme="dark"]{color-scheme:dark;--rqg-navy:#102631;--rqg-deep:#0c1e28;--bg:#10222c;--paper:#172f3b;--soft:#213e48;--ink:#edf6f5;--body:#e1eff0;--muted:#b5ccd1;--line:#39515a;--teal:#83d7c8;--tealtext:#9fe5d8;--tealsoft:#193a3d;--good:#93dfb3;--bad:#ffafac;--shadow:0 8px 30px #0002;--blue:#93c5fd;--amber:#fde68a;--red:#fca5a5;--bluebg:#16283d;--amberbg:#382913;--redbg:#3b1b22;--pill:#213e48;--nav:#102631;--cream:#10222c;--white:#172f3b;--pale:#213e48;--navy:#edf6f5;--teal-dark:#8fe8da;--rq-paper:#10222c;--rq-surface:#172f3b;--rq-soft:#213e48;--rq-ink:#e8f3f4;--rq-muted:#b5ccd1;--rq-line:#39515a;--rq-navy:#e9f2f5;--rq-teal:#91dfd3;--rq-teal-hover:#b0f0e4;--rq-gold:#efd098;--rq-focus:#efd098;--rq-on-paper:#e8f3f4;--rq-on-paper-muted:#b5ccd1;--rq-on-paper-link:#a1e6d9;--rq-on-paper-accent:#efd098;--rq-on-paper-focus:#efd098;--rq-on-paper-control-edge:#6a9099;--rq-disabled-panel:#203843;--rq-disabled-ink:#a1b8bf;--rq-v7-gold:#efd098;--rq-v7-gold-wash:#392f22;--rq-v7-teal-wash:#203e3f;--r1-paper:#172f3b;--r1-navy:#e9f2f5}
html[data-rq-theme="dark"] body[data-rq-global-shell]{background:#10222c!important;color:#e8f3f4!important;color-scheme:dark;--bg:#10222c;--ink:#edf6f5;--muted:#b5ccd1;--card:#172f3b;--line:#39515a;--soft:#213e48;--paper:#172f3b;--body:#e1eff0;--tealtext:#9fe5d8;--rq-v7-gold:#efd098;--rq-v7-gold-wash:#392f22;--rq-v7-teal-wash:#203e3f;--r1-paper:#172f3b;--r1-navy:#e9f2f5}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] :where(main,.section,.shell,.container){color:#e8f3f4}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] :where(h1,h2,h3,h4,h5){color:#edf6f5!important}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] :where(p,li,dt,dd,label,summary,.small-note,.muted){color:inherit}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] main :where(a:not(.primary):not(.rq-gold-cta):not(.btn)){color:#a1e6d9}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] :is(.rq-profile-identity,.rq-profile-card,.rq-v7-section article,.rq-v7-section .card,.card,.panel,.box,.rq-difference-card,.rq-topic-tile,.rq-roadmap-card,.rq-r1-ring-card,.rq-r1-detail details,.rq-r1-detail article,.rq-workspace-next,.rq-study-teaser,.rq-study-work,.rq-study-history article,.rq-study-list article,.rq-review-filters,.rq-v7-activity-details>summary,.rq-answer-analysis,.rq-original-record,.rq-advantage-grid article,.table-scroll,.rq-table-scroll,#lesson,.rq-account-map,.rq-v7-tool,.rq-tool-card){background:#172f3b!important;color:#e8f3f4!important;border-color:#39515a!important;--rq-surface-fg:#e8f3f4;--rq-surface-heading:#edf6f5;--rq-surface-link:#a1e6d9}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] :is(input:not([type=checkbox]):not([type=radio]),textarea,select){background:#152d38!important;color:#e8f3f4!important;border-color:#63818a!important}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] :is(table,th,td,caption){background:#172f3b!important;color:#e8f3f4!important;border-color:#39515a!important}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] :is(.secondary,.rq-v6-question-numbers button,.rq-v6-question-controls button,.rq-difference-controls button){background:#213e48!important;color:#a1e6d9!important;border-color:#63818a!important}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] :is(.primary,.rq-primary){background:#087d78!important;color:#fff!important;border-color:#379a93!important}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] :is(.hero,.rq-private-summary,.rq-method-band,.rq-r1-ring-dark,[data-rq-surface="inverse"]){background-color:#102b3d!important;color:#edf6f5!important}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] :is(.option,.topic-option,.svt-option,.dqa-question fieldset>label){background:#172f3b!important;color:#edf6f5!important;border-color:#63818a!important}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] :is(.option.selected,[aria-selected="true"].option){background:#244e50!important;border-color:#83d7c8!important}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] :is(.option.correct,.rq-answer-selection[data-correct="true"]){background:#173f35!important;color:#a9e9c9!important;border-color:#79bc9c!important}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] :is(.option.incorrect,.rq-answer-selection[data-correct="false"]){background:#47282d!important;color:#ffb8b6!important;border-color:#c98984!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] #rqGlobalHeader,html[data-rq-theme="dark"] body[data-rq-global-shell] #rqGlobalFooter{background:var(--rqg-navy)}
/* Account forms and older learner utilities: pair every common display
   surface with a readable foreground, not an inverted screenshot. */
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] main :is(.functional-panel,.status-panel,.membership-panel,.rq-tool-group,.rq-tool-group>a,.link-panels>a,.rq-tool-groups article,.rq-profile-identity,.rq-metric,.rq-metric-card,.rq-review-card,.rq-v7-badge-card,.rq-progress-card,.rq-payment-card,.rq-activity-card,.rq-v7-detail,.rq-v5-detail,.rq-v7-activity-details,.rq-v7-activity-details>summary,.rq-study-source){background-color:#172f3b!important;color:#e8f3f4!important;border-color:#39515a!important;--rq-surface-fg:#e8f3f4;--rq-surface-heading:#edf6f5;--rq-surface-link:#a1e6d9}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] main :is(.functional-panel,.rq-tool-group,.link-panels>a,.rq-profile-identity,.rq-account-map) :is(p,span,strong,small,li,label,summary,dt,dd,legend){color:inherit}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] main :is(.functional-panel,.rq-tool-group,.link-panels>a,.rq-profile-identity,.rq-account-map) a:not(.primary){color:#a1e6d9!important}
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] main :is(.membership-panel,.status-panel,.rq-study-stages li,.rq-study-teaser,.rq-study-source){background-color:#213e48!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .catDomain summary{background:#213e48;color:#ccefe9}
html[data-rq-theme="dark"] body[data-rq-global-shell] .rqLaunchNote{color:#b5ccd1}

/* R3: finish the original interactive Method illustrations in dark mode.
   These are HTML demonstration panels, not raster images or live cases. */
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-window{background:#172f3b!important;color:#e8f3f4!important;border-color:#57737b!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-windowtop{background:#213e48!important;color:#dceced!important;border-color:#57737b!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-windowtop .tour-mini-logo{color:#efd098!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-pane{background:#172f3b!important;color:#e8f3f4!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-pane h4{color:#edf6f5!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-pane p{color:#e1eff0!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-pane :is(small,.tmeta,.tmuted){color:#b5ccd1!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-pane :is(.tcase,.tcard,.tline,.tmetrics div){background:#10222c!important;color:#e8f3f4!important;border-color:#57737b!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-pane :is(.tpill,.tgrid span){background:#213e48!important;color:#ccefe9!important;border-color:#57737b!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-pane :is(.tpill.on,.tgrid .active){background:#244e50!important;color:#e8f3f4!important;border-color:#83d7c8!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-pane .tbtn{background:#167b6d!important;color:#fff!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-pane .tbtn.muted{background:#213e48!important;color:#ccefe9!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-pane .tcallout{background:#193a3d!important;color:#d8f2eb!important;border-color:#577f79!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-pane :is(.tcallout b,.tcard b,.tline b,.tmetrics strong){color:#a7e5db!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-pane .tmetrics span{color:#b5ccd1!important}
/* Preserve the three teaching highlight roles, hue, marker and underline shape. */
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-pane .tcase .blue{background:#1d3859!important;color:#bfdbfe!important;border-bottom-color:#60a5fa!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-pane .tcase .amber{background:#47371b!important;color:#fde68a!important;border-bottom-color:#fbbf24!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .tour-pane .tcase .red{background:#49272d!important;color:#fecaca!important;border-bottom-color:#f87171!important}
/* Catalogue CTA: use the original lime surface with a contrasting dark ink,
   instead of inheriting the player's pastel dark-mode link color. */
body[data-rq-global-shell] #landing.hero a.secondary[href="/catalyst-catalogue/"]{background:#d1e48c!important;color:#163831!important;outline-color:#163831}
body[data-rq-global-shell] #landing.hero a.secondary[href="/catalyst-catalogue/"]:hover{background:#e1eeaa!important;color:#163831!important}
body[data-rq-global-shell] #landing.hero a.secondary[href="/catalyst-catalogue/"]:focus-visible{outline:3px solid #efd098!important;outline-offset:4px}
/* One prominent contact block and copyright on every page. */
#rqGlobalFooter .rqg-footer-end{align-items:flex-start;flex-direction:column;gap:17px;padding-top:22px}
#rqGlobalFooter .rqg-contact{display:grid;gap:6px;min-width:0}
#rqGlobalFooter .rqg-contact-label{font:600 13px/1.5 system-ui,sans-serif;color:#e0edf0;letter-spacing:.04em}
#rqGlobalFooter .rqg-contact a{display:inline-block;font:650 clamp(20px,3vw,24px)/1.4 system-ui,sans-serif;color:var(--rqg-teal)!important;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:4px;min-height:44px}
#rqGlobalFooter .rqg-copyright{margin:0!important;font:400 13px/1.6 system-ui,sans-serif;color:#c5d6db!important}

/* R4: the marketing content has a genuine light palette, not dark cards
   surrounded by white. Brand header/footer and original artwork are preserved. */
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] :is(.rqHero,.e01Product,.rqChallengeCard,.rqClosing){background:#fff!important;color:#183442!important;border-color:#c9dcd9!important;box-shadow:0 6px 20px #173a4210}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] .rqHero h1,
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] .e01Copy h2,
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] :is(.rqChallengeCard,.rqClosing) h2{color:#102e3c!important}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] .rqHero h1 em{color:#76521c!important}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] :is(.rqHeroDesc,.rqHero .rqMotto,.e01Copy p,.rqChallengeCard p,.rqClosing p){color:#405d68!important}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] :is(.rqHero .rqLead,.rqKicker,.rqTextLink,.e01Copy .eyebrow,.rqChallengeKicker,.rqClosing .eyebrow){color:#006b64!important}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] .rqKicker span{background:#007e75}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] .rqHeroArt{background:#e9f3f2!important}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] .e01Cover img{border-color:#b6cecf!important;box-shadow:0 12px 24px #123c4422}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] :is(.e01Facts span,.e01Price){background:#edf7f3!important;border-color:#bbd4cc!important;color:#33554f!important}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] :is(.e01Facts strong,.e01Price strong){color:#00665e!important}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] .e01Price span{color:#33554f!important}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] :is(.rqHero,.e01Copy,.rqChallengeCard,.rqClosing) .btn:not(.primary){color:#006b64!important;background:#fff!important;border-color:#91b7b4!important}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] :is(.rqHero,.e01Copy,.rqChallengeCard,.rqClosing) .btn.primary{background:#00766f!important;color:#fff!important;border-color:#00766f!important}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] .rqTextLink:hover{color:#004d48!important}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] .tour-visual{background:linear-gradient(135deg,#dceee8,#e9f3f4)!important;color:#183442}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] .posterOpen{background:#e8f1f1!important}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] .posterOpen>span{background:#fff!important;color:#153847!important}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] .rqChallengeCard img{box-shadow:0 8px 20px #123c4430!important}
html[data-rq-theme="light"] body[data-rq-global-shell][data-page="home"] .rqChallengeFoot{color:#405d68!important}
/* Legacy Privacy's document surface and all its prose follow the active theme. */
html[data-rq-theme="dark"] body[data-rq-global-shell] .privacy-main,
html[data-rq-theme="dark"] body[data-rq-global-shell] .privacy-main :is(section,.container,.shell){background:transparent!important;color:#e8f3f4!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .privacy-main :is(h1,h2,h3,h4){color:#edf6f5!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .privacy-main :is(p,li,dt,dd){color:#e1eff0!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .privacy-main a{color:#a1e6d9!important}
body[data-rq-global-shell] [data-rq-retired-offer]{display:none!important}
/* Curated learning directory: real free paths + existing account access.
   These classes deliberately do not inherit old price/tile component styling. */
body[data-rq-global-shell] main.rqg-library{--rqg-lib-bg:#fff;--rqg-lib-ink:#153443;--rqg-lib-muted:#486570;--rqg-lib-edge:#c5d9db;--rqg-lib-link:#006c64;max-width:1050px;width:calc(100% - 32px);margin:28px auto 42px;padding:0;display:grid;gap:18px;font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--rqg-lib-ink)}
html[data-rq-theme="dark"] body[data-rq-global-shell] main.rqg-library{--rqg-lib-bg:#172f3b;--rqg-lib-ink:#edf6f5;--rqg-lib-muted:#b5ccd1;--rqg-lib-edge:#39515a;--rqg-lib-link:#a7e5db}
body[data-rq-global-shell] .rqg-library :is(.rqg-lib-intro,.rqg-lib-card){padding:clamp(17px,3vw,26px)!important;background:var(--rqg-lib-bg)!important;color:var(--rqg-lib-ink)!important;border:1px solid var(--rqg-lib-edge)!important;border-radius:16px!important;min-width:0;margin:0!important}
body[data-rq-global-shell] .rqg-lib-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body[data-rq-global-shell] .rqg-library :is(h1,h2){color:var(--rqg-lib-ink)!important;font-family:inherit!important;line-height:1.2!important;margin:8px 0 12px!important;letter-spacing:-.025em;font-weight:720!important}
body[data-rq-global-shell] .rqg-library h1{font-size:clamp(27px,4vw,38px)!important}
body[data-rq-global-shell] .rqg-library h2{font-size:clamp(21px,3vw,28px)!important}
body[data-rq-global-shell] .rqg-library :is(p,li){font:inherit;color:var(--rqg-lib-muted)!important;margin:8px 0 13px!important}
body[data-rq-global-shell] .rqg-library .rqg-lib-kicker{font:700 12px/1.45 system-ui,sans-serif!important;letter-spacing:.12em;color:var(--rqg-lib-link)!important}
body[data-rq-global-shell] .rqg-lib-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}
body[data-rq-global-shell] .rqg-library a:is(.rqg-lib-primary,.rqg-lib-secondary){display:inline-flex;align-items:center;justify-content:center;min-height:44px;font:650 14px/1.35 system-ui,sans-serif!important;padding:10px 15px!important;border-radius:9px!important;text-decoration:none!important;box-sizing:border-box}
body[data-rq-global-shell] .rqg-library a.rqg-lib-primary{background:#00766f!important;color:#fff!important;border:1px solid #00766f!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .rqg-library a.rqg-lib-primary{background:#08766f!important;color:#fff!important;border-color:#379a93!important}
body[data-rq-global-shell] .rqg-library a.rqg-lib-secondary{background:transparent!important;color:var(--rqg-lib-link)!important;border:1px solid var(--rqg-lib-edge)!important}
body[data-rq-global-shell] .rqg-library a:focus-visible{outline:2px solid #b99b65!important;outline-offset:3px}
@media(max-width:640px){body[data-rq-global-shell] .rqg-lib-grid{grid-template-columns:1fr}body[data-rq-global-shell] .rqg-lib-actions a{flex:1 1 auto}}
/* Existing legacy lesson links: not an alteration to lesson questions or answers. */
html[data-rq-theme="dark"] body[data-rq-global-shell] .rq-v6-topic-head .rq-v6-tabs a{background:#213e48!important;color:#a1e6d9!important;border-color:#63818a!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .rq-v6-topic-head .rq-v6-tabs a[aria-current="page"]{background:#08766f!important;color:#fff!important;border-color:#379a93!important}

/* R5: clickable home cards and consistent educational reading surfaces.
   Never invert anatomy illustrations, diagrams, or the original covers. */
body[data-rq-global-shell] .topicCards .topicCard{padding:0!important;overflow:hidden}
body[data-rq-global-shell] .topicCards .rqg-home-card-link{display:flex;align-items:stretch;flex-direction:column;gap:12px;padding:14px;text-decoration:none!important;color:inherit!important;height:100%;box-sizing:border-box}
body[data-rq-global-shell] .topicCards .rqg-home-card-link>img{width:100%;height:auto;max-height:190px;object-fit:contain;border-radius:9px}
body[data-rq-global-shell] .topicCards .rqg-home-card-link .rqg-home-open{font:650 14px/1.35 system-ui,sans-serif;color:#006b64;margin-top:auto;padding-top:6px}
html[data-rq-theme="dark"] body[data-rq-global-shell] .topicCards .rqg-home-card-link .rqg-home-open{color:#a1e6d9}
body[data-rq-global-shell] .rqg-home-card-link:focus-visible{outline:3px solid #00766f!important;outline-offset:-4px}
body[data-rq-global-shell] .rqg-free-account{display:flex;gap:10px;flex-wrap:wrap;padding:16px max(18px,4vw);margin:0 auto 20px;max-width:1140px}
body[data-rq-global-shell] .rqg-free-account a{display:inline-flex;align-items:center;min-height:44px;padding:12px 16px;border-radius:9px;font-weight:650}
body[data-rq-global-shell] .rqg-free-account .rqg-lib-primary{background:#00766f;color:#fff!important}
body[data-rq-global-shell] .rqg-free-account .rqg-lib-secondary{border:1px solid #668b90;color:#006b64!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] .rqg-free-account .rqg-lib-secondary{color:#a1e6d9!important}
body[data-rq-global-shell] :is(.rq-reading-paper,.topic-workspace,.svt-workspace){--rq-lesson-base:#faf7ef;--rq-lesson-card:#fff;--rq-lesson-soft:#edf5f2;--rq-lesson-ink:#173443;--rq-lesson-muted:#405d68;--rq-lesson-link:#006b64;--rq-lesson-line:#bed0cc}
html[data-rq-theme="dark"] body[data-rq-global-shell] :is(.rq-reading-paper,.topic-workspace,.svt-workspace){--rq-lesson-base:#10222c;--rq-lesson-card:#172f3b;--rq-lesson-soft:#213e48;--rq-lesson-ink:#edf6f5;--rq-lesson-muted:#b5ccd1;--rq-lesson-link:#a7e5db;--rq-lesson-line:#39515a}
/* Parent paper was still cream while the chapter itself was dark. */
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] main.rq-reading-paper,
html[data-rq-theme="dark"] body[data-rq-global-shell][data-rq-version] main.rq-reading-paper :is(.lesson-layout,.lesson-body,.contents,.dka-body,.chapter,.lesson-hero,.rq-learning-map,.rq-map-caption,.rq-lesson-heading,.dka-memory-station){
 background:var(--rq-lesson-card)!important;color:var(--rq-lesson-ink)!important;border-color:var(--rq-lesson-line)!important;box-shadow:none!important}
html[data-rq-theme="light"] body[data-rq-global-shell][data-rq-version] main.rq-reading-paper :is(.lesson-layout,.lesson-body,.contents,.dka-body,.chapter,.lesson-hero,.rq-learning-map,.rq-map-caption,.rq-lesson-heading,.dka-memory-station){
 background:var(--rq-lesson-base)!important;color:var(--rq-lesson-ink)!important;border-color:var(--rq-lesson-line)!important}
body[data-rq-global-shell][data-rq-version] main.rq-reading-paper :is(.chapter,.dka-body,.lesson-body,.contents) :is(p,li,h2,h3,h4,td,th,figcaption,summary){color:var(--rq-lesson-ink)!important}
body[data-rq-global-shell][data-rq-version] main.rq-reading-paper :is(.chapter,.dka-body,.lesson-body,.contents) a{color:var(--rq-lesson-link)!important}
body[data-rq-global-shell][data-rq-version] main.rq-reading-paper :is(.chapter,.dka-body,.lesson-body) :is(.retrieval-card,.edge-card,.learning-action,blockquote,.notice,.summary-block,.audit-card,.path-grid section,.repair-card,.dka-memory-station){
 background:var(--rq-lesson-soft)!important;color:var(--rq-lesson-ink)!important;border-color:var(--rq-lesson-line)!important}
body[data-rq-global-shell][data-rq-version] main.rq-reading-paper :is(.chapter,.dka-body,.lesson-body) :is(td,th,thead){
 background:var(--rq-lesson-card)!important;color:var(--rq-lesson-ink)!important;border-color:var(--rq-lesson-line)!important}
body[data-rq-global-shell][data-rq-version] main.rq-reading-paper :is(.chapter,.dka-body,.lesson-body) th{background:var(--rq-lesson-soft)!important}
body[data-rq-global-shell][data-rq-version] main.rq-reading-paper :is(.chapter,.dka-body,.lesson-body) :is(input:not([type=radio]):not([type=checkbox]),textarea,select){background:var(--rq-lesson-card)!important;color:var(--rq-lesson-ink)!important;border-color:var(--rq-lesson-line)!important}
body[data-rq-global-shell] :is(main.topic-workspace,main:has(#svt-status)) :is(.topic-section,.svt-chapter,.question-card,.record,.repair-card,blockquote,table,td,th){
 background:var(--rq-lesson-card,#fff)!important;color:var(--rq-lesson-ink,#173443)!important;border-color:var(--rq-lesson-line,#bed0cc)!important}
html[data-rq-theme="dark"] body[data-rq-global-shell] :is(main.topic-workspace,main:has(#svt-status)){--rq-lesson-card:#172f3b;--rq-lesson-ink:#edf6f5;--rq-lesson-soft:#213e48;--rq-lesson-line:#39515a;--rq-lesson-link:#a7e5db}
body[data-rq-global-shell] :is(main.topic-workspace,main:has(#svt-status)) :is(.topic-section,.svt-chapter,.question-card,.record,.repair-card,blockquote) :is(h2,h3,h4,p,li,td,th,figcaption,summary){color:var(--rq-lesson-ink,#173443)!important}
body[data-rq-global-shell] :is(main.topic-workspace,main:has(#svt-status)) :is(.topic-section,.svt-chapter,.question-card,.record,.repair-card) a:not(.primary){color:var(--rq-lesson-link,#006b64)!important}
body[data-rq-global-shell] :is(main.topic-workspace,main:has(#svt-status)) :is(.topic-section,.svt-chapter,.question-card,.record) :is(input:not([type=radio]):not([type=checkbox]),textarea,select){background:var(--rq-lesson-card,#fff)!important;color:var(--rq-lesson-ink,#173443)!important;border-color:var(--rq-lesson-line,#bed0cc)!important}
body[data-rq-global-shell] :is(main.rq-reading-paper,main.topic-workspace,main:has(#svt-status)) :is(a,button).primary{background:#00766f!important;color:white!important;border-color:#00766f!important}
