.shelf-viewport:has(>.shelf-main>.book-hero){height:auto;min-height:100dvh}.shelf-main:has(.book-hero){flex:1 0 auto;min-height:min-content;padding-bottom:1rem}.book-hero{justify-content:space-between;align-items:center;gap:1rem;padding:.6rem 1rem;display:flex}.book-hero-info{align-items:center;gap:.7rem;min-width:0;display:flex}.book-hero-cover{aspect-ratio:8.5/11;object-fit:cover;flex:none;width:auto;height:clamp(64px,12dvh,112px)}.book-hero-title{font-size:clamp(1.65rem,3.4vw,2.5rem);line-height:1.1}.book-hero-copy{margin-top:.2rem;font-size:clamp(.78rem,1.3vw,.95rem)}.book-hero-action{align-items:center;gap:.65rem;min-width:0;max-width:43%;display:flex}.book-section-copy{font-size:clamp(.72rem,1.25vw,.85rem)}.book-chapter-grid{grid-template-columns:repeat(var(--chapter-cols),minmax(0,1fr));flex:1 0 auto;grid-auto-rows:minmax(min-content,1fr);align-content:stretch;gap:clamp(.45rem,1.2vw,.9rem);padding-bottom:5px;display:grid}.book-chapter-card{justify-content:flex-start;gap:.4rem;min-height:100px;padding:clamp(.5rem,1.1vw,.85rem)}.book-chapter-title{overflow-wrap:anywhere;font-size:clamp(.9rem,1.75vw,1.25rem)}.book-chapter-meta,.book-chapter-progress{font-size:clamp(.68rem,1.1vw,.8rem);line-height:1.2}.book-chapter-progress{margin-top:auto}@media (width>=768px) and (height>=650px){.book-chapter-grid{flex:1 0 auto;min-height:min-content}.book-chapter-card{justify-content:space-between;min-height:clamp(100px,13dvh,145px)}}@media (width<=767px){.book-hero{flex-wrap:wrap;gap:.5rem;padding:.6rem}.book-hero-action{justify-content:center;width:100%;max-width:100%}.book-continue-bubble{flex:1}.book-chapter-grid{grid-template-columns:repeat(min(var(--chapter-cols),3),minmax(0,1fr))}}@media (width<=480px){.book-chapter-grid{grid-template-columns:repeat(min(var(--chapter-cols),2),minmax(0,1fr))}}@media (height<=600px){.book-hero-cover{height:54px}.book-hero-patch{width:54px;height:54px}.book-hero{padding:.35rem .6rem}.book-chapter-card{gap:.2rem;min-height:86px;padding:.4rem}}@media (prefers-reduced-motion:no-preference){.book-chapter-card{transition:transform .18s}.book-chapter-card:hover{transform:translateY(-2px)}}.book-hero-action{flex:1;justify-content:flex-end;align-self:stretch;gap:.85rem;max-width:52%}.book-hero-cover{height:clamp(72px,14dvh,138px)}.book-hero-patch{width:clamp(72px,13dvh,138px);height:clamp(72px,13dvh,138px)}.book-continue-bubble{flex-direction:column;justify-content:center;align-self:stretch;width:min(100%,410px);margin-block:.15rem;padding:.65rem .85rem;display:flex}.book-continue-button{min-height:48px;font-size:clamp(.9rem,1.75vw,1.3rem);line-height:1.2}.book-chapter-card{--book-icon-size:clamp(40px,7.5dvh,84px);grid-template-rows:auto var(--book-icon-size) auto auto 1fr;justify-content:stretch;align-items:start;gap:.3rem;min-height:140px;display:grid}.book-chapter-icon{max-width:100%;width:var(--book-icon-size);height:var(--book-icon-size);object-fit:contain;place-self:center;display:block}.book-chapter-title{align-items:flex-start;min-height:2.4em;display:flex}.book-chapter-progress{align-content:flex-end;align-self:end;min-height:2.4em;margin-top:0}@media (width>=768px) and (height>=650px){.book-chapter-card{justify-content:stretch;min-height:150px}.book-hero-action{max-width:52%}}@media (width<=767px){.book-hero-action{width:100%;max-width:100%}.book-continue-bubble{flex:1}.book-chapter-card{min-height:150px}}@media (height<=650px){.book-hero-cover{height:64px}.book-hero-patch{width:64px;height:64px}.book-continue-bubble{padding:.3rem .55rem}.book-continue-button{min-height:38px;margin-top:.25rem}.book-chapter-card{--book-icon-size:40px;gap:.2rem;min-height:130px}}@media (prefers-reduced-motion:no-preference){.book-patch-wave{animation:.8s ease-in-out both book-patch-nod}.book-continue-bubble{transition:transform .15s}.book-continue-bubble:hover{transform:translateY(-2px)}}@keyframes book-patch-nod{0%,to{transform:none}35%{transform:translateY(-3px)rotate(-4deg)scale(1.045)}65%{transform:rotate(3deg)}}@media (width>=768px) and (height<=950px){.book-hero{padding-block:.45rem}.book-hero-cover{height:clamp(64px,12dvh,112px)}.book-hero-patch{width:clamp(64px,11dvh,112px);height:clamp(64px,11dvh,112px)}.book-chapter-card{--book-icon-size:clamp(36px,6.2dvh,62px);gap:.2rem;min-height:0;padding:.55rem .7rem}.book-chapter-grid{row-gap:.65rem}}@media (width>=768px) and (height<=650px){.book-hero-cover{height:54px}.book-hero-patch{width:54px;height:54px}.book-chapter-card{--book-icon-size:36px}}
