/* Model A v2, group "library": library.html (tabs: books / visit / about) and book.html.
   Page-level styles only, scoped under .page-library and .page-book. Uses the v2 tokens from site.css.
   Font: inherited "Neo Sans Arabic" only. */

/* ---------- Book cover frames: the scan whole, at its own ratio, standing on the frame's base ---------- */
.page-library .bk-cover, .page-book .bk-cover {
  --cw: 96px; --ch: 136px;
  display: flex; align-items: flex-end; justify-content: center;
  width: var(--cw); height: var(--ch); flex: none; position: relative;
}
.page-library .bk-cover img, .page-book .bk-cover img {
  width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 4px 6px color-mix(in srgb, var(--wine-900) 26%, transparent));
}
.page-library .bk-cover.lg { --cw: 100%; --ch: 220px; }
.page-library .bk-cover.lg img { max-width: 150px; }
.page-book .bk-cover.sm { --cw: 64px; --ch: 92px; }
.page-book .bk-cover.hero { --cw: 228px; --ch: 340px; }
/* Honest no-cover plate (the live page shows a theme placeholder for these books) */
.bk-none {
  flex: none; height: 100%; aspect-ratio: 2 / 3; display: grid; place-content: center; justify-items: center; gap: 10px;
  background: var(--wine-800); color: var(--on-wine-2); text-align: center; padding: 10px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent), inset 0 0 0 5px var(--wine-800), inset 0 0 0 6px color-mix(in srgb, var(--gold) 25%, transparent), var(--shadow-book);
  font-size: .75rem; line-height: 1.4;
}
.bk-none .mark { color: var(--gold); width: 22px; height: 24px; }
.page-library .bk-cover.lg .bk-none { font-size: .875rem; gap: 14px; }
.page-library .bk-cover.lg .bk-none .mark { width: 30px; height: 33px; }
.page-book .bk-cover.sm .bk-none { font-size: .625rem; padding: 4px; gap: 4px; }
.page-book .bk-cover.sm .bk-none .mark { width: 14px; height: 15px; }
.page-book .bk-cover.hero .bk-none { font-size: 1rem; gap: 18px; background: var(--wine-900); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent), inset 0 0 0 10px var(--wine-900), inset 0 0 0 11px color-mix(in srgb, var(--gold) 30%, transparent), 0 22px 44px rgba(0, 0, 0, .45); }
.page-book .bk-cover.hero .bk-none .mark { width: 46px; height: 50px; }
.page-book .bk-cover.hero.none { width: auto; }

/* ---------- Library head and the tab bar ---------- */
.page-library .lb-head { align-items: end; }
.lb-head-hours { justify-self: end; display: grid; gap: 2px; padding: 12px 18px; border-inline-start: 2px solid var(--gold); color: var(--grey-ink); font-size: .9375rem; line-height: 1.7; }
.lb-head-hours span:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.lb-head-hours .icon { width: 18px; height: 18px; color: var(--gold-ink); }

.lb-tabs-bar { position: sticky; top: 66px; z-index: 30; background: color-mix(in srgb, var(--ground) 96%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-block: 1px solid var(--rule); }
.lb-tabs { display: flex; gap: 4px; }
.lb-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 20px;
  color: var(--grey-ink); font-size: 1.0625rem; position: relative; white-space: nowrap; transition: color .2s;
}
.lb-tab .icon { width: 20px; height: 20px; color: var(--gold-ink); }
.lb-tab::after { content: ""; position: absolute; inset-inline: 14px; bottom: -1px; height: 2px; background: var(--wine); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.lb-tab:hover { color: var(--wine); }
.lb-tab[aria-selected="true"] { color: var(--wine); font-weight: 500; }
.lb-tab[aria-selected="true"]::after { transform: scaleX(1); }
.lb-tab[aria-selected="true"] .icon { color: var(--wine); }
.lb-tab:focus-visible { outline-offset: -3px; }

.lb-panel { padding-block: clamp(28px, 3.2vw, 48px) var(--section); scroll-margin-top: 140px; }
.lb-panel[hidden] { display: none; }
/* Without JS the panels stack as plain sections, each with its own visible heading */
.lb-panel + .lb-panel { border-top: 1px solid var(--rule); }
.lb-js .lb-panel + .lb-panel { border-top: 0; }
.lb-panel-h { display: flex; align-items: center; gap: .45em; font-weight: 300; font-size: var(--fs-display); line-height: 1.3; color: var(--wine); margin-bottom: 20px; }
.lb-panel-h .mark { color: var(--wine); width: .5em; height: .55em; }
.lb-js .lb-panel-h { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Books tab ---------- */
.lb-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 64px); align-items: stretch; margin-bottom: clamp(32px, 3vw, 48px); }
.lb-newest .st-title, .lb-visit .st-title, .lb-about .st-title { font-size: clamp(1.5rem, 1.25rem + .8vw, 2.1rem); }
.nw-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); margin-top: 22px;
  padding-inline: clamp(8px, 2vw, 28px); position: relative;
}
/* Shelf plank under the covers, as on the home shelves */
.nw-row::before { content: ""; position: absolute; inset-inline: 0; top: 220px; height: 10px; background: linear-gradient(var(--gold) 0 2px, var(--beige) 2px); box-shadow: 0 8px 10px -8px color-mix(in srgb, var(--wine-900) 45%, transparent); }
.nw-item { position: relative; display: grid; gap: 22px; justify-items: center; text-align: center; }
.nw-title { font-weight: 500; font-size: .975rem; line-height: 1.65; max-width: 24ch; }
.nw-item:hover .nw-title, .bk-card:hover .bk-title, .rel-book:hover h3 { color: var(--wine); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }

.lb-search { display: flex; flex-direction: column; gap: 16px; background: var(--panel); border: 1px solid var(--rule); border-top: 3px solid var(--wine); padding: clamp(20px, 2.2vw, 32px); }
.lb-search-h { font-weight: 400; font-size: 1.375rem; color: var(--wine); }
.lb-sform { display: grid; gap: 12px; }
.lb-sfields { display: grid; gap: 12px; }
.lb-sq { display: flex; }
.lb-sq .field, .lb-select { border-color: var(--grey); }
.lb-st { display: flex; align-items: center; gap: 12px; }
.lb-st-l { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); flex: none; }
.lb-st-l .icon { width: 18px; height: 18px; color: var(--gold-ink); }
.lb-select {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px 0 44px; border: 1px solid var(--grey); border-radius: var(--radius);
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2351162b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") left 14px center / 18px no-repeat;
  -webkit-appearance: none; appearance: none; color: var(--ink); font-size: 1rem; cursor: pointer;
}
.lb-select:focus { outline: 2px solid var(--wine); outline-offset: 0; border-color: transparent; }
.lb-sform .btn { justify-self: start; min-width: 140px; }
.lb-snote { font-size: .875rem; color: var(--grey-ink); border: 1px dashed var(--grey); padding: 6px 12px; }
.lb-strip { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.lb-loan { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; font-size: .9375rem; }
.lb-loan .icon { width: 18px; height: 18px; color: var(--wine); }

.lb-all { margin-top: clamp(28px, 3vw, 44px); }
.bk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 44px); }
.bk-card { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--rule); }
.bk-card[hidden] { display: none; }
.bk-body { display: grid; gap: 6px; min-width: 0; }
.bk-title { font-weight: 400; font-size: 1.0625rem; line-height: 1.65; color: var(--wine); }
.bk-author { color: var(--grey-ink); font-size: .9375rem; line-height: 1.6; }
.bk-card .stretch:focus-visible { outline: none; }
.bk-card:focus-within { outline: 2px solid var(--wine); outline-offset: 2px; }
.bk-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 0 16px 32px; border: 1.5px dashed var(--grey); margin-top: 16px; color: var(--grey-ink); }
.bk-empty[hidden] { display: none; }
/* Dotted pattern only in the empty state's top band, never behind its text */
.bk-empty::before { content: ""; justify-self: stretch; height: 56px; margin-inline: -16px; margin-bottom: 18px; background: color-mix(in srgb, var(--ornament) 45%, transparent); -webkit-mask: var(--pat-dots) center / 16.5px 16px repeat; mask: var(--pat-dots) center / 16.5px 16px repeat; }
.bk-empty-h { color: var(--ink); font-weight: 500; font-size: 1.0625rem; }
.bk-empty .btn { margin-top: 10px; }

.pager { margin-top: 32px; }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--rule-2); background: var(--panel); color: var(--ink); font-weight: 500; transition: border-color .2s, color .2s; }
.pager a:hover { border-color: var(--wine); color: var(--wine); }
.pager a[aria-current="page"] { background: var(--wine); border-color: var(--wine); color: var(--on-wine); }
.pager .gap { display: grid; place-items: center; min-width: 28px; height: 44px; color: var(--grey-ink); }
.pager .pg-next { display: inline-flex; gap: 8px; padding: 0 16px; }
.pager .pg-next .icon { width: 16px; height: 16px; }

/* ---------- Visit tab ---------- */
.lb-visit { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 80px); align-items: start; }
.lb-visit-main { display: grid; gap: 20px; min-width: 0; max-width: 52rem; }
.lb-visit-aside { position: sticky; top: 150px; display: grid; gap: 4px; background: var(--beige-50); border: 1px solid var(--rule); border-top: 3px solid var(--gold); padding: 22px 24px; }
.lb-aside-h { font-weight: 500; font-size: 1.125rem; color: var(--wine); padding-bottom: 8px; }
.lb-visit-aside .lb-loan { padding-top: 14px; }
.lb-fact { display: grid; gap: 4px; padding-block: 12px; border-top: 1px solid var(--rule); justify-items: start; }
.lb-fact-k { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 500; color: var(--gold-ink); }
.lb-fact-k .icon { width: 18px; height: 18px; }
.lb-fact p { color: var(--ink); line-height: 1.85; }
.lb-fact b { font-weight: 500; }
.lb-wa, .lb-map { display: inline-flex; align-items: center; min-height: 44px; color: var(--wine); font-weight: 500; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.lb-wa:hover, .lb-map:hover { text-decoration-color: currentColor; }

/* ---------- About tab ---------- */
.lb-about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.lb-photo { position: relative; }
.lb-photo img { width: 100%; height: auto; aspect-ratio: 972 / 720; box-shadow: var(--shadow-2); }
/* A thin gold frame offset behind the photo (ornament only) */
.lb-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); z-index: -1; }
.lb-photo { isolation: isolate; }
.lb-about-text { display: grid; gap: 18px; max-width: 38rem; }
.lb-about-text .prose > * { margin-bottom: .8em; }
.lb-about-text .prose .lede { font-size: 1.2rem; }
.lb-inline { color: var(--wine); font-weight: 500; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; padding-block: 10px; }
.lb-inline:hover { text-decoration-color: currentColor; }
.lb-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 4.5vw, 72px); background: var(--wine); color: var(--on-wine); }
.lb-facts > div { padding: 22px 26px; border-inline-start: 1px solid var(--on-wine-rule); display: grid; gap: 4px; align-content: start; }
.lb-facts > div:first-child { border-inline-start: 0; }
.lb-facts dt { font-size: .875rem; color: var(--gold); }
.lb-facts dd { font-weight: 300; font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem); line-height: 1.45; color: var(--on-wine); }
.lb-about-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin-top: 24px; }
.lb-about-info .lb-fact { border-top: 1px solid var(--wine); padding-top: 16px; }
.lb-fact-cta .btn { margin-top: 6px; }

/* ---------- Forms (visit request, comment): labels, required marks, inline errors, summary, success ---------- */
.fm { display: grid; gap: 18px; background: var(--panel); border: 1px solid var(--rule); padding: clamp(20px, 2.4vw, 32px); }
.fm-legend { font-size: .9375rem; color: var(--grey-ink); }
.fm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.fm-row { display: grid; gap: 6px; align-content: start; min-width: 0; }
.fm-row.wide { grid-column: 1 / -1; }
.fm-label { font-weight: 500; color: var(--ink); line-height: 1.5; }
.req { color: var(--wine); font-weight: 700; margin-inline-start: 2px; }
.opt { font-weight: 400; font-size: .8125rem; color: var(--grey-ink); margin-inline-start: 6px; }
.fm-hint { font-size: .875rem; color: var(--grey-ink); order: 3; }
/* Field boundary in grey (4.1:1 on white) so the control is visible as a component */
.fm-ctl { width: 100%; min-height: 52px; padding: 10px 16px; border: 1px solid var(--grey); border-radius: var(--radius); background: var(--panel); color: var(--ink); font-size: 1rem; line-height: 1.6; transition: border-color .2s, box-shadow .2s; }
textarea.fm-ctl { min-height: 168px; resize: vertical; line-height: 1.9; }
.fm-ctl::placeholder { color: var(--grey-ink); opacity: 1; }
.fm-ctl[dir="ltr"] { text-align: left; }
.fm-ctl[dir="ltr"]::placeholder { text-align: left; }
.fm-ctl:hover { border-color: var(--ink); }
.fm-ctl:focus { outline: 2px solid var(--wine); outline-offset: 1px; border-color: var(--wine); }
.fm-ctl[aria-invalid="true"] { border: 2px solid var(--wine); background: var(--wine-50); padding: 9px 15px; }
.fm-err { display: flex; align-items: flex-start; gap: 8px; color: var(--wine); font-weight: 500; font-size: .9375rem; line-height: 1.6; }
.fm-err::before { content: ""; width: 8px; height: 8px; margin-top: .55em; background: var(--wine); transform: rotate(45deg); flex: none; }
.fm-err[hidden] { display: none; }
.fm-check { display: flex; align-items: flex-start; gap: 12px; }
.fm-check input { width: 22px; height: 22px; margin: 11px 0 0; accent-color: var(--wine); flex: none; }
.fm-check label { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); line-height: 1.7; cursor: pointer; }
.fm-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fm-actions .btn { min-width: 180px; }
.fm-summary { background: var(--wine-50); border: 1px solid var(--wine-100); border-inline-start: 4px solid var(--wine); padding: 14px 20px 10px; }
.fm-summary[hidden] { display: none; }
.fm-summary:focus { outline: 2px solid var(--wine); outline-offset: 2px; }
.fm-summary-h { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--wine); font-size: 1.0625rem; }
.fm-summary-h .icon { width: 20px; height: 20px; }
.fm-summary ul { margin-top: 4px; padding-inline-start: 30px; }
.fm-summary a { display: inline-flex; align-items: center; min-height: 40px; color: var(--wine); text-decoration: underline; text-underline-offset: 5px; }
.fm-done { display: grid; gap: 10px; justify-items: start; background: var(--panel); border: 1px solid var(--rule); border-top: 3px solid var(--green-ink); padding: clamp(22px, 2.4vw, 32px); }
.fm-done[hidden] { display: none; }
.fm-done:focus { outline: 2px solid var(--green-ink); outline-offset: 2px; }
.fm-done-h { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1.3rem; color: var(--green-ink); }
.fm-done-h .icon { width: 26px; height: 26px; }
.fm-done p { color: var(--ink); }
.fm-done .fm-done-note { font-size: .875rem; color: var(--grey-ink); border: 1px dashed var(--grey); padding: 6px 12px; }
.fm-done .btn { margin-top: 6px; }

/* ---------- Book single ---------- */
.bk-hero .hero-grid { grid-template-columns: auto minmax(0, 1fr) 320px; }
.bk-hero .hero-cover { align-self: center; }
.bk-hero-k { font-size: .875rem; color: var(--on-wine-2); }
.bk-hero h1 { max-width: 22ch; }
.page-book .hero-meta .by .icon { color: var(--gold); }
.bk-sec-h { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); color: var(--wine); padding-bottom: 10px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.bk-sec-h .mark { color: var(--wine); width: 12px; height: 13px; }
.page-book .prose p { text-align: justify; text-justify: inter-word; }
.bk-parts { margin-top: 40px; }
.bk-parts-intro { color: var(--ink); font-size: var(--fs-read); margin-bottom: 8px; }
.pt-list { counter-reset: pt; border-top: 1px solid var(--wine); }
.pt-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 24px; padding-block: 14px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.pt-k { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--wine); }
.pt-k::before { content: ""; width: 8px; height: 8px; border: 1.5px solid var(--gold); transform: rotate(45deg); flex: none; }
.pt-list li:first-child .pt-k::before { background: var(--gold); }
.pt-v { color: var(--ink); line-height: 1.9; font-size: var(--fs-read); }
.bk-avail { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; margin-top: 44px; padding: clamp(20px, 2.4vw, 30px); position: relative; overflow: hidden; isolation: isolate; }
.bk-avail::after { content: ""; position: absolute; z-index: -1; inset-inline-end: -40px; top: -40px; width: 150px; height: 150px; background: color-mix(in srgb, var(--ornament) 22%, transparent); -webkit-mask: var(--pat-knot) center / contain no-repeat; mask: var(--pat-knot) center / contain no-repeat; }
.bk-avail-text { display: grid; gap: 6px; max-width: 34rem; }
.bk-avail h2 { font-weight: 400; font-size: 1.3rem; color: var(--on-wine); }
.bk-avail p { color: var(--on-wine-2); line-height: 1.85; }
.bk-avail .btn { flex: none; position: relative; z-index: 1; }
.bk-comments { margin-top: 56px; scroll-margin-top: 100px; }
.bk-nocomments { display: flex; align-items: center; gap: 10px; color: var(--grey-ink); margin-bottom: 22px; }
.bk-nocomments::before { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }
.fm-title { font-weight: 500; font-size: 1.1875rem; color: var(--wine); margin-bottom: 12px; }
.bk-back { margin-top: 32px; }
.rel-books { display: grid; }
.rel-book { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.rel-book > div { display: grid; gap: 4px; }
.rel-book h3 { font-weight: 500; font-size: .975rem; line-height: 1.6; color: var(--ink); }
.rel-book .bk-author { font-size: .875rem; }
.rel-book:focus-within { outline: 2px solid var(--wine); outline-offset: 2px; }
.rel-book .stretch:focus-visible { outline: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .bk-hero .hero-grid { grid-template-columns: auto minmax(0, 1fr) 270px; }
  .lb-visit { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 1100px) {
  .bk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .lb-tabs-bar { top: 60px; }
  .lb-head-hours { justify-self: start; }
  .lb-visit { grid-template-columns: minmax(0, 1fr); }
  .lb-visit-aside { position: static; }
  .lb-about { grid-template-columns: minmax(0, 1fr); }
  .lb-about-text { max-width: none; }
  .lb-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-facts > div:nth-child(3) { border-inline-start: 0; }
  .lb-facts > div:nth-child(n+3) { border-top: 1px solid var(--on-wine-rule); }
  .bk-hero .hero-grid { grid-template-columns: auto minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .lb-tabs { gap: 0; }
  .lb-tabs > li { flex: 1; display: flex; }
  .lb-tab { flex: 1; padding: 0 6px; gap: 6px; font-size: .9375rem; min-height: 54px; }
  .lb-tab::after { inset-inline: 6px; }
  .lb-head-hours { padding: 8px 14px; }
  .nw-row { padding-inline: 0; gap: 12px; }
  .page-library .bk-cover.lg { --ch: 150px; }
  .page-library .bk-cover.lg img { max-width: 100px; }
  .nw-row::before { top: 150px; inset-inline: calc(-1 * var(--gutter)); }
  .page-library .bk-cover.lg .bk-none { font-size: .6875rem; gap: 8px; }
  .page-library .bk-cover.lg .bk-none .mark { width: 22px; height: 24px; }
  .nw-title { font-size: .8125rem; line-height: 1.6; }
  .nw-item { gap: 18px; }
  .lb-search { padding: 18px 16px; }
  .lb-sform .btn { justify-self: stretch; }
  .bk-grid { grid-template-columns: minmax(0, 1fr); }
  .bk-card { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding-block: 16px; }
  .page-library .bk-card .bk-cover { --cw: 76px; --ch: 108px; }
  .bk-title { font-size: 1rem; }
  .bk-author { font-size: .875rem; }
  .pager .pg-next { padding: 0 12px; }
  .fm { padding: 18px 16px; }
  .fm-grid { grid-template-columns: minmax(0, 1fr); }
  .fm-actions .btn { width: 100%; }
  .lb-visit-aside { padding: 18px 16px; }
  .lb-photo::before { inset: 10px -10px -10px 10px; }
  .lb-photo { margin-inline-end: 10px; }
  .lb-facts { margin-inline: calc(-1 * var(--gutter)); }
  .lb-facts > div { padding: 16px; }
  .lb-about-info { grid-template-columns: minmax(0, 1fr); }
  .bk-hero .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-book .bk-cover.hero { --cw: 174px; --ch: 260px; }
  .page-book .bk-cover.hero .bk-none { font-size: .875rem; gap: 12px; }
  .page-book .bk-cover.hero .bk-none .mark { width: 34px; height: 37px; }
  .page-book .prose p { text-align: start; }
  .pt-list li { grid-template-columns: minmax(0, 1fr); }
  .bk-avail { flex-direction: column; align-items: stretch; }
  .bk-avail::after { display: none; }
  .bk-avail .btn { width: 100%; }
}
@media (max-width: 420px) {
  .lb-tab .icon { display: none; }
}

/* Light no-cover plate in lists, so the real scans stand out; the wine plate stays on the shelf and in the hero */
.bk-card .bk-none, .rel-book .bk-none {
  background: var(--beige-100); color: var(--grey-ink);
  box-shadow: inset 0 0 0 1px var(--rule-2), inset 0 0 0 4px var(--beige-100), inset 0 0 0 5px color-mix(in srgb, var(--gold-ink) 35%, transparent), var(--shadow-1);
}
.bk-card .bk-none .mark, .rel-book .bk-none .mark { color: var(--wine); }
