/* Bookshop suggestions share the site's saved light/dark appearance. */
.bookshop-shelf { margin: 0 0 2.5rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: .875rem; background: var(--sage); color: var(--ink); }
.bookshop-shelf .bookshop-ad { margin: 0 0 1.5rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); font: .875rem/1.6 var(--font-body); color: var(--ink); }
.bookshop-shelf .bookshop-heading h2 { margin: 0 0 .75rem; font: clamp(1.75rem, 3vw, 2.25rem)/1.2 var(--font-display); letter-spacing: -.025em; }
.bookshop-heading > p { max-width: 46rem; margin: 0; font-size: 1rem; }
.bookshop-shelf .bookshop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.5rem 0; }
.bookshop-shelf .bookshop-card { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: .625rem; background: var(--paper); }
.bookshop-card .bookshop-format { margin: 0 0 .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bookshop-card h3 { margin: 0 0 .75rem; font: 1.65rem/1.2 var(--font-display); letter-spacing: -.025em; overflow-wrap: break-word; }
.bookshop-card .bookshop-credits { margin: 0 0 .875rem; font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.bookshop-card .bookshop-description { margin: 0 0 1.25rem; font-size: .9375rem; line-height: 1.65; }
.bookshop-shelf .affiliate-actions { display: flex; align-items: center; gap: .5rem; margin-top: auto; }
.bookshop-shelf .bookshop-button { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3rem; padding: .75rem .875rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--sage); color: var(--ink); font-size: .875rem; font-weight: 600; line-height: 1.5; text-decoration: none; }
.bookshop-shelf .bookshop-card > .bookshop-button { margin-top: auto; }
.bookshop-shelf .affiliate-icon-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--sage); color: var(--ink); text-decoration: none; }
.bookshop-shelf .affiliate-icon-link-secondary { background: transparent; }
.bookshop-shelf .affiliate-favicon { display: block; width: 1.25rem; height: 1.25rem; object-fit: contain; }
.bookshop-shelf .affiliate-price { position: absolute; z-index: 2; bottom: calc(100% + .5rem); left: 50%; min-width: max-content; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--ink); color: var(--paper); font-size: .75rem; font-weight: 700; line-height: 1.25; letter-spacing: .01em; opacity: 0; visibility: hidden; transform: translate(-50%, .2rem); transition: opacity .15s ease, transform .15s ease, visibility .15s; pointer-events: none; }
.bookshop-shelf .affiliate-price::after { content: ""; position: absolute; top: 100%; left: 50%; width: .45rem; height: .45rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.bookshop-shelf .affiliate-icon-link:hover, .bookshop-shelf .affiliate-icon-link:focus-visible { background: var(--hover); }
.bookshop-shelf .affiliate-icon-link:hover .affiliate-price, .bookshop-shelf .affiliate-icon-link:focus-visible .affiliate-price { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.bookshop-button:hover { background: var(--hover); }
.bookshop-shelf .bookshop-note, .bookshop-shelf .bookshop-store { margin: 1rem 0 0; font-size: .875rem; line-height: 1.65; color: var(--muted); }
.he-prose .bookshop-shelf { margin-top: 2.5rem; }
.he-prose .bookshop-grid { grid-template-columns: 1fr; }
@media (max-width: 900px) { .bookshop-shelf .bookshop-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .bookshop-shelf .affiliate-price { transition: none; } }
@media print { .bookshop-shelf { display: none; } }
