/* The Library page (/library): design "Library C", approved 2026-10-11. Scoped to body.librarypage. */
body.librarypage {
  --lp-tb: 66px;               /* the shared navy top bar (64px links + 2px rule); the toolbar and sidebar stick below it */
  --lp-cream: #F4EDE0; --lp-cream-2: #F8F3EA; --lp-cream-3: #EFE5D3; --lp-field: #FFFDF8;
  --lp-ink: #2B1E16; --lp-body: #4A3628; --lp-dim: #6A5644; --lp-brown: #6B4A2F; --lp-rule: #A07C52;
  --lp-line: #CDB896; --lp-line-2: #DDCDB3; --lp-hair: #E3D6BE;
  --lp-navy: #16233F; --lp-night: #0E1830; --lp-side: #14203A; --lp-side-2: #1D2C4D; --lp-side-3: #2A3A5E;
  --lp-brass: #C4A46A; --lp-brass-2: #D4B67A; --lp-moon: #E9DFCB; --lp-moon-dim: #CFC3AD; --lp-mute: #A9B3C7;
  background: var(--lp-cream);
}
.librarypage .lp-shell { display: flex; flex-wrap: wrap; align-items: stretch; background: var(--lp-cream); color: var(--lp-ink); font-family: "Fraunces", Georgia, serif; }
:where(.librarypage .lp-shell) a { color: var(--lp-ink); }   /* lowest rank: every styled link below keeps its own colour */
.librarypage .lp-shell a:focus-visible, .librarypage .lp-shell button:focus-visible, .librarypage .lp-shell input:focus-visible,
.librarypage .lp-shell summary:focus-visible { outline: 2px solid var(--lp-navy); outline-offset: 2px; }
.lp-pad { padding: 0 48px; }

/* sidebar */
/* Same navy and top-down light as the shared top bar (owner 2026-10-28). The light sits on the sticky inner panel, which always
   fills the window, so it stays put however long the page is. (Walnut kept for later: static/art/walnut-side.svg, walnut-strip.svg.) */
.lp-side { --sd-ink: #F7F3EA; --sd-mute: #B3C2DE; --sd-gold: #ECC873; --sd-line: #2c3d61;   /* palette C, True navy (owner 2026-10-28) */
  flex: 0 0 244px; box-sizing: border-box; background: #0E1830; color: var(--sd-ink); border-right: 1px solid var(--sd-line); }
.lp-side-in { position: sticky; top: var(--lp-tb); box-sizing: border-box; min-height: calc(100vh - var(--lp-tb)); max-height: calc(100vh - var(--lp-tb)); padding: 28px 14px 32px;
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--sd-line) transparent; background: linear-gradient(180deg, #15233F 0%, #0E1830 100%); }
/* collapse to an icon rail (owner 2026-10-28). The width changes in one step, never animated: animating it re-flowed the whole
   list on every frame. Only the panel's contents fade in, so it reads as deliberate. The icons stay where they were. */
.lp-side { min-width: 0; overflow: clip; }
.lp-side-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.lp-side-head h2 { margin: 0 0 0 12px !important; }
.lp-sidetoggle { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid #ffffff1f; border-radius: 10px; background: #ffffff0d;
  color: #ece6db; opacity: .82; cursor: pointer; transition: background .15s, opacity .15s; }
.lp-sidetoggle:hover { background: #ffffff1f; border-color: #ffffff38; opacity: 1; }
.lp-sidetoggle:focus-visible { outline: 2px solid var(--brass, #d8b56d); outline-offset: 1px; }
.lp-chev { transition: transform .2s ease; transform-origin: 14.5px 12px; }
@keyframes lp-in-a { from { opacity: 0; } to { opacity: 1; } }
@keyframes lp-in-b { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 761px) {
  body.lp-side-anim .lp-side-in { animation: lp-in-a .22s ease; }                       /* only after a click, never on page load */
  body.lp-side-anim.lp-side-closed .lp-side-in { animation-name: lp-in-b; }      /* a different name, so the fade runs again on every toggle */
  body.lp-side-closed .lp-side { flex-basis: 68px; }
  body.lp-side-closed .lp-side-in { padding: 18px 12px 24px; scrollbar-width: none; }
  body.lp-side-closed .lp-side-head { justify-content: center; margin-bottom: 14px; }
  body.lp-side-closed .lp-side-head h2, body.lp-side-closed .lp-side .lbl, body.lp-side-closed .lp-side .n,
  body.lp-side-closed .lp-side h2, body.lp-side-closed .lp-side .lp-hide { display: none; }
  body.lp-side-closed .lp-sidetoggle { margin: 0; width: 100%; height: 52px; }   /* the whole rail width: easy to hit */
  body.lp-side-closed .lp-chev { transform: scaleX(-1); }
  body.lp-side-closed .librarypage .lp-nav, body.lp-side-closed .lp-nav { justify-content: center; gap: 0; padding: 0; }
  body.lp-side-closed .lp-side hr { margin: 12px 4px; }
}
@media (prefers-reduced-motion: reduce) { .lp-side-in, .lp-chev { animation: none !important; transition: none; } }
.lp-side h2 { margin: 22px 12px 10px; font: 600 12px Inter, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .14em; color: var(--sd-gold, #ECC873); }   /* brighter gold: the old brass read faded on navy (owner 2026-10-28) */
.lp-side h2:first-child { margin-top: 0; }
.lp-side hr { border: 0; border-top: 1px solid var(--sd-line); margin: 18px 12px; }
.librarypage .lp-nav { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 12px; box-sizing: border-box; border: 0; border-radius: 3px;
  background: none; color: var(--sd-ink, #F7F3EA); font: 500 15px "Fraunces", Georgia, serif; text-align: left; text-decoration: none; cursor: pointer; }
.librarypage .lp-nav:hover { background: #ffffff0d; color: #fff; }
.lp-nav.on { background: #ffffff14; color: #fff; box-shadow: inset 2px 0 0 var(--brass, #d8b56d); }
.lp-nav svg { flex: none; color: #ece6db; opacity: .82; }   /* soft white (owner 2026-10-28; was brass) */
.lp-nav:hover svg, .lp-nav.on svg { opacity: 1; }
.lp-nav .n { margin-left: auto; font: 13px Inter, sans-serif; color: var(--sd-mute, #B3C2DE); }
.lp-morebtn { display: none; }
.lp-mark { display: block; width: 120px; height: auto; margin: 6px auto 0; opacity: .92; }   /* the owner's heart-and-eye mark */
.lp-side-foot { margin: 14px 12px 0; text-align: center; font: 400 17px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--lp-brass); }
.lp-side-sub { margin: 2px 12px 0; text-align: center; font-size: 14px; color: var(--sd-mute, #B3C2DE); }

/* art placeholders (final artwork not yet approved) */
.lp-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box;
  border: 1px dashed #B89B78; background: repeating-linear-gradient(135deg, var(--lp-cream-3) 0 12px, var(--lp-cream) 12px 24px);
  color: #8A6440; font: 13px Inter, sans-serif; text-align: center; }
.lp-ph.dark { border-color: #4A5B80; background: repeating-linear-gradient(135deg, var(--lp-side-2) 0 12px, var(--lp-side) 12px 24px); color: var(--lp-mute); }
.lp-ph svg { color: var(--lp-rule); }
.lp-ph.dark svg { color: var(--lp-brass); }
.lp-side .lp-ph { height: 150px; margin: 0 12px; }
.lp-side .lp-ph.dark { border-color: var(--sd-line); background: repeating-linear-gradient(135deg, #ffffff0a 0 12px, transparent 12px 24px); color: var(--navy-mute, #9aa3b2); }

/* main column + hero */
.lp-main { flex: 999 1 640px; min-width: 0; }
.lp-hero { position: relative; overflow: hidden; color: var(--lp-moon); border-bottom: 1px solid #B08D4F;
  background: linear-gradient(90deg, #0d0805c2 0%, #0d080580 45%, #0d080514 100%), url(/static/art/walnut-hero.svg?v=5e8fb8ee5b) center / cover; }   /* walnut (owner 2026-10-28); was radial-gradient(ellipse at 78% 0%, #22335A 0%, var(--lp-side) 55%, var(--lp-night) 100%) */
.lp-hero .lp-sky { display: none; }   /* the stars belong to the night sky, not the wood */
.lp-sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: #E9D9B4; }
.lp-herogrid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding-top: 24px; padding-bottom: 22px; }
.lp-art { position: relative; margin: 0; width: 230px; aspect-ratio: 718 / 1024; overflow: hidden;   /* the photo's own shape: nothing cropped */
  border: 1px solid #4A5B80; outline: 1px solid var(--lp-brass); outline-offset: -6px; }
.lp-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: sepia(.45) contrast(1.05) brightness(.92); }
.lp-art::after { content: ""; position: absolute; inset: 0; pointer-events: none;   /* melt the photo into the night sky */
  background: linear-gradient(0deg, rgba(14, 24, 48, .75) 0%, rgba(14, 24, 48, 0) 28%); }
.lp-art figcaption { position: absolute; left: 14px; bottom: 10px; z-index: 1; font: 400 11px "Playfair Display SC", Georgia, serif; letter-spacing: .18em; color: var(--lp-moon); }
.lp-eyebrow { margin: 0; font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .32em; color: var(--lp-brass-2); }
.lp-hero h1 { margin: 6px 0 0; font: 400 46px/1.05 "Fraunces", Georgia, serif; letter-spacing: -.015em; color: var(--lp-cream); }
.lp-facts { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--lp-moon-dim); }
.lp-facts span { color: var(--lp-brass); margin: 0 4px; }
.lp-search { display: flex; align-items: center; gap: 12px; max-width: 720px; height: 52px; margin-top: 16px; padding: 0 8px 0 18px; box-sizing: border-box;
  border: 1px solid var(--lp-brass); background: var(--lp-field); color: var(--lp-brown); }
.lp-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: 19px "Fraunces", Georgia, serif; color: var(--lp-ink); }
.lp-search input::placeholder { color: #7D6A55; }
.librarypage .lp-shell .lp-search input:focus-visible { outline: none; }   /* the whole box shows focus, not the field inside it */
.lp-search:focus-within { box-shadow: 0 0 0 2px var(--lp-brass); }   /* brass reads on the walnut; navy didn't */
.lp-search button { min-height: 40px; padding: 0 18px; border: 0; background: var(--lp-navy); color: var(--lp-cream); font: 15px "Fraunces", Georgia, serif; cursor: pointer; }
.lp-try { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; max-width: 720px; margin-top: 10px; font-size: 14px; color: var(--lp-mute); }
.librarypage .lp-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px; border: 1px solid #4A5B80; border-radius: 17px;
  background: rgba(255, 255, 255, .04); color: var(--lp-moon); text-decoration: none; font-size: 14px; }
.librarypage .lp-chip:hover { border-color: var(--lp-brass); color: #fff; }
.librarypage .lp-adv { margin-left: auto; color: var(--lp-moon); text-decoration: none; border-bottom: 1px solid var(--lp-brass); }

/* continue reading */
.lp-cont { display: grid; grid-template-columns: auto minmax(0, 1fr) 180px auto; gap: 18px; align-items: center; margin-top: 12px; padding: 6px 8px 6px 16px;
  border: 1px solid var(--lp-line-2); border-left: 3px solid var(--lp-rule); background: var(--lp-cream-2); }
.lp-cont[hidden] { display: none; }
.lp-cont-l { font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .24em; color: var(--lp-brown); }
.librarypage .lp-cont-t { text-decoration: none; min-width: 0; }
.lp-cont-line { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-cont-title { font-size: 17px; }
.lp-cont-meta { font-size: 14px; color: var(--lp-dim); }
.lp-track { height: 4px; background: var(--lp-hair); }
.lp-track > span { display: block; height: 4px; background: var(--lp-navy); }
.librarypage .lp-cont-b { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; white-space: nowrap;
  background: var(--lp-navy); color: var(--lp-cream); text-decoration: none; font-size: 15px; }

/* browse cards */

/* sticky toolbar + year navigator */
.lp-sticky { position: sticky; top: var(--lp-tb); z-index: 20; margin-top: 12px; background: rgba(244, 237, 224, .97);
  border-top: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); font-family: "Fraunces", Georgia, serif; }
.lp-tool { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }   /* centred (owner 2026-10-28) */
.lp-tabs, .lp-dec, .lp-fold { display: inline-flex; border: 1px solid var(--lp-line); background: var(--lp-cream-2); }
.lp-dec[hidden], .lp-fold[hidden], .lp-fold1[hidden] { display: none; }
.lp-tab, .lp-dec button, .lp-fold button, .lp-fold1, .lp-sort { min-height: 42px; padding: 0 16px; border: 0; background: none; color: var(--lp-body);
  font: 15px "Fraunces", Georgia, serif; cursor: pointer; }
.lp-tab { display: inline-flex; align-items: center; gap: 8px; }
.lp-tab svg { opacity: .8; }
.lp-tab + .lp-tab, .lp-dec button + button, .lp-fold button + button { border-left: 1px solid var(--lp-line-2); }
.lp-tab.on { background: var(--lp-navy); color: var(--lp-cream); }
.lp-dec button { padding: 0 12px; font-size: 14px; }
.lp-dec button.on { background: var(--lp-brown); color: var(--lp-cream); }
.lp-fold button:hover, .lp-dec button:hover:not(.on), .lp-tab:hover:not(.on) { background: var(--lp-cream-3); }
.lp-fold1 { display: none; }
.lp-note { font-size: 14px; color: var(--lp-dim); white-space: nowrap; }
.lp-sort { border: 1px solid var(--lp-line); background: var(--lp-field); color: var(--lp-ink); }
.lp-sort[hidden] { display: none; }
.lp-yearnav { position: absolute; left: 0; right: 0; top: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 2px;
  overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 8px; background: rgba(244, 237, 224, .97); border-bottom: 1px solid var(--lp-line); }
.lp-yearnav[hidden] { display: none; }
.lp-yn-lab { flex: none; margin-right: 8px; font: 400 11px "Playfair Display SC", Georgia, serif; letter-spacing: .2em; color: var(--lp-brown); }
.lp-yearnav button { flex: none; display: inline-flex; align-items: baseline; gap: 4px; min-height: 34px; padding: 0 9px; border: 0; border-bottom: 2px solid transparent;
  background: none; color: var(--lp-body); font: 15px "Fraunces", Georgia, serif; cursor: pointer; }
.lp-yearnav button span { font: 11px Inter, sans-serif; color: #8A6440; }
.lp-yearnav button:hover { color: var(--lp-navy); }
.lp-yearnav button.on { color: var(--lp-navy); border-bottom-color: var(--lp-navy); }
.lp-yearnav button.und { font-style: italic; margin-left: 10px; border-left: 1px solid var(--lp-line); padding-left: 12px; }

/* body */
.lp-body { padding-bottom: 64px; color: var(--lp-ink); font-family: "Fraunces", Georgia, serif; }
.lp-hint { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 15px; color: var(--lp-dim); }
.lp-hint svg { color: var(--lp-rule); flex: none; }
.lp-hint b { font-weight: 500; color: var(--lp-ink); }
.lp-view[hidden], .lp-empty[hidden] { display: none; }
.lp-empty { margin: 28px 0; padding: 22px; border: 1px dashed var(--lp-line); color: var(--lp-body); }

/* By year: the chart plate */
.lp-plate { margin: 14px 0 0; padding: 12px 0 8px; border-top: 1px solid var(--lp-rule); border-bottom: 1px solid var(--lp-rule); }
.lp-plate-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 32px; align-items: end; }
.lp-plate-h { display: block; margin: 0 0 8px; font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .2em; color: var(--lp-brown); }
.lp-hist { display: flex; align-items: flex-end; gap: 5px; height: 64px; }
.lp-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.lp-col .b { display: block; width: 60%; min-height: 2px; background: #C9B48F; }
a.lp-col:hover .b { background: #8A6440; }
.lp-col.on .b { background: var(--lp-navy); }
.lp-col.zero .b { width: 3px; height: 3px !important; border-radius: 50%; background: var(--lp-line); }
.lp-axis { display: flex; gap: 5px; margin-top: 8px; padding-top: 7px; border-top: 1px solid var(--lp-ink); }
.lp-axis span { flex: 1 1 0; min-width: 0; text-align: center; font: 400 11px "Playfair Display SC", Georgia, serif; color: var(--lp-dim); }
.librarypage .lp-undbox { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 14px; text-decoration: none;
  border: 1px dashed var(--lp-rule); background: repeating-linear-gradient(135deg, var(--lp-cream) 0 10px, var(--lp-cream-3) 10px 11px); }
.librarypage .lp-undbox:hover { border-style: solid; }
.lp-undbox.on { border: 1px solid var(--lp-navy); box-shadow: inset 3px 0 0 var(--lp-navy); }
.lp-undbox .lp-plate-h { margin: 0; }
.lp-und-n { font-size: 30px; font-weight: 300; line-height: 1.1; margin-top: 2px; }
.lp-und-d { font-size: 13px; line-height: 1.4; color: var(--lp-dim); margin-top: 2px; }
.lp-plate figcaption { margin-top: 6px; font-size: 14px; font-style: italic; color: var(--lp-dim); }
.lp-col.dim .b { background: var(--lp-hair); }

/* By year: the ledger */
.lp-ledger { margin-top: 16px; }
.lp-led-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--lp-navy); }
.lp-led-h h2 { margin: 0; font-size: 26px; font-weight: 400; }
.lp-led-h span { font-size: 14px; color: var(--lp-dim); }
.lp-y { border-bottom: 1px solid var(--lp-hair); scroll-margin-top: calc(var(--lp-tb) + 120px); }
.lp-y[hidden] { display: none; }
.lp-y > summary { display: grid; grid-template-columns: 140px minmax(0, 1fr) 22px; align-items: baseline; min-height: 52px; padding: 12px 0 10px;
  list-style: none; cursor: pointer; }
.lp-y > summary::-webkit-details-marker { display: none; }
.lp-yn { font-size: 30px; font-weight: 300; line-height: 1; }
.lp-nd { font-size: 22px; font-style: italic; }
.lp-yc { font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .2em; color: var(--lp-brown); }
.lp-chev { color: var(--lp-brown); text-align: center; transition: transform .2s; }
.lp-y[open] .lp-chev { transform: rotate(90deg); }
.lp-y.sel .lp-yn { color: var(--lp-navy); font-weight: 400; }
.lp-yl { margin-left: 140px; padding-bottom: 12px; }
.librarypage .lp-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: baseline; min-height: 44px;
  padding: 10px 6px 10px 0; border-top: 1px solid #EDE3D0; text-decoration: none; }
.lp-row:first-child { border-top: 0; }
.lp-row[hidden] { display: none; }
.lp-row:hover .lp-t { text-decoration: underline; text-decoration-color: var(--lp-rule); text-underline-offset: 4px; }
.lp-day { font-size: 14px; font-style: italic; color: var(--lp-dim); }
.lp-t { font-size: 19px; line-height: 1.35; }
.lp-k { font: 400 11px "Playfair Display SC", Georgia, serif; letter-spacing: .16em; color: var(--lp-brown); white-space: nowrap; }
.lp-und { margin-top: 36px; padding: 0 18px; background: #EFE7D8; border-top: 1px dashed var(--lp-rule); }
.lp-und[hidden] { display: none; }
.lp-und-h { border-bottom: 1px solid var(--lp-rule); padding-top: 16px; }

/* A–Z index */
.lp-letters { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: 14px; padding: 8px 0; border-top: 1px solid var(--lp-rule); border-bottom: 1px solid var(--lp-rule); }
.lp-letters a, .lp-letters span { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 34px; font: 400 15px "Playfair Display SC", Georgia, serif; }
.librarypage .lp-letters a { color: var(--lp-navy); text-decoration: none; }
.lp-letters a:hover { background: var(--lp-cream-3); }
.lp-letters span { color: var(--lp-line); }
.lp-az { display: grid; grid-template-columns: 70px minmax(0, 1fr); border-bottom: 1.5px solid var(--lp-rule); padding: 6px 0 10px;   /* clear break between letters (owner 2026-10-12) */ scroll-margin-top: calc(var(--lp-tb) + 80px); }
.lp-az > div { columns: 2 26rem; column-gap: 40px; }   /* two columns, reading down then across (owner 2026-10-11) */
.lp-az .lp-crow { break-inside: avoid; }
.lp-az h3 { margin: 0; padding: 12px 0; font-size: 30px; font-weight: 300; color: var(--lp-brown); }
.librarypage .lp-crow { display: grid; grid-template-columns: minmax(0, 1fr) 120px 110px; gap: 16px; align-items: baseline; min-height: 44px; padding: 10px 6px;
  border-bottom: 1px solid #EDE3D0; text-decoration: none; }
.lp-crow:last-child { border-bottom: 0; }
.librarypage .lp-crow:not(:has(.lp-k)) { grid-template-columns: minmax(0, 1fr) 120px; }
.lp-crow:hover { background: var(--lp-cream-3); }
.lp-crow .lp-t { font-size: 18px; }
.lp-crow .lp-w { font-size: 14px; color: var(--lp-dim); }

/* Shelf */
.lp-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; margin-top: 18px; }
.librarypage .lp-spine { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 2 / 3; padding: 18px 16px; text-decoration: none;
  background: var(--lp-navy); color: var(--lp-moon); box-shadow: inset 0 0 0 6px var(--lp-navy), inset 0 0 0 7px var(--lp-brass); }
.librarypage .lp-spine:hover { background: var(--lp-side-2); color: #fff; }
.lp-spine .k { font: 400 11px "Playfair Display SC", Georgia, serif; letter-spacing: .24em; color: var(--lp-brass); }
.lp-spine .t { font-size: 17px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.lp-spine .d { font-size: 13px; color: var(--lp-mute); }

/* Data table */
.lp-table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; }
.lp-table th { text-align: left; font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: var(--lp-brown); border-bottom: 1px solid var(--lp-line); padding: 0 10px; }
.lp-table th button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; }
.lp-table th button:hover { color: var(--lp-navy); }
.lp-table td { padding: 10px; border-bottom: 1px solid #EDE3D0; color: var(--lp-dim); vertical-align: baseline; }
.lp-table td:first-child a { color: var(--lp-ink); font-size: 16px; text-decoration: none; }
.lp-table td:first-child a:hover { text-decoration: underline; text-decoration-color: var(--lp-rule); }
.lp-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.lp-bar { display: block; height: 6px; min-width: 80px; background: var(--lp-hair); }
.lp-bar > span { display: block; height: 6px; background: var(--lp-rule); }

/* mid widths */
@media (max-width: 1100px) {
  .lp-herogrid { grid-template-columns: minmax(0, 1fr); }
  .lp-herogrid > .lp-art { display: none; }
  .lp-cont { grid-template-columns: auto minmax(0, 1fr) auto; }
  .lp-track { display: none; }
}

/* phones */
@media (max-width: 760px) {
  body.librarypage { --lp-tb: 0px; }
  .librarypage .topbar { position: static; }             /* only the view toolbar sticks on a phone */
  .lp-pad { padding: 0 16px; }
  .lp-side { flex-basis: 100%; min-width: 0; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--sd-line);
    background: linear-gradient(180deg, #15233F 0%, #0E1830 100%); }
  .lp-side-in { position: static; min-height: 0; max-height: none; padding: 0; background: none; overflow: visible; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .lp-side h2, .lp-side hr, .lp-side .lp-hide { display: none; }
  .lp-sidetoggle { display: none; }                     /* on a phone the menu is a strip at the top; nothing to collapse */
  .lp-side-head { margin: 0; } .lp-side-head h2 { display: none; }
  .lp-types { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1 1 0; min-width: 0; }
  .librarypage .lp-types .lp-nav, .librarypage .lp-types .lp-nav.xs-sub { flex: none; width: auto; gap: 8px; padding: 0 14px; border: 1px solid var(--sd-line); border-radius: 20px; }
  .lp-types .lp-nav svg { display: none; }               /* the words fit without the icons; nothing is cut mid-word (2026-11-08) */
  .lp-types { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  .lp-morebtn { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 42px; padding: 0 14px; border: 1px solid var(--lp-brass); border-radius: 20px;
    background: none; color: var(--lp-moon); font: 14px "Fraunces", Georgia, serif; cursor: pointer; }
  .lp-more { display: none; flex-basis: 100%; }
  .lp-more.show { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 6px; }
  .lp-herogrid { padding-top: 18px; padding-bottom: 16px; }
  .lp-hero h1 { font-size: 34px; }
  .lp-facts { font-size: 14px; }
  .lp-search { height: 48px; gap: 8px; padding-left: 14px; }
  .lp-search input { font-size: 16px; text-overflow: ellipsis; }   /* 16px: the whole hint fits (or ends in …) and iOS does not zoom on focus */
  .lp-search button { padding: 0 14px; }
  .lp-adv { margin-left: 0; }
  .lp-cont { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 10px 10px 14px; }
  .lp-cont-l { grid-column: 1 / -1; }
  .lp-cont-line { white-space: normal; overflow: visible; }
  .lp-tool { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }   /* a scrolling row must start at the left */
  .lp-tab, .lp-dec button, .lp-sort { flex: none; white-space: nowrap; }
  .lp-tab svg { display: none; }
  .lp-tab { padding: 0 12px; }
  .lp-fold { display: none; }
  .lp-fold1 { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--lp-line); background: var(--lp-cream-2); white-space: nowrap; }
  .lp-note { display: none; }
  .lp-yn-lab { display: none; }
  .lp-yearnav { padding-top: 4px; padding-bottom: 6px; }
  .lp-yearnav button { font-size: 14px; padding: 0 8px; }
  .lp-plate-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .lp-hist { gap: 2px; height: 52px; }
  .lp-axis { gap: 2px; }
  .lp-y > summary { grid-template-columns: 84px minmax(0, 1fr) 22px; }
  .lp-yn { font-size: 24px; }
  .lp-yl { margin-left: 0; }
  .librarypage .lp-row { grid-template-columns: minmax(0, 1fr) auto; }
  .lp-day { display: none; }
  .lp-und { padding: 0 12px; }
  .lp-y, .lp-az { scroll-margin-top: 118px; }
  .lp-az { grid-template-columns: 44px minmax(0, 1fr); }
  .librarypage .lp-crow, .librarypage .lp-crow:not(:has(.lp-k)) { grid-template-columns: minmax(0, 1fr) 80px; }
  .lp-crow .lp-k { display: none; }
  .lp-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 0; }   /* finger-sized letters, even rows */
  .lp-letters a, .lp-letters span { min-height: 44px; }
  .lp-table .hidem { display: none; }
}
@media print { .lp-side, .lp-sticky, .lp-hero, .lp-cont, .lp-plate { display: none !important; } .lp-y .lp-yl { display: block; } }
/* local copy only: Edit on each row opens the text on the Lecture Desk */
.librarypage .lp-row:has(.lp-ed) { grid-template-columns: 96px minmax(0, 1fr) auto auto; }
.lp-ed { font: 500 12.5px Inter, sans-serif; color: var(--lp-mute, #6f5c3d); padding: 4px 10px; border: 1px solid transparent; border-radius: 999px; opacity: 0; }
.lp-row:hover .lp-ed, .lp-row:focus-visible .lp-ed { opacity: 1; border-color: currentColor; }
.lp-ed:hover { color: var(--ink, #2a2017); }
@media (max-width: 700px) { .librarypage .lp-row:has(.lp-ed) { grid-template-columns: minmax(0, 1fr) auto auto; } .lp-ed { opacity: 1; } }
.librarypage .lp-crow:not(:has(.lp-k)):has(.lp-ed) { grid-template-columns: minmax(0, 1fr) 120px auto; }
.lp-crow:hover .lp-ed, .lp-crow:focus-visible .lp-ed, .lp-table tr:hover .lp-ed { opacity: 1; border-color: currentColor; }
.lp-table .lp-ed { margin-left: 10px; }
@media (max-width: 700px) { .librarypage .lp-crow:not(:has(.lp-k)):has(.lp-ed) { grid-template-columns: minmax(0, 1fr) 80px auto; } }

/* /library/books: the Books page inside the Library frame (owner 2026-10-28) */
.lp-books { padding-top: 14px; padding-bottom: 24px; }
.lp-books > * { max-width: 64rem; }
.lp-books .chead h2 { margin: 2px 0 4px; font: 700 32px "Playfair Display SC", Georgia, serif; color: var(--ink); }

/* crisp light-on-dark text (owner 2026-10-28: the menu looked blurry); without this Chrome on a Mac blooms light text on navy */
.lp-side { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* /library/books (owner 2026-10-28): 3D books on a grid, newest first, then every book in order of publication */
.lb { padding-top: 22px; padding-bottom: 64px; }
.lb .crumbs { margin-bottom: 6px; }
.lb-h2 { margin: 18px 0 22px; padding-bottom: 10px; border-bottom: 1px solid var(--lp-line); font: 400 26px "Fraunces", Georgia, serif; color: var(--lp-ink); }
.lb-shelf { list-style: none; margin: 0 0 40px; padding: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 46px 28px; justify-items: center; }
.lb-book { --w: 168px; --h: 248px; --d: 40px; display: grid; justify-items: center; gap: 18px; text-decoration: none; perspective: 1000px; }
/* spine toward the reader, like a book standing on a shelf turned to show its cover */
.lb-3d { position: relative; width: var(--w); height: var(--h); transform-style: preserve-3d; transform: rotateY(28deg) rotateX(3deg);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.lb-book:hover .lb-3d, .lb-book:focus-visible .lb-3d { transform: rotateY(14deg) rotateX(2deg) translateY(-8px); }
.lb-3d > span { position: absolute; display: block; }
/* cloth colours */
.lb-navy { --c1: #24396a; --c2: #0f1a33; --c3: #31497f; } .lb-walnut { --c1: #6a4529; --c2: #2c1b10; --c3: #7d5434; }
.lb-oxblood { --c1: #6c2729; --c2: #2e1012; --c3: #823234; } .lb-forest { --c1: #2b5446; --c2: #10241d; --c3: #376656; }
.lb-front, .lb-back { inset: 0; border-radius: 1px 4px 4px 1px; }
.lb-front { transform: translateZ(calc(var(--d) / 2)); display: flex !important; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 26px 16px 22px 24px; box-sizing: border-box; text-align: center; color: #F4EDE0;
  /* the hinge groove beside the spine, then the cloth, lit from the left */
  background: linear-gradient(90deg, #00000070 0, #0000 4px, #ffffff22 7px, #00000055 10px, #0000 15px),
              linear-gradient(160deg, var(--c3) 0%, var(--c1) 35%, var(--c2) 100%); }
.lb-front::before { content: ""; position: absolute; inset: 11px 10px 11px 18px; border: 1px solid #d8b56dbb; outline: 1px solid #d8b56d66; outline-offset: -5px; pointer-events: none; }
.lb-front::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;   /* soft sheen across the cloth */
  background: linear-gradient(110deg, transparent 30%, #ffffff14 45%, transparent 60%), linear-gradient(0deg, #0000002e, transparent 30%); }
.lb-auth { position: relative; font: 600 9px Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #ECC873; }
.lb-title { position: relative; font: 500 19px/1.15 "Fraunces", Georgia, serif; text-wrap: balance; overflow-wrap: anywhere; text-shadow: 0 1px 1px #0006; }
.lb-star { position: relative; color: #ECC873; font-size: 12px; }
.lb-year { position: relative; font: italic 13.5px "Fraunces", Georgia, serif; color: #E9DFCB; }
.lb-back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: var(--c2); }
/* a rounded spine: dark at both edges, lit in the middle, gilt bands top and bottom */
.lb-spine { top: 0; left: calc(var(--d) / -2); width: var(--d); height: var(--h); transform: rotateY(-90deg); border-radius: 4px;
  background: linear-gradient(90deg, var(--c2) 0%, var(--c1) 22%, var(--c3) 48%, var(--c1) 74%, var(--c2) 100%);
  box-shadow: inset 0 18px 0 -15px #d8b56dcc, inset 0 24px 0 -21px #d8b56d88, inset 0 -18px 0 -15px #d8b56dcc, inset 0 -24px 0 -21px #d8b56d88; }
.lb-spine > span { position: absolute; left: 50%; top: 50%; width: calc(var(--h) - 60px); transform: translate(-50%, -50%) rotate(90deg); text-align: center;
  font: 600 11.5px "Fraunces", Georgia, serif; letter-spacing: .04em; color: #ECC873; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-pages { top: 3px; left: calc(var(--w) - var(--d) / 2 - 3px); width: calc(var(--d) - 4px); height: calc(var(--h) - 6px); transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #f3ead8 0 2px, #ddd0b4 2px 3px); }
.lb-top { left: 2px; top: calc(var(--d) / -2 + 3px); width: calc(var(--w) - 6px); height: calc(var(--d) - 4px); transform: rotateX(90deg);
  background: repeating-linear-gradient(0deg, #f3ead8 0 2px, #ddd0b4 2px 3px); }
.lb-book::after { content: ""; display: block; width: 190px; height: 18px; margin-top: -16px; border-radius: 50%; background: radial-gradient(#2b1e1659, transparent 70%); order: 1; }
.lb-cap { order: 2; font: 600 10.5px Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--lp-brown); }
.lb-list { list-style: none; margin: 0; padding: 0; max-width: 56rem; }
.lb-list a { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 12px 4px; border-bottom: 1px solid var(--lp-hair);
  color: var(--lp-ink); text-decoration: none; font-family: "Fraunces", Georgia, serif; }
.lb-list a:hover { background: var(--lp-cream-2); }
.lb-y { font: italic 15px "Fraunces", Georgia, serif; color: var(--lp-dim); }
.lb-t { font-size: 18px; }
.lb-k { font: 13px Inter, sans-serif; color: var(--lp-dim); text-align: right; }
.lb-k i { font-style: italic; }
@media (prefers-reduced-motion: reduce) { .lb-3d { transition: none; } }
@media (max-width: 760px) {
  .lb-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 12px; }
  .lb-book { --w: 132px; --h: 196px; --d: 30px; }
  .lb-title { font-size: 16px; }
  .lb-list a { grid-template-columns: 3.5rem minmax(0, 1fr); } .lb-k { grid-column: 2; text-align: left; }
}

/* opening a book (owner 2026-10-28): it turns to face you and lifts, then the cover, a real two-sided board, swings open
   on its hinge: the outside hides as it passes 90°, the inside shows an endpaper, and a title page waits underneath */
.lb-lid { inset: 0; transform: translateZ(calc(var(--d) / 2)); transform-origin: left center; transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.45, .05, .25, 1) .22s; }
.lb-lid > span { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lb-lid > .lb-front { transform: none; }
.lb-endpaper { transform: rotateY(180deg); border-radius: 4px 1px 1px 4px;
  background: radial-gradient(circle at 30% 30%, #ECC8731a 0 2px, transparent 3px) 0 0 / 14px 14px,
              linear-gradient(270deg, #c9b994 0, #e9dfc7 10%, #f4ecda 60%, #ece2cc); box-shadow: inset 0 0 0 7px #f4ecda, inset 0 0 0 8px #c4a46a66; }
.lb-first { inset: 2px 3px 2px 0; transform: translateZ(calc(var(--d) / 2 - 1px)); border-radius: 0 3px 3px 0; display: flex !important;
  flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px 16px; box-sizing: border-box; text-align: center;
  background: linear-gradient(90deg, #cdbf9f 0, #ece2cb 7%, #fbf6ea 35%, #f6efdf); color: #2B1E16; }
.lb-first img { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 6px; box-shadow: 0 2px 6px #2b1e1633; }
.lb-f-auth { font: 600 8.5px Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #8a6a3a; }
.lb-f-title { font: 500 17px/1.15 "Fraunces", Georgia, serif; text-wrap: balance; }
.lb-f-star { color: #b38a43; font-size: 11px; }
.lb-f-year { font: italic 13px "Fraunces", Georgia, serif; color: #6A5644; }
.lb-f-press { margin-top: 10px; font: 400 10px "Playfair Display SC", Georgia, serif; letter-spacing: .14em; color: #8a6a3a; }
.lb-book.opening .lb-3d { transform: rotateY(0deg) rotateX(0deg) translateY(-14px) scale(1.07); transition-duration: .32s; }
.lb-book.opening .lb-lid { transform: translateZ(calc(var(--d) / 2)) rotateY(-165deg); }
.lb-book::after { transition: opacity .3s; }
.lb-book.opening::after { opacity: .45; }
.lb-book:focus:not(:focus-visible) { outline: none; }   /* no box around a book after a mouse click */
.librarypage .lb-book:focus-visible { outline: 2px solid var(--lp-brass); outline-offset: 6px; border-radius: 6px; }

/* headphones beside a title that has his recording or read-along (owner 2026-10-28) */
.lp-hp { display: inline-block; box-sizing: content-box; width: 15px; height: 15px; padding: 5px; margin-left: .5em; vertical-align: -.3em;
  border-radius: 50%; background: var(--lp-navy); color: #ECC873; flex: none; box-shadow: 0 1px 3px #16233F40; }   /* a navy disc with gold headphones: easy to spot */
.lp-spine .lp-hp { margin: 4px 0 0; }

/* one row for the whole toolbar (owner 2026-10-28): views, decades, count and order never split onto two lines on a wide screen */
@media (min-width: 761px) {
  .lp-tool { flex-wrap: nowrap; gap: 10px; }
  .lp-tab, .lp-dec button, .lp-fold button, .lp-fold1, .lp-sort { white-space: nowrap; flex: none; }
  .lp-tab { padding: 0 12px; font-size: 14.5px; gap: 7px; }
  .lp-dec button { padding: 0 9px; font-size: 14px; }
  .lp-sort { padding: 0 12px; }
  .lp-note { white-space: nowrap; }
}
@media (min-width: 761px) and (max-width: 1500px) {   /* a narrower window: buttons tighten and the text count steps aside so the row still fits */
  .lp-tab { padding: 0 10px; font-size: 14px; }
  .lp-dec button { padding: 0 7px; font-size: 13.5px; }
  .lp-note { display: none; }
}

/* /library/listen (owner 2026-10-28): the album wall as records in their sleeves, grouped by year */
.lw { padding-top: 34px; padding-bottom: 80px; }
.lw-eb { margin: 0 0 4px; font: 600 11px Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--lp-brown); }
.lw-h { margin: 0 0 8px; font: 500 34px Fraunces, Georgia, serif; color: var(--lp-ink); }
.lw-sub { margin: 0 0 28px; max-width: 62ch; font: 17px/1.6 Fraunces, Georgia, serif; color: var(--lp-body); }
.lw-yh { display: flex; align-items: baseline; gap: 14px; margin: 0 0 22px; font: 500 26px Fraunces, Georgia, serif; color: var(--lp-ink); }
.lw-yh::after { content: ""; flex: 1; height: 1px; background: var(--lp-line); transform: translateY(-6px); }
.lw-year { margin-bottom: 48px; }
.lw-year[hidden], .lw-item[hidden] { display: none; }
/* filter and order */
.lw-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 34px; }
.lw-filter { display: flex; align-items: center; gap: 10px; flex: 0 1 360px; height: 44px; padding: 0 14px; border: 1px solid var(--lp-line); border-radius: 8px; background: var(--lp-field); color: var(--lp-dim); }
.lw-filter:focus-within { border-color: var(--lp-rule); box-shadow: 0 0 0 3px #b38a4322; }
.lw-filter input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 15px Inter, sans-serif; color: var(--lp-ink); }
.lw-order { display: inline-flex; border: 1px solid var(--lp-line); border-radius: 8px; overflow: hidden; background: var(--lp-cream-2); }
.lw-order button { min-height: 42px; padding: 0 16px; border: 0; background: none; color: var(--lp-body); font: 500 14px Inter, sans-serif; cursor: pointer; }
.lw-order button + button { border-left: 1px solid var(--lp-line-2); }
.lw-order button[aria-pressed="true"] { background: var(--lp-navy); color: var(--lp-cream); }
.lw-none { font: italic 16px Fraunces, Georgia, serif; color: var(--lp-dim); }
/* the records */
.lw-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 30px; }
.librarypage .lw-rec { display: grid; gap: 10px; padding-right: 16%; text-decoration: none; color: var(--lp-ink); }
.lw-slot { position: relative; display: block; aspect-ratio: 1; }
.lw-disc { position: absolute; top: 3.5%; bottom: 3.5%; left: 14%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #1a1a1a 0 4%, #0000 4.5%), radial-gradient(circle, #d9b766 0 15%, #a07d3c 15.5% 16.5%, #121212 17%, #1d1d1d 18%, #0d0d0d 30%, #1e1e1e 31%, #0c0c0c 45%, #1c1c1c 46%, #0b0b0b 60%, #1b1b1b 61%, #0a0a0a 71%);
  box-shadow: 0 10px 22px #2b1e1688, inset 0 0 0 2px #000; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.lw-disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, #fff0 0 20%, #ffffff1f 25%, #fff0 32% 70%, #ffffff14 75%, #fff0 82%); }
.lw-label { position: absolute; inset: 35%; border-radius: 50%; background: radial-gradient(circle, #0000 0 11%, #00000033 12% 13%, #0000 14%); }
.lw-rec:hover .lw-disc, .lw-rec:focus-visible .lw-disc { transform: translateX(22%) rotate(120deg); }
.lw-sleeve { position: absolute; inset: 0; display: block; border-radius: 3px; overflow: hidden; box-shadow: 0 16px 28px -14px #2b1e16bb, 0 0 0 1px #2b1e1622;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.lw-rec:hover .lw-sleeve { transform: translateY(-3px); }
.lw-sleeve img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lw-sleeve::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, #ffffff17, transparent 40%), linear-gradient(90deg, transparent 96.5%, #0005); pointer-events: none; }
/* opening: the record slides all the way out and spins up, as if onto the turntable */
@keyframes lw-spin { to { transform: translateX(58%) rotate(1080deg); } }
.lw-rec.playing .lw-disc { animation: lw-spin .76s cubic-bezier(.35, .1, .3, 1) forwards; }
.lw-rec.playing .lw-sleeve { transform: translateX(-6%); }
/* your progress, from the reader's player */
.lw-prog { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 5px; background: #0000004d; display: none; }
.lw-item.started .lw-prog { display: block; }
.lw-prog i { display: block; height: 100%; width: 0; background: #ECC873; box-shadow: 0 0 6px #ECC87399; }
.lw-done { position: absolute; top: 8px; right: 8px; z-index: 1; padding: 4px 9px; border-radius: 999px; background: #16233Fe6; color: #ECC873; font: 600 11px Inter, sans-serif; letter-spacing: .04em; }
.lw-done[hidden] { display: none; }
.lw-t { font: 500 17px/1.25 Fraunces, Georgia, serif; }
.lw-m { margin-top: -6px; font: 13px Inter, sans-serif; color: var(--lp-dim); font-variant-numeric: tabular-nums; }
.librarypage .lw-rec:focus-visible { outline: 2px solid var(--lp-brass); outline-offset: 6px; border-radius: 6px; }
/* Continue listening */
.lw-cont { margin: 0 0 34px; }
.lw-cont[hidden] { display: none; }
.lw-cont-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.librarypage .lw-crow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border: 1px solid var(--lp-line-2);
  border-radius: 12px; background: var(--lp-cream-2); color: var(--lp-ink); text-decoration: none; transition: border-color .2s, background .2s; }
.librarypage .lw-crow:hover { border-color: var(--lp-rule); background: var(--lp-field); }
.lw-crow img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; box-shadow: 0 4px 10px -4px #2b1e1699; }
.lw-crow b { display: block; font: 500 16px/1.25 Fraunces, Georgia, serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-crow small { display: block; margin: 2px 0 7px; font: 12.5px Inter, sans-serif; color: var(--lp-dim); }
.lw-cbar { display: block; height: 4px; border-radius: 2px; background: var(--lp-hair); overflow: hidden; }
.lw-cbar i { display: block; height: 100%; background: var(--lp-rule); }
.lw-cplay { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lp-navy); color: #ECC873; }
@media (max-width: 760px) { .lw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } .lw-tools { flex-direction: column; align-items: stretch; } }
@media (prefers-reduced-motion: reduce) { .lw-disc, .lw-sleeve { transition: none; } .lw-rec.playing .lw-disc { animation: none; } }
@media (max-width: 760px) { .lp-types.lp-listen { flex: none; } }   /* on a phone, Recordings sits after the Read pills in the same strip */

/* the house tooltip (owner 2026-10-28): a small navy label with a pointer, sliding in beside what you point at */
.ui-tip { position: fixed; z-index: 100; left: 0; top: 0; padding: 7px 11px; border-radius: 8px; pointer-events: none;
  background: #0E1830; border: 1px solid #2c3d61; color: #F7F3EA; font: 500 13px/1.2 Inter, system-ui, sans-serif; white-space: pre;
  box-shadow: 0 10px 24px -8px #0009; opacity: 0; transform: translate(-4px, -50%); transition: opacity .14s ease, transform .14s ease; }
.ui-tip::before { content: ""; position: absolute; left: -5px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: #0E1830;
  border-left: 1px solid #2c3d61; border-bottom: 1px solid #2c3d61; transform: rotate(45deg); }
.ui-tip.on { opacity: 1; transform: translate(0, -50%); }
@media (prefers-reduced-motion: reduce) { .ui-tip { transition: none; } }

/* the "Try:" chips on the walnut hero (owner 2026-10-28): warm, not the old navy blue-grey */
.lp-try { color: #D9C9A8; }
.librarypage .lp-chip { border-color: #C4A46A66; background: #0d08054d; color: #F4EDE0; backdrop-filter: blur(2px);
  transition: border-color .2s, background .2s, color .2s; }
.librarypage .lp-chip:hover, .librarypage .lp-chip:focus-visible { border-color: #ECC873; background: #ECC8731f; color: #fff; }
