/* One swipeable row, shared by the homepage and the book catalogue. */
.category-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.category-heading .section-title{margin:0}
.category-strip:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.category-strip{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding:4px 2px 16px;touch-action:pan-x pan-y;direction:ltr}
.category-track,.category-group{display:flex;align-items:stretch;gap:12px;width:max-content}
.category-track{position:relative}
.category-group[hidden]{display:none}
.category-strip .cat-card{display:flex;align-items:center;gap:12px;flex:none;width:auto;min-height:76px;padding:12px 18px;border:1px solid var(--line);border-radius:16px;background:var(--soft-white);text-align:left;cursor:pointer;white-space:nowrap;user-select:none}
.category-strip .cat-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:12px;background:var(--white);font-size:1.4rem;box-shadow:none}
.category-strip .cat-info h4{font:800 .94rem var(--display);color:var(--cobalt);margin:0 0 4px;white-space:nowrap}
.category-strip .cat-info small{font:.75rem var(--body);color:var(--muted)}
.category-strip .cat-card:hover{border-color:var(--royal);transform:none}
.category-strip .cat-card[aria-pressed="true"]{border-color:var(--royal);box-shadow:inset 0 0 0 1px var(--royal);background:var(--royal-soft)}
.category-strip .cat-card:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.category-strip.is-dragging{cursor:grabbing;scroll-behavior:auto}
.category-strip.is-dragging .cat-card{cursor:grabbing}
.category-section{padding-bottom:24px}
.catalogue-books{scroll-margin-top:100px}
.catalogue-books.section{padding-top:24px}
.catalogue-books .home-books{margin-top:0}
.catalogue-books .shelf-btns{margin-top:28px}
#spotBlurb{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-height:5.1em}
:root[data-theme="dark"] .category-strip .cat-card{background:#121C2E;border-color:#30415E}
:root[data-theme="dark"] .category-strip .cat-card[aria-pressed="true"]{background:#1A2E52;border-color:#92B4FF;box-shadow:inset 0 0 0 1px #92B4FF}
:root[data-theme="dark"] .category-strip .cat-info h4{color:#EEF2FA}
:root[data-theme="dark"] .category-strip .cat-info small{color:#BCCAE3}
:root[data-theme="dark"] .category-strip .cat-icon{background:#0E1625}
@media(max-width:640px){
  .category-heading{gap:10px;align-items:flex-start}
  .category-heading .section-title p{font-size:.85rem}
  .category-strip .cat-card{padding:10px 14px;min-height:70px}
  .category-strip .cat-info h4{font-size:.88rem}
  .category-strip .cat-icon{width:34px;height:34px;font-size:1.2rem}
}
