/* Poof Books section pages. Tokens from the Poof Books design system. */
:root {
  --night: #18122B; --surface: #221A3B; --surface-raised: #2A2148;
  --rule: #2E2546; --line-subtle: #3A2F5C; --line: #4A3D6E;
  --pink: #FF5FA2; --lilac: #B9A3FF; --cream: #F4EFE6; --muted: #CFC6E8; --on-pink: #18122B;
  --night-rgb: 24, 18, 43; --surface-rgb: 34, 26, 59; --raised-rgb: 42, 33, 72;
  --gutter: clamp(16px, 4vw, 32px);
}
* { box-sizing: border-box; }
html { background: var(--night); }
body { margin: 0; background: var(--night); color: var(--cream); font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: var(--lilac); }
a:hover { color: var(--pink); }
img { max-width: 100%; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

/* Show / hide by view setting (classes set on <html> before first paint) */
html.no-curators .c-on { display: none !important; }
html:not(.no-curators) .c-off { display: none !important; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); position: relative; z-index: 10; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 18px; padding-bottom: 18px; }
.home { display: block; flex: 0 0 auto; }
.home img { display: block; width: 168px; height: auto; }
.sections { display: flex; flex-wrap: wrap; gap: 2px 18px; flex: 1 1 520px; }
.sections a { color: var(--muted); text-decoration: none; font-size: 13.5px; white-space: nowrap; font-weight: 500; padding: 8px 2px; border-bottom: 2px solid transparent; }
.sections a:hover { color: var(--cream); }
.sections a[aria-current="page"] { color: var(--pink); border-bottom-color: var(--pink); }
.gear { flex: 0 0 auto; margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; cursor: pointer; background: transparent; color: var(--cream); border: 1.5px solid var(--line); }
.gear:hover { border-color: var(--lilac); }
.gear[aria-expanded="true"] { border-color: var(--pink); color: var(--pink); background: var(--surface-raised); }
@media (min-width: 761px) {
  .site-header .wrap { gap: 12px 24px; }
  .home img { width: 148px; }
  .sections { gap: 2px 14px; }
  .sections a { font-size: 13px; }
}
@media (max-width: 760px) {
  .home img { width: 140px; }
  .sections { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 0 18px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .sections::-webkit-scrollbar { display: none; }
  .sections a { font-size: 14px; padding: 8px 0; }
}

/* View settings pop-up */
.view-settings { position: absolute; right: var(--gutter); top: calc(100% + 8px); width: min(380px, calc(100% - 2 * var(--gutter))); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.view-settings[hidden] { display: none; }
@media (min-width: 1344px) { .view-settings { right: calc((100% - 1280px) / 2 + var(--gutter)); } }
.view-settings h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.view-settings .hint { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.vs-row { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0; }
.vs-row + .vs-row { border-top: 1px solid var(--line-subtle); }
.vs-row .lab { flex: 1 1 auto; min-width: 0; }
.vs-row b { display: block; font-size: 15px; font-weight: 600; }
.vs-row span { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.switch { flex: 0 0 auto; position: relative; width: 52px; height: 30px; margin: 7px 0; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; }
.switch[aria-checked="true"] { background: var(--pink); }
.switch[disabled] { opacity: .45; cursor: not-allowed; background: var(--line); }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: left .15s ease; }
.switch[aria-checked="true"]:not([disabled]) .knob { left: 25px; }
.vs-row.vs-pace { flex-direction: column; gap: 8px; }
.pace { display: flex; gap: 6px; flex-wrap: wrap; }
.pace button { min-height: 34px; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--cream); font: inherit; font-size: 14px; cursor: pointer; }
.pace button[aria-pressed="true"] { background: var(--lilac); border-color: var(--lilac); color: var(--on-pink); font-weight: 600; }
.pace button:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.vs-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
html:not(.no-curators) .vs-note { display: none; }

/* Reading Room hero (curators on) */
.room { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.room-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.room-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--night-rgb), .15) 0%, rgba(var(--night-rgb), .35) 40%, rgba(var(--night-rgb), .92) 66%, var(--night) 100%); }
.room-glow { position: absolute; left: 6%; bottom: 8%; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255,95,162,.35), rgba(255,95,162,0) 70%); opacity: .5; }
.room .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 48px; padding-top: 48px; }
.figure { flex: 0 1 430px; min-width: 240px; }
.fig { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; object-position: bottom center; transform-origin: 50% 100%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.welcome { flex: 1 1 420px; min-width: 0; padding-bottom: 72px; }
.motion-on .fig { animation: breathe 5.5s ease-in-out infinite; }
.motion-on .room-glow { animation: glow 4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.012); } }
@keyframes glow { 0%, 100% { opacity: .35; } 50% { opacity: .75; } }
@media (prefers-reduced-motion: reduce) { .switch .knob { transition: none; } }
h1 { margin: 0; font-size: clamp(40px, 5vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; color: var(--pink); }
.with { margin: 12px 0 0; font-size: 22px; font-weight: 600; color: var(--lilac); }
.speech { margin: 28px 0 0; padding: 22px 24px; background: rgba(var(--surface-rgb), .88); border: 1px solid var(--line); border-radius: 18px; max-width: 560px; }
.speech blockquote { margin: 0; font-size: 18px; line-height: 1.6; }
.speech figcaption { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.speech figcaption svg { flex: 0 0 auto; }
.hear { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 0; background: var(--lilac); color: var(--on-pink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.hear:hover { background: var(--cream); }
.say { display: inline-flex; align-items: center; gap: 8px; }
html:not(.sound-on) .sound-only { display: none !important; }
html.sound-on .quiet-only { display: none !important; }
/* Curators' voices: Sound only. Words that have a recording are hidden from view (screen readers still read them),
   leaving the play button. Words without a recording always show. */
html.words-off .room:has(.fig-play .hear[data-audio]:not([data-audio=""])) .speech,
html.words-off .about .c-on:has(.about-hear .hear[data-audio]:not([data-audio=""])) > p:not(.about-hear),
html.words-off .co-grid:has(.otter-play[data-audio]) .otter-speech {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.words-off .about .c-on:has(.about-hear .hear[data-audio]:not([data-audio=""])) .about-hear { margin-top: 0; }

/* The curator's greeting is played from a button at his feet (same place as Lil Otter's), never inside the speech box. */
html.sound-on .figure:has(.fig-play) { padding-bottom: 28px; }
.fig-play { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); margin: 0; white-space: nowrap; z-index: 2; }
.hear.feet { min-height: 46px; padding: 10px 20px; font-size: 15px; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.hear.feet[aria-pressed="true"] { background: var(--pink); }
html.gate-open.gate-page .fig-play { display: none; }
.pace button[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) {
  .room .wrap { padding-top: 24px; gap: 0; }
  .figure { flex-basis: 100%; display: flex; justify-content: center; }
  .fig { width: min(78vw, 340px); }
  .room-shade { background: linear-gradient(180deg, rgba(var(--night-rgb), .2) 0%, rgba(var(--night-rgb), .5) 45%, rgba(var(--night-rgb), .95) 70%, var(--night) 100%); }
  .welcome { padding-bottom: 48px; }
}

/* Plain title (curators off) */
.plain { border-bottom: 1px solid var(--rule); }
.plain .wrap { padding-top: 72px; padding-bottom: 56px; }
.plain h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1; }
.plain hr { width: 64px; height: 3px; margin: 28px 0 0; background: var(--lilac); border: 0; border-radius: 2px; }

/* Shelf intro, feature, shelf */
.about { padding-top: 56px; padding-bottom: 8px; }
.about p { margin: 0; max-width: 760px; font-size: 20px; line-height: 1.65; }
.feature-wrap { padding-top: 48px; padding-bottom: 48px; }
.feature { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-start; background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(20px, 4vw, 36px); }
.feature .cover-link { display: block; flex: 0 0 auto; width: 300px; max-width: 100%; }
.feature .cover { display: block; width: 100%; aspect-ratio: 2 / 3; height: auto; object-fit: contain; object-position: bottom center; border-radius: 6px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.feature h2 a { color: inherit; text-decoration: none; }
.feature h2 a:hover { color: var(--pink); }
.feature .info { flex: 1 1 380px; min-width: 0; }
.feature h2 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; font-weight: 800; }
.feature .by { margin: 8px 0 0; font-size: 18px; color: var(--muted); }
.feature .blurb { margin: 20px 0 0; font-size: 16.5px; line-height: 1.7; max-width: 640px; }
.pick { margin-top: 22px; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--surface-raised); max-width: 640px; }
.pick img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 4%; background: var(--night); flex: 0 0 auto; }
.pick p { margin: 0; font-size: 15px; line-height: 1.6; }
.pick strong { color: var(--pink); }
.buy-row { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--pink); color: var(--on-pink); }
.btn-primary:hover { background: var(--cream); color: var(--on-pink); }
.btn-ghost { color: var(--cream); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--lilac); color: var(--cream); }
.price-note { font-size: 15px; color: var(--muted); }
.shelf { padding-top: 16px; padding-bottom: 72px; }
.shelf h2 { margin: 0 0 24px; font-size: 26px; font-weight: 800; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 32px; }
.book { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 0; line-height: 1.3; }
.book .jacket + * { margin-top: 10px; }   /* space under the cover only; the text lines sit close together */
.book .m { margin-top: 2px; }
/* Covers sit in a 2:3 frame (standard trade-book proportions). Feed covers that are taller or wider keep their own shape, bottom-aligned like books on a shelf. */
.book .jacket { display: block; aspect-ratio: 2 / 3; }
.book img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom center; border-radius: 4px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.4)); }
.book .t { font-size: 16px; font-weight: 600; color: var(--cream); }
.book .m { font-size: 14px; color: var(--muted); }
a.book:hover .t { color: var(--pink); }
.stocking { padding: 28px; border: 1px dashed var(--line); border-radius: 18px; max-width: 640px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.stocking p { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 48px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--pink); }
.site-footer .wrap > span:first-child { grid-column: 1; grid-row: 1; }
.ai-line { grid-column: 1; grid-row: 2; }
.foot-right { display: contents; }
.site-footer nav { grid-column: 2; grid-row: 1; justify-self: end; }
.social { grid-column: 2; grid-row: 2; justify-self: end; display: inline-flex; align-items: center; gap: 26px; }
.site-footer .social a { display: inline-flex; align-items: center; text-decoration: none; }
.site-footer .social svg { width: auto; height: 22px; }
.site-footer .social a:first-child svg { height: 26px; }
.site-footer .social a:last-child svg { height: 20px; }
@media (max-width: 880px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .site-footer .wrap > span:first-child, .ai-line, .site-footer nav, .social { grid-column: 1; grid-row: auto; justify-self: start; }
}

/* Foyer (Big Daddy's page) */
.foyer-title .tagline { margin: 12px 0 0; font-size: 22px; font-weight: 600; color: var(--lilac); }
.cast { padding-top: 56px; padding-bottom: 24px; }
.cast-head { max-width: 760px; margin-bottom: 28px; }
.cast-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 800; }
.cast-head p { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; transition: border-color .15s ease; }
.card:hover, .card:focus-visible { border-color: var(--pink); }
.card-stage { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; }
.card-stage .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.card-stage .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--night-rgb), 0) 45%, rgba(var(--surface-rgb), .95) 100%); }
.card-stage .who { position: absolute; left: 50%; bottom: 4%; height: 88%; width: auto; max-width: 92%; object-fit: contain; object-position: bottom center; transform: translateX(-50%); transform-origin: 50% 100%; filter: drop-shadow(0 12px 16px rgba(0,0,0,.45)); transition: transform .25s ease; }
.motion-on .card:hover .who, .motion-on .card:focus-visible .who { transform: translateX(-50%) translateY(-6px) scale(1.03); }
.card-text { padding: 18px 20px 22px; }
.card-text .eyebrow { margin-bottom: 6px; }
.card-text h3 { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 800; color: var(--pink); }
.card-text .who-name { margin: 6px 0 0; font-size: 16px; font-weight: 600; color: var(--lilac); }
.card-text .teaser { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.card-text .go { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--cream); }
.card:hover .go { color: var(--pink); }
.looker { padding-top: 40px; padding-bottom: 72px; }
.looker-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 28px 32px; border-radius: 22px; background: var(--surface-raised); border: 1px solid var(--line-subtle); }
.looker-band h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--lilac); }
.looker-band p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 560px; }
@media (max-width: 760px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { border-radius: 14px; }
  .card-text { padding: 12px 12px 14px; }
  .card-text .eyebrow { font-size: 11px; letter-spacing: .1em; }
  .card-text h3 { font-size: 17px; }
  .card-text .who-name { font-size: 13px; }
  .card-text .teaser { font-size: 13px; }
  .card-text .go { font-size: 13px; margin-top: 10px; }
  .looker-band { padding: 22px 20px; }
}

/* Eight sections: menu on its own row under the logo and gear; divider before Non-Fiction */
.site-header .wrap { row-gap: 10px; }
.sections { order: 3; flex: 1 1 100%; align-items: center; }
.nav-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; flex: 0 0 auto; }
@media (min-width: 761px) {
  .site-header .wrap { padding-bottom: 10px; }
  .sections { gap: 2px 22px; }
  .sections a { font-size: 14px; }
  .home img { width: 168px; }
}
.sections { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.sections::-webkit-scrollbar { display: none; }
@media (min-width: 761px) { .sections { gap: 2px 17px; } .sections a { font-size: 14px; } }
@media (min-width: 761px) { .sections { gap: 2px 15px; } .sections a { font-size: 13.5px; } .nav-sep { margin: 0 2px; } }
.say[hidden], .hear[hidden] { display: none !important; }

/* Content notice for the explicit shelf (self-declaration, not verification). */
/* Arriving directly: the shelf is hidden and the notice sits across the curator. */
html.gate-open.gate-page main > *:not(.room):not(.plain) { display: none !important; }
html.gate-open.gate-page .room .speech { display: none; }
.gate-band { display: none; }
html.gate-open .gate-band { display: block; }
.figure { position: relative; }
.figure .gate-band { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: min(440px, 92%); }
.gate-band { background: rgba(var(--night-rgb), .94); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.55); text-align: left; }
.plain .gate-band { margin-top: 28px; max-width: 520px; }
.gate-band .gate-h { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 600; color: var(--cream); }
/* Following a link from elsewhere: a pop-up on the page you're on. */
.gate-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: var(--gutter); background: rgba(var(--night-rgb), .92); }
.gate-modal[hidden] { display: none; }
html.gate-modal-open body { overflow: hidden; }
html.gate-open.gate-page:not(.gate-modal-open) .gate-modal { background: var(--night); }
.gate-card { width: min(480px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 5vw, 36px); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.gate-card h2 { margin: 0; font-size: clamp(26px, 4vw, 32px); font-weight: 800; color: var(--pink); }
.gate-card .gate-p { margin: 14px 0 0; font-size: 17px; line-height: 1.6; }
.gate-btns { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.gate-btns .btn { border: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.gate-btns .btn-ghost { border: 1.5px solid var(--line); background: transparent; }
.gate-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .figure .gate-band { top: 60%; width: 94%; } }

/* Shelf: sort and filter */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shelf-tools { margin: 0 0 18px; }
.tool-row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.tool.search { flex: 1 1 260px; max-width: 420px; }
.tool.search input { width: 100%; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--cream); font: inherit; font-size: 15px; }
.tool.search input::placeholder { color: var(--muted); }
.tool.search input:focus { outline: 2px solid var(--lilac); outline-offset: 1px; }
.tool.sort { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.tool.sort select { min-height: 44px; padding: 8px 34px 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23CFC6E8' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--cream); font: inherit; font-size: 15px; -webkit-appearance: none; appearance: none; }
.tool.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--cream); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.tool.toggle[aria-expanded="true"] { border-color: var(--pink); }
.tool.toggle .n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: var(--on-pink); font-size: 12px; font-weight: 800; }
.tool.toggle .n[hidden] { display: none; }
.filters { margin-top: 14px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 32px; align-items: start; }
.filters[hidden] { display: none; }
.f-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.f-group[hidden] { display: none; }
.f-group legend { padding: 0; margin-bottom: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
/* Slider groups stretch to the tallest in their row and keep the slider at the bottom, so sliders line up
   however many preset buttons each group has. */
.f-group:has(> .range) { align-self: stretch; display: flex; flex-direction: column; }
.f-group:has(> .range) > .presets { flex: 1 0 auto; align-content: flex-start; }
.presets button, .chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--cream); font: inherit; font-size: 14px; cursor: pointer; }
.presets button[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--lilac); border-color: var(--lilac); color: var(--on-pink); font-weight: 600; }
.chip small { font-size: 12px; opacity: .7; }
.chip[aria-pressed="false"] { color: var(--muted); border-style: dashed; }
.chip[aria-pressed="false"] span { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.chip-all { float: right; margin-left: 12px; padding: 0; background: none; border: 0; color: var(--lilac); font: inherit; font-size: 12px; letter-spacing: .06em; text-transform: none; text-decoration: underline; cursor: pointer; }
.f-group legend { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
/* Long lists (Set in, Subject matter) scroll after about four rows of chips. The styled scrollbar
   stays visible on Mac and iPhone too, so readers can see there's more. */
.chips { max-height: 176px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.chips::-webkit-scrollbar { width: 8px; }
.chips::-webkit-scrollbar-track { background: var(--rule); border-radius: 4px; }
.chips::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.chips::-webkit-scrollbar-thumb:hover { background: var(--lilac); }
.f-group:has(.tip) { position: relative; }
.tip { display: inline-block; margin-left: 6px; vertical-align: 1px; text-transform: none; letter-spacing: 0; }
.tip-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1.5px solid var(--muted); background: transparent; color: var(--muted); font: italic 700 11px/1 Georgia, serif; cursor: pointer; }
.tip-btn::after { content: ""; position: absolute; inset: -13px; }
.tip-btn:hover, .tip.open .tip-btn { border-color: var(--pink); color: var(--pink); }
.tip-btn:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
.tip-note { display: none; position: absolute; z-index: 20; left: -8px; right: -8px; top: 14px; max-width: 360px; padding: 12px 14px; border: 8px solid transparent; border-top-width: 14px; background: var(--surface-raised); background-clip: padding-box; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.4); color: var(--cream); font-size: 14px; font-weight: 400; line-height: 1.45; }
.tip.open .tip-note { display: block; }
.tip-note strong { color: var(--lilac); }
.tip-note a { color: var(--pink); font-weight: 600; overflow-wrap: anywhere; }
.range { position: relative; height: 28px; }
.range .track { position: absolute; left: 11px; right: 11px; top: 12px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--line) var(--lo), var(--pink) var(--lo), var(--pink) var(--hi), var(--line) var(--hi)); }
.range input { position: absolute; left: 0; top: 0; width: 100%; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); border: 3px solid var(--pink); cursor: pointer; }
.range input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 3px solid var(--pink); cursor: pointer; }
.range input::-webkit-slider-runnable-track { background: none; }
.range input::-moz-range-track { background: none; }
.range input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--cream); outline-offset: 2px; }
.range-out { margin: 6px 0 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.reset { justify-self: start; align-self: end; background: none; border: 0; padding: 8px 0; color: var(--lilac); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.shelf-count { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.book[hidden] { display: none; }
.book .w { font-size: 13px; color: var(--lilac); }
.no-match { margin: 8px 0 0; color: var(--muted); }
.no-match[hidden] { display: none; }
.books .book.paged { display: none; }
.books .book .w { display: none; }   /* shelf grid: title and author/year/price only (Blair, 29 Oct); Set in stays a filter */
.shelf-more { margin: 32px 0 0; text-align: center; }
.shelf-more[hidden] { display: none; }
.shelf-more .btn { background: transparent; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.linklike { background: none; border: 0; padding: 0; color: var(--lilac); font: inherit; text-decoration: underline; cursor: pointer; }

/* Showcase: Book of the Month · Out this month · Coming soon */
.showcase-wrap { padding-top: 48px; padding-bottom: 48px; }
.showcase { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: 18px 0 0; overflow: hidden; }
.sc-tabs { display: flex; gap: 4px; padding: 0 clamp(20px, 4vw, 36px); overflow-x: auto; scrollbar-width: none; }
.sc-tabs::-webkit-scrollbar { display: none; }
.sc-tabs [role="tab"] { flex: 0 0 auto; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.sc-tabs [role="tab"]:hover { color: var(--cream); }
.sc-tabs [role="tab"][aria-selected="true"] { background: var(--surface-raised); color: var(--pink); }
.sc-viewport { position: relative; }
.sc-track { display: flex; align-items: flex-start; transition: height .35s ease; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.sc-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; padding: 22px clamp(20px, 4vw, 36px) clamp(24px, 4vw, 36px); box-sizing: border-box; }
.sc-frame { position: relative; }
.slide > .eyebrow { margin-bottom: 16px; }
.slide .feature { background: none; border: 0; padding: 0; border-radius: 0; }
.slide .feature h3 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; font-weight: 800; }
.slide .feature h3 a { color: inherit; text-decoration: none; }
.slide .feature h3 a:hover { color: var(--pink); }
.slide-empty { margin: 8px 0 12px; padding: 28px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 640px; }
.mini-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px; }
.mini-books .book .w { color: var(--pink); font-weight: 600; }

/* Glass arrows, in the spirit of Apple's Liquid Glass: translucent, blurred, lit from above */
.glass-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 52px; height: 52px; padding: 0; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cream);
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,.38) 0%, rgba(255,255,255,.10) 38%, rgba(255,255,255,0) 60%),
    linear-gradient(160deg, rgba(185,163,255,.22) 0%, rgba(255,95,162,.14) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,.30);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.55),
    inset 0 -2px 6px rgba(var(--night-rgb), .35),
    inset 0 0 0 1px rgba(255,255,255,.06),
    0 10px 30px rgba(0,0,0,.40);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.glass-arrow::after { content: ""; position: absolute; inset: 1px; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 45%); pointer-events: none; }
.glass-arrow:hover { transform: translateY(-50%) scale(1.06); box-shadow: inset 0 1px 1px rgba(255,255,255,.65), inset 0 -2px 6px rgba(var(--night-rgb), .35), 0 14px 36px rgba(0,0,0,.45), 0 0 0 4px rgba(255,95,162,.12); }
.glass-arrow:active { transform: translateY(-50%) scale(.96); }
.glass-arrow:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.glass-arrow svg { position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
/* Arrows sit in the page margin, centred in the space beside the box (half-overlapping only on narrow screens) */
.glass-arrow.prev { left: max(-90px, calc((100% - 100vw) / 4 - 26px), calc((100% - 100vw) / 2 + 6px)); }
.glass-arrow.next { right: max(-90px, calc((100% - 100vw) / 4 - 26px), calc((100% - 100vw) / 2 + 6px)); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass-arrow { background-color: rgba(var(--raised-rgb), .9); } }
@media (prefers-reduced-motion: reduce) { .glass-arrow, .sc-track { transition: none; } }
@media (max-width: 760px) {
  .slide { padding: 16px 20px 24px; }
  .sc-frame { padding: 0 0 66px; }
  .glass-arrow { top: auto; bottom: 0; transform: none; width: 48px; height: 48px; }
  .glass-arrow:hover, .glass-arrow:active { transform: none; }
  .glass-arrow.prev { left: calc(50% - 56px); }
  .glass-arrow.next { right: calc(50% - 56px); }
  .mini-books { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* Sign-up: "Keep me posted" on each shelf, Looker List in the Cabin (Zoho Campaigns form) */
.posted { padding-top: 56px; padding-bottom: 72px; }
.looker-band.posted-band, .posted-band { display: block; max-width: 880px; margin: 0 auto; padding: 28px 32px; border-radius: 22px; background: var(--surface-raised); border: 1px solid var(--line-subtle); }
.posted-text { display: flex; align-items: center; gap: 20px; }
.posted-face { flex: 0 0 auto; width: 84px; height: 84px; object-fit: cover; object-position: top center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-subtle); }
.posted-band h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--lilac); }
.posted-band .posted-text p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--cream); max-width: 600px; }
.zform .signup-fields { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.zform .signup-field { flex: .75 1 160px; min-width: 0; display: flex; }
.zform .signup-field-email { flex: 1 1 220px; }
.zform .signup-button { flex: 0 0 auto; display: flex; }
.zform input[type="text"], .zform input[type="email"] { width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--cream); background: var(--night); border: 1px solid var(--line); border-radius: 10px; }
.zform input::placeholder { color: #8E84AE; }
.zform input[type="text"]:focus, .zform input[type="email"]:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,95,162,.25); }
.zform input[type="button"] { padding: 12px 22px; font: inherit; font-size: 16px; font-weight: 800; color: var(--on-pink); background: var(--pink); border: 0; border-radius: 10px; cursor: pointer; -webkit-appearance: none; appearance: none; }
.zform input[type="button"]:hover { background: var(--lilac); }
.zform input[type="button"]:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
.zform #errorMsgDiv { display: none; font-size: 14px; color: var(--pink); margin-top: 10px; }
.zform #zcOptinOverLay, .zform #zcOptinSuccessPopup { display: none; }
.signup-shelves { margin: 20px 0 0; padding: 0; border: 0; }
.signup-shelves legend { padding: 0; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--cream); }
.signup-shelves legend span { font-weight: 400; color: var(--muted); margin-left: 6px; }
.shelf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.shelf-chip { position: relative; display: inline-flex; cursor: pointer; }
.shelf-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shelf-chip > span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--cream); font-size: 14px; transition: background-color .15s, border-color .15s; }
.shelf-chip small { margin-left: .4em; font-size: inherit; color: var(--muted); }
.shelf-chip:hover > span { border-color: var(--lilac); }
.shelf-chip input:checked + span, .shelf-chip input:checked + span small { background: var(--lilac); border-color: var(--lilac); color: var(--on-pink); font-weight: 600; }
.shelf-chip input:checked + span small { background: none; }
.shelf-chip input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 2px; }
.posted-band .signup-fine { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); opacity: .85; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) { .posted-band { padding: 22px 18px; } .posted-face { width: 64px; height: 64px; } .zform .signup-button, .zform .signup-button input { width: 100%; } }

/* Trolley (assets/js/cart.js): same size as the gear, pink count badge */
.cart-btn { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--cream); text-decoration: none; }
.cart-btn:hover, .cart-btn[aria-current="page"] { border-color: var(--pink); color: var(--cream); }
.cart-btn:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
.cart-count { position: absolute; top: -5px; right: -6px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: var(--on-pink); border: 2px solid var(--night); font-size: 11.5px; font-weight: 800; line-height: 17px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-count[hidden] { display: none; }

/* Currency switcher (assets/js/currency.js) */
.hdr-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hdr-tools .gear { margin-left: 0; }
.cur { position: relative; }
.cur-btn { display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 14px 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--cream); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.cur-btn:hover, .cur-btn[aria-expanded="true"] { border-color: var(--pink); }
.cur-btn:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }
.cur img { display: block; width: 22px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); object-fit: cover; }
.cur-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 270px; padding: 10px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.cur-menu[hidden] { display: none; }
.cur-head { margin: 4px 8px 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cur-menu ul { list-style: none; margin: 0; padding: 0; }
.cur-menu li button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--cream); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.cur-menu li button:hover { background: var(--surface); }
.cur-menu li button[aria-pressed="true"] { background: var(--surface); box-shadow: inset 3px 0 0 var(--pink); }
.cur-menu li b { width: 34px; font-size: 13px; }
.cur-menu li span { color: var(--muted); font-size: 13px; }
.cur-foot { margin: 8px 8px 4px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.money.approx { cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
[data-fx-note] { font-size: 12.5px; color: var(--muted); }
[data-fx-note][hidden] { display: none; }
@media (max-width: 560px) {
  .cur-btn { height: 40px; padding: 0 10px; }
  .cur-code { display: none; }
}

/* Quick search (assets/js/search.js) */
.welcome.top { align-self: flex-start; padding-top: 4px; }
.quick-search { position: relative; margin: 24px 0 0; max-width: 420px; }
.foyer-title .quick-search { margin-bottom: 28px; }
.qs-label { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--lilac); }
.qs-field { position: relative; }
.qs-icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.qs-field input { width: 100%; min-height: 52px; padding: 12px 18px 12px 46px; border-radius: 999px; border: 1.5px solid var(--line); background: rgba(var(--surface-rgb), .94); color: var(--cream); font: inherit; font-size: 17px; -webkit-appearance: none; appearance: none; }
.qs-field input::placeholder { color: var(--muted); }
.qs-field input::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.6); cursor: pointer; }
.qs-field input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,95,162,.25); }
.qs-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; overflow-y: auto; overscroll-behavior: contain; padding: 6px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 36px rgba(0,0,0,.5); }
.qs-panel.side { left: calc(100% + 16px); right: auto; top: 0; width: 320px; }
.qs-panel[hidden] { display: none; }
.qs-list { list-style: none; margin: 0; padding: 0; }
.qs-list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: var(--cream); text-decoration: none; }
.qs-list li[aria-selected="true"] a { background: var(--surface); box-shadow: inset 3px 0 0 var(--pink); }
.qs-list img, .qs-nocover { flex: 0 0 40px; display: block; width: 40px; height: 60px; border-radius: 3px; object-fit: cover; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.qs-text { min-width: 0; }
.qs-text b { display: block; font-size: 15px; line-height: 1.3; }
.qs-text span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.qs-text small { display: block; margin-top: 2px; font-size: 12px; color: var(--lilac); }
.qs-msg { margin: 6px 10px 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.qs-msg:empty { display: none; }

/* "What's on my shelf" button under the curator's shelf description */
.about .about-hear { margin-top: 4px; }

/* Showcase month arrows (30 Oct 2026): small ‹ › in the tab row step through months. */
.sc-tabs .sc-month { flex: 0 0 auto; width: 40px; min-height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--cream); cursor: pointer; }
.sc-tabs .sc-month:hover:not(:disabled) { border-color: var(--pink); color: var(--pink); }
.sc-tabs .sc-month:disabled { opacity: .3; cursor: default; }
.sc-tabs .sc-month:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
/* Coming soon: one sideways-scrolling row (30 Oct 2026). */
.mini-books.scroll { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.mini-books.scroll > .book { flex: 0 0 150px; scroll-snap-align: start; }
.mini-books.scroll:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; border-radius: 8px; }

/* The Cabin: Looker List flush left, Book Clubs Bulletin Boards beside it (30 Oct 2026). Stacked on narrow screens. */
.cabin-duo { display: grid; grid-template-columns: minmax(0, 880px) minmax(260px, 1fr); gap: 24px; align-items: stretch; }   /* both boxes end on the same line (Blair, 31 Oct) */
.cabin-duo > .posted-band { margin: 0; max-width: none; }
.clubs-band h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--lilac); }
.clubs-band p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--cream); }
.clubs-band .clubs-ask { color: var(--muted); font-size: 15px; }
.clubs-band .clubs-btn { display: inline-block; margin-top: 18px; padding: 12px 22px; border-radius: 10px; background: var(--pink); color: var(--on-pink); font-weight: 800; text-decoration: none; }
.clubs-band .clubs-btn:hover { background: var(--lilac); }
.clubs-band .clubs-btn:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }
@media (max-width: 1100px) { .cabin-duo { grid-template-columns: 1fr; } }

/* Set during: "Not stated" sits in the era button row, dashed so it reads as a separate on/off choice (31 Oct 2026) */
.presets .chip-ns { border-style: dashed; }
.presets .chip-ns[aria-pressed="true"] { border-style: solid; }
/* Set in: the full height of the panel's first two rows instead of a short scrolling box (Blair, 31 Oct 2026) */
@media (min-width: 900px) {
  .f-group:has(> .chips[data-chips="places"]) { grid-row: span 2; align-self: stretch; display: flex; flex-direction: column; }
  .f-group:has(> .chips[data-chips="places"]) > .chips { max-height: none; flex: 1 1 0; min-height: 176px; }
}

/* Cabin: the quick search, shortened, with "Find Your Story" beside it (Blair, 31 Oct 2026).
   The row is as wide as Big Daddy's speech box; the button sits at its right edge under a right-justified label. */
.qs-row { display: flex; align-items: flex-end; gap: 14px; max-width: 560px; margin: 24px 0 0; }
.qs-row .quick-search { flex: 1 1 auto; min-width: 0; max-width: none; margin: 0; }
.foyer-title .qs-row { margin-bottom: 28px; }
.foyer-title .qs-row .quick-search { margin-bottom: 0; }
.fys { flex: 0 0 auto; position: relative; display: flex; flex-direction: column; align-items: flex-end; }
.fys-label { position: absolute; right: 0; bottom: 100%; white-space: nowrap; text-align: right; }   /* hangs over the gap, so the box can run up to the button */
.fys-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 999px; font-size: 16px; font-weight: 700; white-space: nowrap; text-decoration: none; }
@media (max-width: 520px) {
  .qs-row { flex-wrap: wrap; align-items: stretch; }
  .qs-row .quick-search { flex-basis: 100%; }
  .fys { flex-basis: 100%; align-items: stretch; }
  .fys-label { position: static; white-space: normal; text-align: left; }
}

/* Bedfellows plate on Big Daddy's trunk (placed and warped by assets/js/trunk-plate.js). */
.trunk-plate { position: absolute; left: 0; top: 0; z-index: 3; width: 300px; height: 84px; transform-origin: 0 0;
  display: flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 10px;
  background:
    radial-gradient(circle at 16px 16px, #f3d79a 0 3px, #5a3c14 4px, transparent 6px),
    radial-gradient(circle at calc(100% - 16px) 16px, #f3d79a 0 3px, #5a3c14 4px, transparent 6px),
    radial-gradient(circle at 16px calc(100% - 16px), #f3d79a 0 3px, #5a3c14 4px, transparent 6px),
    radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), #f3d79a 0 3px, #5a3c14 4px, transparent 6px),
    linear-gradient(180deg, #c99a4b 0%, #a87a33 45%, #7d5722 100%);
  border: 3px solid #4a3110;
  box-shadow: inset 0 2px 0 rgba(255, 228, 170, .55), inset 0 -3px 0 rgba(40, 24, 6, .45), 0 4px 10px rgba(0, 0, 0, .55);
  filter: brightness(.7) saturate(.85);
  transition: filter .25s ease, box-shadow .25s ease; }
.trunk-plate[hidden] { display: none; }
.trunk-plate span { font-family: Georgia, 'Times New Roman', serif; font-size: 46px; font-weight: 700; letter-spacing: .04em; font-variant: small-caps;
  color: #3a240a; text-shadow: 0 2px 0 rgba(255, 226, 165, .45), 0 -1px 0 rgba(30, 16, 2, .5);
  transition: color .25s ease, text-shadow .25s ease; }
.trunk-plate:hover, .trunk-plate:focus-visible { filter: brightness(1.05) saturate(1.05); outline: none;
  box-shadow: inset 0 2px 0 rgba(255, 228, 170, .55), inset 0 -3px 0 rgba(40, 24, 6, .45),
    0 0 0 3px var(--pink), 0 0 28px 8px rgba(255, 95, 162, .85), 0 0 60px 18px rgba(255, 95, 162, .45); }
.trunk-plate:hover span, .trunk-plate:focus-visible span { color: #7a0f3f;
  text-shadow: 0 0 10px rgba(255, 95, 162, .9), 0 0 22px rgba(255, 95, 162, .6), 0 2px 0 rgba(255, 226, 165, .4); }

/* Stand-in cover for books with no cover image (Blair, 15 Nov 2026). Design System component StandInCover; colours are the shelf-* tokens, set inline per book. */
.sic { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; border-radius: 4px; overflow: hidden; color: #F4EFE6; text-align: center; container-type: inline-size; box-shadow: 0 10px 22px rgba(0,0,0,.35); }
.sic::before { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(244,239,230,.35); border-radius: 2px; pointer-events: none; }
.sic .tt { position: absolute; left: 12%; right: 12%; top: 14%; display: block; }
.sic .ti { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; font-weight: 800; font-size: 11.5cqi; line-height: 1.12; letter-spacing: -0.01em; overflow-wrap: anywhere; hyphens: auto; }
.sic .au { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 6cqi; font-weight: 400; font-size: 7.5cqi; line-height: 1.3; }
.sic .mo { position: absolute; left: 50%; bottom: 19%; width: 18cqi; height: 18cqi; transform: translateX(-50%); opacity: .55; display: block; }
.sic .mo svg, .qs-nocover svg { width: 100%; height: 100%; fill: none; stroke: #F4EFE6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sic .band { position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: 4.5cqi 0; background: #FF5FA2; color: #18122B; font-size: 6.4cqi; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.cover-frame .sic-face { position: absolute; inset: 0; }
.cover-frame .sic-face .sic { height: 100%; }
.qs-nocover { display: flex !important; align-items: center; justify-content: center; }
.qs-nocover svg { width: 22px; height: 22px; opacity: .8; }
