/* Reference artwork supplies the actual seven books and carved shelf; buttons remain live catalog controls. */
.shelfbox{overflow-x:auto!important;overflow-y:hidden!important;padding:22px 14px 8px!important}.shelfbox:before{display:none!important}.shelf-head{min-width:850px}.shelf{position:relative!important;display:flex!important;align-items:stretch!important;justify-content:space-between!important;gap:0!important;box-sizing:border-box!important;min-width:900px!important;width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;aspect-ratio:2160/726!important;overflow:visible!important;padding:0 6.5% 4.8% 7.5%!important;background:transparent url('/library/ceremonial-volumes.webp') center/100% 100% no-repeat!important;perspective:none!important}.shelf .spine,.shelf .spine:nth-child(n){display:flex!important;position:relative!important;flex:1 1 0!important;min-width:0!important;max-width:none!important;height:83%!important;padding:0 2px!important;margin:0!important;border:0!important;border-radius:4px!important;background:transparent!important;background-image:none!important;box-shadow:none!important;transform:none!important;filter:none!important;outline-offset:-4px!important}.shelf .spine:before,.shelf .spine:after{display:none!important}.shelf .spine:hover,.shelf .spine:focus-visible,.shelf .spine[aria-pressed=true]{transform:none!important;filter:none!important;box-shadow:inset 0 0 0 3px #ffe3a0,inset 0 0 22px #f4d2876b!important}.shelf .spine-name{writing-mode:horizontal-tb!important;transform:none!important;position:absolute!important;top:37%!important;left:8%!important;width:84%!important;max-height:none!important;color:#fff0c9!important;text-shadow:0 2px 4px #000,0 0 6px #000!important;font:700 clamp(12px,1.2vw,19px)/1.15 Georgia,serif!important;letter-spacing:.035em!important;overflow-wrap:anywhere!important}.shelf .spine-symbol{display:none!important}.wood{display:none!important}.desktop-note{min-width:850px}.chapter-label{font:600 .7rem/1.5 Arial,sans-serif;color:#725b3c;margin-top:4px}.help{line-height:1.5}@media(max-width:900px){.shelf-head,.desktop-note{min-width:900px}.shelf .spine-name{font-size:14px!important}.shelfbox .help:after{content:' · Scroll sideways to see all seven volumes';}}
/* Keep instructions visible while the shelf alone scrolls on narrow screens. */
.shelfbox{overflow:hidden!important}.shelf-head,.desktop-note{min-width:0!important}.shelf-scroll{overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scrollbar-color:#cda773 #25150d}.shelf{width:100%!important}.shelf .spine-name{top:45%!important;font-size:clamp(12px,1.05vw,16px)!important}.chapter-tabs{display:flex;flex-wrap:wrap;gap:.45rem;margin:0 0 1rem}.chapter-filter{font:600 .76rem/1.3 Arial,sans-serif;padding:.5rem .7rem;border:1px solid #917251;border-radius:4px;background:#f8edd8;color:#493521}.chapter-filter[aria-pressed=true]{background:#493032;color:#fff2d4}.entry{display:block!important}.record-summary{cursor:pointer;display:grid;gap:4px;list-style:none}.record-summary::-webkit-details-marker{display:none}.record-summary:after{content:'View details ▾';font:600 .72rem Arial,sans-serif;color:#674b30}.entry[open] .record-summary:after{content:'Close details ▴'}.record-detail{padding:.5rem 0 .25rem}.record-detail .open{display:inline-block;margin-top:.5rem}.record-summary:focus-visible,.chapter-filter:focus-visible,.shelf-scroll:focus-visible{outline:3px solid #976534;outline-offset:3px}@media(max-width:900px){.shelf .spine-name{font-size:13px!important}.shelfbox .help:after{content:none!important}}
/* Align the selectable regions to the artwork at every scroll width. */
.shelf{padding:0!important}.shelf .spine,.shelf .spine:nth-child(n){position:absolute!important;top:0!important;width:12.3%!important;height:81%!important}.shelf .spine:nth-child(1){left:7.5%!important}.shelf .spine:nth-child(2){left:19.8%!important}.shelf .spine:nth-child(3){left:32.1%!important}.shelf .spine:nth-child(4){left:44.4%!important}.shelf .spine:nth-child(5){left:56.7%!important}.shelf .spine:nth-child(6){left:69%!important}.shelf .spine:nth-child(7){left:81.3%!important}
@media(max-width:900px){.shelf .spine-name{left:2%!important;width:96%!important;font-size:12px!important;letter-spacing:0!important;overflow-wrap:normal!important}}

/* Gold-stamped volume titles, centered within each book's tooled panel. */
.shelf .spine-name{top:52.5%!important;transform:translateY(-50%)!important;left:9%!important;width:82%!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:.5em;color:#f4d99a!important;font:700 clamp(10px,.90vw,13px)/1.2 Georgia,'Times New Roman',serif!important;letter-spacing:.06em!important;text-align:center;text-shadow:0 1px 0 #6e410d,0 2px 3px #160905,0 0 7px #180900!important;overflow-wrap:normal!important}
.shelf .spine-name::before{display:block;color:#edcf8d;font-size:.74em;letter-spacing:.13em;line-height:1;border-bottom:1px solid #c8994a;padding:0 .6em .45em;text-shadow:0 1px 2px #160905}
.shelf .spine-name::after{content:'❧';display:block;color:#d8b66c;font-size:1.15em;line-height:1;text-shadow:0 1px 2px #160905}
.shelf .spine:nth-child(1) .spine-name::before{content:'VOLUME I'}
.shelf .spine:nth-child(2) .spine-name::before{content:'VOLUME II'}
.shelf .spine:nth-child(3) .spine-name::before{content:'VOLUME III'}
.shelf .spine:nth-child(4) .spine-name::before{content:'VOLUME IV'}
.shelf .spine:nth-child(5) .spine-name::before{content:'VOLUME V'}
.shelf .spine:nth-child(6) .spine-name::before{content:'VOLUME VI'}
.shelf .spine:nth-child(7) .spine-name::before{content:'VOLUME VII'}
@media(max-width:900px){.shelf .spine-name{font-size:10.5px!important;letter-spacing:.035em!important}}

/* Match the centers of the illustrated leather panels, not an evenly spaced grid. */
.shelf .spine:nth-child(1){left:7.99%!important}.shelf .spine:nth-child(2){left:20.91%!important}.shelf .spine:nth-child(3){left:33.41%!important}.shelf .spine:nth-child(4){left:45.49%!important}.shelf .spine:nth-child(5){left:57.55%!important}.shelf .spine:nth-child(6){left:69.78%!important}.shelf .spine:nth-child(7){left:81.79%!important}
/* Fine alignment to the inner gold frames on the illustrated spines. */
.shelf .spine:nth-child(2){left:20.50%!important}
.shelf .spine:nth-child(3){left:33.00%!important}
.shelf .spine:nth-child(4){left:45.23%!important}
