/* Keep the folded reference carousel from contributing offscreen 3D overflow. */
.ref-doboz:not([open]) .ref-lapok{display:none}
@media(max-width:700px){
 .ref-szinpad{overflow:clip;contain:paint}
 .reference-library{overflow-x:clip}
 .book-stage{perspective:4000px;overflow:clip;padding-top:34px;padding-bottom:32px}
 .reference-book{perspective:4000px;perspective-origin:50% 0}
 .book-spread,.mobile-paper-content.book-spread{grid-template-rows:auto minmax(0,1fr)}
 .book-page.left{padding:24px 22px 10px}
 .book-page.right,.mobile-paper-content .book-page.right{min-height:0;padding:8px 22px 100px;justify-content:flex-start}
 .book-page h3{margin:12px 0 10px;font-size:30px}
 .book-page .eyebrow{padding-bottom:10px}
 .book-tags{gap:3px 8px;margin-top:9px}
 .book-tags span{margin-right:0;padding:3px 0}
 .book-page .book-action{margin-top:0;padding-top:10px;min-height:30px}
 .book-image-button{flex:0 1 auto;min-height:0;align-self:center;max-width:100%;max-height:100%}
 .book-image-button img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}
 .image-caption{padding-top:8px;flex-shrink:0;line-height:1.4}
 .reference-book>.book-toolbar{bottom:9px;left:9px;right:9px}
 .reference-book>.book-toolbar button{width:44px;height:44px;font-size:21px}
 .reference-book>.book-toolbar .book-status{top:15px;left:45px;right:45px;min-width:0;font-size:8px}
 .notebook-grip:not([hidden]){bottom:55px;height:38px}
 .cover-front{padding:30px 26px}
 .cover-title{font-size:clamp(36px,10.7vw,47px)}
 .cover-mark{top:100px;right:26px;font-size:48px}
}
@media(max-width:360px){
 .book-page.left{padding:21px 18px 8px}
 .book-page.right,.mobile-paper-content .book-page.right{padding-left:18px;padding-right:18px}
 .book-page h3{font-size:27px;margin:10px 0 8px}
 .book-page p{font-size:12px;line-height:1.5}
}
@media(max-width:700px){.book-page.right:after{display:none}}
