/* Continuous Han reader: published type, control geometry, and character colors. */
html.rv-unified[data-rv-han]{--han-fill:#963c48;--han-accent:#f1a1aa;--reading-size:18px;scroll-padding-top:0}
html[data-rv-han] *{box-sizing:border-box}
html[data-rv-han] body{margin:0;background:var(--rv-exterior);color:var(--rv-text)}
html[data-rv-han] [hidden]{display:none!important}
html[data-rv-han] :is(h1,h2,p,figure){margin:0}
html[data-rv-han] a{color:var(--rv-gold);text-underline-offset:4px}
html[data-rv-han] .sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
html[data-rv-han] .skip-link{position:fixed;top:-100px;left:16px;z-index:9999;padding:12px}
html[data-rv-han] :is(.rv-eyebrow,.rv-reading-facts,.rv-scene-meta,figcaption){font:400 12px/1.6 Inter,system-ui,sans-serif;color:var(--rv-muted)}
html[data-rv-han] .rv-han-sigil{width:24px;height:24px;color:var(--rv-gold);flex-shrink:0}
html[data-rv-han] .rv-eyebrow{display:flex;align-items:center;gap:12px;letter-spacing:.08em}
html[data-rv-han] .rv-overture{max-width:1600px;margin:auto;display:grid;grid-template-columns:1.1fr 1fr;gap:64px;align-items:center;padding:48px;min-height:calc(100svh - var(--rv-measured-nav-h,80px));background:radial-gradient(ellipse at 30% 20%,#963c4818,transparent 70%)}
html[data-rv-han] .rv-cover-copy{min-width:0}
html[data-rv-han] .rv-back{display:inline-flex;align-items:center;gap:12px;min-height:44px;font:400 14px/1.5 Inter,system-ui,sans-serif;margin-bottom:32px}
html[data-rv-han] .rv-overture h1{font:400 clamp(44px,4.6vw,68px)/1.15 Cinzel,Georgia,serif;margin:24px 0}
html[data-rv-han] .rv-intro{font:300 18px/1.7 'Source Serif 4',Georgia,serif;max-width:46ch;color:var(--rv-muted)}
html[data-rv-han] .rv-reading-facts{margin-top:24px}
html[data-rv-han] .rv-reading-facts span{margin-inline:8px}
html[data-rv-han] .rv-cover-actions{display:flex;align-items:center;flex-wrap:wrap;gap:24px;margin-top:32px}
html[data-rv-han] .rv-han-begin{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:48px;padding:12px 24px;background:var(--han-fill);border:1px solid var(--han-accent);border-radius:4px;color:var(--rv-text);font:400 14px/1.5 Inter,system-ui,sans-serif;text-decoration:none}
html[data-rv-han] #resume-reading{font:400 14px/1.5 Inter,system-ui,sans-serif;min-height:44px;align-items:center;display:inline-flex}
html[data-rv-han] .rv-cover-art{max-width:560px;width:100%;justify-self:center}
html[data-rv-han] .rv-cover-art img{width:100%;height:auto;max-height:calc(100svh - var(--rv-measured-nav-h,80px) - 144px);object-fit:contain}
html[data-rv-han] .rv-image-link{display:block;position:relative;cursor:zoom-in;background:var(--rv-reading)}
html[data-rv-han] figure.media img{display:block;object-fit:contain}
html[data-rv-han] figure.media figcaption{padding-top:12px}
html[data-rv-han] .rv-art-hint{position:absolute;bottom:12px;right:12px;padding:8px 12px;display:inline-flex;align-items:center;gap:8px;font:400 12px/1.6 Inter,system-ui,sans-serif;color:var(--rv-text);background:#111119e8;border:1px solid var(--rv-border);border-radius:4px}
html[data-rv-han] #reader-bar #next{background:var(--han-fill);border-color:var(--han-accent);color:var(--rv-text)}
html[data-rv-han] #reader-bar #next:hover:not(:disabled){box-shadow:inset 0 0 0 1px var(--han-accent)}
html[data-rv-han] #scene-list a[aria-current=step]{border-color:var(--han-accent);background:linear-gradient(100deg,#963c4833,var(--rv-elevated))}
html[data-rv-han] .rv-current-label{color:var(--han-accent)}
html[data-rv-han] .rv-sequence{max-width:1600px;margin:auto}
html[data-rv-han] .rv-scene{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);column-gap:64px;align-items:start;padding:64px 48px;border-bottom:1px solid var(--rv-separator);background:linear-gradient(120deg,#963c4806,transparent);scroll-margin-top:calc(var(--rv-measured-nav-h,80px) + var(--rv-sticky-bar-h,68px) - 40px)}
html[data-rv-han] .rv-scene-heading{grid-column:2;grid-row:1;margin-bottom:24px;min-width:0}
html[data-rv-han] .rv-scene-heading h2{font:400 44px/1.15 Cinzel,Georgia,serif;letter-spacing:normal;margin-top:16px}
html[data-rv-han] .rv-scene-meta{color:var(--han-accent)}
html[data-rv-han] .rv-scene-meta span{padding-inline:8px}
html[data-rv-han] .rv-scene-art{grid-column:1;grid-row:1/3;position:sticky;top:calc(var(--rv-measured-nav-h,80px) + var(--rv-sticky-bar-h,68px) + 24px);align-self:start;min-width:0}
html[data-rv-han] .rv-scene-art img{width:100%;height:auto;max-height:calc(100svh - var(--rv-measured-nav-h,80px) - var(--rv-sticky-bar-h,68px) - 96px)}
html[data-rv-han] .rv-scene-copy{grid-column:2;grid-row:2;min-width:0}
html[data-rv-han] .prose{font:300 var(--reading-size)/1.7 'Source Serif 4',Georgia,serif;max-width:68ch;overflow-wrap:break-word}
html[data-rv-han] .prose p{margin-bottom:20px}
html[data-rv-han] .prose .dropcap:first-letter{float:left;font:300 3.2em/.9 'Source Serif 4',Georgia,serif;color:var(--han-accent);margin:.08em .12em 0 0}
html[data-rv-han] .prose :is(.parchment,.callout){padding:24px;background:var(--rv-panel);border-left:3px solid var(--han-fill);margin-block:24px}
html[data-rv-han] .rv-continue{display:inline-flex;align-items:center;gap:24px;padding:12px 0;min-height:44px;font:400 14px/1.5 Inter,system-ui,sans-serif;margin-top:12px}
html[data-rv-han] .rv-unavailable{color:inherit;text-decoration:underline dotted;text-underline-offset:4px;cursor:help}
html[data-rv-han] .rv-ending{padding:64px 24px;text-align:center;background:radial-gradient(ellipse at bottom,#963c4820,transparent 70%)}
html[data-rv-han] .rv-ending .rv-eyebrow{justify-content:center}
html[data-rv-han] .rv-ending h2{font:400 44px/1.15 Cinzel,Georgia,serif;margin:24px 0}
html[data-rv-han] .rv-ending nav{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 24px}
html[data-rv-han] .rv-ending a{min-height:44px;display:inline-flex;align-items:center;font:400 14px/1.5 Inter,system-ui,sans-serif}
html[data-rv-han] #grimoire{font:400 14px/1.6 Inter,system-ui,sans-serif;color:var(--rv-muted);margin-top:48px}
html[data-rv-han] #grimoire small{display:block;font:400 12px/1.6 Inter,system-ui,sans-serif;margin-top:8px}
html[data-rv-han] .rv-media-error{font:400 14px/1.7 Inter,system-ui,sans-serif;color:var(--rv-muted);padding:16px}
html[data-rv-han] .rv-media-error button{background:var(--rv-panel);color:var(--rv-gold);border:1px solid var(--rv-gold);padding:8px 16px}
html[data-rv-han] #viewer-stage{position:relative;overflow:hidden;min-height:0;touch-action:none;display:grid;place-items:center}
html[data-rv-han] #viewer-image{position:absolute;max-width:none;max-height:none;transform-origin:center;user-select:none;pointer-events:none}
html[data-rv-han] #viewer-status{z-index:1;background:var(--rv-panel);color:var(--rv-text);padding:12px 16px;font:400 14px/1.5 Inter,system-ui,sans-serif}
html[data-rv-han] #viewer-status:empty{display:none}
html[data-rv-han] #viewer-retry{position:absolute;bottom:24px;z-index:2}
html[data-rv-han].rv-reading-tight .rv-scene-art{position:static}
@media(max-width:1100px){html[data-rv-han] :is(.rv-overture,.rv-scene){column-gap:32px}}
@media(max-width:900px){
 html[data-rv-han] .rv-overture{grid-template-columns:1fr;padding:32px 24px 48px;gap:32px;min-height:0}
 html[data-rv-han] .rv-overture h1{font-size:44px}
 html[data-rv-han] .rv-cover-art{max-width:520px}
 html[data-rv-han] .rv-cover-art img{max-height:none}
 html[data-rv-han] .rv-scene{grid-template-columns:minmax(0,1fr);padding:48px 24px;gap:24px;scroll-margin-top:calc(var(--rv-measured-nav-h,80px) + var(--rv-sticky-bar-h,68px) - 24px)}
 html[data-rv-han] .rv-scene-heading{grid-column:1;grid-row:1;margin:0}
 html[data-rv-han] .rv-scene-heading h2{font-size:32px}
 html[data-rv-han] .rv-scene-art{grid-column:1;grid-row:2;position:static;width:100%}
 html[data-rv-han] .rv-scene-art img{max-height:none}
 html[data-rv-han] .rv-scene-art[data-orientation=portrait]{max-width:480px;justify-self:center}
 html[data-rv-han] .rv-scene-copy{grid-column:1;grid-row:3}
 html[data-rv-han] .rv-ending h2{font-size:32px}
}
@media(max-width:560px){
 html[data-rv-han] #reader-bar{grid-template-columns:auto 1fr;gap:8px;padding:8px 16px}
 html[data-rv-han] #reader-bar :is(.rv-scene-nav,.rv-reader-tools){width:auto;gap:4px;flex-wrap:nowrap}
 html[data-rv-han] #scene-count{min-width:48px}
 html[data-rv-han] #open-contents span{display:none}
 html[data-rv-han] .rv-reader-fallback{margin-inline:16px}
}
@media(max-width:360px){html[data-rv-han] :is(.rv-overture,.rv-scene){padding-inline:16px}html[data-rv-han] .rv-overture h1{font-size:36px}html[data-rv-han] .rv-art-hint span{display:none}}
@media(max-height:620px){html[data-rv-han] .rv-scene-art{position:static}html[data-rv-han] .rv-scene-art img{max-height:none}}
@media print{html[data-rv-han] :is(.rv-scene,.rv-overture){display:block}html[data-rv-han] .rv-scene-art{position:static}html[data-rv-han] .rv-continue{display:none}}
