/* Bookshelf: one uniform entry per book, so the shelf grows without growing taller. */
.shelf-list { list-style: none; margin: 0; padding: 0; }
.shelf-book { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px 40px; padding: 30px 0 34px; border-top: 1px solid var(--ds-line); scroll-margin-top: calc(var(--nav-h, 84px) + 16px); }
.shelf-book:first-child { border-top: 0; padding-top: 4px; }
.shelf-cover { display: block; align-self: start; }
.shelf-cover img { width: 100%; height: auto; border: 1px solid var(--ds-line); box-shadow: 8px 10px 18px rgba(36, 37, 31, .12); transition: transform .3s ease; }
.shelf-book:hover .shelf-cover img { transform: translateY(-3px); }
.shelf-body { min-width: 0; max-width: 760px; }
.shelf-body h3 { margin: 0 0 4px; font-size: clamp(26px, 3vw, 34px); line-height: 1.12; }
.shelf-author { margin: 0 0 14px; font-size: 14px; color: var(--ds-muted); }
.shelf-subtitle { margin: -2px 0 6px; font: 400 17px/1.35 var(--ds-display); color: var(--ds-text); }
.shelf-question { margin: 0 0 12px; font: 500 21px/1.35 var(--ds-display); color: var(--ds-ink); }
.shelf-note { margin: 0 0 10px; font-size: 15.5px; line-height: 1.65; color: var(--ds-text); }
.shelf-context { margin: 0 0 18px; font-size: 13px; line-height: 1.6; color: var(--ds-muted); }
.shelf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.shelf-amazon-link { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 14px; border: 1px solid #b9b6a6; border-radius: 3px; font-size: 13.5px; text-decoration: none; }
.shelf-amazon-link small { font-size: 12px; color: var(--ds-muted); }
.shelf-amazon-link:hover { border-color: var(--ds-accent); color: var(--ds-accent); }
.shelf-thread { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--ds-line); font-size: 14px; }
.shelf-thread > span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ds-muted); }
.shelf-thread a { color: var(--ds-ink); text-decoration: underline; text-underline-offset: 3px; }
.shelf-thread a:hover { color: var(--ds-accent); }
.shelf-disclosure { margin: 26px 0 0; padding: 14px 18px; border-left: 3px solid var(--ds-accent); background: var(--ds-paper); font-size: 13.5px; line-height: 1.6; color: var(--ds-text); }
.shelf-disclosure strong { font-weight: 600; }

/* A book on the radar comes with a way in. */
.shelf-book-radar { grid-template-columns: 168px minmax(0, 1fr) minmax(0, 300px); }
.shelf-watch { align-self: start; padding: 0 0 0 28px; border-left: 1px solid var(--ds-line); }
.shelf-video { aspect-ratio: 16 / 9; margin-bottom: 12px; background: #222; }
.shelf-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.shelf-watch h4 { margin: 0 0 4px; font: 600 19px/1.25 var(--ds-display); }
.shelf-watch-meta { margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ds-muted); }
.shelf-watch p:not(.shelf-watch-meta) { margin: 0 0 12px; font-size: 14px; line-height: 1.6; color: var(--ds-text); }
.shelf-watch .shelf-actions { gap: 8px 18px; }
.shelf-watch .ed-text-link { font-size: 13px; }

@media (max-width: 1000px) {
  .shelf-book { grid-template-columns: 140px minmax(0, 1fr); gap: 18px 28px; }
  .shelf-book-radar { grid-template-columns: 140px minmax(0, 1fr); }
  .shelf-watch { grid-column: 1 / -1; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--ds-line); max-width: 560px; }
}
@media (max-width: 700px) {
  .shelf-book { grid-template-columns: 104px minmax(0, 1fr); gap: 14px 18px; padding: 24px 0 26px; }
  .shelf-book-radar { grid-template-columns: 104px minmax(0, 1fr); }
  .shelf-body { grid-column: 1 / -1; }
  .shelf-cover { grid-column: 1; }
  .shelf-book > .shelf-cover + .shelf-body { grid-column: 1 / -1; }
  .shelf-body h3 { font-size: 26px; }
  .shelf-question { font-size: 19px; }
  .shelf-note { font-size: 15px; }
  .shelf-actions { gap: 10px 18px; }
  .shelf-watch { padding-top: 18px; }
}
