/* The Outreach binder, reworked (board #87, Dodd 2026-10-25: "Binder is like the worst part right now").
   workspace.js draws it (bd-* markup), binder.js adds the keys, the swipe, the close and the stagger flag.
   The book follows Codex's open-binder reference (assets/art/new/binder/binder-open-v1.png), built live:
   - black leather boards with a bronze inlay, an oxblood cloth spine, page edges that thicken on the side with more pages;
   - black pocket sheets with stitched seams, a plastic front with a lip and a thumb notch over every card;
   - cards sized from the window so their names read: two rows when the window is tall, one row on a laptop screen;
   - under every card its live caption (name, where they stand and since when) and one quick action:
     Message for artists still to message, Instagram for everyone else;
   - a page turn is a real leaf over the spine (workspace.js); calm motion swaps it for a short fade.
   2026-10-25 (Dodd's binder references, assets/art/new/binder/refs/): the spread now matches the 3D book binder-gl.js
   draws, so the book can land on it and hand over without a visible swap: padded red velvet inside black leather boards
   (a leather turn-in round the edge, gold corner lips), a brass ring mechanism down the gutter with the sleeves' punched
   strips threaded on it, clear frosted sleeve pages, a plastic sleeve over every card with a soft specular sweep, and the
   cards circling on their own clocks (card-idle.css) inside their sleeves; the open book leans toward the pointer with
   its layers at different depths (binder.js tilt) and a skin-coloured aura (binder-gl.js sets its colours). binder-gl.js measures the spread, so the 3D book follows
   whatever sizes are set here. */

/* ---------- sizes: the card width comes from the window height, the whole column from the card ---------- */
.workspace:has(> .bd-book) {
  /* --chrome: everything on the screen that isn't card height (top bar, title, tabs, book edges, captions, pager) */
  --sp: 8px; --gap: 12px; --pp: 14px; --bk: 22px; --cap: 46px; --chrome: 488px;
  --cw: clamp(116px, calc((100dvh - var(--chrome)) / 2 * .6667), 232px);
  /* the gutter (the spine's inside, with the rings) and the velvet beyond the sheets on the outer sides: both grow with
     the cards, so the boards keep the reference's book shape (about 1.4 tall to 1 wide) */
  --spine: clamp(46px, calc(var(--cw) * .32), 84px); --bko: clamp(26px, calc(var(--cw) * .42), 104px);
  --bw: min(100%, calc((var(--cw) + var(--sp) * 2) * 4 + var(--gap) * 2 + var(--pp) * 4 + var(--spine) + var(--bko) * 2));
  padding-top: 18px; padding-bottom: 16px;
}
.workspace:has(> .bd-book[data-rows="1"]) {
  --chrome: 410px; --cw: clamp(116px, calc((100dvh - var(--chrome)) * .6667), 250px);
}
.workspace:has(> .bd-book) > :is(.bd-head, .bd-locknote, .bd-index, .bd-book, .bd-pager) { width: var(--bw); margin-inline: auto; }
@media (min-width: 861px) {
  /* spare height goes above and below the whole binder instead of pooling under it */
  .workspace:has(> .bd-book) { display: flex; flex-direction: column; }
  .workspace:has(> .bd-book) > .bd-head { margin-top: auto; }
  .workspace:has(> .bd-book) > .bd-pager { margin-bottom: auto; }
  .workspace:has(> .bd-book) > * { flex: none; }
}

/* ---------- the title line ---------- */
.workspace > .bd-head { align-items: center; margin-bottom: 14px; gap: 20px; }
.workspace:has(> .bd-book) > .bd-head > div { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 18px; row-gap: 2px; min-width: 0; }
.workspace:has(> .bd-book) > .bd-head h1 { font-size: clamp(30px, 2.8vw, 40px); }
.workspace:has(> .bd-book) > .bd-head p { margin: 0; }
.workspace:has(> .bd-book) > .bd-head .btn { min-height: 42px; }

/* ---------- index tabs on the top edge of the book, the search beside them ---------- */
.bd-index { display: flex; align-items: flex-end; gap: 16px; position: relative; z-index: 2; margin-bottom: -1px; }
.bd-tabs { display: flex; gap: 3px; min-width: 0; flex: 1; padding-left: 14px; }
.bd-tabs button { position: relative; flex: none; display: inline-flex; align-items: baseline; gap: 7px; height: 36px; padding: 0 13px; margin-top: 4px;
  border: 0; border-radius: 9px 9px 0 0; cursor: pointer; color: var(--bone-2); font: 500 14px/36px var(--sans);
  background: linear-gradient(180deg, #1b1412, #0f0b0a); box-shadow: inset 0 0 0 1px rgba(160, 128, 88, .26), inset 0 1px 0 rgba(255, 236, 205, .06);
  transform: translateY(4px); transition: transform 160ms var(--ease), color 160ms ease, background-color 160ms ease; }
.bd-tabs button em { font-style: normal; font-size: 13px; color: var(--bone-3); font-variant-numeric: tabular-nums; }
.bd-tabs button[data-none]:not([aria-pressed="true"]) { color: var(--bone-3); }
.bd-tabs button[data-none] em { opacity: .6; }
@media (hover: hover) and (pointer: fine) { .bd-tabs button:hover { color: var(--bone); transform: translateY(1px); } }
.bd-tabs button:active { transform: translateY(5px) scale(.98); transition-duration: 80ms; }
/* the open tab is cut from the same leather as the book and joins it */
.bd-tabs button[aria-pressed="true"] { color: #fff4e2; transform: none; height: 40px; margin-top: 0; line-height: 40px;
  background: linear-gradient(180deg, #2a1d18, #1a1311); box-shadow: inset 0 0 0 1px rgba(176, 140, 92, .5), inset 0 1px 0 rgba(255, 236, 205, .12); }
.bd-tabs button[aria-pressed="true"]::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: #b3262f; box-shadow: 0 0 10px color-mix(in oklab, var(--red-hi) 55%, transparent); }
.bd-tabs button[aria-pressed="true"]::after { content: ""; position: absolute; left: 1px; right: 1px; bottom: -2px; height: 4px; background: #1a1311; }
.bd-tabs button[aria-pressed="true"] em { color: #f0d4a6; }
.bd-tabs button:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
body[data-theme="holo"] .bd-tabs button[aria-pressed="true"]::before { background: #a9b3d8; box-shadow: 0 0 10px rgba(169, 179, 216, .5); }

.bd-search { position: relative; flex: none; width: clamp(190px, 24%, 260px); margin-bottom: 8px; }
.bd-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; fill: none; stroke: var(--bone-3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.bd-search input { width: 100%; height: 36px; padding: 0 34px 0 36px; border: 0; border-radius: var(--r-pill); color: var(--bone); font: 400 14.5px/1 var(--sans);
  background: rgba(10, 7, 8, .72); box-shadow: inset 0 0 0 1px rgba(185, 160, 120, .28), inset 0 2px 6px rgba(0, 0, 0, .5); transition: box-shadow 160ms ease; }
.bd-search input::placeholder { color: var(--bone-3); }
.bd-search input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--bone-2), inset 0 2px 6px rgba(0, 0, 0, .5), 0 0 0 3px rgba(243, 211, 163, .12); }
.bd-search kbd { position: absolute; right: 9px; top: 50%; translate: 0 -50%; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: var(--r-xs);
  font: 500 12.5px/1 var(--sans); color: var(--bone-3); box-shadow: inset 0 0 0 1px rgba(185, 160, 120, .3); pointer-events: none; transition: opacity 120ms ease; }
.bd-search input:focus ~ kbd, .bd-search input:not(:placeholder-shown) ~ kbd { opacity: 0; }

/* ---------- the book ---------- */
/* the velvet: a fine pile (high-frequency noise) over a slow crushed pattern, lit from the top left */
.bd-book { --velvet-pile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .55 0 0 0 0 .6 0 0 0 .5 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --velvet-crush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011 .016' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.5 .95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
  position: relative; padding: var(--bk) var(--bko); border-radius: 9px; isolation: isolate; touch-action: pan-y;
  /* each book its own velvet (binder-gl.js sets --velvet-1/2/3, --velvet-hi, --tool, --metal (a filter that turns the
     brass to the book's metal) and, for a book with them, --stamp: the gold stamps pressed into its velvet) */
  background: var(--velvet-pile) 0 0 / 180px, radial-gradient(75% 60% at 20% 8%, var(--velvet-hi, rgba(255, 96, 112, .2)), transparent 70%),
    radial-gradient(65% 55% at 86% 96%, rgba(0, 0, 0, .42), transparent 72%), var(--velvet-crush) 0 0 / 420px,
    linear-gradient(160deg, var(--velvet-1, #6c1020), var(--velvet-2, #4d0914) 55%, var(--velvet-3, #3a0610));
  /* the leather turn-in round the velvet, the velvet's padded edge, the board's own edge, its shadow on the desk */
  /* (a gold tooling line runs round the turn-in, 3px in: binder-gl.js lays the same line on its boards) */
  box-shadow: inset 0 0 0 3px #1b1411, inset 0 0 0 4.3px var(--tool, #c9a052), inset 0 0 0 7px #1b1411, inset 0 0 0 8px rgba(0, 0, 0, .6), inset 0 11px 12px -7px rgba(0, 0, 0, .7), inset 0 -8px 10px -8px rgba(255, 150, 160, .16),
    inset 0 0 34px rgba(0, 0, 0, .45), 0 0 0 1px #33241b,
    /* the board's thickness: it shows on the side the book leans away from (--tx / --ty, binder.js) */
    calc(var(--tx, 0) * -1.5px) calc(1px + var(--ty, 0) * 1px) 0 1px #4a3426, calc(var(--tx, 0) * -3px) calc(3px + var(--ty, 0) * 2px) 0 1px #120c09,
    calc(var(--tx, 0) * -4.5px) calc(4px + var(--ty, 0) * 3px) 0 1px #2a1d15, calc(var(--tx, 0) * -5.5px) calc(5px + var(--ty, 0) * 3.5px) 0 1px #0d0907,
    calc(var(--tx, 0) * -16px) calc(30px + var(--ty, 0) * 10px) 52px rgba(0, 0, 0, .74), calc(var(--tx, 0) * -6px) calc(10px + var(--ty, 0) * 4px) 18px rgba(0, 0, 0, .55); }
/* the light on the book slides with the lean, like the pack's */
.bd-book::after { content: ""; position: absolute; inset: 0; z-index: 7; border-radius: inherit; pointer-events: none;
  background: radial-gradient(55% 45% at calc(30% + var(--tx, 0) * 26%) calc(18% + var(--ty, 0) * 22%), rgba(255, 232, 196, .09), transparent 70%),
    linear-gradient(calc(115deg + var(--tx, 0) * 12deg), transparent 40%, rgba(255, 244, 222, calc(.025 + var(--tx, 0) * var(--tx, 0) * .03)) 50%, transparent 60%); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .bd-book { transform: perspective(2400px) rotateX(calc(var(--ty, 0) * -2.2deg)) rotateY(calc(var(--tx, 0) * 3deg)); }
  /* depth: the rings and corner guards nearest, the cards above their sheets, the sheets above the velvet */
  .bd-spine::before, .bd-spine > i { translate: calc(var(--tx, 0) * 3.2px) calc(var(--ty, 0) * 2.2px); }
  .bd-spine > i { translate: calc(var(--tx, 0) * 3.2px) calc(var(--ty, 0) * 2.2px - 50%); }
  .bd-lips { translate: calc(var(--tx, 0) * 2.4px) calc(var(--ty, 0) * 1.8px); }
  .bd-spread > .bd-page:not(.bd-under) { translate: calc(var(--tx, 0) * 1.2px) calc(var(--ty, 0) * .9px); }
  .bd-sleeve .bd-card { translate: calc(var(--tx, 0) * 2.4px) calc(var(--ty, 0) * 1.8px); }
}

/* the aura (Dodd, 10-25: "a dark red glowing aura of power, like a grimoire"): a breathing glow round the book and a few
   embers (or runes, or soft motes) drifting off its edges. The colours and the style come from the book's skin
   (binder-gl.js sets --aura, --aura-core, --aura-int and data-style); still with reduced motion. */
.bd-aura { position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; --a: var(--aura, #7a0a16); --c: var(--aura-core, #ff3b30);
  opacity: var(--aura-int, 1);
  box-shadow: 0 0 18px 1px color-mix(in srgb, var(--c) 42%, transparent), 0 0 56px 12px color-mix(in srgb, var(--a) 52%, transparent),
    0 0 130px 46px color-mix(in srgb, var(--a) 26%, transparent); }
.bd-aura[data-style="none"] { display: none; }
/* the embers drift outside the book: never let them widen the page (QA 10-26: phones scrolled sideways) */
.workspace:has(> .bd-book) { overflow-x: clip; }
@media (max-width: 860px) {
  .bd-aura i { display: none; }
  .bd-aura { box-shadow: 0 0 14px 1px color-mix(in srgb, var(--c) 40%, transparent), 0 0 34px 6px color-mix(in srgb, var(--a) 45%, transparent); }
}
.bd-aura i { position: absolute; left: var(--x); top: var(--y); width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff2dc, var(--c) 45%, transparent 72%); box-shadow: 0 0 6px 1px color-mix(in srgb, var(--c) 70%, transparent); }
.bd-aura[data-style="motes"] i { width: 7px; height: 7px; margin: -3.5px; filter: blur(1.5px); }
.bd-aura[data-style="runes"] i { width: auto; height: auto; background: none; box-shadow: none; font: 400 12px/1 "Segoe UI Symbol", "Noto Sans Runic", serif;
  color: color-mix(in srgb, var(--c) 80%, #fff); text-shadow: 0 0 6px var(--c), 0 0 14px var(--a); }
.bd-aura[data-style="runes"] i::before { content: attr(data-r); }
/* binary glyph embers (the Binary Black & Red book): ones and zeros in the runes' place */
.bd-aura[data-style="glyphs"] i { width: auto; height: auto; background: none; box-shadow: none; font: 600 11px/1 "Cascadia Mono", Consolas, monospace;
  color: color-mix(in srgb, var(--c) 80%, #fff); text-shadow: 0 0 6px var(--c), 0 0 14px var(--a); }
.bd-aura[data-style="glyphs"] i::before { content: "1"; }
.bd-aura[data-style="glyphs"] i:nth-child(3n)::before { content: "0"; }
@media (prefers-reduced-motion: no-preference) {
  .bd-aura { animation: bd-aura-breathe 5.5s ease-in-out infinite alternate; }
  .bd-aura i { animation: bd-ember var(--d, 6s) linear var(--dl, 0s) infinite; }
}
@keyframes bd-aura-breathe { from { opacity: calc(var(--aura-int, 1) * .72); } to { opacity: var(--aura-int, 1); } }
@keyframes bd-ember { 0% { opacity: 0; transform: translate(0, 0) scale(.7); } 12% { opacity: .95; } 70% { opacity: .55; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.25); } }
/* the gold lips of the corner guards on the outer corners, wrapped round from the cover */
.bd-lips { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bd-lips i { position: absolute; width: clamp(26px, calc(var(--cw) * .2), 52px); aspect-ratio: 1; border-top-left-radius: 9px;
  background: radial-gradient(circle at 22% 22%, #fff6d2 0 2.5%, #f0cc7c 5%, #a8772c 7.5%, rgba(80, 50, 15, .6) 8.5%, transparent 9.5%),
    linear-gradient(135deg, #f8e2a0, #dcae58 36%, #96692a 70%, #d2a250);
  -webkit-mask: radial-gradient(circle at 100% 100%, transparent 0 70%, #000 71%); mask: radial-gradient(circle at 100% 100%, transparent 0 70%, #000 71%);
  filter: var(--metal,) drop-shadow(1px 2px 1px rgba(0, 0, 0, .6)); }
.bd-lips i:nth-child(1) { left: 0; top: 0; }
.bd-lips i:nth-child(2) { right: 0; top: 0; rotate: 90deg; }
.bd-lips i:nth-child(3) { right: 0; bottom: 0; rotate: 180deg; }
.bd-lips i:nth-child(4) { left: 0; bottom: 0; rotate: 270deg; }
.bd-spread { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) var(--spine) minmax(0, 1fr); perspective: 3400px; }
.bd-book[data-single] .bd-spread { grid-template-columns: minmax(0, 1fr); }

/* the gutter: the spine's velvet with a 2px leather hinge each side, the sheets' punched strips (frosted, from the
   ring line out, over the page height only), the brass bar, and three rings crossing it (seen from above) */
.bd-spine { position: relative; margin: calc(7px - var(--bk)) 0; }
.bd-spine::after { content: ""; position: absolute; top: calc(var(--bk) - 7px); bottom: calc(var(--bk) - 7px); left: 0; right: 0; pointer-events: none;
  background: linear-gradient(90deg, #2e2b32 0 33%, transparent 33% 67%, #2e2b32 67% 100%);
  -webkit-mask: linear-gradient(90deg, #000 0 33%, transparent 33% 67%, #000 67%); mask: linear-gradient(90deg, #000 0 33%, transparent 33% 67%, #000 67%);
  box-shadow: inset 0 1px 0 rgba(225, 230, 238, .26), inset 0 -1px 0 rgba(225, 230, 238, .26); }
.bd-spine::before { content: ""; position: absolute; z-index: 1; left: 37%; right: 37%; top: calc(50% - .42 * (100% + 14px)); bottom: calc(50% - .42 * (100% + 14px)); border-radius: 99px;
  background: linear-gradient(90deg, #4a2f0e, #9c6d2c 18%, #e9c878 40%, #fff0c2 48%, #d9ab58 60%, #7d5520 84%, #3a250b);
  box-shadow: 0 0 0 1px rgba(40, 24, 6, .6), 3px 5px 8px rgba(0, 0, 0, .55); }
.bd-spine > i { position: absolute; z-index: 2; left: 12%; right: 12%; height: max(4px, calc(var(--spine) * .074)); border-radius: 99px; translate: 0 -50%;
  background: linear-gradient(180deg, #fff1c6, #e7bf6a 30%, #a7772f 70%, #5d3d12);
  box-shadow: 0 0 0 .5px rgba(50, 30, 8, .7), 4px 6px 7px rgba(0, 0, 0, .6); }
.bd-spine::before, .bd-spine > i { filter: var(--metal,); }
/* a book's stamps on the velvet, as the 3D book lays them (binder-gl.js, Codex's masks): foil in the book's metal,
   one per board, under the sheets, so their motifs show round the edge */
@supports (mask-mode: luminance) {
  .bd-book[data-stamp]::before { content: ""; position: absolute; inset: 9px; z-index: 0; pointer-events: none; border-radius: 4px; opacity: .8;
    background: linear-gradient(160deg, color-mix(in srgb, var(--stamp) 70%, #fff), var(--stamp) 45%, color-mix(in srgb, var(--stamp) 60%, #000));
    mask: url("assets/art/new/binder/maps-v1/web/inner-left-stamp.webp") left / 50% 100% no-repeat luminance, url("assets/art/new/binder/maps-v1/web/inner-right-stamp.webp") right / 50% 100% no-repeat luminance; }
  .bd-book[data-single][data-stamp]::before { mask: url("assets/art/new/binder/maps-v1/web/inner-right-stamp.webp") center / 100% 100% no-repeat luminance; }
}
.bd-spine > i:nth-child(1) { top: calc(50% - .3 * (100% + 14px)); }
.bd-spine > i:nth-child(2) { top: 50%; }
.bd-spine > i:nth-child(3) { top: calc(50% + .3 * (100% + 14px)); }

/* a page: a clear frosted sleeve sheet, the stack of sheet edges on its outer side (thicker where more pages are) */
.bd-page { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); padding: var(--pp); border-radius: 2px;
  background: linear-gradient(135deg, rgba(240, 243, 248, .07), rgba(240, 243, 248, .02) 50%, rgba(240, 243, 248, .05)), linear-gradient(180deg, #2f2c34, #222027);
  box-shadow: inset 0 0 0 1px rgba(226, 188, 112, .5), inset 0 0 0 3px rgba(232, 236, 242, .05),
    0 1px 0 rgba(220, 225, 235, .16), 0 2px 0 #141218, 0 3px 0 rgba(220, 225, 235, .12), 0 4px 0 #100e13, 0 5px 0 rgba(220, 225, 235, .08), 0 8px 14px rgba(0, 0, 0, .6); }
.bd-page[data-side="left"] { border-radius: 2px; }
.bd-page::before { content: ""; position: absolute; top: 2px; bottom: 2px; width: calc(var(--rs, 0) * 2px + 3px); right: calc((var(--rs, 0) * 2px + 2px) * -1); border-radius: 0 2px 2px 0;
  background: repeating-linear-gradient(90deg, #e2bd72 0 1px, #3a2a14 1px 2px); box-shadow: 2px 2px 4px rgba(0, 0, 0, .6); pointer-events: none; }
.bd-page[data-side="left"]::before { right: auto; left: calc((var(--ls, 0) * 2px + 2px) * -1); width: calc(var(--ls, 0) * 2px + 3px); border-radius: 2px 0 0 2px;
  background: repeating-linear-gradient(270deg, #e2bd72 0 1px, #3a2a14 1px 2px); box-shadow: -2px 2px 4px rgba(0, 0, 0, .6); }
.bd-book[data-single] .bd-page[data-side="left"]::before { left: auto; right: calc((var(--rs, 0) * 2px + 2px) * -1); width: calc(var(--rs, 0) * 2px + 3px);
  background: repeating-linear-gradient(90deg, #e2bd72 0 1px, #3a2a14 1px 2px); box-shadow: 2px 2px 4px rgba(0, 0, 0, .6); border-radius: 0 2px 2px 0; }
/* the sheets dip a little toward the rings */
.bd-page::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 6;
  background: linear-gradient(90deg, rgba(0, 0, 0, .3), transparent 6%); }
.bd-page[data-side="left"]::after { background: linear-gradient(270deg, rgba(0, 0, 0, .3), transparent 6%); }
.bd-book[data-single] .bd-page::after { background: linear-gradient(90deg, rgba(0, 0, 0, .3), transparent 6%); }

/* ---------- a pocket ---------- */
/* a clear welded window in the sheet */
.bd-sleeve { position: relative; isolation: isolate; min-width: 0; padding: var(--sp) var(--sp) 0; border-radius: 6px;
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(230, 235, 245, .16); }
/* the dotted weld round the pocket */
.bd-sleeve::before { content: ""; position: absolute; inset: -4px; border-radius: 9px; border: 1px dotted rgba(235, 240, 248, .22); pointer-events: none; }
.bd-card { position: relative; z-index: 1; display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 3.6% / 2.4%; cursor: pointer;
  filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, .6)); transition: transform 260ms var(--ease), filter 260ms var(--ease); }
.bd-card .tc { width: 100%; max-width: none; margin: 0; }
/* the plastic front: from the lip down over the card, a soft sheen, the thumb notch, a specular sweep now and then */
/* (#151, Dodd: "the top middle little thumb slit is over the card. It's just a dark shadow") the lit top lip stops at
   the notch, and the notch is a clear cut in the plastic: only its lit edge shows, so a card lifted under it reads
   through. binder-gl.js paints the 3D sheets the same way. */
.bd-pocket { --nw: min(26%, 40px); position: absolute; z-index: 3; left: 4px; right: 4px; top: calc(var(--sp) - 3px); height: calc(100% - var(--cap) + 7px - var(--sp)); max-height: none; pointer-events: none; border-radius: 0 0 4px 4px; overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 250, 240, .22) calc(50% - var(--nw) / 2), transparent calc(50% - var(--nw) / 2) calc(50% + var(--nw) / 2), rgba(255, 250, 240, .22) calc(50% + var(--nw) / 2)) 0 0 / 100% 1px no-repeat,
    linear-gradient(112deg, transparent 32%, rgba(255, 250, 240, .09) 40%, rgba(255, 250, 240, .02) 47%, transparent 52%), linear-gradient(180deg, rgba(255, 250, 240, .06), rgba(255, 250, 240, .012) 22%, transparent 60%, rgba(255, 250, 240, .03));
  box-shadow: inset 0 -1px 0 rgba(255, 250, 240, .06), inset 1px 0 0 rgba(255, 250, 240, .05), inset -1px 0 0 rgba(255, 250, 240, .05); transition: opacity 260ms ease; }
.bd-pocket::before { content: ""; position: absolute; z-index: 1; left: 50%; top: -1px; width: var(--nw); aspect-ratio: 3.8; translate: -50% 0; border-radius: 0 0 999px 999px;
  background: none; box-shadow: inset 0 -1px 0 rgba(255, 250, 240, .4), 0 1px 0 rgba(0, 0, 0, .28); }
.bd-pocket::after { content: ""; position: absolute; inset: -10% -70%; opacity: 0; transform: translateX(-62%); pointer-events: none;
  background: linear-gradient(104deg, transparent 42%, rgba(255, 252, 244, .07) 46.5%, rgba(255, 255, 250, .2) 49.6%, rgba(255, 255, 250, .24) 50%, rgba(255, 252, 244, .07) 53.5%, transparent 58%); }
@media (prefers-reduced-motion: no-preference) {
  .bd-pocket::after { animation: bd-sweep 13s cubic-bezier(.45, .05, .25, 1) infinite; animation-delay: calc(var(--i, 0) * -1.63s - 3s); }
  /* (Dodd, 10-25: every card in view circles like the hover tilt, each at its own speed, direction and phase: that is
     card-idle.css's orbit + bob + shine, seeded by the card's id in cards.js, left at full strength in the sleeves) */
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .bd-sleeve:has(.bd-card:hover) .bd-pocket::after { animation: bd-sweep-now 820ms cubic-bezier(.3, .6, .2, 1) both; }
}
@keyframes bd-sweep { 0%, 84% { transform: translateX(-62%); opacity: 0; } 86% { opacity: 1; } 97% { opacity: 1; } 100% { transform: translateX(62%); opacity: 0; } }
@keyframes bd-sweep-now { 0% { transform: translateX(-62%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(62%); opacity: 0; } }
/* the caption: who, where they stand, one action */
.bd-cap { position: relative; z-index: 5; height: var(--cap); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-content: center; column-gap: 8px; padding: 0 2px 2px 4px; }
/* a narrow pocket keeps the Instagram button to its icon so the date never gets cut */
.bd-cap { container-type: inline-size; }
@container (max-width: 222px) { .bd-ig { width: 30px; padding: 0; } .bd-ig span { display: none; } }
.bd-name { grid-column: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 400 15px/1.25 var(--serif); color: #f3e8d6; transition: color 160ms ease; }
.bd-when { grid-column: 1; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; font: 400 12.5px/1.4 var(--sans); color: var(--bone-2); font-variant-numeric: tabular-nums; }
.bd-when i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #d5bb88; box-shadow: 0 0 6px currentColor; color: transparent; }
.bd-sleeve[data-status="messaged"] .bd-when i { background: var(--t-oracle); }
.bd-sleeve[data-status="replied"] .bd-when i { background: var(--t-hero); }
.bd-sleeve[data-status="booked"] .bd-when i { background: var(--t-titan); }
.bd-acts { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; }
.bd-msg { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: var(--r-sm); font: 600 13px/1 var(--sans); color: #fff3e4; text-decoration: none;
  background: linear-gradient(160deg, #b2272d, #7c1720 62%, #571019); box-shadow: inset 0 0 0 1px rgba(223, 173, 128, .3), 0 2px 6px rgba(0, 0, 0, .45); transition: filter 140ms ease, transform 140ms var(--ease); }
.bd-ig { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 30px; height: 28px; padding: 0 9px; font: 500 13px/1 var(--sans); text-decoration: none; border-radius: var(--r-sm); color: var(--bone-2);
  background: rgba(236, 228, 216, .04); box-shadow: inset 0 0 0 1px rgba(185, 160, 120, .25); transition: color 140ms ease, background-color 140ms ease, transform 140ms var(--ease); }
.bd-ig svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bd-msg:active, .bd-ig:active { transform: scale(.95); transition-duration: 70ms; }
.bd-msg:focus-visible, .bd-ig:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .bd-msg:hover { filter: brightness(1.12); }
  .bd-ig:hover { color: #fff4e2; background-color: rgba(236, 228, 216, .1); }
  /* a card slides up out of its pocket: the plastic stays, the card rises above the lip */
  .bd-card:hover { transform: translateY(-8%); filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .65)) brightness(1.05); }
  .bd-card:hover:active { transform: translateY(-6%) scale(.985); transition-duration: 90ms; }
  .bd-sleeve:has(.bd-card:hover) .bd-name { color: #fff; }
}
/* (#151, Dodd: "I have my mouse over one of the cards... it follows the mouse") the card under the mouse leans a few
   degrees toward it on a spring (binder.js sets --crx / --cry and the light's --gx / --gy / --gl), on top of its idle
   orbit, and a soft light rides across it with the pointer; it eases back when you leave. Mouse only, never with
   reduced motion (the card then just lifts). stage.js's direct tilt gives way to the spring here. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.bd-card, .pocket-card) > .tc { transform: rotateX(var(--crx, 0deg)) rotateY(var(--cry, 0deg)); transition: none; }
  :is(.bd-card, .pocket-card) > .tc::before { content: ""; position: absolute; inset: 0; z-index: 8; border-radius: inherit; pointer-events: none; opacity: var(--gl, 0); mix-blend-mode: screen;
    background: radial-gradient(70% 48% at var(--gx, 50%) var(--gy, 30%), rgba(255, 246, 228, .2), rgba(255, 240, 215, .06) 45%, transparent 72%); }
}
.bd-card:active { transform: scale(.975); transition-duration: 90ms; }
.bd-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; transform: translateY(-6%); }
.bd-sleeve:has(.bd-card:focus-visible) .bd-name { color: #fff; }

/* an empty pocket: the ghost of a card, quiet */
.bd-sleeve.is-empty { padding-bottom: var(--cap); }
.bd-ghost { position: relative; display: block; width: 100%; aspect-ratio: 1024 / 1536; border-radius: 3.6% / 2.4%;
  background: radial-gradient(closest-side, rgba(255, 240, 215, .028), transparent), radial-gradient(circle at 50% 33%, #0d0a0b 0 21%, transparent 21.5%);
  box-shadow: inset 0 0 0 1px rgba(196, 172, 130, .1), inset 0 0 30px rgba(0, 0, 0, .6); }
.bd-ghost::after { content: ""; position: absolute; left: 50%; top: 33%; width: 44%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 240, 220, .04), 0 0 0 1px rgba(170, 145, 100, .14); }
.bd-sleeve.is-empty .bd-pocket { height: calc(100% - var(--sp) - var(--cap) + 7px); }

/* idle shimmer phases differ per pocket (card-idle.css reads these) */
.bd-sleeve:nth-child(2) { --idle-a: -2.6s; --idle-b: -3.4s; --idle-c: -3.1s; --idle-d: -3.3s; }
.bd-sleeve:nth-child(3) { --idle-a: -5.1s; --idle-b: -6.9s; --idle-c: -6.4s; }
.bd-sleeve:nth-child(4) { --idle-a: -1.3s; --idle-b: -9.8s; --idle-c: -9.2s; --idle-d: -3.3s; }
.bd-page[data-side="right"] .bd-sleeve { --idle-e: -4s; }

/* ---------- turning: the leaf, the page it lands on ---------- */
.bd-leaf { z-index: 8; transform-style: preserve-3d; pointer-events: none; will-change: transform; }
.bd-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6px; }
.bd-face.back { transform: rotateY(180deg); }
.bd-face.back:empty, .bd-face.back:not(:has(.bd-page)) { background: linear-gradient(180deg, #151112, #0b090a); box-shadow: inset 0 0 0 1px rgba(233, 223, 204, .09); }
.bd-face .bd-page { box-shadow: inset 0 0 0 1px rgba(233, 223, 204, .12), 0 10px 30px rgba(0, 0, 0, .6); }
.bd-face .bd-page::before { display: none; }
.bd-shade { position: absolute; inset: 0; z-index: 9; border-radius: inherit; background: linear-gradient(90deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .35)); opacity: 0; pointer-events: none; }
.bd-under { z-index: 7; pointer-events: none; }
.bd-cast { position: absolute; z-index: 7; pointer-events: none; border-radius: 6px; background: linear-gradient(var(--to, 90deg), rgba(0, 0, 0, .7), rgba(0, 0, 0, .25) 45%, transparent); opacity: 0; }
.bd-under::before { display: none; }

/* the outer edges of the book turn the page too (the pager does it for keys and screen readers) */
.bd-edge { position: absolute; z-index: 9; top: 0; bottom: 0; width: calc(var(--bk) + 10px); padding: 0; border: 0; background: none; cursor: pointer; }
.bd-edge[data-side="left"] { left: 0; } .bd-edge[data-side="right"] { right: 0; }
.bd-edge::after { content: ""; position: absolute; bottom: 10px; width: 34px; height: 34px; opacity: 0; transition: opacity 180ms ease, transform 220ms var(--ease); }
.bd-edge[data-side="right"]::after { right: calc(var(--bk) - 2px); border-radius: 0 0 6px 0; transform: translate(4px, 4px);
  background: linear-gradient(315deg, transparent 49%, #cdbfa4 50%, #6d6151 72%, #2c241e); box-shadow: -3px -3px 8px rgba(0, 0, 0, .5); }
.bd-edge[data-side="left"]::after { left: calc(var(--bk) - 2px); border-radius: 0 0 0 6px; transform: translate(-4px, 4px);
  background: linear-gradient(45deg, transparent 49%, #cdbfa4 50%, #6d6151 72%, #2c241e); box-shadow: 3px -3px 8px rgba(0, 0, 0, .5); }
@media (hover: hover) and (pointer: fine) { .bd-edge:hover::after { opacity: 1; transform: none; } }

/* ---------- a past pack for a $47 member (workspace.js): greyed, the handle left out, a lock, no actions ---------- */
.bd-locknote { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; font-size: 14px; color: var(--bone-2); }
.bd-locknote svg, .bd-locked svg, .bd-lockmark svg { flex: none; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bd-locknote svg { color: #d9b46a; }
.bd-sleeve.is-locked .bd-card { cursor: default; }
.bd-sleeve.is-locked .bd-card .tc { animation: none; filter: grayscale(1) brightness(.5) contrast(.9); }
.bd-sleeve.is-locked .bd-card .m-name b { visibility: hidden; }
.bd-sleeve.is-locked .bd-card:hover, .bd-sleeve.is-locked .bd-card:active { transform: none; }
.bd-lockmark { position: absolute; left: 50%; top: 33%; z-index: 2; translate: -50% -50%; display: grid; place-items: center; width: 34%; aspect-ratio: 1; border-radius: 50%;
  color: #e6c47e; background: radial-gradient(circle, rgba(12, 9, 8, .82), rgba(12, 9, 8, .55) 70%, transparent 72%); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .8)); }
.bd-lockmark svg { width: 38%; height: 38%; }
.bd-sleeve.is-locked .bd-name { color: var(--bone-3); }
.bd-when.bd-locked { color: var(--bone-3); }
.bd-when.bd-locked svg { width: 11px; height: 11px; color: #c9a45c; }

/* ---------- a tab with nobody in it ---------- */
.bd-empty { position: absolute; z-index: 10; left: 50%; top: 50%; translate: -50% -50%; width: min(420px, calc(100% - 40px)); padding: 24px 28px 26px; text-align: center;
  border-radius: var(--r-lg); background: var(--surface-solid); box-shadow: var(--edge-hi), var(--shadow-2); }
.bd-empty h2 { margin: 0 0 8px; font: 400 23px/1.25 var(--serif); color: #f3e4cc; }
.bd-empty p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--bone-2); }
.bd-empty .btn { margin-top: 18px; min-height: 40px; }

/* ---------- under the book: close, the pager, the keys ---------- */
.bd-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px 4px 0; font-size: 14px; }
.bd-close { justify-self: start; padding: 8px 2px; border: 0; background: none; cursor: pointer; color: var(--bone-2); font: 500 14px/1 var(--sans); transition: color 140ms ease; }
.bd-close:hover { color: var(--bone); }
.bd-close:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-xs); }
.bd-turns { display: flex; align-items: center; gap: 12px; }
.bd-pos { min-width: 92px; text-align: center; color: var(--bone); font-variant-numeric: tabular-nums; }
.bd-turn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--bone);
  background: rgba(236, 228, 216, .05); box-shadow: inset 0 0 0 1px var(--line-hi); transition: background-color 140ms ease, transform 140ms var(--ease), opacity 140ms ease; }
.bd-turn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bd-turn:hover:not(:disabled) { background-color: rgba(236, 228, 216, .11); }
.bd-turn:active:not(:disabled) { transform: scale(.94); transition-duration: 70ms; }
.bd-turn:disabled { opacity: .3; cursor: default; }
.bd-turn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bd-keys { justify-self: end; display: flex; align-items: center; gap: 5px; color: var(--bone-3); font-size: 13px; }
.bd-keys kbd { min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 4px; border-radius: var(--r-xs); font: 500 12.5px/1 var(--sans); color: var(--bone-2); box-shadow: inset 0 0 0 1px rgba(185, 160, 120, .3); }
.bd-keys kbd + kbd { margin-left: -1px; } .bd-keys kbd:nth-of-type(3) { margin-left: 8px; }
@media (hover: none) { .bd-keys { visibility: hidden; } }

/* ---------- the closed cover ---------- */
.vault-cover .vault-instruction { text-transform: none; letter-spacing: .01em; font: 500 15px/1 var(--sans); color: var(--bone-2); transition: color 200ms ease; }
.vault-cover:hover .vault-instruction, .vault-cover:focus-visible .vault-instruction { color: #fff4e2; }
.vault-cover:focus-visible { outline: 2px solid var(--focus); outline-offset: 8px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .vault-cover { transition: transform .45s var(--ease), filter .3s ease, box-shadow .45s var(--ease); }
  .vault-cover:hover { transform: perspective(1800px) rotateY(-14deg) rotateX(2deg) translateY(-6px); filter: brightness(1.06); box-shadow: 0 45px 60px #000c; }
  .vault-cover:active { transform: perspective(1800px) rotateY(-11deg) rotateX(2deg) translateY(-2px) scale(.99); transition-duration: .1s; }
}

/* ---------- the stagger when the binder opens or a tab changes (binder.js sets data-binder-fx for a moment) ---------- */
@media (prefers-reduced-motion: no-preference) {
  :root[data-binder-fx] .bd-sleeve { animation: bd-in 360ms var(--ease) both; animation-delay: calc(var(--i, 0) * 26ms); }
  :root[data-binder-fx="open"] .bd-sleeve { animation-duration: 440ms; animation-delay: calc(120ms + var(--i, 0) * 34ms); }
  :root[data-binder-fx] .bd-index, :root[data-binder-fx="open"] .bd-pager { animation: bd-in 300ms var(--ease) both; }
}
@keyframes bd-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }

/* ---------- smaller laptops: the search and tabs share the row without cutting a tab ---------- */
@media (min-width: 861px) and (max-width: 1180px) {
  .bd-tabs { padding-left: 8px; }
  .bd-tabs button { padding: 0 10px; gap: 6px; }
  .bd-search { width: clamp(150px, 20%, 220px); }
  .bd-keys { display: none; }
  .bd-pager { grid-template-columns: auto 1fr; } .bd-turns { justify-self: center; }
}

/* ---------- phone: one page, chips that wrap, swipe to turn ---------- */
@media (max-width: 860px) {
  .workspace:has(> .bd-book) { --sp: 5px; --gap: 8px; --pp: 8px; --bk: 8px; --cap: 64px; padding: 12px 12px 30px; }
  /* the caption gets two full lines on a narrow pocket: the name, then where they stand beside the action */
  .bd-cap { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 36px; align-content: center; row-gap: 2px; padding: 4px 1px 2px 3px; }
  .bd-name { grid-column: 1 / -1; }
  .bd-when { grid-column: 1; grid-row: 2; }
  .bd-acts { grid-column: 2; grid-row: 2; }
  /* still to message: the Message button takes the whole line (its word already says where they stand) */
  .bd-sleeve[data-status="to"] .bd-when { display: none; }
  .bd-sleeve[data-status="to"] .bd-acts { grid-column: 1 / -1; }
  .bd-sleeve[data-status="to"] .bd-msg { width: 100%; justify-content: center; }
  .workspace:has(> .bd-book) > :is(.bd-head, .bd-index, .bd-book, .bd-pager) { width: 100%; }
  .workspace:has(> .bd-book) > .bd-head { align-items: stretch; gap: 14px; margin-bottom: 14px; }
  .bd-index { flex-direction: column-reverse; align-items: stretch; gap: 10px; margin-bottom: 12px; }
  .bd-search { width: 100%; margin: 0; }
  .bd-search input { height: 42px; font-size: 16px; }
  .bd-search kbd { display: none; }
  .bd-tabs { flex-wrap: wrap; gap: 6px; padding: 0; }
  .bd-tabs button, .bd-tabs button[aria-pressed="true"] { height: 34px; line-height: 34px; margin: 0; padding: 0 12px; border-radius: var(--r-pill); transform: none; }
  .bd-tabs button[aria-pressed="true"] { background: linear-gradient(160deg, #7a1820, #4a0c12); box-shadow: inset 0 0 0 1px rgba(223, 120, 110, .45); }
  .bd-tabs button[aria-pressed="true"]::before, .bd-tabs button[aria-pressed="true"]::after { display: none; }
  /* the binding runs down the left edge of the single page */
  /* one page: the book is the back board and half the gutter, the rings at its left edge */
  .workspace:has(> .bd-book) { --spine: 40px; --bko: 12px; --bk: 12px; }
  .bd-book[data-single] { padding: var(--bk) var(--bko) var(--bk) calc(var(--spine) / 2); border-radius: 4px 9px 9px 4px; }
  .bd-book[data-single]::before { content: ""; position: absolute; z-index: 3; left: 0; top: 7px; bottom: 7px; width: calc(var(--spine) / 2); pointer-events: none;
    background: radial-gradient(closest-side, #fff1c6, #e7bf6a 45%, #8a6024 80%, transparent 82%) 0 20% / 100% 7px no-repeat,
      radial-gradient(closest-side, #fff1c6, #e7bf6a 45%, #8a6024 80%, transparent 82%) 0 50% / 100% 7px no-repeat,
      radial-gradient(closest-side, #fff1c6, #e7bf6a 45%, #8a6024 80%, transparent 82%) 0 80% / 100% 7px no-repeat,
      linear-gradient(90deg, #e9c878, #9c6d2c 40%, transparent 41%) 0 50% / 100% 84% no-repeat,
      linear-gradient(90deg, transparent 33%, #2e2b32 33%) 0 50% / 100% calc(100% - 2 * (var(--bk) - 7px)) no-repeat; }
  .bd-lips i:nth-child(1), .bd-lips i:nth-child(4) { display: none; }
  .bd-name { font-size: 16px; }
  .bd-cap { column-gap: 6px; }
  .bd-when { font-size: 12.5px; gap: 5px; }
  .bd-msg { height: 32px; padding: 0 12px; }
  .bd-ig { width: 30px; height: 30px; padding: 0; }
  .bd-ig span { display: none; }
  .bd-edge { display: none; }
  .bd-pager { grid-template-columns: auto 1fr; padding-top: 12px; }
  .bd-turns { justify-self: end; }
  .bd-turn { width: 44px; height: 44px; }
  .bd-keys { display: none; }
}
@media (max-width: 380px) { .bd-acts .bd-msg { padding: 0 9px; } }

@media (prefers-reduced-motion: reduce) {
  .bd-card, .bd-card:hover, .bd-card:active, .bd-card:focus-visible { transition: none; transform: none; }
  .bd-tabs button { transition: none; }
}

/* Collection navigation: turn at the book edges, keep the footer quiet. */
.bd-side-turns { position: absolute; inset: 0; z-index: 12; pointer-events: none; }
.bd-side-turns .bd-turn { position: absolute; top: 50%; translate: 0 -50%; pointer-events: auto; width: 44px; height: 56px; border-radius: 10px; border: 1px solid rgba(224, 197, 146, .42); background: rgba(20, 15, 16, .94); box-shadow: 0 5px 20px rgba(0, 0, 0, .38); }
.bd-turn-prev { left: -23px; }
.bd-turn-next { right: -23px; }
.bd-side-turns .bd-turn:hover:not(:disabled) { background: #3b2824; border-color: rgba(240, 217, 171, .8); }
.bd-side-turns .bd-turn:disabled { opacity: .28; box-shadow: none; }
.bd-pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; }
.bd-pager .bd-pos { font-size: 12px; color: var(--bone-3); }
.bd-keys { display: none; }
@media (max-width: 860px) {
  .bd-side-turns .bd-turn { width: 44px; height: 52px; border-radius: 8px; }
  .bd-turn-prev { left: -8px; }
  .bd-turn-next { right: -8px; }
  .bd-side-turns .bd-turn svg { width: 16px; height: 16px; }
  .bd-pager { display: flex; padding-top: 10px; }
}

:root[data-bgl] .bd-side-turns .bd-turn { pointer-events: none; }
