/* v207a2 — Graphic Reader presentation only. Existing page and interaction IDs remain intact. */
.rw802-shell {
 --rwga2-surface:#1e2126;--rwga2-edge:#353941;--rwga2-ink:#ece9e3;--rwga2-link:#dbb9ef;
 --rw207a-meter:var(--rwga2-link);--rwga2-gap:0px;
}
body[data-theme=light] .rw802-shell:not([data-rwga2-theme=dark]):not([data-rwga2-theme=sepia]),
.rw802-shell[data-rwga2-theme=light]{--rwga2-surface:#fff;--rwga2-edge:#d4d4dc;--rwga2-ink:#24232a;--rwga2-link:#674394}
body[data-theme=sepia] .rw802-shell:not([data-rwga2-theme=dark]):not([data-rwga2-theme=light]),
.rw802-shell[data-rwga2-theme=sepia]{--rwga2-surface:#f6eddc;--rwga2-edge:#bdae92;--rwga2-ink:#493d2b;--rwga2-link:#754d75}
.rw802-shell[data-rwga2-theme=dark]{--bg:#14171d;--surface:#1e2126;--raised:#252c37;--text:#ece9e3;--border:#353941;--muted:#a7adb9;--accent:#dbb9ef;color-scheme:dark}
.rw802-shell[data-rwga2-theme=light]{--bg:#e8e9ed;--surface:#fff;--raised:#edf0f2;--text:#24232a;--border:#d4d4dc;--muted:#66636c;--accent:#674394;color-scheme:light}
.rw802-shell[data-rwga2-theme=sepia]{--bg:#e6d8bf;--surface:#f6eddc;--raised:#e8dcc7;--text:#493d2b;--border:#bdae92;--muted:#736452;--accent:#754d75;color-scheme:light}
.rw802-shell .rwga2-actions {display:flex;align-items:center;justify-content:flex-end;gap:4px;flex:none}
.rw802-shell .rwga2-actions>span {display:inline-flex;align-items:center}
.rw802-shell .rwga2-actions>span:empty {display:none}
.rw802-shell .rwga2-actions form {margin:0;padding:0;display:flex;flex:none}
/* Match the written toolbar's circles, ink, pressed states and shadows. Compact desktop row. */
.rw802-shell .rw802-toolbar .rw8076-icon-btn {
 display:inline-flex;position:relative;align-items:center;justify-content:center;flex:none;
 width:36px;height:36px;min-width:36px;min-height:36px;padding:0!important;margin:0;
 border:1px solid var(--rwga2-edge);border-radius:50%;background:var(--rwga2-surface);color:var(--rwga2-link);
 box-shadow:0 2px 8px #0002;cursor:pointer;text-decoration:none;box-sizing:border-box;line-height:1;
 transition:border-color .15s,background-color .15s;
}
.rw802-shell .rw802-toolbar .rw8076-icon-btn svg {width:21px;height:21px;flex:none;display:block}
.rw802-shell .rw802-toolbar .rw8076-icon-btn:is([aria-pressed=true],[aria-expanded=true],.rw8076-selected) {border-color:var(--rwga2-link);background:color-mix(in srgb,var(--rwga2-surface) 92%,var(--rwga2-link));color:var(--rwga2-link)}
.rw802-shell .rw802-toolbar .rw8076-icon-btn:hover {border-color:var(--rwga2-link);color:var(--rwga2-link)}
.rw802-shell .rw802-toolbar .rwga2-menu {display:none}
.rw802-shell:not(.rwga2-immersive):not(.rw8079-immersive):not(.rw802-theater):not(:fullscreen) .rw802-toolbar {height:44px;padding:3px 8px;gap:4px;align-items:center;border-bottom:1px solid var(--border)}
.rw802-shell:not(.rwga2-immersive):not(.rw8079-immersive):not(.rw802-theater):not(:fullscreen) .rw802-heading {top:50%;transform:translate(-50%,-50%);max-width:calc(100% - 2 * var(--rw8041-heading-clearance,12rem) - .4rem)}
.rw802-shell .rw802-toolbar {z-index:25}
.rw802-shell .rw802-toolbar-actions {margin-left:auto;gap:4px;flex:none}
.rw802-shell .rwga2-settings {position:absolute;z-index:40;top:48px;right:8px;width:min(328px,calc(100vw - 16px));max-height:calc(100dvh - 64px);overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:14px;display:grid;gap:10px;border:1px solid var(--rwga2-edge);border-radius:13px;background:var(--rwga2-surface);color:var(--rwga2-ink);box-shadow:0 10px 28px #0004;font:inherit;font-size:.85rem}
.rw802-shell .rwga2-settings label {display:flex;flex-flow:row wrap;justify-content:space-between;align-items:center;gap:8px;font-size:.85rem;font-weight:500}
.rw802-shell .rwga2-settings select {padding:.3rem .4rem;max-width:58%;border:1px solid var(--rwga2-edge);color:var(--rwga2-ink);background:var(--rwga2-surface);font:inherit}
.rw802-shell .rwga2-settings input[type=range] {width:100%;padding:0;accent-color:var(--rwga2-link)}
.rw802-shell .rwga2-settings input[type=checkbox] {accent-color:var(--rwga2-link)}
.rw802-shell .rwga2-settings button {border:1px solid var(--rwga2-edge);border-radius:7px;background:var(--rwga2-surface);color:var(--rwga2-link);padding:6px;font-size:.8rem}
/* Immersive is a member presentation choice, independent of browser fullscreen. */
body.rwga2-mode .site-head {position:fixed!important;inset:0 0 auto;z-index:20}
body.rwga2-mode.rwga2-reading .site-head {visibility:hidden!important;pointer-events:none!important}
.rw802-shell.rwga2-immersive .rw802-art-stage {height:100dvh!important;min-height:0!important}
.rw802-shell.rwga2-immersive .rw802-toolbar,
.rw802-shell.rw8079-immersive .rw802-toolbar {position:absolute;top:0;right:0;left:auto;width:0;height:0;min-height:0;padding:0;border:0;background:transparent;backdrop-filter:none;border-radius:0;z-index:25;overflow:visible}
.rw802-shell.rwga2-immersive :is(.rw8076-reader-crumb,.rw802-back,.rw802-heading,.rw8078-location),.rw802-shell.rwga2-immersive .rw802-bottom .rw802-progress {display:none!important}
.rw802-shell.rw8079-immersive .rw8078-location {display:none!important}
.rw802-shell:is(.rwga2-immersive,.rw8079-immersive) .rw802-toolbar-actions {position:absolute;top:max(5px,env(safe-area-inset-top));right:max(5px,env(safe-area-inset-right));width:44px;display:flex;flex-direction:column;align-items:center;gap:4px;max-height:calc(100dvh - 10px)}
.rw802-shell:is(.rwga2-immersive,.rw8079-immersive) .rw802-toolbar .rwga2-menu {display:inline-flex;width:36px;min-width:36px;height:36px;min-height:36px;opacity:.88}
.rw802-shell:is(.rwga2-immersive,.rw8079-immersive) .rwga2-actions {display:none;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;max-height:calc(100dvh - 56px);overflow-y:auto;scrollbar-width:none}
.rw802-shell:is(.rwga2-immersive,.rw8079-immersive).rwga2-menu-open .rwga2-actions {display:flex}
.rw802-shell:is(.rwga2-immersive,.rw8079-immersive) .rwga2-actions .rw8076-icon-btn {width:44px;min-width:44px;height:44px;min-height:44px}
.rw802-shell:is(.rwga2-immersive,.rw8079-immersive) .rwga2-settings {top:max(8px,env(safe-area-inset-top));right:58px;width:min(350px,calc(100vw - 66px));max-height:calc(100dvh - 16px)}
.rw802-shell .rwga2-corners {display:none;pointer-events:none;position:absolute;inset:4px 8px auto;z-index:3;justify-content:space-between;gap:12px;color:var(--rwga2-ink);font:12px/1.25 system-ui}
.rw802-shell.rwga2-immersive .rwga2-corners {display:flex}
.rw802-shell .rwga2-corners span {max-width:46%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:color-mix(in srgb,var(--rwga2-surface) 82%,transparent);border-radius:3px;padding:2px 4px}
.rw802-shell .rwga2-corners #rwga2-count {margin-left:auto;margin-right:42px}
.rw802-shell.rwga2-no-heading #rwga2-heading,.rw802-shell.rwga2-no-numbers #rwga2-count {visibility:hidden}
.rw802-shell.rwga2-no-heading:not(.rwga2-immersive) .rw802-heading {visibility:hidden}
/* A flex group exactly as wide as its visible artwork. Height never reserved for progress or menu. */
.rw802-shell.rwga2-ready .rw802-spread {width:max-content;max-width:100%;height:100%;padding:0;gap:var(--rwga2-gap);align-items:center;justify-content:center;touch-action:pan-y}
.rw802-shell.rwga2-ready .rw802-spread .rw8076-page-frame {display:flex!important;flex:0 0 auto;max-width:100%;width:var(--rwga2-page-width,auto);height:var(--rwga2-page-height,100%);align-self:flex-end}
.rw802-shell.rwga2-ready .rw802-spread .rw8076-page-frame .rw802-page {display:flex!important;max-width:100%;width:100%;height:100%;touch-action:pan-y}
.rw802-shell.rwga2-ready.rwga2-single .rw802-spread .rw8076-page-frame:not(.rwga2-active-page) {display:none!important}
.rw802-shell.rwga2-ready .rw802-art-stage .rw802-edge {touch-action:pan-y;bottom:0}
.rw802-shell.rwga2-ready .rw8076-page-favorite {z-index:5;pointer-events:auto}
/* Existing written-reader fixed progress meter values and exact visual proportions. */
.rw802-shell .rwga2-progress {position:fixed;inset:auto 0 0;z-index:3;pointer-events:none;display:grid;gap:2px;padding:0 0 env(safe-area-inset-bottom,0px);margin:0;background:transparent}
.rw802-shell .rwga2-progress .rw207a-track {height:2px;overflow:hidden;background:color-mix(in srgb,var(--rw207a-meter) 14%,transparent)}
.rw802-shell .rwga2-progress .rw207a-track>span {display:block;height:100%;width:100%;transform:scaleX(0);transform-origin:left;background:color-mix(in srgb,var(--rw207a-meter) 73%,transparent)}
.rw802-shell .rwga2-progress .rw207a-track:nth-child(2)>span {background:color-mix(in srgb,var(--rw207a-meter) 43%,transparent)}
/* Minimal fullscreen zoom chrome, same close glyph and surface as written illustration viewer.
   Keep original viewer IDs and request marker for reading achievement evidence. */
.rw802-shell.rwga2-ready .rw802-zoom {background:#090a0c!important;display:grid;grid-template: minmax(0,1fr) / minmax(0,1fr);width:100vw;height:100dvh}
.rw802-shell.rwga2-ready .rw802-zoom-viewport {grid-area:1/1;width:100%;height:100%;min-height:0}
.rw802-shell.rwga2-ready .rw802-zoom-tools {display:contents}
.rw802-shell.rwga2-ready .rw802-zoom-help,.rw802-shell.rwga2-ready #rw802-zoom-label,.rw802-shell.rwga2-ready :is(#rw802-zoom-out,#rw802-zoom-in,#rw802-zoom-reset) {display:none!important}
.rw802-shell.rwga2-ready #rw802-zoom-close {position:absolute;top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));height:44px;width:44px;min-height:44px;min-width:44px;padding:0;border:0!important;border-radius:50%;background:transparent!important;box-shadow:none!important;color:#fff;font:22px/1 system-ui;opacity:.62;text-shadow:0 1px 4px #000,0 0 2px #000;z-index:2;outline-offset:-4px}
.rw802-shell.rwga2-ready #rw802-zoom-close:is(:hover,:focus-visible) {opacity:1;background:#0004!important}
@media(max-width:900px),(hover:none) and (pointer:coarse){
 .rw802-shell:not(.rwga2-immersive):not(.rw8079-immersive):not(:fullscreen):not(.rw802-theater) .rw802-toolbar{height:35px;padding:2px 6px}
 .rw802-shell:not(.rwga2-immersive):not(.rw8079-immersive):not(:fullscreen):not(.rw802-theater) .rw802-heading {max-width:calc(100% - 160px);font-size:.72rem}
 .rw802-shell:not(.rwga2-immersive):not(.rw8079-immersive) .rw802-toolbar-actions{width:36px;max-width:36px}
 .rw802-shell .rw802-toolbar .rwga2-menu {display:inline-flex;width:32px;height:32px;min-width:32px;min-height:32px}
 .rw802-shell:not(.rwga2-immersive):not(.rw8079-immersive) .rwga2-actions {display:none;position:absolute;right:0;top:calc(100% + 4px);flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;max-height:calc(100dvh - 120px);overflow-y:auto;scrollbar-width:none}
 .rw802-shell:not(.rwga2-immersive):not(.rw8079-immersive).rwga2-menu-open .rwga2-actions {display:flex}
 .rw802-shell .rwga2-actions .rw8076-icon-btn {width:44px;min-width:44px;height:44px;min-height:44px}
 .rw802-shell .rwga2-settings {right:58px;width:min(350px,calc(100vw - 66px));max-height:calc(100dvh - 120px)}
 .rw802-shell.rwga2-immersive .rwga2-corners #rwga2-count {margin-right:0}
 .rw802-shell.rwga2-immersive:not(.rwga2-menu-open) .rw802-toolbar .rwga2-menu:not(:focus-visible) {position:absolute;width:1px;height:1px;min-width:1px;min-height:1px;clip-path:inset(50%);overflow:hidden;pointer-events:none;opacity:0}
 .rw802-shell.rwga2-immersive.rwga2-menu-open .rwga2-corners #rwga2-count {margin-right:48px}
}
@media(max-height:620px){.rw802-shell:is(.rwga2-immersive,.rw8079-immersive).rwga2-menu-open .rwga2-actions {max-height:calc(100dvh - 56px)} .rw802-shell .rwga2-actions .rw8076-icon-btn {width:36px;min-width:36px;height:36px;min-height:36px}}
/* If JS cannot initialize, leave the legacy controls available. */
.rw802-shell:not(.rwga2-ready) .rwga2-actions {display:flex!important;position:static!important;flex-direction:row!important;max-height:none;overflow:visible!important}
.rw802-shell:not(.rwga2-ready) .rwga2-menu,.rw802-shell:not(.rwga2-ready) #rwga2-mode,.rw802-shell:not(.rwga2-ready) #rwga2-settings-toggle {display:none!important}

.rw802-shell:has(#rw802-zoom:not([hidden])) {z-index:10001}
