/* Mobile book details, including iOS in-app browsers and enlarged text. */
#bookScrim{min-width:0;max-width:100%;overflow:hidden}
#bookSheet{box-sizing:border-box;flex:0 1 820px;width:100%;min-width:0;max-width:100%;overflow-x:hidden;overflow-y:auto;max-height:92vh;max-height:92dvh;-webkit-overflow-scrolling:touch;-webkit-text-size-adjust:100%;text-size-adjust:100%}
#bookSheet .detail{width:100%;min-width:0;grid-template-columns:minmax(0,200px) minmax(0,1fr)}
#bookSheet .detail>*,#bookSheet .like,#bookSheet .likes,#bookSheet .card,#bookSheet .meta{min-width:0;max-width:100%}
#bookSheet :is(h2,h3,h4,p,a,.meta,.tag,.frame,.ct,.ca){overflow-wrap:anywhere;word-break:normal;white-space:normal}
#bookSheet .likes{grid-template-columns:repeat(4,minmax(0,1fr));width:100%}
#bookSheet .likes .card h4{display:block;-webkit-line-clamp:unset;overflow:visible}
#bookSheet .cover{box-sizing:border-box;min-width:0;max-width:100%;width:100%}
#bookSheet .cover img{width:100%;max-width:100%;height:100%;object-fit:contain}
#bookSheet .beginner-label{display:block;font-size:12px;line-height:1.5;color:var(--forest);margin-bottom:5px}
#bookSheet .reading-guidance{margin:0 0 18px;padding-left:12px;border-left:2px solid var(--sand);font-size:14px;line-height:1.7}
#bookSheet .read-next-more{margin-top:22px;max-width:100%;min-height:44px}
@media(max-width:680px){
 #bookScrim{padding:0;align-items:flex-end}
 #bookSheet{flex-basis:100%;padding-top:64px;max-height:94vh;max-height:94dvh}
 #bookSheet .detail{grid-template-columns:minmax(0,1fr);gap:22px}
 #bookSheet .detail>.cover{width:135px}
 #bookSheet .detail h2{font-size:clamp(24px,6.8vw,30px);margin-right:0}
 #bookSheet .likes{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
 #bookSheet .likes .card h4{font-size:16px;line-height:1.4}
 #bookSheet .x{top:12px;right:max(12px,env(safe-area-inset-right,0px))}
}
@media(max-width:340px){#bookSheet .likes{grid-template-columns:minmax(0,1fr)}#bookSheet .likes .cover{width:160px}}

/* Bring both starting choices into the same dusty-blue panel as suggestions. */
#reader>.favorite-first{background:#CDD4D8;border-color:#6B7F9E;border-left:3px solid #6B7F9E}
#reader .favorite-first .age-in-start{margin-top:18px;padding-top:18px;border-top:1px solid #6B7F9E;max-width:820px}
#reader .favorite-first .age-in-start label{font-family:var(--display);font-size:22px;line-height:1.3}
#reader .favorite-first .age-in-start select{width:100%;max-width:300px;background:#fff}
.mast .lookup[hidden]{display:none!important}
