/* Home books use the collection-card box interaction with one native primary link. */
:root body.h-library .home-book-box{position:relative;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:none;transition:border-color .14s,box-shadow .14s}
:root body.h-library .home-book-box:hover{border-color:#6cc498;box-shadow:0 8px 22px #18334d08}
:root body.h-library .home-book-box a.home-book-link{position:static;text-decoration:none}
:root body.h-library .home-book-box a.home-book-link::after{content:'';position:absolute;inset:0;z-index:1;border-radius:16px;cursor:pointer}
:root body.h-library .home-book-box a.home-book-link:focus-visible{outline:none}
:root body.h-library .home-book-box a.home-book-link:focus-visible::after{outline:2px solid #6cc498;outline-offset:-3px}
:root body.h-library .home-book-box a.card-rating{position:relative;z-index:3}
:root body.h-library .h-featured-book.home-book-box{grid-template-rows:auto;row-gap:0;align-content:start;min-height:0;padding:12px}
:root body.h-library .h-featured-book.home-book-box>.h-favorite-slot{z-index:3;top:-8px;right:4px}
:root body.h-library .h-list-book.home-book-box{grid-template-columns:52px minmax(0,1fr);gap:14px;padding:11px 12px;margin-bottom:6px;min-height:104px;border-bottom:1px solid var(--line)}
:root body.h-library .h-featured-grid{padding-top:10px}
@media(max-width:750px){:root body.h-library .h-featured-book.home-book-box{grid-template-columns:90px minmax(0,1fr);gap:12px}:root body.h-library .h-list-book.home-book-box{grid-template-columns:51px minmax(0,1fr);min-height:102px}}
@media(prefers-reduced-motion:reduce){:root body.h-library .home-book-box{transition:none}}

/* Keep the compact list bottom border in the same hover color as its other edges. */
:root body.h-library .h-list-book.home-book-box:hover{border-bottom-color:#6cc498}
