/* The covers move; the reading index stays still. */
.bookshelf-page .library-intro{padding-bottom:30px}
.shelf-discovery{border-top:1px solid #38352f;padding:24px 0 0}
.discovery-label{font-size:12px;letter-spacing:.08em;color:#aaa296;margin:0 0 16px}
.question-filters{display:flex;flex-wrap:wrap;gap:6px 22px}
.question-filters button{font:inherit;font-size:14px;background:none;border:0;border-bottom:1px solid transparent;color:#a9a59c;padding:9px 0;cursor:pointer}
.question-filters button[aria-pressed="true"]{color:#e4b28e;border-color:#e4b28e}
.question-filters button:hover{color:#f5ebdb}
.shelf-controls{margin-top:15px!important;padding:18px 0!important}
.cover-gallery{border-top:1px solid #454035;position:relative;padding-top:20px}
.cover-gallery[hidden]{display:none}
.cover-gallery-bar{display:flex;justify-content:space-between;align-items:center;gap:16px}
.cover-gallery-bar .section-index{margin:0;font-size:10px;color:#a9a195}
.gallery-actions{display:flex;gap:5px;align-items:center}
.gallery-actions button{background:transparent;color:#c5bdae;border:1px solid #464036;padding:8px 12px;font:inherit;font-size:12px;cursor:pointer;min-height:36px}
.gallery-actions button:disabled{opacity:.45;cursor:default}
.cover-viewport{height:375px;overflow:hidden;position:relative;isolation:isolate;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.cover-stage{position:absolute;inset:0;display:flex;justify-content:center;align-items:end;padding-bottom:28px}
.gallery-cover{position:absolute;bottom:28px;display:block;width:196px;height:288px;padding:0;background:transparent;border:0;transform-origin:50% 100%;cursor:pointer;will-change:transform;filter:drop-shadow(8px 14px 10px #0009)}
.gallery-cover img{width:100%;height:100%;object-fit:contain;object-position:50% 100%;display:block}
.gallery-cover:focus-visible{outline:2px solid #e4b28e;outline-offset:7px}
.cover-viewport:after{content:'';position:absolute;bottom:13px;left:0;right:0;height:13px;border-top:1px solid #77604a;background:linear-gradient(#332c23,#15130f);z-index:-1}
.gallery-caption{display:flex;gap:25px;align-items:baseline;padding:5px 0 29px;min-height:105px;border-bottom:1px solid #514737}
.gallery-counter{font:11px monospace;color:#bc987a;min-width:60px}
.gallery-title{background:none;border:0;padding:0;color:#e9e0d0;font:26px/1.35 Georgia,'Noto Serif TC',serif;cursor:pointer;text-align:left}
.gallery-byline{font-size:12px;color:#a29d92;margin:8px 0 0}
.gallery-read{margin-left:auto;white-space:nowrap;font-size:12px;color:#b9a28d}
.bookshelf-page .bookcase{border:0;background:none;box-shadow:none;padding:0;margin:0;position:relative}
.title-shelf-heading{display:flex;justify-content:space-between;gap:20px;padding:27px 0 15px;color:#a9a195;font-size:11px;letter-spacing:.05em}
.title-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 32px}
.title-entry{position:relative;border-bottom:1px solid #34312b;display:flex;align-items:center;min-width:0}
.title-entry:before{content:'';width:2px;height:22px;background:#7e6954;margin-right:13px;flex:none}
.title-entry button{display:block;text-align:left;min-height:65px;width:100%;padding:15px 0;background:none;border:0;color:#d5cfc2;font:16px/1.5 Georgia,'Noto Serif TC',serif;cursor:pointer;overflow-wrap:anywhere}
.title-entry button:hover{color:#e8af87}
.title-entry.is-connected:before{background:#e8af87}
.bookshelf-page .shelf-thread{display:none}
.bookshelf-page button:focus-visible,.bookshelf-page select:focus-visible,.bookshelf-page input:focus-visible{outline:2px solid #e4b28e;outline-offset:4px}
@media(max-width:900px){.title-shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 25px}.gallery-cover{width:170px;height:255px}.cover-viewport{height:330px}}
@media(max-width:650px){.question-filters{gap:2px 16px}.question-filters button{font-size:12px}.cover-gallery-bar{align-items:start}.cover-gallery-bar .section-index{max-width:120px;line-height:1.8}.gallery-actions button{padding:8px 9px}.gallery-cover{width:146px;height:220px}.cover-viewport{height:285px}.gallery-title{font-size:22px}.gallery-caption{gap:12px;min-height:112px}.gallery-read{display:none}.gallery-counter{min-width:48px;font-size:10px}.title-shelf{gap:0 18px}.title-entry button{font-size:14px;min-height:74px}.title-entry:before{margin-right:9px}.shelf-controls{flex-wrap:wrap}.shelf-controls>p{width:100%;flex-basis:100%}.book-search{flex:1;min-width:0}.book-search input{width:100%;min-width:0}.title-shelf-heading{font-size:10px}.library-intro{gap:20px}}
@media(prefers-reduced-motion:reduce){.gallery-cover{will-change:auto}}
#questionSelect{display:none}
.bookshelf-page .library-intro h1{font-size:clamp(48px,6vw,82px)}
@media(max-width:650px){.bookshelf-page .library-intro{padding-bottom:20px;gap:12px}.bookshelf-page .library-intro h1{font-size:45px}.library-intro .intro-copy p{font-size:16px;line-height:1.4}.library-intro .intro-copy>span{display:none}.shelf-discovery{padding-top:18px}#questionFilters{display:none}#questionSelect{display:block;width:100%;padding:12px 0;background:#090909;color:#e4b28e;border:0;border-bottom:1px solid #665341;border-radius:0;font:14px/1.4 inherit}.discovery-label{margin-bottom:4px}.cover-gallery{padding-top:14px}.cover-viewport{height:260px}.gallery-caption{min-height:95px;padding-bottom:18px}.shelf-controls{margin-top:4px!important}}
/* One physical material treatment for front covers and the spine shelves. */
.gallery-cover{perspective:1000px;filter:none;display:flex;align-items:flex-end;justify-content:center;width:216px;height:298px}
.physical-book{--volume-height:280px;display:block;position:relative;height:var(--volume-height);width:calc(var(--volume-height) * var(--cover-ratio));max-width:204px;transform:rotateY(-15deg) rotateX(2deg);transform-style:preserve-3d;filter:drop-shadow(9px 12px 7px #0009)}
.book-face{position:absolute;inset:0;background:var(--jacket);border-radius:1px 3px 3px 1px;transform:translateZ(1px);box-shadow:inset 1px 0 2px #fff4;overflow:hidden}
.book-face:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#0005 0,transparent 3%,#fff2 4%,transparent 6%,transparent 95%,#0002 100%);border:1px solid #ffffff1a}
.cover-crop{position:absolute;inset:0;overflow:hidden}
.gallery-cover .cover-crop img{position:absolute;max-width:none;object-fit:fill;object-position:center;display:block}
.book-pages{position:absolute;left:100%;top:4px;bottom:4px;width:15px;background:repeating-linear-gradient(to bottom,#d9d2bf 0px,#f7f0df 1px,#e5ddc9 2px,#a69b80 2.5px,#f5eedf 3px);transform:skewY(15deg);transform-origin:0 0;border-right:2px solid var(--jacket);box-shadow:inset 4px 0 6px #0002}
.book-page-top{position:absolute;left:2px;right:-13px;top:-3px;height:7px;background:repeating-linear-gradient(90deg,#e1d9c5 0,#f7efdf 1px,#c8bda3 2px);transform:skewX(-62deg);transform-origin:0 100%;border-top:2px solid var(--jacket)}
.book-back{position:absolute;inset:3px -17px -3px 12px;background:var(--jacket);border-radius:1px 3px 3px 1px}
.gallery-cover.photographed .physical-book{transform:rotateY(-8deg)}
.gallery-cover.photographed .book-pages{width:9px}
.gallery-cover.photographed .book-back{right:-11px}
.gallery-cover.photographed .book-page-top{right:-8px}
.cover-viewport{height:355px}
@media(max-width:900px){.gallery-cover{width:185px;height:270px}.physical-book{--volume-height:245px;max-width:175px}.cover-viewport{height:320px}}
@media(max-width:650px){.gallery-cover{width:155px;height:228px}.physical-book{--volume-height:211px;max-width:145px}.cover-viewport{height:270px}.book-pages{width:11px}.book-back{right:-13px}.book-page-top{right:-9px}}
