/* Catalogue only: separate full-viewport rooms; reading views are untouched. */
html:has(body.aksara-paged-site), body.tv-site.aksara-paged-site {height:100%;overflow:hidden!important;margin:0!important;}
body.tv-site.aksara-paged-site {display:flex!important;flex-direction:column;height:100dvh!important;min-height:0!important;}
body.tv-site.aksara-paged-site>.tv-header {flex:0 0 auto;}
body.tv-site.aksara-paged-site>.tv-footer {display:none!important;}
body.tv-site.aksara-paged-site>#tinta-main {flex:1 1 0;min-height:0!important;min-width:0;overflow:hidden!important;padding:0!important;margin:0!important;display:flex;}
body.tv-site.aksara-paged-site .aksara-room {flex:1;min-height:0!important;width:100%;height:100%;overflow:hidden!important;}
body.tv-site.aksara-paged-site .aksara-room .aksara-entrance {height:100%!important;min-height:0!important;}
body.tv-site.aksara-paged-site .aksara-room .aksara-entrance .aksara-door-frame {height:100%!important;min-height:0!important;}
body.tv-site.aksara-paged-site .aksara-hall {height:100%;overflow:hidden;}
body.tv-site.aksara-paged-site .aksara-room .aksara-room-inner {height:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:clamp(6px,1.2vh,12px);padding:clamp(8px,1.6vh,18px) 0!important;}
body.tv-site.aksara-paged-site .aksara-masthead {flex:0 0 auto;margin:0!important;align-items:center;gap:8px;}
body.tv-site.aksara-paged-site .aksara-masthead h1 {font-size:clamp(25px,4vw,48px)!important;line-height:1.05!important;}
body.tv-site.aksara-paged-site .aksara-page-label {font-size:clamp(12px,1.6vw,17px)!important;margin:3px 0 0!important;}
body.tv-site.aksara-paged-site .aksara-back {font-size:12px;margin:0 0 3px!important;}
body.tv-site.aksara-paged-site .aksara-room .aksara-horizontal-grid {flex:1 1 0;min-height:0!important;display:grid!important;grid-template-columns:none!important;grid-auto-flow:column;grid-auto-columns:calc((100% - 32px)/5);grid-template-rows:repeat(2,minmax(0,1fr));overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#d1ae73 #3f2a20;padding:8px!important;gap:8px!important;align-content:stretch;}
body.tv-site.aksara-paged-site .aksara-room .aksara-horizontal-grid>* {scroll-snap-align:start;min-height:0;min-width:0;}
body.tv-site.aksara-paged-site .aksara-room .aksara-category {display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;border-bottom-width:5px;}
body.tv-site.aksara-paged-site .aksara-room .aksara-category>img {height:100%!important;min-height:0;aspect-ratio:auto!important;object-fit:contain!important;}
body.tv-site.aksara-paged-site .aksara-room .aksara-category>span {min-height:0!important;padding:6px 4px!important;font-size:clamp(12px,1.5vw,19px)!important;}
body.tv-site.aksara-paged-site .aksara-room .aksara-volumes {grid-template-rows:minmax(0,1fr);grid-auto-columns:calc((100% - 24px)/4);}
body.tv-site.aksara-paged-site .aksara-room .aksara-volume>a {height:100%!important;min-height:0!important;grid-template-rows:minmax(0,1fr) auto!important;gap:6px!important;padding:7px!important;align-content:stretch!important;}
body.tv-site.aksara-paged-site .aksara-room .aksara-book-cover {height:100%!important;width:auto!important;max-width:100%!important;min-width:0!important;min-height:0!important;max-height:100%;aspect-ratio:5/7!important;justify-self:center!important;}
body.tv-site.aksara-paged-site .aksara-room .aksara-plaque {min-height:0!important;padding:6px 4px!important;overflow:hidden;}
body.tv-site.aksara-paged-site .aksara-room .aksara-plaque>h2 {display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:clamp(12px,1.55vw,18px)!important;}
body.tv-site.aksara-paged-site .aksara-room .aksara-plaque>p {display:block!important;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;}
body.tv-site.aksara-paged-site .aksara-page-controls {flex:0 0 auto;display:flex;gap:8px;align-items:center;justify-content:center;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;}
body.tv-site.aksara-paged-site .aksara-grid-controls {display:flex;align-items:center;gap:7px;flex-shrink:0;}
body.tv-site.aksara-paged-site .aksara-grid-controls button {min-width:36px!important;min-height:34px!important;padding:2px 9px!important;font-size:23px!important;line-height:1!important;cursor:pointer;}
body.tv-site.aksara-paged-site .aksara-grid-controls button:disabled {opacity:.4;cursor:default;}
body.tv-site.aksara-paged-site .aksara-grid-controls span {font-size:12px;min-width:34px;text-align:center;}
body.tv-site.aksara-paged-site .aksara-page-controls .pagination {margin:0!important;flex-wrap:nowrap!important;flex-shrink:0;}
body.tv-site.aksara-paged-site .aksara-page-controls .pagination a {min-height:32px!important;padding:4px 8px!important;}
body.tv-site.aksara-paged-site .aksara-page-controls :is(.aksara-classic-button,.aksara-page-exit) {white-space:nowrap;flex-shrink:0;min-height:32px!important;padding:4px 10px!important;font-size:13px!important;color:#fff1d2!important;}
body.tv-site.aksara-paged-site .aksara-room .aksara-shelf-links {flex:0 0 auto;flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;gap:8px!important;margin:0!important;min-height:0;scrollbar-width:thin;}
body.tv-site.aksara-paged-site .aksara-room .aksara-shelf-links>a {flex:0 0 auto!important;white-space:nowrap;min-height:30px!important;padding:4px 9px!important;font-size:12px!important;}
@media(max-width:760px){body.tv-site.aksara-paged-site .aksara-room .aksara-horizontal-grid{grid-auto-columns:calc((100% - 8px)/2);}body.tv-site.aksara-paged-site .aksara-room .aksara-masthead{align-items:stretch;flex-direction:column;gap:5px;}body.tv-site.aksara-paged-site .aksara-tools{flex-wrap:nowrap;}body.tv-site.aksara-paged-site .aksara-tools :is(input,select,button){min-height:34px!important;}body.tv-site.aksara-paged-site .aksara-page-controls{justify-content:flex-start;}body.tv-site.aksara-paged-site .aksara-room .aksara-shelf-links{justify-content:flex-start!important;}}
@media(max-height:560px){body.tv-site.aksara-paged-site .aksara-room .aksara-horizontal-grid{grid-template-rows:minmax(0,1fr);grid-auto-columns:calc((100% - 24px)/4);}body.tv-site.aksara-paged-site .aksara-masthead{flex-direction:row!important;align-items:center!important;}body.tv-site.aksara-paged-site .aksara-masthead h1{font-size:23px!important;}body.tv-site.aksara-paged-site .aksara-room .aksara-plaque>time,body.tv-site.aksara-paged-site .aksara-room .aksara-plaque>span{display:none!important;}body.tv-site.aksara-paged-site .aksara-room .aksara-room-inner{gap:5px;padding:5px 0!important;}}
@media(max-height:560px) and (max-width:600px){body.tv-site.aksara-paged-site .aksara-room .aksara-horizontal-grid{grid-auto-columns:calc((100% - 8px)/2);}body.tv-site.aksara-paged-site .aksara-masthead{flex-direction:column!important;}}
