/* Faithful, complete printed covers, with a small spine and paper edge. */
#shelf .library.has-smart-covers{background:#eef8fb!important}
#shelf .library.has-smart-covers>.subject-backdrop-card{opacity:.1}
#shelf .library.has-smart-covers .library-heading{padding:14px 26px 10px;min-height:96px}
#shelf .library.has-smart-covers .library-heading>.course-art{height:76px;width:125px}
#shelf .library-pages.books.has-physical-books{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),290px));gap:24px;overflow-x:hidden;padding-top:14px}
#shelf .library-book.is-physical-book{min-width:0;align-content:start;justify-items:start;gap:8px;padding:6px 10px 10px;font-size:15px;line-height:1.5}
#shelf .library .is-physical-book .physical-cover{isolation:isolate;display:block;position:relative;box-sizing:content-box;height:clamp(180px,39vh,350px);height:clamp(180px,39dvh,350px);width:auto;max-width:calc(100% - 10px);aspect-ratio:var(--book-ratio);min-height:0;padding:0;border:2px solid var(--ink);border-radius:2px;background:#fff9eb;overflow:visible;box-shadow:4px 7px 9px #2b1d1433;transition:transform .18s}
#shelf .physical-cover::before{content:'';position:absolute;top:0;bottom:0;left:-6px;width:4px;border:1px solid #2b1d14;border-right:0;border-radius:3px 0 0 3px;background:linear-gradient(90deg,#5d4274,#a88abe)}
#shelf .physical-cover::after{content:'';position:absolute;z-index:-1;inset:4px -6px -6px 4px;border:1px solid #79664c;border-radius:0 3px 4px 0;background:repeating-linear-gradient(0deg,#fff9e9 0 2px,#d9cbb3 2px 3px);box-shadow:1px 2px 0 #b8a083}
#shelf .physical-cover>img{display:block;width:100%;height:100%;object-fit:contain;border-radius:0}
#shelf .physical-cover>img[hidden]{display:none}
#shelf .physical-cover-fallback{display:none;height:100%;box-sizing:border-box;padding:18px;flex-direction:column;justify-content:center;gap:14px;background:linear-gradient(135deg,#fffdf5,var(--cover));text-align:center}
#shelf .physical-cover-fallback b{font:700 26px/1.5 var(--f-body);margin:0}
#shelf .physical-cover-fallback em{margin:0;font-style:normal}
#shelf .cover-unavailable .physical-cover-fallback{display:flex}
#shelf .physical-book-name{display:grid;gap:1px;margin-top:5px}
#shelf .physical-book-name b{font:700 20px/1.4 var(--f-body)}
#shelf .physical-book-name small{font-size:13px;color:#695943}
#shelf .is-physical-book>.lib-bookbar{box-sizing:border-box;width:100%}
#shelf .is-physical-book:focus-visible{outline:3px solid #197b8a;outline-offset:3px;border-radius:8px}
@media(max-width:650px){
 #shelf .library.has-smart-covers .library-heading{padding:10px 14px 6px;min-height:76px}
 #shelf .library.has-smart-covers .library-heading>.course-art{height:54px;width:80px}
 #shelf .library-pages.books.has-physical-books{grid-template-columns:minmax(0,290px);gap:14px;padding:10px 14px 22px}
 #shelf .library .is-physical-book .physical-cover{height:clamp(200px,40vh,330px);height:clamp(200px,40dvh,330px)}
}
@media(max-height:500px){
 #shelf .library.has-smart-covers .library-heading{padding-top:5px;padding-bottom:5px;min-height:56px}
 #shelf .library.has-smart-covers .library-heading h3{font-size:22px}
 #shelf .library.has-smart-covers .library-heading p{margin:0;font-size:13px}
 #shelf .library.has-smart-covers .library-heading>.course-art{height:46px;width:70px}
 #shelf .library .is-physical-book .physical-cover{height:190px}
}
@media(prefers-reduced-motion:reduce){#shelf .library .is-physical-book .physical-cover{transition:none}}
