/* Equal grid rows; metadata flows without reserved title gaps. */
.grid:has(>.book-card){grid-auto-rows:1fr}
.book-card .book-card-heading{margin-bottom:1rem}
.book-card .book-card-footer{padding-top:1rem}
.book-card .catalogue-card-details{padding-right:calc(9rem + .875rem)!important;min-height:14.5rem!important;display:block!important}
.book-card .catalogue-card-title{display:block;height:auto;max-height:none;overflow:visible;white-space:normal;text-overflow:clip;font-size:1.3125rem;line-height:1.2;text-wrap:pretty;overflow-wrap:anywhere}
.book-card .book-card-title-main{display:block;-webkit-line-clamp:unset;line-clamp:unset;max-height:none;overflow:visible;text-overflow:clip}
.book-card .book-card-title-subtitle{display:block;-webkit-line-clamp:unset;line-clamp:unset;max-height:none;overflow:visible;text-overflow:clip;margin-top:.375rem;font-size:.9375rem;font-weight:400;line-height:1.3;letter-spacing:normal}
.book-card .book-card-title-divider{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:pre;border:0}
.book-card .catalogue-card-author{margin-top:.5rem;height:auto;line-height:1.25rem;font-size:.875rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.book-card .catalogue-card-edition{margin-top:.375rem;height:auto;font-size:.8125rem;line-height:1.1875rem;gap:.125rem .5rem;align-content:start}
.book-card .catalogue-card-excerpt{height:3rem;flex-shrink:0;margin-top:.875rem}
.book-card .book-card-cover{width:9rem;height:13.5rem;aspect-ratio:2/3}
.book-card .book-card-cover>img{object-fit:contain!important;transform:none!important;scale:none!important}
img[src*="353e9545-5177-809b-a7f3-d50ab8f8ab8c"]{filter:brightness(1.13) saturate(1.1)}
@container (max-width:335px){
 .book-card .book-card-heading:has(.english-book-badge){padding-bottom:0}
 .book-card .english-book-badge{top:50%;bottom:auto;left:calc(50% - 1.375rem);max-width:calc(100% - 9rem);transform:translate(-50%,-50%)}
 .book-card>.relative:not(.book-card-heading){display:flex;flex-direction:column}
 .book-card .book-card-cover{position:relative!important;inset:auto!important;order:-1;flex-shrink:0;align-self:center;margin:0 auto 1rem;width:10rem;height:15rem}
 .book-card .catalogue-card-details{padding-right:0!important;min-height:0!important}
}
