/* Catalog-only reading layout. No changes to routing, JS or other sections. */
#sec-catalog #catalogGrid {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:20px!important;
}
#sec-catalog #catalogGrid > .book-card {
  min-width:0;
  width:100%;
  padding:clamp(20px,2.5vw,30px)!important;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:18px!important;
  line-height:1.6!important;
}
#sec-catalog #catalogGrid > .book-card h4 {
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:clamp(24px,2.1vw,30px)!important;
  line-height:1.3!important;
  margin:8px 0!important;
}
#sec-catalog #catalogGrid > .book-card p,
#sec-catalog #catalogGrid > .book-card span,
#sec-catalog #catalogGrid > .book-card button {
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:17px!important;
  line-height:1.55!important;
}
#sec-catalog #catalogGrid > .book-card p {margin-top:10px!important;overflow-wrap:anywhere;}
#sec-catalog #catalogGrid > .book-card img[alt="Обложка произведения"] {
  width:clamp(120px,15vw,178px)!important;
  height:auto!important;
  aspect-ratio:2/3!important;
  object-fit:cover!important;
  float:right!important;
  margin:4px 0 16px 26px!important;
}
#sec-catalog #catalogGrid > .book-card .line-clamp-3 {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:5;
  overflow:hidden;
}
#sec-catalog #catalogGrid > .book-card > div:last-child {
  clear:both;
  gap:12px;
  flex-wrap:wrap;
}
#sec-catalog .archive-filter-sidebar,
#sec-catalog .archive-filter-sidebar input,
#sec-catalog .archive-filter-sidebar select,
#sec-catalog .archive-filter-sidebar summary,
#sec-catalog .archive-filter-sidebar label,
#sec-catalog #catalogSearch,
#sec-catalog #nolaCatalogCount {
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:16px!important;
  line-height:1.5!important;
}
@media(max-width:650px) {
  #sec-catalog #catalogGrid > .book-card {padding:16px!important;font-size:16px!important;}
  #sec-catalog #catalogGrid > .book-card p,
  #sec-catalog #catalogGrid > .book-card span,
  #sec-catalog #catalogGrid > .book-card button {font-size:15px!important;}
  #sec-catalog #catalogGrid > .book-card img[alt="Обложка произведения"] {width:100px!important;margin:4px 0 12px 14px!important;}
}
