/* PUBLIC_LIBRARY_v1 (6 Nov 2026) - www.thewattcollective.com. Sits on bio_v2.css: same tokens, ground and navy fade.
   Mobile first (most visits are iPhone): three covers across, six on a wide screen. */
.lib { max-width: 1120px; margin: 0 auto; padding: 48px 14px 64px; }
.lib-head { text-align: center; }
.lib-name {
  margin: 0; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400;
  font-size: clamp(40px, 10vw, 60px); line-height: 0.95; letter-spacing: -0.01em;
}
.lib-role { margin: 12px 0 0; font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: lowercase; color: var(--muted); }
.lib-count { margin: 8px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.lib-search { margin: 28px auto 0; max-width: 520px; }
.lib-search input {
  width: 100%; min-height: 46px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--fg);
  background: rgba(17, 19, 28, .72); border: 1px solid var(--rule); border-radius: 3px; outline: none;
  -webkit-appearance: none; appearance: none;
}
.lib-search input::placeholder { color: var(--muted); }
.lib-search input:focus { border-color: var(--copper); }

.lib-filters { margin: 18px 0 0; }
.lib-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.lib-row-genre { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
.chip {
  font: inherit; font-size: 12.5px; letter-spacing: 0.04em; cursor: pointer; min-height: 32px; padding: 0 12px;
  color: var(--muted); background: transparent; border: 1px solid var(--rule); border-radius: 999px;
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}
.chip:hover { color: var(--fg); border-color: var(--muted); }
.chip.on { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.lib-row-special .chip.on { color: var(--fg); background: var(--navy); border-color: var(--copper); }
.chip:focus-visible { outline: 1px solid var(--copper); outline-offset: 2px; }

.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; margin: 28px 0 0; }
@media (min-width: 560px) { .lib-grid { grid-template-columns: repeat(4, 1fr); gap: 24px 14px; } }
@media (min-width: 820px) { .lib-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1040px) { .lib-grid { grid-template-columns: repeat(6, 1fr); gap: 28px 18px; } }
.bk { display: block; min-width: 0; }
.bk[hidden] { display: none; }
.bk-art {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 3px; background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.bk:hover .bk-art, .bk:focus-visible .bk-art { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0, 0, 0, .6), 0 0 0 1px rgba(201, 115, 62, .5); }
.bk:focus-visible { outline: none; }
.bk-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-noart { display: block; width: 100%; height: 100%; background: linear-gradient(160deg, var(--navy), var(--surface)); }
.bk-tag {
  position: absolute; left: 0; bottom: 8px; padding: 3px 7px 3px 8px; font-size: 9.5px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: lowercase; color: var(--fg); background: rgba(7, 8, 12, .82); border-left: 2px solid var(--copper);
}
.bk-tag-new { border-left-color: #2f7a52; }
.bk-tag-soon { border-left-color: var(--muted); }
.bk-tag-sale { border-left-color: #c4322e; background: rgba(140, 24, 20, .92); text-transform: none; letter-spacing: 0.06em; font-size: 10.5px; }   /* DEALS_v1 (#308) */
.chip-sale.on { background: #c4322e; border-color: #c4322e; color: #fff; }
.chip-sale { position: relative; padding-right: 14px; }
.chip-badge { position: absolute; top: -7px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: #c4322e; color: #fff; font-size: 10.5px; font-weight: 500; line-height: 18px; text-align: center; letter-spacing: 0;
  box-shadow: 0 0 0 2px var(--bg); }
.chip-sale.on .chip-badge { background: #fff; color: #c4322e; }
.bk-t {
  display: block; margin: 9px 0 0; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 15px; line-height: 1.15;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.bk-a { display: block; margin: 3px 0 0; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-empty { margin: 40px 0 0; text-align: center; color: var(--muted); font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 18px; }
.lib-foot { margin-top: 56px; }
.lib-foot .postal { margin: 6px 0 0; font-size: 12px; letter-spacing: 0.02em; color: #8a867d; }

/* PUBLIC_LIBRARY_v1.3 (6 Nov 2026) - the Drey's cover bookmarks (static/nyt_bestsellers.js BOOKMARKS_v1), same shapes and
   colours: favicon on a white tile hanging from the top edge, the rank under it; gold = win, grey = nomination. */
.bm-wrap { position: absolute; top: 0; right: 6px; z-index: 2; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: 3px;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .45)); max-width: calc(100% - 36px); pointer-events: none; }
.bm { position: relative; width: 22px; padding: 4px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 1px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 6px), 0 100%); background: #1f2430; }
.bm.place { background: #1f2430; }
.bm.win { background: linear-gradient(180deg, #e2b546, #b8860b); }
.bm.nom { background: linear-gradient(180deg, #9aa6b2, #6b7785); }
.bm.more { background: #4b5563; }
.bm .bm-ico { width: 16px; height: 16px; border-radius: 3px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bm .bm-ico img { width: 14px; height: 14px; display: block; }
.bm .bm-n { font: 700 8.5px/1.1 -apple-system, system-ui, sans-serif; color: #fff; letter-spacing: -.02em; min-height: 9px; }
.bm.more .bm-n { font-size: 10px; min-height: 16px; display: flex; align-items: center; }
.bm-wrap.stack .bm { margin-left: -12px; }
.bm-wrap.stack .bm:last-child { margin-left: 0; }
.bm-wrap.stack .bm:nth-child(1) { z-index: 9; } .bm-wrap.stack .bm:nth-child(2) { z-index: 8; } .bm-wrap.stack .bm:nth-child(3) { z-index: 7; }
.bm-wrap.stack .bm:nth-child(4) { z-index: 6; } .bm-wrap.stack .bm:nth-child(5) { z-index: 5; } .bm-wrap.stack .bm:nth-child(6) { z-index: 4; }
