/* Full-bleed only on graphic reader pages: no shared template changes. */
body:has(.rw802-shell) .site-main { max-width:none;min-height:0;padding:0; }
/* v80.2 PRIVATE preview only. Never included in the global site header. */
.rw802-shell {
  --rw802-bg:var(--bg,#14171d); --rw802-fg:var(--text,#e7e8e8); --rw802-muted:var(--muted,#a7adb9);
  --rw802-edge:var(--raised,#252c37); --rw802-accent:var(--accent,#c6a6e7);
  position:relative; isolation:isolate; width:100vw; max-width:100vw;
  margin-inline:calc(50% - 50vw); background:var(--rw802-bg); color:var(--rw802-fg);
  font-family:inherit; overflow:clip;
}
.rw802-shell *, .rw802-shell *::before, .rw802-shell *::after { box-sizing:border-box; }
.rw802-shell button { font:inherit; color:inherit; cursor:pointer; }
.rw802-shell a {color:var(--rw802-accent);}
.rw802-shell [hidden] { display:none !important; }
.rw802-toolbar { height:3.35rem; display:flex; gap:.65rem; align-items:center; justify-content:space-between; padding:.35rem clamp(.65rem,2vw,1.2rem); border-bottom:1px solid var(--border,#353d49); }
.rw802-back { flex-shrink:0; font-size:.84rem; white-space:nowrap; }
.rw802-heading { min-width:0; display:flex; flex-direction:column; justify-content:center; align-items:center; line-height:1.25; font-size:.83rem; }
.rw802-heading strong,.rw802-heading span { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rw802-heading span {color:var(--rw802-muted);font-size:.73rem;}
.rw802-toolbar-actions {display:flex;gap:.45rem;flex-shrink:0;}
.rw802-toolbar button,.rw802-bottom button,.rw802-toc-head button,.rw802-zoom-tools button { border:1px solid var(--border,#353d49); border-radius:.45rem; background:var(--raised,#252c37); padding:.4rem .65rem; }
.rw802-shell button:focus-visible,.rw802-shell a:focus-visible {outline:3px solid var(--focus,#e8cafe);outline-offset:2px;}
.rw802-shell button:disabled {cursor:default;opacity:.35;}
.rw802-main {position:relative;}
.rw802-art-stage {height:calc(100dvh - 3.35rem); min-height:min(360px,60dvh); width:100%; position:relative; overflow:hidden; display:grid; place-items:center; background:var(--bg,#14171d);grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);}
.rw802-spread {width:100%;height:100%;min-width:0;min-height:0;max-height:100%;overflow:hidden;display:flex;justify-content:center;align-items:center;gap:2px;max-width:100%;padding:0 clamp(.2rem,1.5vw,1.4rem);}
.rw802-page { display:flex; align-items:center; justify-content:center; border:0; padding:0; margin:0; background:transparent; flex:0 1 auto; min-width:0; min-height:0; max-width:50%; height:100%; touch-action:manipulation; }
.rw802-spread:has(.rw802-page:only-child) .rw802-page { max-width:100%; }
.rw802-page img { display:block; width:100%; height:100%; max-width:100%;max-height:100%;object-fit:contain; user-select:none; -webkit-user-drag:none; }
.rw802-edge {position:absolute;top:0;bottom:0;width:clamp(27px,5.8vw,74px);z-index:2;border:0;background:transparent !important;font-size:clamp(1.25rem,2.3vw,2.2rem) !important;opacity:.58;}
.rw802-edge:hover,.rw802-edge:focus-visible {background:linear-gradient(90deg,rgba(87,72,130,.5),transparent) !important;opacity:1;}
.rw802-edge-prev {left:0;}.rw802-edge-next {right:0;}
.rw802-edge-next:hover,.rw802-edge-next:focus-visible {background:linear-gradient(270deg,rgba(87,72,130,.5),transparent) !important;}
.rw802-bottom {height:4.65rem;display:flex;align-items:center;justify-content:center;gap:clamp(.6rem,4vw,2rem);padding:.5rem .8rem;border-top:1px solid var(--border,#353d49);}
.rw802-progress {text-align:center;display:flex;flex-direction:column;gap:.2rem;min-width:0;font-size:.87rem;}
.rw802-progress span:last-child {font-size:.69rem;color:var(--rw802-muted);}
.rw802-below {min-height:160px;max-width:850px;margin:0 auto;padding:2.6rem 1.3rem 4rem;border-top:1px solid var(--border,#353d49);}
.rw802-below h2 {font-size:1.2rem;color:inherit;margin:0 0 .8rem;}
.rw802-below p {font-size:.87rem;color:var(--rw802-muted);}
.rw802-toc {position:absolute;z-index:8;top:0;left:0;bottom:0;width:min(360px,92vw);max-height:100%;overflow:auto;overscroll-behavior:contain;background:var(--surface,#1d222b);border:1px solid var(--border,#353d49);box-shadow:10px 0 35px rgba(0,0,0,.6);padding:1rem;}
.rw802-toc-head {display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:1rem;}
.rw802-toc h2 {font-size:1.1rem;margin:0;color:var(--rw802-fg);}
.rw802-chapter {border-top:1px solid var(--border,#353d49);padding:.8rem 0;}
.rw802-chapter summary {display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-weight:600;}
.rw802-chapter summary span {font-size:.72rem;color:var(--rw802-muted);flex-shrink:0;margin-left:.7rem;}
.rw802-chapter a {display:block;padding:.45rem .55rem;text-decoration:none;border-radius:.4rem;font-size:.85rem;}
.rw802-chapter a:hover,.rw802-chapter a.rw802-current {background:var(--raised,#252c37);color:var(--rw802-fg);}
.rw802-chapter ol {margin:.25rem 0 0 1.3rem;padding:0;}
.rw802-chapter li::marker {color:var(--rw802-muted);}
.rw802-chapter li span {color:var(--rw802-muted);font-size:.73rem;}
.rw802-chapter p {font-size:.8rem;color:var(--rw802-muted);}
.rw802-zoom {position:fixed;z-index:10000;inset:0;display:flex;flex-direction:column;background:#090a0f;color:#fff;touch-action:none;}
.rw802-zoom-tools {display:flex;align-items:center;justify-content:center;gap:.5rem;flex-wrap:wrap;min-height:3.3rem;padding:.45rem;background:#171e2c;}
.rw802-zoom-tools span {font-size:.82rem;margin-right:auto;padding-left:.65rem;}
.rw802-zoom-viewport { flex:1;min-height:0;position:relative;overflow:hidden;touch-action:none;cursor:grab;}
.rw802-zoom-viewport:active {cursor:grabbing;}
.rw802-zoom-viewport img {position:absolute;left:50%;top:50%;max-width:none;max-height:none;transform-origin:center;will-change:transform;user-select:none;pointer-events:none;}
.rw802-zoom-help {text-align:center;font-size:.74rem;color:var(--rw802-muted);padding:.3rem;margin:0;}
.rw802-shell.rw802-theater {position:fixed;z-index:9000;inset:0;width:100vw;height:100dvh;overflow-y:auto;overscroll-behavior:contain;margin:0;}
.rw802-shell:fullscreen {width:100vw;height:100dvh;overflow-y:auto;background:var(--rw802-bg);}
.rw802-shell.rw802-theater .rw802-art-stage,.rw802-shell:fullscreen .rw802-art-stage {height:100svh;height:100dvh;}
body.rw802-locked {overflow:hidden !important;}
@media (orientation:portrait) {
 .rw802-page {flex:0 1 auto;max-width:100%;}
 .rw802-shell[data-current-page="1"] .rw802-page[data-slot="2"] {display:none;}
 .rw802-shell[data-current-page="2"] .rw802-page[data-slot="1"] {display:none;}
 .rw802-edge {width:clamp(28px,8vw,50px);}
}
@media (max-width:620px) {
 .rw802-toolbar {gap:.35rem;padding-inline:.45rem;}
 .rw802-toolbar button {padding:.4rem .46rem;font-size:.78rem;}
 .rw802-heading {font-size:.71rem;}
 .rw802-heading span {font-size:.63rem;}
 .rw802-back {font-size:.72rem;}
 .rw802-bottom {gap:.5rem;}
 .rw802-bottom button {padding:.45rem .55rem;}
 .rw802-progress {font-size:.75rem;}
 .rw802-progress span:last-child {font-size:.62rem;}
}
@media (prefers-reduced-motion:reduce) { .rw802-shell * {scroll-behavior:auto !important;transition:none !important;animation:none !important;} }

.rw802-direction {background:var(--raised,#252c37);border:1px solid var(--border,#353d49);border-radius:.4rem;padding:.45rem;margin-bottom:.55rem;width:100%;font-size:.85rem;}
.rw802-shell.rw802-rtl .rw802-spread { flex-direction:row-reverse; }

/* v80.7.5: reader components adopt the site's light/dark/sepia theme. */
.rw802-shell :is(.rw802-toolbar button,.rw802-bottom button,.rw802-toc button,.rw802-zoom-tools button){
  color:var(--rw802-fg);background:var(--raised,#252c37);border:1px solid var(--border,#353d49);
}
.rw802-shell :is(.rw802-toolbar button,.rw802-bottom button,.rw802-toc button,.rw802-zoom-tools button):not(:disabled):hover{
  background:var(--surface,#1d222b);border-color:var(--rw802-accent);
}
.rw802-shell .rw802-edge{background:transparent !important;}
.rw802-shell .rw802-edge:focus-visible{outline:3px solid var(--focus,#e8cafe);}
.rw802-shell .rw802-below :is(input,textarea,select){background:var(--bg);color:var(--text);border:1px solid var(--border);}
.rw802-navigation-status{font-size:.75rem;color:var(--rw802-muted);max-width:22ch;}
.rw802-shell .rw802-zoom{background:var(--bg,#14171d);color:var(--text,#e7e8e8);}
.rw802-shell .rw802-zoom-tools{background:var(--surface,#1d222b);}
body[data-theme="light"] .rw802-shell {color-scheme:light;}
body[data-theme="sepia"] .rw802-shell {color-scheme:light;}

/* v80.7.6: shared-reader-style tools, spread favorites and inline editing.
 * Scoped to the Graphic Novel reader; no header/book/chapter stylesheet changes. */
.rw802-toolbar-actions {display:flex;align-items:center;gap:.35rem;}
.rw802-toolbar-actions > span {display:inline-flex;align-items:center;}
.rw802-toolbar-actions form {margin:0;}
.rw802-shell .rw8076-icon-btn {
  display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;
  width:42px;height:42px;padding:0;border-radius:50%;border:1px solid var(--border,#353d49);
  color:var(--rw802-fg);background:var(--raised,#252c37);text-decoration:none;
}
.rw802-shell .rw8076-icon-btn svg{pointer-events:none;}
.rw802-shell .rw8076-icon-btn:hover {color:var(--rw802-accent);border-color:var(--rw802-accent);}
.rw802-shell .rw8076-icon-btn.rw8076-selected {color:var(--rw802-accent);background:var(--raised,#252c37);}
.rw802-shell .rw8076-icon-btn.rw8076-selected svg {fill:color-mix(in srgb,var(--rw802-accent) 26%,transparent);}
.rw8076-page-frame {height:100%;min-height:0;min-width:0;max-width:50%;position:relative;display:flex;flex:0 1 auto;justify-content:center;align-items:center;}
.rw802-spread:has(.rw8076-page-frame:only-child) .rw8076-page-frame {max-width:100%;}
.rw802-shell .rw8076-page-frame .rw802-page {width:100%;max-width:100%;height:100%;flex:1 1 auto;}
.rw8076-page-favorite {position:absolute;z-index:4;bottom:clamp(.65rem,1.5vw,1.25rem);left:clamp(.65rem,1.5vw,1.25rem);display:flex;align-items:center;margin:0;}
.rw8076-page-frame[data-slot="2"] .rw8076-page-favorite{left:auto;right:clamp(.65rem,1.5vw,1.25rem);}
.rw802-shell .rw8076-heart {padding:.36rem .58rem;display:inline-flex;align-items:center;gap:.3rem;color:#fff;background:rgba(10,12,19,.59);border-radius:1.3rem;border:1px solid rgba(255,255,255,.28);font-size:.83rem;opacity:.58;transition:opacity .15s ease,background .15s ease;cursor:pointer;text-decoration:none;}
.rw802-shell .rw8076-heart:hover,.rw802-shell .rw8076-heart:focus-visible {opacity:1;background:rgba(10,12,19,.83);}
.rw802-shell .rw8076-heart.is-liked{opacity:1;color:#fa5578;border-color:#fa5578;}
.rw802-shell .rw8076-heart span{font-variant-numeric:tabular-nums;}
.rw802-bottom{height:auto;min-height:3.7rem;gap:.6rem;flex-wrap:wrap;flex-direction:column;padding:.7rem;}
.rw8076-reader-metrics{font-size:.83rem;color:var(--rw802-muted);font-variant-numeric:tabular-nums;}
.rw8076-editor {position:absolute;z-index:9;right:1rem;top:3.5rem;width:min(560px,calc(100vw - 2rem));max-height:calc(100dvh - 6rem);overflow:auto;background:var(--surface,#1d222b);border:1px solid var(--border,#353d49);border-radius:.65rem;padding:1rem;box-shadow:0 12px 38px rgba(0,0,0,.42);}
.rw8076-editor-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:.9rem;}
.rw8076-editor-title h2{margin:0;font-size:1.13rem;}
.rw8076-editor-title button{min-width:32px;min-height:32px;}
.rw8076-edit-page{display:grid;grid-template-columns:82px minmax(0,1fr);gap:1rem;padding:1rem 0;border-top:1px solid var(--border,#353d49);}
.rw8076-edit-page>img{width:82px;height:120px;object-fit:contain;align-self:start;border-radius:.3rem;}
.rw8076-edit-page form{margin:.7rem 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:.35rem;}
.rw8076-edit-page label{width:100%;display:flex;flex-direction:column;gap:.25rem;font-size:.85rem;}
.rw8076-edit-page input[type=text],.rw8076-edit-page input[type=file]{width:100%;min-width:0;padding:.55rem;color:var(--rw802-fg);background:var(--rw802-bg);border:1px solid var(--border,#353d49);border-radius:.4rem;}
.rw8076-edit-status,.rw8075-description-status{color:var(--rw802-muted);font-size:.82rem;}
.rw8076-comments {max-width:100%;}
.rw8076-comments .shelf-heading {display:flex;align-items:center;justify-content:space-between;gap:.75rem;}
.rw8076-comments .comment-form {margin:1rem 0 1.4rem;}
.rw8076-comments .comment-form textarea {width:100%;max-width:100%;background:var(--rw802-bg);color:var(--rw802-fg);border:1px solid var(--border,#353d49);border-radius:.55rem;min-height:115px;padding:.75rem;}
.rw8076-comments .rw8076-comment {position:relative;border:1px solid var(--border,#353d49);border-radius:.65rem;background:var(--surface,#1d222b);padding:1rem 1.1rem;margin:1rem 0;}
.rw8076-comments .rw8076-comment.reply {margin-left:clamp(18px,4vw,52px);}
.rw8076-comments .comment-head {display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;margin-bottom:.6rem;}
.rw8076-comments .comment-head time {margin-left:auto;color:var(--rw802-muted);font-size:.8rem;}
.rw8076-comments .comment-text {overflow-wrap:anywhere;white-space:normal;line-height:1.55;}
.rw8076-comments .comment-actions {display:flex;align-items:center;gap:.65rem;margin-top:.8rem;}
.rw8076-comments .rw76-heart.is-liked {color:#f45173;}
.rw8076-comments .rw8076-form-status,.rw8076-comments .rw8076-discuss-info{font-size:.84rem;color:var(--rw802-muted);}
.rw8076-comments .rw8076-emoji-panel {display:flex;flex-wrap:wrap;gap:.15rem;max-height:175px;overflow:auto;border:1px solid var(--border,#353d49);border-radius:.5rem;padding:.5rem;background:var(--rw802-bg);}
.rw8076-comments .rw8076-emoji-panel button{display:grid;place-items:center;min-width:34px;min-height:34px;padding:.2rem;}
.rw8076-comments .rw8076-emoji-panel img{height:25px;width:25px;object-fit:contain;}
.rw8076-comments .rw8076-inline-spoiler {display:inline-block;vertical-align:middle;border:1px solid var(--border,#353d49);padding:.25rem;border-radius:.3rem;}
.rw8076-comments .rw8076-inline-spoiler summary,.rw8076-comments .rw8076-hidden-spoiler summary{cursor:pointer;}
.rw8076-comments .rw76-action-menu {margin-left:auto;float:right;}
.rw8076-comments .rw8076-report label{display:flex;flex-direction:column;}
@media (orientation:portrait){
  .rw8076-page-frame{max-width:100%;}
  .rw802-shell[data-current-page="1"] .rw8076-page-frame[data-slot="2"]{display:none;}
  .rw802-shell[data-current-page="2"] .rw8076-page-frame[data-slot="1"]{display:none;}
}
@media(max-width:620px){
  .rw802-shell .rw8076-icon-btn{min-width:34px;min-height:34px;width:34px;height:34px;}
  .rw802-shell .rw8076-icon-btn svg{width:18px;height:18px;}
  .rw8076-edit-page{grid-template-columns:58px minmax(0,1fr);gap:.6rem;}
  .rw8076-edit-page>img{width:58px;height:85px;}
  .rw8076-comments .comment-head time{margin-left:0;}
}
.rw8076-emoji-inline {display:inline;vertical-align:-.2em;height:1.35em;width:auto;max-width:2em;}

/* v80.7.8 — Immersive reading: all controls overlay, none steal height.
   Normal mode keeps its context header; fullscreen/theater fills the visual
   viewport, then scrolls to metadata, support, and discussion underneath. */
.rw802-shell .rw802-edge {
  display:grid;place-items:center;opacity:.72;color:var(--rw802-fg) !important;
  font-size:clamp(1.8rem,3.4vw,3rem) !important;
  text-shadow:0 1px 8px rgba(0,0,0,.8);transition:opacity .16s ease,background-color .16s ease;
}
.rw802-shell .rw802-edge:not(:disabled):hover,
.rw802-shell .rw802-edge:not(:disabled):focus-visible {opacity:1;}
.rw802-shell .rw802-edge:disabled {opacity:.18;pointer-events:none;}
.rw802-shell .rw802-edge-prev {background:linear-gradient(90deg,rgba(0,0,0,.18),transparent) !important;}
.rw802-shell .rw802-edge-next {background:linear-gradient(270deg,rgba(0,0,0,.18),transparent) !important;}
.rw802-shell .rw802-edge-prev:hover,.rw802-shell .rw802-edge-prev:focus-visible {background:linear-gradient(90deg,rgba(47,40,65,.63),transparent) !important;}
.rw802-shell .rw802-edge-next:hover,.rw802-shell .rw802-edge-next:focus-visible {background:linear-gradient(270deg,rgba(47,40,65,.63),transparent) !important;}
.rw802-shell .rw8076-page-favorite {bottom:max(.6rem,env(safe-area-inset-bottom,0px));top:auto;}
.rw802-shell .rw8076-page-frame[data-slot="2"] .rw8076-page-favorite{right:clamp(.65rem,1.5vw,1.25rem);}
/* Retain the unobstructed image in either mode; art reaches the stage edges. */
.rw802-shell .rw802-spread {padding:0;}
.rw802-shell .rw802-bottom {min-height:0;padding:1.15rem .85rem;border-top:1px solid var(--border,#353d49);}
.rw802-shell .rw8078-author-support {
  max-width:850px;margin:0 auto;padding:1.45rem 1.3rem 1.75rem;
  text-align:center;border-bottom:1px solid var(--border,#353d49);
}
.rw802-shell .rw8078-author-support>strong {display:block;margin-bottom:.85rem;font-size:1rem;}
.rw802-shell .rw8078-author-support .rw74-support-links {justify-content:center;}
.rw802-shell .rw802-below {border-top:0;padding-top:1.8rem;}
/* Normal reading mode already identifies the story in the centered heading. */
.rw8078-location {display:none;}
/* Immersive artwork is genuinely viewport-height; no permanent top or bottom
   title/progress bars. Browser fullscreen and the iOS/theater fallback agree. */
.rw802-shell:fullscreen .rw802-art-stage,
.rw802-shell.rw802-theater .rw802-art-stage {
  height:100svh;height:100dvh;min-height:0;
}
.rw802-shell:fullscreen .rw802-toolbar,
.rw802-shell.rw802-theater .rw802-toolbar {
  position:absolute;top:max(.4rem,env(safe-area-inset-top,0px));right:max(.5rem,env(safe-area-inset-right,0px));
  left:auto;width:auto;height:auto;z-index:12;display:flex;align-items:center;
  padding:.28rem;border:1px solid color-mix(in srgb,var(--border,#353d49) 55%,transparent);
  border-radius:1.5rem;background:color-mix(in srgb,var(--surface,#1d222b) 66%,transparent);
  backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);
}
.rw802-shell:fullscreen .rw802-back,
.rw802-shell:fullscreen .rw802-heading,
.rw802-shell.rw802-theater .rw802-back,
.rw802-shell.rw802-theater .rw802-heading {display:none;}
.rw802-shell:fullscreen .rw802-bottom .rw802-progress,
.rw802-shell.rw802-theater .rw802-bottom .rw802-progress {display:none;}
.rw802-shell:fullscreen .rw8078-location,
.rw802-shell.rw802-theater .rw8078-location {
  display:block;position:absolute;top:calc(100% + .4rem);right:0;
  max-width:min(29rem,calc(100vw - 1rem));padding:.45rem .8rem;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:.8rem;border-radius:.5rem;color:var(--rw802-fg);
  background:color-mix(in srgb,var(--surface,#1d222b) 87%,transparent);
  box-shadow:0 5px 18px rgba(0,0,0,.2);
  visibility:hidden;opacity:0;transition:opacity .12s ease;
  pointer-events:none;
}
.rw802-shell:fullscreen .rw802-toolbar:hover .rw8078-location,
.rw802-shell:fullscreen .rw802-toolbar:focus-within .rw8078-location,
.rw802-shell.rw802-theater .rw802-toolbar:hover .rw8078-location,
.rw802-shell.rw802-theater .rw802-toolbar:focus-within .rw8078-location {visibility:visible;opacity:1;}
.rw802-shell:fullscreen .rw8076-editor,
.rw802-shell.rw802-theater .rw8076-editor {top:3.6rem;right:max(.5rem,env(safe-area-inset-right,0px));}
.rw802-shell:fullscreen .rw802-bottom,
.rw802-shell.rw802-theater .rw802-bottom {padding:1.25rem .85rem .65rem;}
@media (max-width:620px){
 .rw802-shell:fullscreen .rw802-toolbar,.rw802-shell.rw802-theater .rw802-toolbar {gap:.15rem;}
 .rw802-shell .rw802-edge {width:clamp(32px,9vw,55px);}
 .rw802-shell .rw8076-page-favorite {bottom:max(.45rem,env(safe-area-inset-bottom,0px));}
 .rw802-shell .rw8076-heart {font-size:.72rem;padding:.32rem .45rem;}
}


/* v80.7.10: RESTORED v80.2 arrow design, not new Previous/Next buttons.
   Keep the original full-height invisible click zones, centered chevrons,
   soft hover gradients, and no circular borders or filled pills. */
.rw802-shell .rw802-art-stage .rw802-edge {
  position:absolute;top:0;bottom:0;transform:none;
  display:grid !important;place-items:center;
  width:clamp(27px,5.8vw,74px);height:auto;min-width:0;min-height:0;
  padding:0;margin:0;line-height:normal;z-index:2;
  border:0 !important;border-radius:0 !important;box-shadow:none !important;
  background:transparent !important;text-shadow:none;
  font-size:clamp(1.25rem,2.3vw,2.2rem) !important;
  color:var(--rw802-fg) !important;opacity:.58 !important;
}
.rw802-shell .rw802-art-stage .rw802-edge-prev {left:0;right:auto;}
.rw802-shell .rw802-art-stage .rw802-edge-next {right:0;left:auto;}
.rw802-shell .rw802-art-stage .rw802-edge-prev:not(:disabled):hover,
.rw802-shell .rw802-art-stage .rw802-edge-prev:focus-visible {
  background:linear-gradient(90deg,rgba(87,72,130,.5),transparent) !important;
  opacity:1 !important;
}
.rw802-shell .rw802-art-stage .rw802-edge-next:not(:disabled):hover,
.rw802-shell .rw802-art-stage .rw802-edge-next:focus-visible {
  background:linear-gradient(270deg,rgba(87,72,130,.5),transparent) !important;
  opacity:1 !important;
}
.rw802-shell .rw802-art-stage .rw802-edge:disabled {opacity:.18 !important;pointer-events:none;}
.rw802-shell .rw802-art-stage .rw802-edge:focus-visible {outline:3px solid var(--focus,#e8cafe);outline-offset:-3px;}
@media(orientation:portrait) {.rw802-shell .rw802-art-stage .rw802-edge {width:clamp(28px,8vw,50px);}}

/* Explicit mode class and native fullscreen/theater selectors all agree;
   no permanent title, back link or metadata band occupies image height. */
.rw802-shell.rw8079-immersive .rw802-art-stage {
  height:100dvh !important;min-height:0 !important;
}
.rw802-shell.rw8079-immersive .rw802-toolbar {
  position:absolute;top:max(.4rem,env(safe-area-inset-top,0px));
  right:max(.5rem,env(safe-area-inset-right,0px));left:auto;
  width:auto;height:auto;z-index:12;display:flex;align-items:center;
  padding:.28rem;border:1px solid rgba(224,213,238,.2);
  border-radius:1.5rem;background:rgba(25,29,39,.74);
  backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);
}
.rw802-shell.rw8079-immersive .rw802-back,
.rw802-shell.rw8079-immersive .rw802-heading,
.rw802-shell.rw8079-immersive .rw802-bottom .rw802-progress {display:none !important;}
.rw802-shell.rw8079-immersive .rw8078-location {
  display:block;position:absolute;top:calc(100% + .4rem);right:0;
  max-width:min(29rem,calc(100vw - 1rem));padding:.45rem .8rem;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:.8rem;border-radius:.5rem;color:var(--rw802-fg);
  background:rgba(25,29,39,.9);visibility:hidden;opacity:0;pointer-events:none;
}
.rw802-shell.rw8079-immersive .rw802-toolbar:hover .rw8078-location,
.rw802-shell.rw8079-immersive .rw802-toolbar:focus-within .rw8078-location {visibility:visible;opacity:1;}

/* Load v74's ORIGINAL support badges: the CSS is not global on /graphic/.
   Override only the reader-wide anchor color so existing button text remains styled. */
.rw802-shell .rw8078-author-support .rw74-support-link {color:var(--text);}
.rw802-shell .rw8078-author-support .rw74-support-link:hover,
.rw802-shell .rw8078-author-support .rw74-support-link:focus-visible {color:var(--accent);}

/* v80.8.4 — protected, full-viewport display images with nonintrusive loading. */
.rw802-page .rw8084-picture { display:block;width:100%;height:100%;min-width:0;min-height:0; }
.rw802-page .rw8084-picture img {display:block;width:100%;height:100%;max-height:100%;object-fit:contain;}
.rw802-art-stage .rw8084-loader {
  position:absolute;inset:0;z-index:4;pointer-events:none;display:grid;place-items:center;
  background:color-mix(in srgb,var(--rw802-bg,var(--bg,#14171d)) 58%,transparent);
  opacity:1;transition:opacity .15s ease;
}
.rw802-art-stage .rw8084-loader[hidden] {display:none !important;}
.rw802-art-stage .rw8084-loader-out {opacity:0;}
.rw8084-loader-inner {
  display:flex;flex-direction:column;align-items:center;gap:.8rem;
  padding:1.15rem 1.6rem;border-radius:1rem;
  border:1px solid color-mix(in srgb,var(--border,#353d49) 75%,transparent);
  background:color-mix(in srgb,var(--surface,#1d222b) 92%,transparent);
  box-shadow:0 8px 35px rgba(0,0,0,.25);backdrop-filter:blur(8px);
  max-width:min(90vw,320px);color:var(--rw802-fg,var(--text,#eceef3));
}
.rw8084-loader-inner img {display:block;max-width:180px;width:auto;height:auto;max-height:70px;object-fit:contain;}
.rw8084-loader-caption {font-size:.78rem;color:var(--rw802-muted,var(--muted,#bac0ce));text-align:center;}
.rw8084-loading-shimmer {width:min(190px,55vw);height:3px;position:relative;overflow:hidden;border-radius:3px;background:color-mix(in srgb,var(--border,#353d49) 65%,transparent);}
.rw8084-loading-shimmer:after {content:"";position:absolute;inset:0;width:45%;background:var(--rw802-accent,var(--accent,#c6a6e7));border-radius:3px;animation:rw8084-travel 1.2s ease-in-out infinite alternate;}
@keyframes rw8084-travel {from{transform:translateX(-110%);}to{transform:translateX(330%);}}
@media (prefers-reduced-motion:reduce) {.rw8084-loading-shimmer:after{animation:none;width:100%;opacity:.6;}}

/* v80.8.41 — normal reader fits beneath the existing website header.
 * Fullscreen/theater retain the full viewport. These rules are scoped to the
 * illustrated reader and cannot alter the ordinary chapter reader. */
.rw802-shell:not(.rw8079-immersive):not(.rw802-theater):not(:fullscreen) .rw802-art-stage {
  height:var(--rw8041-stage-height,calc(100dvh - 8.6rem));
  min-height:0;
}
.rw802-shell .rw802-toolbar {position:relative;}
.rw802-shell:not(.rw8079-immersive):not(.rw802-theater):not(:fullscreen) .rw802-heading {
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:max-content;max-width:calc(100% - 2 * var(--rw8041-heading-clearance,12rem) - .4rem);
  text-align:center;pointer-events:none;
}
.rw802-shell .rw802-toolbar-actions,.rw802-shell .rw802-back {position:relative;z-index:1;}
@media (max-width:620px) {
 /* Five reader actions leave no horizontal room for the title on phones.
    Give the title its own first line; fit sizing includes this extra row. */
 .rw802-shell:not(.rw8079-immersive):not(.rw802-theater):not(:fullscreen) .rw802-toolbar {height:5.15rem;align-items:flex-end;}
 .rw802-shell:not(.rw8079-immersive):not(.rw802-theater):not(:fullscreen) .rw802-heading {
   top:.28rem;transform:translateX(-50%);
   max-width:calc(100% - 1.6rem);
 }
}
