/* Extend input handling to the stage margins without reserving artwork space. */
.rw802-shell.rwga2-ready .rw802-art-stage {
    touch-action: pan-y;
}
.rw802-shell.rwga2-ready .rw802-art-stage .rw802-edge {
    width: clamp(28px, 3vw, 64px);
}
@media (hover: none), (max-width: 900px) {
    .rw802-shell.rwga2-ready .rw802-art-stage .rw802-edge {
        width: clamp(28px, 8vw, 50px);
    }
}

/* Keep the favorite buttons in the physical outside corners in RTL spreads. */
.rw802-shell.rwga2-ready.rw802-rtl:not(.rwga2-single)
.rw802-spread:has(.rw8076-page-frame ~ .rw8076-page-frame)
.rw8076-page-frame[data-slot="1"] .rw8076-page-favorite {
    left: auto;
    right: clamp(.65rem, 1.5vw, 1.25rem);
}
.rw802-shell.rwga2-ready.rw802-rtl:not(.rwga2-single)
.rw802-spread:has(.rw8076-page-frame ~ .rw8076-page-frame)
.rw8076-page-frame[data-slot="2"] .rw8076-page-favorite {
    right: auto;
    left: clamp(.65rem, 1.5vw, 1.25rem);
}

/* Desktop Classic keeps its full toolbar until the reader hides it. */
@media (min-width: 901px) and (hover: hover), (min-width: 901px) and (pointer: fine) {
    .rw802-shell.rwga2-ready.rw208s-tools-hidden:not(.rwga2-immersive):not(.rw8079-immersive):not(.rw802-theater):not(:fullscreen) .rwga2-actions {
        display: none;
    }
    .rw802-shell.rwga2-ready.rw208s-tools-hidden:not(.rwga2-immersive):not(.rw8079-immersive):not(.rw802-theater):not(:fullscreen) .rw802-toolbar .rwga2-menu {
        display: inline-flex;
    }
}
