/* The shelf (books.php) only: the books centred as large objects with symmetric spacing. */
.shelf-head { text-align: center; }
.shelf-head p { margin-inline: auto; }
.shelf-head .caps { margin-bottom: 10px; }
.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 420px)); justify-content: center; gap: clamp(32px, 5vw, 72px) clamp(32px, 6vw, 96px); padding: clamp(12px, 3vw, 32px) 0 clamp(32px, 5vw, 56px); }
.shelf-item { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.shelf-art { position: relative; display: grid; place-items: center; width: 100%; padding: 8px 10% 34px; }
.shelf-art a { display: block; width: min(100%, 320px); }
.shelf-art .cover { transform: rotateY(-10deg) rotateX(2deg); transform-origin: center; }
.shelf-art .cover img, .shelf-art .cover-typeset { box-shadow: 30px 44px 64px -24px rgba(14, 22, 38, .55), 3px 6px 14px rgba(14, 22, 38, .22); }
.shelf-art .badge { position: absolute; top: 8px; left: 0; }
.shelf-no { margin-bottom: 10px; }
.shelf-item h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 6px; max-width: 18ch; }
.shelf-item h2 a { color: inherit; text-decoration: none; }
.shelf-item h2 a:hover { color: var(--gold-text); }
.shelf-tag { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--gold-text); margin: 0 0 10px; max-width: 34ch; }
.shelf-edition { color: var(--muted); margin: 10px 0 12px; }
.shelf-price { margin: 0 0 16px; }
.shelf-price .price { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; }
.shelf-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.shelf-set { max-width: 900px; margin: 0 auto clamp(24px, 4vw, 40px); }
@media (max-width: 760px) { .shelf { gap: 48px 24px; } .shelf-art { padding: 4px 14% 28px; } }
