/* The door is a P1-only normal-reading layer. Removing door-open restores core layout. */
/* Hidden core focus must not scroll the door's containing block on rotation. */
.reader-shell.door-open{position:relative;display:block!important;width:100%!important;margin-inline:0!important;height:100dvh;min-height:100dvh;overflow:clip;background:#1f1d33}
.reader-shell.door-open>.reading-body,.reader-shell.door-open>.desktop-controls-sidebar,.reader-shell.door-open>.reader-toolbar,.reader-shell.door-open>.mobile-navigation{visibility:hidden;pointer-events:none}
.reader-shell.door-open>.desktop-controls-corner{position:absolute;right:8px;bottom:24px;z-index:10;display:flex;flex-direction:row;gap:6px}
.reader-shell.door-open>.reader-door{position:absolute;inset:0;z-index:9;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:18px 28px 76px;overflow:auto;background:radial-gradient(ellipse at 50% 115%,#e7b46a24 0,transparent 54%),#1f1d33;color:#f4eee7;touch-action:pan-y pinch-zoom}
.reader-door .reader-door-cover{display:block;flex:none;height:min(70dvh,calc(100dvh - 220px));aspect-ratio:1;max-width:100%;min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent;line-height:0;cursor:pointer}
.reader-door .reader-door-image{display:block;width:100%;height:100%;object-fit:contain}
.reader-door .reader-door-cover:hover{background:transparent;border:0}
.reader-door .reader-door-cover:focus-visible{outline:2px solid #e7b46a;outline-offset:5px}
.reader-door .reader-door-actions{display:flex;flex:none;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:440px;text-align:center}
.reader-door .reader-door-primary{width:100%;min-height:52px;padding:10px 18px;border:1px solid #e7b46a;border-radius:7px;background:#e7b46a;color:#1f1d33;font-size:1rem;line-height:1.5;font-weight:700;white-space:normal;overflow-wrap:anywhere}
.reader-door .reader-door-primary:hover{background:#efc48c;border-color:#efc48c}
.reader-door .reader-door-resume{margin:0;font-size:.78rem;line-height:1.5;color:#d4c9be;overflow-wrap:anywhere}
.reader-door .reader-door-start,.reader-door .reader-door-link{display:inline-flex;align-items:center;justify-content:center;min-height:32px;margin:0;padding:3px 0;border:0;background:transparent;color:#e7b46a;font-size:.78rem;font-weight:400;line-height:1.5;text-decoration:underline;text-underline-offset:3px}
.reader-door .reader-door-links{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap}
.reader-door .reader-door-start:hover,.reader-door .reader-door-link:hover{background:transparent;border:0;color:#f3d7b2}
.reader-door[data-layout="touch-portrait"] .reader-door-cover{flex:1 1 0;width:100%;height:0;max-height:80dvh;aspect-ratio:auto}
.reader-shell.door-open>.reader-door[data-layout="touch-landscape"]{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,440px);gap:28px;padding:20px 28px 76px}
.reader-door[data-layout="touch-landscape"] .reader-door-cover{justify-self:end;width:100%;height:min(80dvh,calc(100dvh - 110px));aspect-ratio:auto}
.reader-door[data-layout="touch-landscape"] .reader-door-actions{justify-self:start}
.reader-door[data-layout^="touch-"] .reader-door-start,.reader-door[data-layout^="touch-"] .reader-door-link{min-height:44px}
.reader-shell.door-open[data-door-layout="phone"]>.desktop-controls-corner,.reader-shell.door-open:not(:fullscreen)[data-door-layout="phone"]>.fullscreen-affordance{display:none!important}
.reader-shell.door-open>.reader-door[data-layout="phone"]{justify-content:center;gap:10px;padding:12px}
.reader-door[data-layout="phone"] .reader-door-cover{flex:1 1 0;width:100%;height:0;max-height:calc((100vw - 24px)*1.414214);aspect-ratio:auto}
.reader-door[data-layout="phone"] .reader-door-actions{max-width:none;gap:8px}
.reader-door[data-layout="phone"] .reader-door-links{gap:16px}
@media(pointer:coarse){.reader-door .reader-door-start,.reader-door .reader-door-link{min-height:44px}}
@media(prefers-reduced-motion:no-preference){.reader-door .reader-door-primary{transition:background .15s}}
