/* Scoped to the private reader; no checkout, catalogue or other page styles. */
.ast-reader-shell:has(.ast-publication-page){max-width:1280px;margin-inline:auto;min-width:0;overflow-wrap:anywhere;--pub-bg:#14161a;--pub-fg:#e9e5db;--pub-accent:#d4ad70;--pub-size:19px;--pub-line:1.8;--pub-font:Georgia,serif;--pub-width:760px;--pub-zoom:1}
.ast-reader-shell[data-pub-theme="light"]{--pub-bg:#fff;--pub-fg:#222;--pub-accent:#765020}
.ast-reader-shell[data-pub-theme="sepia"]{--pub-bg:#f3e8d2;--pub-fg:#342a20;--pub-accent:#775122}
.ast-publication-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:16px;border:1px solid #ffffff24;border-radius:12px;background:#141519;color:#ece9e2;margin:16px 0}
.ast-publication-controls label{display:grid;gap:5px;font:14px/1.5 system-ui,sans-serif;min-width:105px;flex:1 1 105px;color:#ddd}
.ast-publication-controls select,.ast-publication-controls button{border:1px solid #ffffff30;color:#f5efe5;background:#23252a;border-radius:6px;min-height:42px;padding:8px;font:14px system-ui,sans-serif;max-width:100%}
.ast-publication-controls input[type=range]{width:100%;accent-color:#d4ad70;min-height:42px}
.ast-publication-comic-controls{display:none;align-items:center;gap:10px;flex-wrap:wrap;flex:1 0 100%;border-top:1px solid #ffffff20;padding-top:10px}
.ast-reader-shell[data-pub-mode="comic"] .ast-publication-comic-controls{display:flex}
.ast-reader-shell .ast-publication-page{box-sizing:border-box;min-width:0;max-width:var(--pub-width);width:100%;margin:24px auto!important;padding:clamp(18px,4vw,48px)!important;background:var(--pub-bg)!important;color:var(--pub-fg)!important;font-family:var(--pub-font)!important;font-size:var(--pub-size)!important;line-height:var(--pub-line)!important;border:1px solid #8883;border-radius:12px;overflow-wrap:anywhere;overflow-x:auto;box-shadow:0 12px 40px #0002}
.ast-reader-shell .ast-publication-page :is(p,li,blockquote,figcaption,td,th,dd,dt,span,div){font-family:inherit;font-size:inherit;line-height:inherit;color:inherit}
.ast-reader-shell .ast-publication-page :is(h1,h2,h3,h4,h5,h6){color:inherit;font-family:inherit;line-height:1.25;margin:1.35em 0 .6em;overflow-wrap:anywhere}
.ast-reader-shell .ast-publication-page h1{font-size:1.8em}.ast-reader-shell .ast-publication-page h2{font-size:1.45em}.ast-reader-shell .ast-publication-page h3{font-size:1.2em}
.ast-reader-shell .ast-publication-page p{margin:0 0 1em}.ast-reader-shell .ast-publication-page figure{margin:1.4em 0;max-width:100%}.ast-reader-shell .ast-publication-page img{display:block;max-width:100%;width:auto;height:auto;margin:1em auto;object-fit:contain;box-shadow:none;border-radius:3px}.ast-reader-shell .ast-publication-page figcaption{font-size:.84em;text-align:center;opacity:.8}
.ast-reader-shell .ast-publication-page :is(pre,table){display:block;max-width:100%;overflow:auto}.ast-reader-shell .ast-publication-page pre{white-space:pre-wrap;padding:1em;border:1px solid #8885;border-radius:6px;font-size:.85em}.ast-reader-shell .ast-publication-page :is(th,td){padding:.55em;border:1px solid #8885}.ast-reader-shell .ast-publication-page blockquote{border-inline-start:3px solid var(--pub-accent);padding-inline-start:1em;margin-inline:0}.ast-reader-shell .ast-publication-page mark{background:#ffdf75;color:#222}.ast-reader-shell .ast-publication-page .ast-eyebrow{font:14px/1.4 system-ui,sans-serif;letter-spacing:.16em;color:var(--pub-accent);margin-bottom:20px}
.ast-reader-shell[data-pub-mode="comic"] .ast-publication-page{max-width:100%;text-align:center;padding:clamp(6px,2vw,24px)!important;overflow:auto;overscroll-behavior-x:contain}
.ast-reader-shell[data-pub-mode="comic"] .ast-publication-page img{max-width:none;width:calc(100% * var(--pub-zoom));height:auto;object-fit:contain;transform:none;margin:0 auto 16px}
.ast-reader-shell:fullscreen{background:#0d0e10;overflow:auto;padding:16px;box-sizing:border-box;width:100%;height:100%}
.ast-reader-shell :focus-visible{outline:2px solid #d4ad70;outline-offset:3px}
@media(max-width:600px){.ast-publication-controls{padding:10px;gap:8px}.ast-publication-controls label{flex-basis:125px}.ast-reader-shell .ast-publication-page{margin:12px auto!important;padding:16px!important;border-radius:8px}.ast-reader-shell .ast-reader-toolbar{display:flex;flex-wrap:wrap;gap:8px}.ast-reader-shell .ast-reader-toolbar>*{max-width:100%}}
.ast-publication-controls label{min-width:0}.ast-publication-controls label>select,.ast-publication-controls label>input{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
