/* G104: clear reading area, compact navigation and books-first shelves */
body:has(.shelfroom) main.layout{width:min(1020px,calc(100vw - 148px))!important;margin-left:max(132px,calc((100vw - 1020px)/2))!important;margin-right:auto!important;padding:22px 22px 55px!important;box-sizing:border-box!important}
body:has(.shelfroom) .banner{padding:10px 0!important}
body:has(.shelfroom) .banner h1{font-size:clamp(24px,3vw,34px)!important;margin:0!important}
body:has(.shelfroom) .banner p{margin:3px!important}
body:has(.shelfroom) .shelfroom{margin-top:12px!important}
body:has(.shelfroom) .tiles{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))!important}
body:has(.shelfroom) .heading{color:#4c2b1d!important}
body:has(.shelfroom) .toolbar{margin:10px 0!important}
.wl-float{left:8px!important;top:clamp(105px,18vh,190px)!important;width:94px!important;padding:5px!important;max-height:calc(100dvh - 115px)!important}
.wl-float .wl-home-icon{width:72px!important;height:72px!important;margin:auto!important}
.wl-float .wl-control button{min-height:34px!important;font-size:21px!important}
.wl-float .wl-label{font-size:11px!important}
body.wl-nav-min .wl-float{width:44px!important;padding:3px!important}
body.wl-nav-min .wl-float .wl-home-control{display:none!important}
body.wl-nav-min .wl-float .wl-control{display:none!important}
body.wl-nav-min .wl-float .wl-minimise{min-height:37px!important;font-size:22px!important}
@media(max-width:740px){body:has(.shelfroom) main.layout{width:calc(100vw - 64px)!important;margin-left:62px!important;padding:12px 10px 35px!important}.wl-float{left:3px!important;width:52px!important;top:110px!important}.wl-float .wl-home-icon{width:40px!important;height:40px!important}.wl-float .wl-label{font-size:9px!important}.wl-float .wl-control button{min-height:32px!important;font-size:18px!important}body.wl-nav-min .wl-float{width:36px!important}}
/* All seven books fit on an ordinary laptop screen */
body:has(.g94-library-entry) .g94-library-entry{padding:4px 10px 10px!important}
body:has(.g94-library-entry) .g94-bookcase{width:min(100%,570px)!important;padding:8px!important;margin:6px auto!important;gap:0!important}
body:has(.g94-library-entry) .g94-volume{height:clamp(38px,5.4dvh,53px)!important;background-color:transparent!important}
body:has(.g94-library-entry) .g94-book-title{font-size:clamp(12px,1.4vw,17px)!important}
body:has(.g94-library-entry) .g94-library-links{display:none!important}
body:has(.g94-library-entry) .g94-invitation{margin:5px auto!important;font-size:14px!important}
@media(max-width:650px){body:has(.g94-library-entry) .g94-volume{height:clamp(40px,7vh,52px)!important}}

/* G122: varied antique bindings and legible reference panels */
.tiles .tile.shelf-volume:nth-child(9n+1) .cover{--leather:#683d2a!important}
.tiles .tile.shelf-volume:nth-child(9n+2) .cover{--leather:#244b47!important}
.tiles .tile.shelf-volume:nth-child(9n+3) .cover{--leather:#633b4b!important}
.tiles .tile.shelf-volume:nth-child(9n+4) .cover{--leather:#71552d!important}
.tiles .tile.shelf-volume:nth-child(9n+5) .cover{--leather:#343c62!important}
.tiles .tile.shelf-volume:nth-child(9n+6) .cover{--leather:#70392d!important}
.tiles .tile.shelf-volume:nth-child(9n+7) .cover{--leather:#415438!important}
.tiles .tile.shelf-volume:nth-child(9n+8) .cover{--leather:#514065!important}
.tiles .tile.shelf-volume:nth-child(9n) .cover{--leather:#5b4733!important}
.tiles .tile.shelf-volume:nth-child(3n) .cover{border-radius:12px 5px 5px 12px}
.tiles .tile.shelf-volume:nth-child(4n) .cover{border-radius:5px 11px 11px 5px}
.tiles .tile.shelf-volume:nth-child(5n) .cover{filter:sepia(.13) saturate(.85)}
.tiles .tile.shelf-volume.puketapu-book-binding .cover{--leather:#34534a!important;box-shadow:inset 0 0 0 2px #c9a16a,0 4px 7px #160d09!important}
.tiles .tile.shelf-volume .spine-title{color:#f5dfa7!important;text-shadow:0 1px 2px #120c08!important}
.shelf-intro a,.shelf-intro p,.source-catalogue a,.source-catalogue p{color:#654123!important}
@media(max-width:600px){.tiles .tile.shelf-volume .spine-title{font-size:clamp(12px,3.5vw,16px)!important;line-height:1.25!important}}

.shelf-source-link,.source-callout,.source-callout a,.source-callout p{color:#563721!important}
