/* partials/shop-shelf.njk. Own colors, because drills, guides, and reference pages define different variables.
   On games it takes the newsletter card's place under the leaderboard, so its height is kept close to that card's. */
.shop-shelf { --s-card:#fff; --s-line:#e7e5e4; --s-ink:#1c1917; --s-dim:#625c57; --s-link:#0b7c72; box-sizing:border-box; width:100%; max-width:900px; margin:20px auto; font-family:Inter,-apple-system,system-ui,sans-serif; color:var(--s-ink); text-align:left; clear:both; }
body.dark-mode .shop-shelf { --s-card:#242120; --s-line:#4a4541; --s-ink:#f5f5f4; --s-dim:#c9c3bd; --s-link:#5eead4; }
.shop-shelf .ss-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 0 6px; font-size:15px; line-height:1.3; }
.shop-shelf .ss-head a { padding:4px 0; color:var(--s-link); font-size:14px; font-weight:600; text-underline-offset:3px; }
.shop-shelf ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0; padding:0; list-style:none; }
.shop-shelf :is(p, ul, li, a, b, i, em, span) { font-family:inherit; letter-spacing:normal; }
.shop-shelf li { margin:0; padding:0; }
.shop-shelf li::before { content:none; }
.shop-shelf li a { display:flex; align-items:center; gap:12px; height:100%; box-sizing:border-box; padding:8px; border:1px solid var(--s-line); border-radius:12px; background:var(--s-card); color:inherit; text-decoration:none; }
.shop-shelf li a:hover { border-color:var(--s-link); }
.shop-shelf li a:hover b { text-decoration:underline; text-underline-offset:3px; }
.shop-shelf img { flex:0 0 auto; width:116px; height:116px; border-radius:7px; object-fit:cover; background:#f1f5f9; }
.shop-shelf span { min-width:0; }
.shop-shelf i, .shop-shelf em, .shop-shelf li b { display:block; font-style:normal; }
.shop-shelf i { font-size:12.5px; font-weight:600; color:var(--s-dim); }
.shop-shelf li b { margin:2px 0 5px; font-size:14.5px; font-weight:700; line-height:1.25; }
.shop-shelf em { font-size:15px; font-weight:700; color:var(--s-link); }
.shop-shelf a:focus-visible { outline:3px solid var(--s-link); outline-offset:2px; }
@media (max-width:900px) { .shop-shelf:not(main.app > .shop-shelf) { padding:0 16px; } .lesson .shop-shelf, .zp-page .shop-shelf { padding:0 !important; } }
@media (max-width:760px) {
    .shop-shelf ul { gap:8px; }
    .shop-shelf li a { display:block; padding:6px 6px 9px; }
    .shop-shelf img { width:100%; height:auto; aspect-ratio:1; margin-bottom:6px; }
    .shop-shelf li b { display:none; }
    .shop-shelf i { font-size:13px; color:var(--s-ink); overflow-wrap:anywhere; }
}
@media print { .shop-shelf { display:none; } }
