/* Catalog layout only. Book cards and the responsive grid are shared in site.css. */
.books-list-page .catalog-hero { position: relative; isolation: isolate; overflow: hidden; margin-bottom: 38px; color: #fff; background: #1c2528; }
.books-list-page .catalog-hero__image { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.books-list-page .catalog-hero::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, #11182080, #111820b8); }
.books-list-page .catalog-hero__inner { position: relative; padding-top: 32px; padding-bottom: 30px; text-align: center; }
.books-list-page .catalog-hero h1 { max-width: 900px; margin: 0 auto 9px; color: #fff; font: 700 62px/1.1 Georgia, 'Times New Roman', serif; text-shadow: 0 2px 5px #0004; }
.books-list-page .catalog-hero__description { margin: 0 auto 28px; color: #f1f0f3; font-size: 16px; line-height: 1.5; }
.books-list-page .catalog-search { display: flex; align-items: center; gap: 15px; width: 60%; max-width: 740px; min-height: 56px; margin: 0 auto; padding: 5px 5px 5px 24px; border: 1px solid #e8e7ee; border-radius: 999px; background: #fff; box-shadow: 0 3px 14px #0002; }
.books-list-page .catalog-search > i { flex-shrink: 0; color: #8187a2; font-size: 17px; }
.books-list-page .catalog-search input { flex: 1; min-width: 0; width: 100%; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0; outline: none; color: #293243; background: transparent; box-shadow: none; font: inherit; font-size: 13px; }
.books-list-page .catalog-search input::placeholder { color: #9399ad; opacity: 1; }
.books-list-page .catalog-search:focus-within { outline: 3px solid #a69bff; outline-offset: 3px; }
.books-list-page .catalog-search .site-button { flex-shrink: 0; min-width: 108px; min-height: 44px; padding: 11px 27px; background: linear-gradient(110deg, #5140e8, #4030c1); }
.books-list-page .catalog-search .site-button:hover { background: #3927b7; }
.books-list-page .catalog-topics { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 60%; max-width: 740px; margin: 20px auto 0; text-align: left; }
.books-list-page .catalog-topics a { display: inline-flex; align-items: center; justify-content: center; min-height: 35px; padding: 8px 16px; border: 1px solid #ffffff08; border-radius: 14px; color: #efedf4; background: #ffffff17; font-size: 11px; line-height: 1.5; text-decoration: none; transition: background-color .15s; }
.books-list-page .catalog-topics a:hover { color: #fff; background: #ffffff30; }
.books-list-page .catalog-hero__quote { position: absolute; right: 0; bottom: 33px; width: 220px; margin: 0; padding-left: 21px; text-align: left; }
.books-list-page .catalog-hero__quote > i { position: absolute; top: 7px; left: 0; color: #be9a52; font-size: 14px; }
.books-list-page .catalog-hero__quote p { margin: 0 0 12px; color: #f5f2f0; font: italic 23px/1.45 Georgia, 'Times New Roman', serif; }
.books-list-page .catalog-hero__quote cite { display: flex; align-items: center; gap: 9px; color: #c2bfc3; font: 11px/1.5 Inter, Arial, sans-serif; }
.books-list-page .catalog-hero__quote cite::before { content: ''; width: 29px; height: 1px; background: #ac904e; }
.books-list-page .catalog-topics a:focus-visible,
.books-list-page .catalog-search button:focus-visible { outline: 2px solid #a195ff; outline-offset: 3px; }
.books-list-page .site-content { padding-bottom: 64px; }
.books-list-page .site-content > .site-container > .row { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 36px; margin: 0; }
.books-list-page.left-sidebar #primary,
.books-list-page.left-sidebar #secondary { width: auto; max-width: none; padding: 0; min-width: 0; }
.books-list-page #primary { grid-column: 2; }
.books-list-page #secondary { grid-column: 1; grid-row: 1; }
.books-list-page .catalog-sidebar { padding: 22px 14px 14px; border-radius: 16px; background: #f8f9fe; }
.books-list-page .category-menu__toggle { display: none; }
.books-list-page #catalog-category-links[hidden] { display: none; }
.books-list-page #secondary .category-menu { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.books-list-page #secondary .category-menu .widget-title { margin: 0 4px 18px; color: #222737; font: 600 20px/1.3 Inter, Arial, sans-serif; }
.books-list-page #secondary .category-menu__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.books-list-page #secondary .category-menu__item { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 46px; margin: 0; padding: 10px 12px; border: 0; border-radius: 11px; color: #697181; transition: background-color .15s, color .15s; }
.books-list-page .category-menu__item > i { width: 20px; margin: 0; font-size: 18px; line-height: 1; text-align: center; color: inherit; }
.books-list-page #secondary .category-menu__link { display: block; min-width: 0; padding: 0; color: inherit; font-size: 14px; font-weight: 400; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.books-list-page .category-menu__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.books-list-page .category-menu__link:focus-visible { outline: none; }
.books-list-page #secondary .category-menu__item:hover { background: #f0effc; color: var(--site-accent); }
.books-list-page #secondary .category-menu__item.is-active { background: #ebe8ff; color: var(--site-accent); }
.books-list-page #secondary .category-menu__item.is-active .category-menu__link { font-weight: 500; }
.books-list-page .category-menu__count { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; min-height: 23px; padding: 2px 5px; border-radius: 9px; background: #f0f1f8; color: #737b8b; font-size: 11px; font-weight: 600; line-height: 1; }
.books-list-page .category-menu__item.is-active .category-menu__count { background: #ded8ff; color: #7564df; }
.books-list-page .catalog-reading { margin-top: 22px; padding: 38px 26px 34px; border-radius: 13px; background: #eeedff; }
.books-list-page .catalog-reading__icon { display: block; margin-bottom: 28px; color: #d8d3ff; font-size: 62px; line-height: 1; }
.books-list-page .catalog-reading h3 { margin: 0 0 16px; color: #252046; font: 700 30px/1.18 Georgia, 'Times New Roman', serif; letter-spacing: -.025em; }
.books-list-page .catalog-reading p { margin: 0; color: #858297; font-size: 14px; line-height: 1.65; }
.books-list-page .table-responsive { margin-top: 36px; }
.template-columns-auto {grid-template-columns: auto !important;}

@media (max-width: 1199px) {
  .books-list-page .catalog-hero__quote { display: none; }
  .books-list-page .catalog-search,
  .books-list-page .catalog-topics { width: 80%; }
  .books-list-page .site-content > .site-container > .row { grid-template-columns: 210px minmax(0, 1fr); gap: 26px; }
  .books-list-page .catalog-sidebar { padding: 20px 10px 10px; }
  .books-list-page #secondary .category-menu__item { gap: 9px; padding: 10px 8px; }
  .books-list-page #secondary .category-menu__link { font-size: 12px; }
  .books-list-page .catalog-reading { padding: 30px 18px; }
  .books-list-page .catalog-reading h3 { font-size: 25px; }
  .books-list-page .catalog-reading p { font-size: 12px; }
}
@media (max-width: 991px) {
  .books-list-page .site-content > .site-container > .row { grid-template-columns: minmax(0, 1fr); }
  .books-list-page #primary { grid-column: 1; grid-row: 2; }
  .books-list-page.left-sidebar #secondary { display: block !important; grid-column: 1; grid-row: 1; align-self: start; }
  .books-list-page .catalog-sidebar { padding: 0; border: 1px solid #eceaf8; border-radius: 14px; }
  .books-list-page #secondary .category-menu .widget-head { display: none; }
  .books-list-page .category-menu__toggle { display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 14px 16px; border: 0; border-radius: 14px; color: var(--site-accent); background: transparent; text-align: left; cursor: pointer; }
  .books-list-page .category-menu__toggle > i:first-child { font-size: 20px; }
  .books-list-page .category-menu__toggle-label { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
  .books-list-page .category-menu__toggle-label strong { color: #293044; font-size: 15px; line-height: 1.4; font-weight: 600; }
  .books-list-page .category-menu__toggle-label > span { overflow: hidden; color: #798197; font-size: 12px; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
  .books-list-page .category-menu__toggle-arrow { font-size: 12px; transition: transform .18s; }
  .books-list-page .category-menu.is-open .category-menu__toggle-arrow { transform: rotate(180deg); }
  .books-list-page #secondary .category-menu:not(.is-open) .widget-content { display: none; }
  .books-list-page #catalog-category-links { max-height: 60vh; max-height: 60dvh; overflow-y: auto; overscroll-behavior: contain; padding: 5px 10px 12px; border-top: 1px solid #eceaf8; }
  .books-list-page #secondary .category-menu__item { gap: 12px; padding: 12px; min-height: 48px; }
  .books-list-page #secondary .category-menu__link { font-size: 14px; }
  .books-list-page .catalog-reading { display: none; }
}
@media (max-width: 767px) {
  .books-list-page .catalog-hero { margin-bottom: 26px; }
  .books-list-page .catalog-hero__inner { padding-top: 30px; padding-bottom: 26px; }
  .books-list-page .catalog-hero h1 { font-size: 42px; overflow-wrap: anywhere; }
  .books-list-page .catalog-hero__description { max-width: 450px; margin-bottom: 23px; font-size: 13px; }
  .books-list-page .catalog-hero__break { display: none; }
  .books-list-page .catalog-search,
  .books-list-page .catalog-topics { width: 100%; }
  .books-list-page .catalog-search { gap: 10px; min-height: 52px; padding-left: 15px; }
  .books-list-page .catalog-search > i { font-size: 14px; }
  .books-list-page .catalog-search input { font-size: 12px; }
  .books-list-page .catalog-search .site-button { min-width: 78px; min-height: 40px; padding: 10px 16px; font-size: 12px; }
  .books-list-page .catalog-topics { gap: 7px; margin-top: 15px; }
  .books-list-page .catalog-topics a { min-height: 32px; padding: 7px 11px; font-size: 10px; }
  .books-list-page .site-content { padding-bottom: 32px; }
}
