.recommendations .page-heading { margin-bottom: 24px; }
.book-shelf { min-width: 0; }
.book-shelf + .book-shelf {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.shelf-head h2 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 740;
  line-height: 1.25;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.shelf-tools { display: flex; flex: none; align-items: center; gap: 8px; }
.shelf-all { min-height: 44px; padding-inline: 3px; white-space: nowrap; }
.shelf-arrows { display: flex; gap: 4px; }
.shelf-arrows .icon-button { width: 44px; min-height: 44px; border-color: var(--line); color: var(--ink); }
.shelf-arrows .icon-button:hover:not([aria-disabled='true']) { border-color: var(--accent); color: var(--accent-ink); }
.shelf-arrows [aria-disabled='true'] { background: none; color: var(--muted); opacity: .5; cursor: default; }
.shelf-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(116px, 17%, 170px);
  align-items: start;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
  list-style: none;
  margin: 0 -4px;
  padding: 4px 4px 10px;
}
.shelf-track::-webkit-scrollbar { display: none; }
.shelf-card { min-width: 0; scroll-snap-align: start; }
.shelf-card-link { display: block; }
.shelf-card-link:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.shelf-track :focus-visible { outline-offset: 2px; }
.shelf-cover { position: relative; }
.shelf-cover .cover { box-shadow: none; }
.shelf-cover .cover::after { display: none; }
.shelf-age {
  position: absolute;
  z-index: 2;
  inset: 6px auto auto 6px;
  padding: 1px 4px;
  background: var(--surface);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
}
.shelf-card h3 {
  min-height: 2.6em;
  margin-top: 7px;
  font-size: .94rem;
  font-weight: 730;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.shelf-author, .shelf-meta { color: var(--muted); font-size: .8rem; line-height: 1.35; overflow-wrap: anywhere; }
.shelf-author { margin-top: 3px; }
.shelf-author a { display: inline-flex; align-items: center; min-height: 24px; max-width: 100%; }
.shelf-meta { display: flex; flex-wrap: wrap; column-gap: 6px; row-gap: 4px; align-items: center; margin-top: 4px; }
.shelf-empty { padding: 12px 0; color: var(--muted); font-size: .9rem; }

@media (max-width: 570px) {
  .recommendations .page-heading { margin-bottom: 20px; }
  .book-shelf + .book-shelf { margin-top: 16px; padding-top: 18px; }
  .shelf-head { gap: 6px; margin-bottom: 8px; }
  .shelf-track { grid-auto-columns: clamp(106px, 34%, 154px); gap: 10px; }
}

@media (max-width: 570px) and (pointer: coarse) {
  .shelf-arrows { display: none; }
}

