/* Books page shelves: uses the site's own colours and fonts from /styles.css */
.book-tools{flex-wrap:wrap}
.lang-tabs{display:flex;gap:7px;flex-wrap:wrap}
.lang-tab{background:transparent;border:1px solid transparent;padding:7px 12px;font-size:12px;color:#67717d;cursor:pointer;min-height:36px}
.lang-tab:hover{border-color:#c6bba4}
.lang-tab[aria-pressed=true]{background:var(--navy);color:#fff}
.lang-tab:focus-visible,.ed-chip:focus-visible,.store-link:focus-visible{outline:2px solid #b98743;outline-offset:2px}
.shelf-jump{display:flex;gap:20px;overflow-x:auto;padding:4px 0 14px;margin-bottom:6px;font-size:13px;white-space:nowrap}
.shelf-jump a{flex:none;color:#5d6773;border-bottom:1px solid transparent;padding-bottom:2px}
.shelf-jump a:hover{color:var(--ink);border-color:var(--gold-dark)}
.shelf{padding-top:44px;scroll-margin-top:96px}
.shelf:first-child{padding-top:18px}
.shelf-head{display:flex;justify-content:space-between;align-items:flex-end;gap:10px 30px;flex-wrap:wrap;border-bottom:1px solid var(--gold-dark);padding-bottom:14px;margin-bottom:22px}
.shelf-head .eyebrow{margin:0 0 8px}
.shelf-head h3{font:500 clamp(26px,3vw,34px)/1.15 var(--serif);margin:0;letter-spacing:-.02em}
.shelf-head p:not(.eyebrow){margin:6px 0 0;color:#69727c;font-size:14px;max-width:560px}
.shelf-series{font-size:12px;font-weight:700;border-bottom:1px solid #a97832;padding-bottom:3px;white-space:nowrap}
.shelf-series span{color:#a97832;margin-left:5px}
.shelf-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px 18px}
.shelf-book{background:#fff;border:1px solid #e2dfd7;display:flex;flex-direction:column}
.shelf-cover{display:flex;align-items:center;justify-content:center;background:#f1efe9;padding:14px 14px 0;line-height:0}
.shelf-cover img{width:100%;max-width:170px;aspect-ratio:2/3;object-fit:contain;box-shadow:0 8px 18px rgba(16,26,43,.18)}
.shelf-copy{padding:13px 14px 15px;display:flex;flex-direction:column;gap:7px;flex:1}
.shelf-copy h4{font:500 17px/1.25 var(--serif);margin:0;color:var(--ink);overflow-wrap:anywhere}
.shelf-sub{margin:0;font-size:12px;line-height:1.45;color:#69727c;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ed-chips{display:flex;flex-wrap:wrap;gap:4px}
.ed-chip{border:1px solid var(--line);background:#f7f5ef;color:#4c5560;font-size:10px;font-weight:700;letter-spacing:.06em;padding:4px 7px;cursor:pointer;min-height:26px}
.ed-chip[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:#fff}
.store-links{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:auto;padding-top:4px}
.store-link{font-size:12px;font-weight:700;border-bottom:1px solid #a97832;padding-bottom:3px}
.store-link span{color:#a97832;margin-left:3px}
@media(max-width:1100px){.shelf-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:850px){.shelf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.lang-tabs{padding-top:10px;gap:3px}.lang-tab{padding:8px 9px;font-size:11px}.shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.shelf-copy{padding:11px}.shelf-copy h4{font-size:15px}.shelf{scroll-margin-top:80px}}
