/* A single stable image slot shared by the home page and /comics. */
html body main .comic-reader .reader-entry{width:min(100%,470px);margin:12px auto;scroll-margin-top:16px;min-width:0}
html body main .comic-reader .reader-relation{display:flex;flex-direction:column;gap:4px;margin:8px 0;padding:12px;border:1px solid #98743A;border-radius:8px;background:#F8F3E4;color:#102B3A!important;box-sizing:border-box;overflow-wrap:anywhere;word-break:keep-all}
html body main .comic-reader .reader-relation strong{font-size:20px!important;font-weight:800;line-height:1.5!important;color:#102B3A!important}
html body main .comic-reader .reader-relation span{font-size:18px!important;line-height:1.55!important;color:#102B3A!important}
html body main .comic-reader .reader-hook{background:#F8F3E4;border-left:3px solid #98743A;padding:8px 10px;box-sizing:border-box;font-size:18px!important;font-weight:750;line-height:1.5!important;margin:8px 0!important;color:#102B3A!important;white-space:normal!important;overflow-wrap:anywhere;word-break:keep-all}
html body main .comic-reader .reader-scene-relation{background:#F8F3E4;padding:8px 10px;border-radius:6px;box-sizing:border-box;font-size:17px!important;font-weight:700;line-height:1.5!important;margin:8px 0!important;color:#102B3A!important;overflow-wrap:anywhere;word-break:keep-all}
html body main .comic-reader .reader-scene-relation[hidden]{display:none!important}
body main .comic-reader .reader-toc{margin:8px 0 14px;padding:12px;border:1px solid #DCC18A;border-radius:10px;background:#F8F3E4;color:#102B3A;scroll-margin-top:16px}
body main .comic-reader .reader-toc h2{font-size:20px!important;margin:0 0 8px!important;color:#102B3A!important}
body main .comic-reader .reader-toc-books{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body main .comic-reader .reader-toc-books a{display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:44px;padding:10px;border:2px solid transparent;border-radius:8px;background:#FFFFFF;color:#102B3A!important;text-decoration:none;white-space:normal!important;overflow-wrap:anywhere}
body main .comic-reader .reader-toc-books a[aria-current="true"]{border-color:#98743A;background:#F1E4C3}
body main .comic-reader .reader-toc-books strong{font-size:18px!important;line-height:1.5}
body main .comic-reader .reader-toc-books span{font-size:16px!important;line-height:1.5}
body main .comic-reader .reader-title{font-size:20px!important;line-height:1.4!important;min-height:1.4em;margin:8px 0 4px!important;white-space:normal!important;overflow-wrap:anywhere}
body main .comic-reader .reader-back-toc{display:flex;align-items:center;justify-content:center;min-height:44px;width:min(100%,470px);margin:6px auto;border:1px solid #DCC18A;border-radius:8px;background:#F8F3E4;color:#102B3A!important;font-size:17px;font-weight:700;text-decoration:none}
body main .comic-reader{min-width:0;max-width:100%;color:#F4EBDD}
body main .comic-reader .reader-picker{display:flex!important;align-items:center;gap:8px;margin:0!important;padding:0!important;font-size:17px!important}
body main .comic-reader .reader-picker select{flex:1;min-width:0;max-width:100%;min-height:44px;padding:8px;font:inherit;background:#173240!important;color:#F4EBDD!important;border:1px solid #DCC18A;border-radius:8px}
body main .comic-reader .reader-position{font-size:17px!important;font-weight:800;line-height:1.45!important;min-height:26px;margin:6px 0!important;color:#E9CE93!important}
body main .comic-reader .reader-frame{display:block!important;position:relative;width:min(100%,470px)!important;aspect-ratio:auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:8px auto!important;padding:0!important;overflow:visible!important;overflow-anchor:none;touch-action:pan-y pinch-zoom;background:transparent;border-radius:8px}
body main .comic-reader .reader-frame>a{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;line-height:0}
body main .comic-reader .reader-frame img{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-width:100%!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center;margin:0!important;padding:0!important;border-radius:8px}
body main .comic-reader .reader-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(100%,470px);margin:0 auto!important;padding:0!important}
body main .comic-reader .reader-controls button{display:flex;align-items:center;justify-content:center;min-height:48px!important;width:100%;min-width:0;padding:8px!important;border:1px solid #DCC18A;border-radius:8px;background:#DCC18A!important;color:#102B3A!important;-webkit-text-fill-color:currentColor!important;font-size:18px!important;font-weight:800;line-height:1.4!important;opacity:1!important}
body main .comic-reader .reader-controls button:disabled{background:#173240!important;color:#DFE6E1!important;border-color:#DCC18A66!important;cursor:default}
body main .comic-reader :is(button,select,a):focus-visible,body main .comic-reader .reader-frame:focus-visible{outline:3px solid #E9CE93;outline-offset:3px}
body main .comic-reader .reader-status{min-height:24px;line-height:1.4!important;font-size:16px!important;margin:4px 0!important;color:#F4EBDD!important}
body main .comic-reader .reader-tip{font-size:16px!important;line-height:1.45!important;margin:4px 0!important;color:#F4EBDD!important}
body main .comic-reader .reader-notes{margin:6px 0!important;padding:0!important;border:0!important}
body main .comic-reader .reader-notes>summary{min-height:44px;display:flex;align-items:center;font-size:17px;cursor:pointer}
@media(max-width:600px){body main .comic-reader .reader-picker{font-size:16px!important}body main .comic-reader .reader-position{font-size:16px!important}}
@media(max-width:600px){body main .comic-reader .reader-toc-books{grid-template-columns:1fr}body main .comic-reader .reader-title{font-size:18px!important;min-height:2.8em}}
/* Compact full-width titles; content may grow, touch targets never shrink. */
html body main .comic-reader .reader-toc{padding:8px!important;margin:8px 0 10px!important}
html body main .comic-reader .reader-toc-books>a{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px!important;min-height:52px!important;min-width:44px;max-width:100%;padding:8px 10px!important;box-sizing:border-box;text-align:left!important;white-space:normal!important;word-break:keep-all;overflow-wrap:anywhere}
html body main .comic-reader .reader-toc-books strong{font-size:17px!important;line-height:1.35!important}
html body main .comic-reader .reader-toc-books span{font-size:16px!important;line-height:1.3!important}
html body main .comic-reader .reader-toc-books>a[aria-current="true"]{border-color:#98743A;background:#F1E4C3;box-shadow:inset 4px 0 #B59147}
html body main .comic-reader .reader-frame{scroll-margin-top:16px}
html body main .comic-reader .reader-back-toc{min-height:52px!important}
@media(max-width:760px){html body main .comic-reader .reader-toc-books{grid-template-columns:minmax(0,1fr)!important}html body main .comic-reader .reader-title{min-height:1.4em}}

/* Episode covers remain separate from the readable artwork. */
html body main .comic-reader .reader-toc-books>a{display:grid!important;grid-template-columns:80px minmax(0,1fr)!important;align-items:center!important;gap:12px!important;padding:12px!important}
html body main .comic-reader .reader-toc-thumb{display:block!important;width:80px!important;height:112px!important;max-width:100%!important;object-fit:contain;object-position:center;border-radius:6px;margin:0!important}
html body main .comic-reader .reader-toc-copy{display:flex;flex-direction:column;gap:8px;min-width:0}
html body main .comic-reader .reader-toc-copy strong{font-size:18px!important;line-height:1.5!important}
html body main .comic-reader .reader-coming-soon{width:min(100%,470px);box-sizing:border-box;margin:10px auto;padding:14px;border:1px solid #DCC18A;border-radius:8px;color:#FFD76A;font-size:20px;font-weight:800;text-align:center}
html body main .comic-reader [hidden]{display:none!important}
@media(max-width:380px){html body main .comic-reader .reader-toc-books>a{grid-template-columns:64px minmax(0,1fr)!important;gap:10px!important}html body main .comic-reader .reader-toc-thumb{width:64px!important;height:96px!important}}

/* Bounded latest covers; the complete catalog stays closed until requested. */
html body main .comic-reader .reader-start-actions{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 10px}
html body main .comic-reader .reader-start-actions>a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #98743A;border-radius:8px;background:#F1E4C3;color:#102B3A!important;font-size:16px!important;font-weight:750;line-height:1.4;text-decoration:none;box-sizing:border-box}
html body main .comic-reader .reader-latest-label{font-size:16px!important;line-height:1.4!important;margin:4px 0 6px!important;color:#102B3A!important}
html body main .comic-reader .reader-latest-books{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}
html body main .comic-reader .reader-latest-books>a{grid-template-columns:48px minmax(0,1fr)!important;gap:9px!important;padding:8px!important;min-height:80px!important}
html body main .comic-reader .reader-latest-books .reader-toc-thumb{width:48px!important;height:64px!important}
html body main .comic-reader .reader-latest-books .reader-toc-copy{gap:4px}
html body main .comic-reader .reader-latest-books .reader-toc-copy strong{font-size:16px!important;line-height:1.35!important}
html body main .comic-reader .reader-latest-books .reader-toc-copy span{font-size:14px!important;line-height:1.35!important}
html body main .comic-reader .reader-full-toc{margin:10px 0 0!important;padding:0!important;border:1px solid #98743A!important;border-radius:8px;background:#FFF!important;color:#102B3A!important}
html body main .comic-reader .reader-full-toc>summary{min-height:48px;padding:10px 12px;box-sizing:border-box;font-size:17px!important;font-weight:800;cursor:pointer;color:#102B3A!important}
html body main .comic-reader .reader-toc-ranges{padding:0 8px 8px}
html body main .comic-reader .reader-toc-range{margin:6px 0!important;padding:0!important;border:1px solid #DCC18A!important;border-radius:6px;background:#F8F3E4!important}
html body main .comic-reader .reader-toc-range>summary{min-height:44px;padding:10px;box-sizing:border-box;font-size:16px!important;font-weight:750;cursor:pointer;color:#102B3A!important}
html body main .comic-reader .reader-toc-range>summary span{font-size:14px!important;font-weight:500;margin-left:10px}
html body main .comic-reader .reader-title-list>a{display:flex;align-items:center;min-height:44px;padding:8px 10px;border-top:1px solid #DCC18A66;color:#102B3A!important;text-decoration:none;box-sizing:border-box;overflow-wrap:anywhere}
html body main .comic-reader .reader-title-list strong{font-size:16px!important;line-height:1.4!important}
html body main .comic-reader .reader-title-list>a[aria-current="true"]{background:#F1E4C3;box-shadow:inset 4px 0 #B59147}
@media(max-width:760px){html body main .comic-reader .reader-latest-books{grid-template-columns:minmax(0,1fr)!important}html body main .comic-reader .reader-start-actions>a{flex:1 1 100%}}

/* Prevent the previous button/image from anchoring navigation after layout. */
body main .comic-reader{overflow-anchor:none}

/* Normal reading is bounded by its parent, never by the source image pixels. */
html body main .comic-reader{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
html body main .comic-reader .reader-entry{width:100%!important;max-width:470px!important;min-width:0!important;box-sizing:border-box!important;margin-inline:auto!important;transform:none!important}
html body main .comic-reader .reader-frame{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;margin-inline:0!important;transform:none!important}
html body main .comic-reader .reader-frame>a{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;transform:none!important}
html body main .comic-reader .reader-frame img{width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;box-sizing:border-box!important;position:static!important;transform:none!important}
html body.comic-site>main{min-width:0!important;max-width:calc(100% - 32px)!important;box-sizing:border-box!important}
/* Important heading rules use a layer. Match that layer so the comic's compact
   title is not replaced by the site's 26–32px section headings. */
@layer nasabu-heading-hierarchy{
 html body main .comic-reader .reader-title{font-size:20px!important;line-height:1.4!important;margin:8px 0 4px!important}
 @media(max-width:760px){html body main .comic-reader .reader-title{font-size:18px!important;margin:6px 0 4px!important}}
}
/* Native page links retain the established button appearance. */
html body main .comic-reader .reader-controls> :is(a,span){display:flex!important;align-items:center;justify-content:center;width:100%;min-width:0;min-height:56px!important;padding:12px 16px!important;box-sizing:border-box;border:1px solid #DCC18A;border-radius:8px;background:#DCC18A!important;color:#102B3A!important;-webkit-text-fill-color:currentColor!important;font-size:18px!important;font-weight:800;line-height:1.45!important;text-decoration:none}
html body main .comic-reader .reader-controls>.reader-disabled{background:#173240!important;color:#DFE6E1!important;border-color:#DCC18A66;cursor:default}
/* The reading anchor begins immediately above the artwork, after full context. */
html body main .comic-reader .reader-reading-start{width:100%;max-width:100%;min-width:0;box-sizing:border-box;margin:0!important;scroll-margin-top:16px}
html body main .comic-reader .reader-reading-title{font-size:16px!important;font-weight:800;line-height:1.35!important;color:#102B3A!important;margin:0 0 4px!important;overflow-wrap:anywhere;word-break:keep-all}

/* Unique native anchors share the title origin; prevent smooth/anchored drift. */
.reader-destination{display:block;height:0;scroll-margin:0}
html.comic-aligning,html.comic-aligning body{scroll-behavior:auto!important;overflow-anchor:none!important}
html.comic-aligning .comic-reader,html.comic-aligning .reader-entry{overflow-anchor:none!important}

/* Reader navigation owns a viewport surface; document restoration cannot move it. */
html body main .comic-reader.reader-reading-mode{position:fixed!important;inset:0!important;z-index:1000;width:100%!important;max-width:none!important;height:100vh;height:100dvh;min-height:0;margin:0!important;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)!important;display:flex!important;flex-direction:column;box-sizing:border-box;background:#FCFBF7;color:#102B3A;overflow:hidden}
html body main .reader-reading-mode .reader-scroll-surface{flex:1 1 auto;min-height:0;min-width:0;width:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scroll-behavior:auto!important;overflow-anchor:none;padding:12px 16px 20px;box-sizing:border-box;touch-action:pan-y pinch-zoom}
html body main .reader-reading-mode .reader-entry{margin:0 auto!important}
html body main .reader-reading-mode .reader-fixed-controls{flex:0 0 auto;width:min(100%,502px);min-width:0;align-self:center;padding:8px 16px;box-sizing:border-box;border-top:1px solid #DCC18A;background:#FCFBF7}
html body main .reader-reading-mode .reader-fixed-controls .reader-controls{margin:0!important;width:100%!important}
html body main .reader-reading-mode .reader-fixed-controls .reader-back-toc{display:block;text-align:center;margin:4px 0 0!important;min-height:40px;line-height:40px;color:#102B3A!important}
html body main .reader-reading-mode .reader-fixed-controls .reader-coming-soon{margin:4px 0!important;text-align:center}
html body main .reader-reading-mode .reader-position{color:#102B3A!important}
/* Full-page fit: the figure receives the space remaining after compact controls. */
html body main .reader-fit-mode{top:var(--reader-viewport-top,0px)!important;bottom:auto!important;height:var(--reader-viewport-height,100dvh)!important}
html body main .reader-fit-mode .reader-scroll-surface{display:flex!important;flex-direction:column;padding:6px 8px!important;overflow:hidden!important}
html body main .reader-fit-mode .reader-scroll-surface>.reader-entry{display:flex;flex:1;flex-direction:column;width:100%!important;max-width:none;min-height:0}
html body main .reader-fit-mode .reader-reading-start{display:flex;flex-direction:column;flex:1;min-height:0;width:100%}
html body main .reader-fit-mode .reader-reading-title{font-size:14px!important;line-height:1.3!important;text-align:center;margin:0 0 2px!important}
html body main .reader-fit-mode .reader-position{font-size:13px!important;line-height:1.3!important;text-align:center;margin:0 0 4px!important}
html body main .reader-fit-mode .reader-frame{flex:1;display:flex!important;min-height:0!important;width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;margin:0!important;align-items:center;justify-content:center}
html body main .reader-fit-mode .reader-frame>a{display:flex!important;align-items:center;justify-content:center;width:100%!important;height:100%!important;max-height:100%!important;line-height:0}
html body main .reader-fit-mode .reader-frame img{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;border-radius:5px}
html body main .reader-fit-mode .reader-fixed-controls{display:grid;grid-template-columns:1fr auto;gap:4px;padding:6px 8px!important}
html body main .reader-fit-mode .reader-fixed-controls .reader-controls{grid-column:1/-1}
html body main .reader-fit-mode .reader-fixed-controls .reader-controls>:is(a,span){min-height:44px!important;padding:6px 10px!important;font-size:16px!important}
html body main .reader-fit-mode .reader-fixed-controls .reader-back-toc{min-height:36px!important;line-height:36px!important;margin:0!important;font-size:14px}
html body main .reader-fit-mode .reader-coming-soon{grid-column:1/-1;font-size:13px!important;line-height:1.3!important}
html body main .reader-fit-mode .reader-info-button{padding:4px 10px;min-height:36px;border:1px solid #DCC18A;border-radius:6px;background:#F8F3E4;color:#102B3A;font-size:14px;font-weight:700}
html body main .comic-reader :is(.reader-zoom,.reader-fit-info){position:fixed;inset:0;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:0!important;border:0;box-sizing:border-box;background:#FCFBF7;color:#102B3A}
html body main .comic-reader .reader-zoom[open]{display:flex;flex-direction:column}
html body main .comic-reader .reader-zoom-bar{display:flex;justify-content:space-between;align-items:center;flex:0 0 auto;gap:8px;padding:6px 12px;border-bottom:1px solid #DCC18A}
html body main .comic-reader :is([data-reader-zoom-close],[data-reader-info-close]){min-height:44px;padding:8px 16px;border:1px solid #DCC18A;border-radius:6px;background:#DCC18A;color:#102B3A;font-size:16px;font-weight:800}
html body main .comic-reader .reader-zoom-scroll{flex:1;min-height:0;overflow:auto!important;touch-action:pan-x pan-y pinch-zoom;overscroll-behavior:contain}
html body main .comic-reader .reader-zoom-scroll img{display:block;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;object-fit:contain}
html body main .comic-reader .reader-fit-info{overflow:auto!important;padding:12px!important}
html body main .comic-reader :is(.reader-zoom,.reader-fit-info):not([open]){display:none!important}
/* Exit is direct navigation to the academy, visible on every shared reader page. */
html body main .comic-reader .reader-exit{display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;min-width:100px;min-height:48px!important;padding:8px 12px!important;border:2px solid #DCC18A!important;border-radius:8px;background:#102B3A!important;color:#FFF2CF!important;-webkit-text-fill-color:#FFF2CF!important;font-size:18px!important;font-weight:800!important;line-height:1.35!important;text-decoration:none!important;white-space:nowrap}
html body main .comic-reader .reader-exit:focus-visible{outline:3px solid #ae7828;outline-offset:3px}
html body main .reader-fit-mode .reader-fixed-controls{grid-template-columns:minmax(0,1fr) auto auto}
html body main .reader-fit-mode .reader-fixed-controls .reader-controls,html body main .reader-fit-mode .reader-coming-soon{grid-column:1/-1}
html body main .comic-reader .reader-zoom-bar{flex-wrap:wrap}
@media(max-width:360px){html body main .reader-fit-mode .reader-fixed-controls{gap:3px;padding-inline:6px!important}html body main .reader-fit-mode .reader-fixed-controls .reader-back-toc{font-size:13px}.reader-fit-mode .reader-info-button{padding-inline:6px}.comic-reader .reader-exit{padding-inline:8px!important}}

/* v317: full-area touch targets and synchronous visual feedback. */
html body main .comic-reader .reader-controls{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;position:relative;z-index:3}
html body main .comic-reader .reader-controls>:is(a,span){display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;min-width:48px!important;min-height:54px!important;width:100%!important;padding:8px!important;font-size:17px!important;line-height:1.4!important;white-space:nowrap!important;touch-action:manipulation;pointer-events:auto;user-select:none}
html body main .comic-reader .reader-controls>a:active{background:#b8954e!important;transform:scale(.98)}
html body main .comic-reader[data-nav-busy=true] .reader-controls>a{opacity:.65;cursor:wait}
html body main .reader-fit-mode .reader-fixed-controls{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);gap:6px;padding:6px 8px!important}
html body main .reader-fit-mode .reader-fixed-controls>:is(.reader-back-toc,.reader-exit,.reader-info-button){display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;min-width:48px!important;min-height:48px!important;width:100%!important;font-size:14px!important;line-height:1.3!important;padding:6px!important;white-space:nowrap!important;touch-action:manipulation;margin:0!important}
html body main .reader-fit-mode .reader-load-status{grid-column:1/-1;text-align:center;font-size:13px!important;line-height:1.4!important}
html body main .reader-fit-mode .reader-load-status:empty{display:none}

html body main .comic-reader.reader-fit-mode .reader-fixed-controls .reader-controls>:is(a,span){min-height:54px!important;min-width:48px!important;font-size:17px!important;line-height:1.4!important;padding:8px!important;white-space:nowrap!important}
