/* Alternate layout. The existing full-device version is unchanged. */
.layout-extended{background:#fff}
.layout-extended .feed-layout{max-width:none;grid-template-columns:20% 50% 30%;padding:0;gap:0;height:calc(100dvh - 82px);overflow:hidden}
.layout-extended .left-rail{padding:28px 28px 30px 34px;background:linear-gradient(#f6f3eced,#f6f3ecf7),url('/bookorism/library.jpg') left center/auto 100%;height:100%;max-height:100%;border-right:1px solid #eeeae0}
.layout-extended .right-rail{padding:28px 30px 32px 32px;background:linear-gradient(#f1f4eeed,#f1f4eef7),url('/bookorism/library.jpg') right center/auto 100%;height:100%;max-height:100%;border-left:1px solid #e7ece2}
.layout-extended .feed-center{padding:24px 10px 0;overflow:hidden;background:#fff}
.layout-extended #main-feed{width:min(calc(100% - 32px),calc(var(--feed-available-height) * .78),860px);height:calc(var(--feed-available-height) + 190px);min-height:0;max-height:none;aspect-ratio:auto;flex-shrink:0;box-shadow:inset 1px 1px 1px #d2d6d4,inset -1px -1px 1px #000,0 12px 28px #14241c14}
.layout-extended .feed-screen{padding-bottom:0;background:#fff}
.layout-extended .feed-scroll{flex:none;height:var(--extended-visible-height,60dvh);max-height:var(--extended-visible-height,60dvh);padding-bottom:26px;scroll-padding-bottom:24px}
.layout-extended .left-rail>nav,.layout-extended .rail-profile,.layout-extended .rail-foot{max-width:240px}
.layout-extended .rail-profile{padding:4px 10px 28px}.layout-extended .rail-profile strong{font-size:20px}.layout-extended .rail-profile small{font-size:12px}.layout-extended .rail-profile .avatar{background:#ffffffb8}
.layout-extended .nav-item{font-size:22px;line-height:1.55;padding:24px 12px;gap:18px;border-color:#deded1}
.layout-extended .nav-item svg{width:27px;height:27px}.layout-extended .nav-item.active{background:#ffffff60;box-shadow:inset 3px 0 #315749}.layout-extended .nav-item:hover{background:#ffffff80}.layout-extended .rail-link{font-size:12px}.layout-extended .rail-foot{font-size:12px;border-color:#deded1;margin-top:30px;line-height:1.9}
.layout-extended .right-rail>section,.layout-extended .right-foot{max-width:480px;background:transparent}
.layout-extended .aside-heading h2{font-size:24px;margin-bottom:23px;letter-spacing:-.8px}
.layout-extended .recommendation{padding-bottom:27px;border-bottom-color:#dce4d5}
.discovery-books-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.discovery-book{min-width:0}.discovery-book>button{display:block;width:100%;background:none;border:0;padding:0;text-align:left}
.discovery-book img{display:block;width:100%;height:clamp(185px,24dvh,275px);object-fit:contain;filter:drop-shadow(0 5px 5px #263c2720)}
.discovery-book strong{font:500 15px/1.7 var(--reading-serif);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:3.4em;margin:16px 0 5px;word-break:keep-all}
.discovery-book>button:hover strong{text-decoration:underline;text-underline-offset:4px}
.discovery-book p{font-size:11px;line-height:1.7;color:#7e8c7a;margin:0 0 5px;overflow-wrap:anywhere}.discovery-book>small{font-size:10px;color:#9aa691}
.discovery-shelf-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.discovery-shelf-controls>small{font-size:10px;color:#9aa690}.discovery-shelf-controls button{border:0;background:none;font-size:11px;padding:3px 0;border-bottom:1px solid #bdcbb2;color:#718669;white-space:nowrap}.discovery-shelf-controls button span{font-size:18px;margin-left:7px;line-height:1}
.discovery-empty{padding:24px 0;font:400 14px/1.9 var(--reading-serif);color:#8c9b82}.discovery-empty a{display:inline-block;font-size:12px;border-bottom:1px solid #b5c6a8;margin-top:12px}
.layout-extended .readers{padding:26px 0 30px}.layout-extended .readers .aside-heading h2{font-size:22px;padding-right:65px}
.layout-extended #reader-suggestions{position:relative}
.reader-strip-controls{position:absolute;right:0;top:-50px;display:flex;gap:7px}.reader-strip-controls button{width:26px;height:26px;display:grid;place-items:center;font-size:20px;line-height:1;border:1px solid #d4dfca;border-radius:5px;background:#ffffff8a;color:#7a8e6b;padding:0}.reader-strip-controls button:disabled{opacity:.3}
.reader-carousel{display:flex;gap:14px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#cdd8c3 transparent;padding:2px 0 12px;touch-action:pan-x}
.reader-card{flex:0 0 calc((100% - 14px)/2);min-width:0;scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:169px;border:1px solid #dfe6d8;border-radius:11px;background:#ffffffa6;padding:18px 10px 16px;text-align:center;color:#45613e}
.reader-card:hover{background:#fffffff0}.reader-card .avatar{width:61px;height:61px;border-radius:15px;background:#e4eadf;color:#748a66;font-size:21px}.reader-card strong{font:500 15px/1.7 var(--reading-serif);overflow-wrap:anywhere}.reader-card small{font-size:10px;line-height:1.8;color:#92a184}.reader-card small b{font-weight:600;color:#718e5e}
.reader-pending{background:#ffffff72;border-style:dashed}.reader-pending:hover{background:#ffffff72}.reader-pending strong{font-size:13px;color:#8b9d7c}.reader-placeholder{width:61px;height:61px;border:1px solid #dee7d3;border-radius:15px;display:grid;place-items:center;color:#b0bea3;background:#f6f8f2}.reader-placeholder svg{width:33px;height:33px}
.layout-extended .right-foot{border-color:#dce4d5;margin-top:2px;color:#a0ad95}
@media(min-width:1800px){.layout-extended .left-rail{padding-left:50px;padding-right:34px}.layout-extended .right-rail{padding-left:40px;padding-right:40px}.layout-extended .nav-item{font-size:24px;padding-top:27px;padding-bottom:27px}.layout-extended .nav-item svg{width:29px;height:29px}.discovery-books-row{gap:26px}.discovery-book strong{font-size:17px}.discovery-book p{font-size:12px}.reader-card strong{font-size:16px}.reader-card{min-height:190px}.reader-card .avatar,.reader-placeholder{width:68px;height:68px;border-radius:17px}.layout-extended .aside-heading h2{font-size:27px}}
@media(min-width:981px) and (max-width:1250px){.layout-extended .left-rail{padding:24px 17px 25px 20px}.layout-extended .right-rail{padding:25px 20px 28px 22px}.layout-extended .nav-item{font-size:19px;padding:23px 9px;gap:14px}.layout-extended .nav-item svg{width:24px;height:24px}.layout-extended .rail-profile strong{font-size:18px}.layout-extended .aside-heading h2{font-size:22px}.discovery-books-row{gap:15px}.discovery-book strong{font-size:13px}.discovery-book img{height:clamp(155px,23dvh,220px)}.reader-card{padding:15px 6px;min-height:160px}.reader-card strong{font-size:12px}.reader-card small{font-size:9px}.reader-card .avatar,.reader-placeholder{width:52px;height:52px;border-radius:13px}.discovery-shelf-controls>small{display:none}.discovery-shelf-controls{justify-content:flex-end}.layout-extended .readers .aside-heading h2{font-size:19px}}
@media(min-width:701px) and (max-width:980px){.layout-extended .feed-layout{grid-template-columns:23% 77%}.layout-extended .right-rail{display:none}.layout-extended .left-rail{padding:25px 18px 25px 20px}.layout-extended .nav-item{font-size:18px}.layout-extended .rail-profile strong{font-size:17px}}
@media(max-width:700px){.layout-extended .feed-layout{display:block;height:calc(100dvh - 65px);padding:0 0 78px}.layout-extended .feed-center{padding-top:14px;padding-bottom:0}.layout-extended #main-feed{width:min(calc(100% - 24px),calc(var(--feed-available-height) * .82));height:calc(var(--feed-available-height) + 120px);max-height:none;min-height:0}.layout-extended .left-rail{height:auto;padding:0;background:#fff;border:0}.layout-extended .nav-item{font-size:11px;padding:8px 10px;gap:5px}.layout-extended .nav-item svg{width:22px;height:22px}.layout-extended .right-rail{display:none}.layout-extended .rail-profile,.layout-extended .rail-foot{display:none}}
