/* Paper and Word · Books catalog */
.shelf-head.pagehead{padding-top:clamp(28px,4vw,54px);padding-bottom:22px}
.shelf-head.pagehead h1{margin:5px 0 0;font-size:clamp(41px,5.4vw,68px)}
.shelf-head.pagehead p.lede{margin:5px 0 0;max-width:58ch;font-size:16px}
.shelf-scripture-note{max-width:68ch;margin:10px 0 0;color:var(--body);font-size:14px;line-height:1.45}
.shelf-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 24px;margin-top:14px}
.shelf-jump{display:flex;flex-wrap:wrap;gap:4px 22px}
.shelf-cover-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;color:var(--body);font:500 14px/1.35 var(--text)}
.shelf-cover-controls[hidden]{display:none}
.shelf-cover-controls .btn{min-height:44px;font:500 14px/1.35 var(--text)}
.shelf-cover-controls .btn:focus-visible{outline:2px solid var(--navy);outline-offset:3px}
.shelf-jump a,.shelf-up,.shelf-read{display:inline-flex;align-items:center;min-height:44px;color:var(--navy);font-weight:500;text-underline-offset:.25em;text-decoration-thickness:1px}
.shelf-jump a{gap:6px;font-size:15px}
.shelf-jump a::after{content:'↓';font-size:.95em}
:root[data-theme="night"] .shelf-head.pagehead{padding-bottom:38px}
.shelf-section{padding-block:clamp(26px,4vw,48px) 12px;scroll-margin-top:16px}
.shelf-section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:10px 18px;margin-bottom:clamp(16px,2.6vw,28px);padding-bottom:8px;border-bottom:1px solid var(--line2)}
.shelf-section-heading h2{font:400 clamp(32px,4vw,48px)/1.1 var(--display);margin:0}
.shelf-section-heading p{margin:0;color:var(--goldInk);font:500 13px/1.4 var(--text)}
.shelf-section-meta{display:flex;flex-direction:column;align-items:flex-end;gap:2px;min-width:0;text-align:right}
.shelf-section-meta .shelf-set-save{color:var(--ink)}
.shelf-grid{--gutter:clamp(14px,2.5vw,31px);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:var(--gutter);row-gap:clamp(25px,3.4vw,44px);list-style:none;padding:0;margin:0}
.shelf-grid li{min-width:0}
.shelf-book{display:block;width:100%;padding:0;border:0;background:transparent;color:var(--ink);text-align:left;font:inherit;cursor:pointer}
a.shelf-book{text-decoration:none}
.shelf-art{box-sizing:border-box;position:relative;display:flex;align-items:flex-end;justify-content:center;width:100%;aspect-ratio:1/.99;padding:0 7px 6px}
.shelf-art::after{content:'';position:absolute;z-index:1;left:0;right:0;bottom:0;height:4px;border-top:1px solid var(--gold);border-bottom:1px solid var(--line2);background:var(--card);box-shadow:0 3px 4px -3px var(--shadow)}
.shelf-art img{display:block;width:auto;max-width:100%;height:100%;object-fit:contain;object-position:center bottom;box-shadow:1px 2px 5px var(--shadow)}
.shelf-title,.shelf-english,.shelf-meta{display:block;overflow-wrap:anywhere}
.shelf-title{margin-top:13px;font:400 clamp(21px,2.25vw,28px)/1.1 var(--display)}
.shelf-english{margin-top:3px;color:var(--body);font:italic 400 clamp(15px,1.5vw,18px)/1.28 var(--display)}
.shelf-meta{margin-top:8px;color:var(--muted);font:400 13px/1.4 var(--text)}
.shelf-action{margin-left:8px;color:var(--navy);text-decoration:underline;text-underline-offset:.2em}
.shelf-read{margin-top:3px;font-size:14px;line-height:1.22}
.shelf-reading-links{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:14px;row-gap:0}
.shelf-reading-links .shelf-read{min-height:44px;margin-top:0}
.shelf-reading-links .shelf-pdf{gap:5px;font-weight:600}
.shelf-reading-links .shelf-pdf span{font:400 .94em var(--text);text-decoration:none}
.shelf-reading-links .shelf-interactive{color:var(--body);font-weight:400}
.shelf-up{margin-top:14px;font-size:14px}
.shelf-book:focus-visible,.shelf-jump a:focus-visible,.shelf-read:focus-visible,.shelf-up:focus-visible{outline:2px solid var(--navy);outline-offset:4px}
@media(hover:hover){.shelf-book:hover .shelf-title{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.12em}.shelf-jump a:hover,.shelf-read:hover,.shelf-up:hover{text-decoration-thickness:2px}}
.shelf-edition{margin:8px 0 0;color:var(--body);font:400 14px/1.45 var(--text)}
.shelf-detail{margin-top:20px}
@media(max-width:979px){.shelf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shelf-art{aspect-ratio:1/1.07}}
@media(max-width:699px){.shelf-grid{grid-template-columns:repeat(2,minmax(0,1fr));--gutter:clamp(14px,4vw,25px)}.shelf-art{aspect-ratio:1/1.12}.shelf-head.pagehead{padding-top:23px;padding-bottom:16px}.shelf-tools{margin-top:7px}.shelf-title{margin-top:10px}.shelf-action{margin-left:6px}.shelf-section-heading{margin-bottom:16px}}


/* The open book occupies the row it belongs to; the other volumes stay on the shelf. */
.shelf-entry:has([data-reader-open]){grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.22fr) minmax(160px,.78fr);align-items:center;gap:clamp(18px,5vw,72px);padding-block:15px;border-block:1px solid var(--line)}
.catalog-stage{min-width:0}
.shelf-title-link{display:block;width:100%;border:0;padding:0;background:none;font:inherit;color:var(--ink);text-align:left;cursor:pointer}
.shelf-title-link:focus-visible,.edition-option:focus-visible{outline:2px solid var(--navy);outline-offset:4px}
.shelf-entry:has([data-reader-open]) .shelf-title{font-size:clamp(28px,3.5vw,50px)}
@media(max-width:699px){
 .shelf-entry:has([data-reader-open]){grid-template-columns:1fr;gap:5px;padding-block:12px}
 .shelf-entry:has([data-reader-open]) .shelf-title{font-size:24px}
}

.shelf-title-link,.edition-option{text-decoration:none}

.shelf-entry-copy{min-width:0}
.shelf-entry .edition-picker{margin-top:12px}
.shelf-entry .edition-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:245px;gap:5px}
.shelf-entry .edition-option{min-width:0;padding:5px;gap:5px;justify-content:center;font-size:12px}
.shelf-entry .edition-option img{width:clamp(18px,2.1vw,27px)}
@media (max-width:360px){
  .shelf-entry .edition-option{flex-direction:column;gap:4px}
}

.store-formats{margin-top:24px}
.store-formats h3{margin:6px 0 9px;font:400 clamp(24px,2.4vw,33px)/1.16 var(--display);color:var(--ink)}
.store-formats p{margin:0;color:var(--body);font-size:16px}
.store-formats .kind{font-size:12px;font-weight:600;letter-spacing:.10em;text-transform:uppercase;color:var(--goldInk)}
.store-samples{margin:24px 0 0;color:var(--body)}
.store-samples a{color:var(--navy);text-underline-offset:.18em}
@media(max-width:740px){.store-formats{grid-template-columns:1fr}}
