/* Childhood Binder: a real ring binder on the table, nine pockets to a page. */

.cb-hero { position: relative; padding: clamp(14px, 3vh, 30px) 0 clamp(26px, 5vh, 56px); }
.cb-hero .ht { top: -80px; left: 0; width: min(54vw, 620px); aspect-ratio: 1; }
.cb-hero .wrap { position: relative; }
.cb-hero__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: start; margin-top: clamp(20px, 5vh, 56px); }
.cb-hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); margin: .2em 0 .2em; }
.cb-hero .lede { font-size: clamp(1.2rem, 1.9vw, 1.6rem); }
.cb-hero__body { margin-top: 1em; color: var(--ink-2); max-width: 33em; }

/* the two ways in, side by side (stacked under 900 px): rebuild a set, or show off your own cards */
.cb-hero__top { max-width: 900px; }
.cb-hero__top .lede { margin: 0; max-width: 30em; }
.cb-jump { display: none; }
.cb-ways { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 2.6vw, 32px); align-items: stretch; margin-top: clamp(22px, 4vh, 44px); }
.cb-way { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.6vw, 32px); border: 1px solid var(--line-2); border-top: 4px solid var(--ink); background: var(--stock-2); }
.cb-way__tag { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-3); }
.cb-way__no { display: grid; place-items: center; width: 30px; height: 30px; border: 2.5px solid var(--ink); border-radius: 9px; color: var(--ink); font: 700 1rem/1 var(--display); letter-spacing: 0; }
.cb-way__h { margin: 0; font: 700 clamp(1.45rem, 2.4vw, 2rem)/1.1 var(--display); color: var(--ink); }
.cb-way__body { margin: 0; color: var(--ink-2); max-width: 34em; }
.cb-way .maker { margin-top: 6px; }
.cb-way__steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.cb-way__steps li { padding: 11px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); line-height: 1.45; }
.cb-way__steps b { color: var(--ink); font-family: var(--display); }
.cb-way__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: auto; padding-top: 6px; }
.cb-way__acts .if-in, [data-acct="in"] .cb-way__acts .if-out { display: none; }
[data-acct="in"] .cb-way__acts .if-in { display: inline-flex; }
/* "Or jump to a classic year": six presses that fill the form and look the year up */
.cb-quick { margin-top: 10px; }
.cb-quick__h { margin: 0 0 10px; color: var(--ink-3); }
.cb-quick__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cb-quick__list button { display: inline-flex; align-items: baseline; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 .86rem/1 var(--sans); cursor: pointer; }
.cb-quick__list button b { color: var(--ink); font: 700 .98rem/1 var(--display); }
.cb-quick__list button:hover { border-color: var(--ink); color: var(--ink); }
.cb-quick__list button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* three of the shop's own cards, fanned like a hand just pulled from the binder; square corners, never rounded */
.cb-fan { position: relative; height: clamp(150px, 15vw, 196px); margin: 4px 0 2px; }
.cb-fan__c { position: absolute; top: 6px; left: 50%; width: clamp(96px, 9.4vw, 124px); box-shadow: 0 10px 24px rgba(0, 0, 0, .45), 0 0 0 1px rgba(174, 182, 188, .25); transform-origin: 50% 110%; }
.cb-fan__c img { display: block; width: 100%; height: auto; }
.cb-fan__c:nth-child(1) { transform: translateX(-118%) rotate(-11deg); }
.cb-fan__c:nth-child(2) { transform: translateX(-50%) translateY(-4px); z-index: 1; }
.cb-fan__c:nth-child(3) { transform: translateX(18%) rotate(11deg); z-index: 2; }
.cb-fan__tag { position: absolute; left: 8px; bottom: 10px; padding: 3px 8px; background: #F2F4F3; color: #080B0D; font: 700 .68rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: no-preference) {
  .cb-fan__c { transition: transform .5s var(--ease-out); }
  .cb-way--show:hover .cb-fan__c:nth-child(1) { transform: translateX(-132%) rotate(-15deg); }
  .cb-way--show:hover .cb-fan__c:nth-child(3) { transform: translateX(32%) rotate(15deg); }
}

/* My sets in progress: the person's Set Builder sets, under their binder (signed in, Set Builder built in) */
.bsets { margin-top: clamp(28px, 4vw, 48px); padding-top: clamp(18px, 2.4vw, 26px); border-top: 1px solid var(--line-2); }
.bsets__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.bsets__h { margin: 0; font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1.1 var(--display); }
.bsets__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.bset__open { display: grid; gap: 8px; height: 100%; padding: 16px 16px 18px; border: 1px solid var(--line-2); border-top: 3px solid var(--ink); background: var(--stock-2); color: var(--ink); text-decoration: none; }
.bset__open:hover { background: var(--stock-3); }
.bset__open:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bset__kind { color: var(--ink-3); font: 700 .72rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.bset__name { font: 700 1.15rem/1.2 var(--display); overflow-wrap: anywhere; }
.bset__bar { position: relative; height: 8px; border-radius: 4px; background: var(--stock-4); overflow: hidden; }
.bset__bar i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--ink); border-radius: 4px; }
.bset__count { color: var(--ink-2); font-size: .92rem; }
.bset__count b { color: var(--ink); }
.bset--start .bset__open { align-content: center; justify-items: start; border-style: dashed; border-top-style: solid; background: transparent; }
.bset--start .bset__name { font-size: 1.05rem; }

/* the label maker */
.maker { padding: clamp(18px, 2.4vw, 28px); box-shadow: 0 0 0 1px rgba(8, 11, 13, .12), 11px 11px 0 var(--gray); display: grid; gap: 16px; background: url(../img/grain-paper.png) 0 0 / 220px, #F2F4F3; }
.maker__h { font: 700 clamp(1.3rem, 2vw, 1.6rem)/1.1 var(--display); padding-bottom: 12px; border-bottom: 3px solid var(--ink); }
.maker__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: end; }   /* Category and Year side by side, the button under them at every width */
/* a grouped list (Category: Sports, Card games, Non-sports) reads the same in both themes, like site.css's options */
select optgroup { color: #080B0D; background: #F2F4F3; }
.maker__row .btn { grid-column: 1 / -1; }
.maker__sets { display: grid; gap: 14px; }
.setlist { max-height: 210px; overflow: auto; border: 2px solid var(--ink-4); border-radius: 10px; padding: 6px; display: grid; gap: 2px; scrollbar-width: thin; }
.setopt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: .92rem; }
.setopt:hover { background: var(--stock-2); }
.setopt input { appearance: none; flex: 0 0 auto; width: 18px; height: 18px; margin: 0; border: 2px solid var(--ink); border-radius: 50%; }
.setopt input:checked { background: radial-gradient(circle, var(--ink) 0 46%, transparent 50%); }
.setopt:has(input:checked) { background: var(--stock-3); font-weight: 700; }
.setopt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }
.setopt input:focus-visible { outline: none; }
.maker .note { margin: 0; color: var(--ink-2); }
.maker :disabled { opacity: .5; cursor: not-allowed; }

/* ---------- the binder ---------- */
.bind { padding: clamp(10px, 2vw, 24px) 0 clamp(30px, 5vw, 60px); }
/* a wrapping row: the name, the count beside it (never squeezed), and the two actions, which drop to a row of their own when there is no room */
.bind__bar { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-end; margin-bottom: 18px; }
.bind__name { flex: 0 1 320px; min-width: 180px; }
.bind__name input { font: 700 1.3rem/1.2 var(--display); }
.bind__count { flex: 1 0 auto; margin: 0; color: var(--ink-3); padding-bottom: 12px; white-space: nowrap; }
.bind__acts { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 8px; }
.bind__acts button, .link { background: none; border-top: 0; border-left: 0; border-right: 0; }
.link { padding: 0; border-bottom: 1.5px solid currentColor; font: inherit; }
.bind__visit { margin-bottom: 14px; }
/* signing in before keeping real work: signed out, Save my binder stands where the name is (the name is a free account's), and
   one line beside the binder says what was found or saved, or asks once about a binder started here before (binder/claim.js) */
.bind__keep { display: none; flex: 0 1 auto; padding-bottom: 6px; }
:root:not([data-acct="in"]) .bind__keep { display: block; }
:root:not([data-acct="in"]) .bind__name--acct { display: none; }
.bind__keep .btn { min-height: 44px; }
.bind__gate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: -4px 0 16px; padding-left: 14px; border-left: 3px solid var(--teal); color: var(--ink-2); max-width: 52em; }
.bind__gate[hidden] { display: none; }
.bind__gate .link { min-height: 44px; padding: 0; color: var(--ink); font-weight: 700; }
.bind__gate-q { margin: 0; flex: 1 1 18em; color: var(--ink); font-size: 1rem; }
.bind__gate-acts { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.bind__gate-acts .btn { min-height: 44px; }
.bind__gate-say { flex-basis: 100%; }
.bind__gate-say:empty { display: none; }
/* a collector's own cards: the way in (signed in), or the invitation to sign in */
.bind__own { margin: -4px 0 18px; }
.bind__own .if-out { margin: 0; color: var(--ink-2); max-width: 46em; }
.bind__own .if-in { display: none; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
[data-acct="in"] .bind__own .if-in { display: flex; }
[data-acct="in"] .bind__own .if-out { display: none; }
.bind__own .btn--small, .bind__own .textlink { min-height: 44px; }
.bind__own .textlink { background: none; border-top: 0; border-left: 0; border-right: 0; color: var(--ink); }
/* the sort (own cards, signed in) sits in that row: its label beside it; in another order than My order, a line says how to arrange */
.bind__sort { display: flex; align-items: center; gap: 10px; }
.bind__sort label { font: 800 .68rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.bind__sort select { width: auto; min-height: 44px; padding-top: .5em; padding-bottom: .5em; }
.bind__sorted { margin: 0; color: var(--ink-2); font-size: .95rem; }
.bind__sorted .link { min-height: 44px; border-bottom: 0; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }   /* tall enough for a thumb, one underline under the words */
/* the search: every build, signed in or not */
.bind__find { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 22px; margin: -4px 0 18px; }
.bind__find .field-row { flex: 0 1 380px; min-width: 0; }
.bind__find .textlink { min-height: 44px; background: none; border-top: 0; border-left: 0; border-right: 0; color: var(--ink); }
.plate [data-clear] { min-height: 44px; }   /* "Clear the search" on the last page of matches */
.bind__none { flex: 1 1 100%; margin: 0; color: var(--ink-2); font-weight: 600; overflow-wrap: anywhere; }
.bp--wait img { opacity: .72; }
.bp--wait::after { content: ""; position: absolute; z-index: 3; left: 8%; right: 8%; bottom: 6%; height: 3px; background: linear-gradient(90deg, #16A7B8 0 40%, transparent 40%) 0 0 / 250% 100%; animation: bp-wait 1.4s linear infinite; }
@keyframes bp-wait { to { background-position: -250% 0; } }
@media (prefers-reduced-motion: reduce) { .bp--wait::after { animation: none; } }
.bp--new { outline: 3px solid #16A7B8; outline-offset: -3px; }

/* The binder is a stack of rendered pictures: the open binder, the pages (cards under their plastic), the
   rings, and the front cover. Every left / top / width below is a custom property from sets.css, which
   tools/make_sets.py works out from the measurements that came with the renders. */
.book { --bw: min(1480px, 100vw - 32px, max(960px, (100vh - 110px) * var(--ar))); position: relative; width: var(--bw); margin: 0 calc((100% - var(--bw)) / 2); aspect-ratio: var(--ar); touch-action: pan-y; }
@supports (height: 100svh) { .book { --bw: min(1480px, 100vw - 32px, max(960px, (100svh - 110px) * var(--ar))); } }
.book__in { position: absolute; inset: 0; perspective: 2600px; isolation: isolate; }
.book__base { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.book__half, .leaf { position: absolute; top: var(--page-t); height: var(--page-h); width: var(--page-w); }
.book__half { z-index: 1; }
.book__half--l { left: var(--pl); }
.book__half--r, .leaf { left: var(--pr); }
.book__rings { position: absolute; top: 0; left: var(--rings-l); width: var(--rings-w); height: 100%; z-index: 4; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .55)); }

/* a nine-pocket page: the cards first, then the plastic over them */
.bpage { position: absolute; inset: 0; isolation: isolate; container-type: inline-size; }
.bpage::after { content: ""; position: absolute; inset: calc(var(--pocket-out) * -1); z-index: 2; pointer-events: none; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }   /* the picture itself is named in sets.css */
.bpage--l::after { transform: scaleX(-1); }   /* a left-hand page has its punched edge on the right */
.bgrid { position: absolute; left: var(--g-l); right: var(--g-r); top: var(--g-t); bottom: var(--g-b); display: grid; grid-template: repeat(3, minmax(0, 1fr)) / repeat(3, minmax(0, 1fr)); gap: var(--g-rg) var(--g-cg); }
.bpage--l .bgrid { left: var(--g-r); right: var(--g-l); }
.bp { position: relative; display: block; min-width: 0; min-height: 0; padding: 0; border: 0; background: none; cursor: zoom-in; }
.bp__pic, .bp__txt { position: absolute; left: 2%; top: 1.4%; width: 96%; height: 97.4%; transition: transform .3s var(--ease-out); }
.bp__pic { container-type: size; }   /* the pocket's inner box, which a card standing on its edge is sized against */
.bp__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }   /* a card rests on the bottom weld of its pocket */
/* a horizontal card turned a quarter, its top to the left: its long side runs up the pocket. Its box is the pocket's
   box turned (as wide as the pocket is tall), so after the turn it fills the pocket; its own left edge, now at the
   bottom, rests on the weld. Only the picture turns: the tags beside it never do. A browser too old to measure the
   pocket (no container units) leaves the card lying in it, as every browser did before */
@supports (width: 1cqh) {
  .bp--land .bp__pic img { inset: auto; left: 50%; top: 50%; width: 100cqh; height: 100cqw; max-width: none; object-position: 0 50%; transform: translate(-50%, -50%) rotate(-90deg); }
}
.bp:hover .bp__pic, .bp:focus-visible .bp__pic, .bp:hover .bp__txt, .bp:focus-visible .bp__txt { transform: translateY(-4.5%); }
.bp:focus-visible { outline: 2px solid #16A7B8; outline-offset: -2px; }
.bp__txt { display: none; padding: 8% 6%; background: #F2F4F3; color: #080B0D; text-align: center; font: 700 .6rem/1.15 var(--display); font: 700 clamp(.5rem, 2.3cqw, .82rem)/1.15 var(--display); overflow: hidden; box-shadow: inset 0 0 0 2px #080B0D, inset 0 0 0 5px #F2F4F3, inset 0 0 0 6px #080B0D; }
.bp__txt b { display: block; font-size: 2.6em; line-height: 1; margin: .1em 0 .12em; }
.bp--plain .bp__txt { display: flex; flex-direction: column; justify-content: center; }
.bp__mine { display: none; position: absolute; z-index: 3; right: 5%; top: 4%; padding: .45em .6em; background: #F2F4F3; color: #080B0D; font: 800 .5rem/1 var(--sans); font: 800 clamp(.42rem, 1.5cqw, .58rem)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; box-shadow: 2px 2px 0 #16A7B8; }
.bp--mine .bp__mine { display: block; }
/* an own card's mark ("For sale") or "Looking for": a plain tag in the same corner (a card with one is never "Mine") */
.bp__tag { position: absolute; z-index: 3; right: 5%; top: 4%; max-width: 90%; padding: .45em .6em; background: #F2F4F3; color: #080B0D; font: 800 .5rem/1 var(--sans); font: 800 clamp(.42rem, 1.5cqw, .58rem)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 0 0 1px #080B0D; }
.bp--empty { cursor: default; }
/* nothing on the rings on this side: a bookplate on the lining of the cover instead */
.bpage--plate { display: grid; place-items: center; padding: 24px; padding: 9cqw; transform: translateX(var(--plate-x)); }
.bpage--plate.bpage--l { transform: translateX(calc(var(--plate-x) * -1)); }
.bpage--plate::after { display: none; }
.plate { width: min(100%, 26em); padding: 22px; padding: 7cqw 7cqw 6cqw; background: url(../img/grain-paper.png) 0 0 / 220px, #F2F4F3; color: #080B0D; box-shadow: 0 0 0 3px #F2F4F3, 0 0 0 5px #080B0D, 0 12px 26px rgba(0, 0, 0, .5); text-align: left; display: grid; gap: 10px; gap: 3cqw; justify-items: start; }
.plate__name { font: 700 1.6rem/1.05 var(--display); font: 700 clamp(1.3rem, 7.4cqw, 2.6rem)/1.05 var(--display); overflow-wrap: anywhere; }
.plate .rule-pill { width: 60%; }
.plate__hint { font-size: .85rem; font-size: clamp(.78rem, 2.6cqw, .95rem); color: #555B60; }
/* the bookplate inside the cover (binder/cover.js plate()): a printed plate in the cover's style. A double frame with teal
   corners, the shop's seal, the kicker, the name (sized from its longest word and its length, so it always fits), the
   line, the counts, the tip, and the three bands bleeding off its foot. Sizes are in units of the plate's own width. */
.bpage--plate:has(.plate--cover) { padding: 5cqw; }
.plate--cover { position: relative; width: min(100%, 34em); container-type: inline-size; overflow: hidden; display: grid; justify-items: stretch; gap: 0; padding: 9% 8% 0;
  box-shadow: 0 0 0 3px #F2F4F3, 0 0 0 6px #080B0D, 0 0 0 8px #F2F4F3, 0 0 0 9px rgba(8, 11, 13, .4), 0 18px 36px rgba(0, 0, 0, .55); }
.plate--cover::before { content: ""; position: absolute; inset: 3.2cqw; pointer-events: none; border: 1px solid rgba(8, 11, 13, .28);   /* the inner rule, with teal corners */
  background: linear-gradient(#16A7B8, #16A7B8) 0 0 / 7cqw 3px, linear-gradient(#16A7B8, #16A7B8) 0 0 / 3px 7cqw, linear-gradient(#16A7B8, #16A7B8) 100% 0 / 7cqw 3px, linear-gradient(#16A7B8, #16A7B8) 100% 0 / 3px 7cqw,
    linear-gradient(#16A7B8, #16A7B8) 0 100% / 7cqw 3px, linear-gradient(#16A7B8, #16A7B8) 0 100% / 3px 7cqw, linear-gradient(#16A7B8, #16A7B8) 100% 100% / 7cqw 3px, linear-gradient(#16A7B8, #16A7B8) 100% 100% / 3px 7cqw;
  background-repeat: no-repeat; z-index: 2; }
.plate--cover > * { position: relative; margin: 0; }
.pc__seal { position: absolute; right: 6cqw; top: 6cqw; width: 23cqw; height: auto; color: #16A7B8; transform: rotate(-14deg); opacity: .9; }
.pc__seal text { font: 800 9.4px/1 var(--sans); letter-spacing: .14em; fill: currentColor; }
.pc__seal .pc__seal-ir { font: 700 28px/1 var(--display); letter-spacing: 0; fill: #080B0D; }
.pc__top { display: flex; align-items: center; gap: 2.4cqw; max-width: 66cqw; }
.pc__top img { width: 8cqw; height: auto; filter: invert(1) brightness(.35); }
.pc__top .label { font-size: max(8px, 2.7cqw); letter-spacing: .2em; color: #080B0D; }
.pc__name { --n: 12; --w: 8; max-width: 68cqw; margin: 6cqw 0 3.4cqw !important; font: 700 min(12cqw, calc(80cqw / var(--w)), calc(200cqw / var(--n)))/1.02 var(--display); color: #080B0D; text-wrap: balance; }
.plate--cover .rule-pill { width: 58%; }
.pc__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6cqw; align-items: start; margin-top: 4.5cqw !important; }
.pc__body:not(:has(.pc__photo:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
.pc__line { max-width: 76cqw; font: italic 400 max(12px, 3.9cqw)/1.38 var(--display); color: #2B3135; }
.pc__stats { display: flex; gap: 7cqw; margin-top: 5cqw; }
.pc__line + .pc__stats { margin-top: 5cqw; }
.pc__photo { position: relative; width: 27cqw; margin: 1cqw 2cqw 0 0; transform: rotate(5deg); box-shadow: 0 1.6cqw 3.4cqw rgba(8, 11, 13, .35); }   /* the lead card, held by photo corners */
.pc__photo img { display: block; width: 100%; height: auto; }
.pc__photo::before { content: ""; position: absolute; inset: -1.4cqw; z-index: 1; pointer-events: none;
  background: linear-gradient(135deg, #080B0D 0 50%, transparent 50%) 0 0 / 6.5cqw 6.5cqw no-repeat, linear-gradient(225deg, #080B0D 0 50%, transparent 50%) 100% 0 / 6.5cqw 6.5cqw no-repeat,
    linear-gradient(45deg, #080B0D 0 50%, transparent 50%) 0 100% / 6.5cqw 6.5cqw no-repeat, linear-gradient(315deg, #080B0D 0 50%, transparent 50%) 100% 100% / 6.5cqw 6.5cqw no-repeat; }
.pc__stats span { display: grid; font: 800 max(8px, 2.5cqw)/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #555B60; }
.pc__stats b { font: 700 max(18px, 8.6cqw)/1 var(--display); letter-spacing: 0; color: #080B0D; }
.pc__hint { display: flex; align-items: center; gap: 2.4cqw; margin: 5.5cqw 0 21cqw !important;   /* room for the bands */ font-size: max(11px, 3.3cqw); color: #555B60; }
.pc__hint svg { flex: 0 0 auto; width: max(16px, 5cqw); height: auto; color: #16A7B8; }
.pc__bands { position: absolute !important; left: -12%; right: -12%; bottom: -1cqw; height: 12cqw; transform: skewY(-2.5deg); transform-origin: 0 100%; }   /* bleeding off the foot */
/* on the paper plate the first band is carbon, not white, each a smooth metal-like gradient with a crisp edge and a fine highlight */
.pc__bands { display: flex; flex-direction: column; justify-content: space-between; }
.pc__bands i { display: block; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .28), 0 .5cqw 1.1cqw rgba(0, 0, 0, .3); }
.pc__bands i:nth-child(1) { flex: 0 0 30%; background: linear-gradient(90deg, #262D32 0%, #0B0F11 32%, #1C2226 58%, #080B0D 80%, #20272B 100%); }
.pc__bands i:nth-child(2) { flex: 0 0 21%; background: linear-gradient(90deg, #7F888E 0%, #C3CAD0 30%, #AEB6BC 55%, #D6DCE0 76%, #8A939A 100%); }
.pc__bands i:nth-child(3) { flex: 0 0 26%; background: linear-gradient(90deg, #0B6874 0%, #19B6C8 30%, #16A7B8 55%, #2FCDDF 76%, #0C7480 100%); }

/* a page turning on the rings */
.leaf { z-index: 3; transform-origin: var(--leaf-o) 50%; transform-style: preserve-3d; will-change: transform; }
.leaf__f { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf__b { transform: rotateY(180deg); }
.leaf__shade { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; border-radius: 1.4% / 1.1%; background: linear-gradient(90deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .58)); }

/* the front cover, closed: it lies on the right-hand cover and swings open on the spine */
.book__lid { position: absolute; top: 0; bottom: 0; left: var(--hinge); right: 0; z-index: 6; transform-origin: 0 50%; transform-style: preserve-3d; }
.book__lid-f, .book__lid-b { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.book__lid-b { transform: rotateY(180deg); overflow: hidden; }   /* its inside face is the left half of the open binder */
.book__lid-b img { position: absolute; top: 0; left: var(--back-l); width: var(--back-w); height: 100%; max-width: none; }
.book__shut { position: absolute; left: var(--shut-l); top: var(--shut-t); width: var(--shut-w); height: var(--shut-h); }
.book__shut > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.book__open { position: absolute; left: var(--cover-l); top: var(--cover-t); width: var(--cover-w); height: var(--cover-h); padding: 0; border: 0; background: none; border-radius: 1.6% / 1.3%; cursor: pointer; }
.book__open:focus-visible { outline: 3px solid #16A7B8; outline-offset: -7px; }
/* the cover: a printed sheet behind the clear front pocket, like a view binder. The binder's name (its size set from its
   longest word, --w, and its length, --n, by binder/cover.js, so it always fits), a kicker and a count, the site's three
   bands, the first cards in the binder fanned over them (cover.js), the shop's line at the foot, and the vinyl's sheen
   over it all. Every size is in container units of the sheet, so the cover reads the same at any width. */
.book__insert { position: absolute; left: calc(var(--cover-l) + var(--cover-w) * .036); top: calc(var(--cover-t) + var(--cover-h) * .03); width: calc(var(--cover-w) * .928); height: calc(var(--cover-h) * .94);
  margin: 0; overflow: hidden; container-type: size; pointer-events: none; color: #F2F4F3; border-radius: .9% / .7%;
  background: radial-gradient(120% 70% at 0% 0%, #202A2F 0, #0E1417 52%, #080B0D 100%); outline: 1px solid rgba(242, 244, 243, .16); outline-offset: 3px; }
.book__insert::before { content: ""; position: absolute; right: -12%; top: -10%; width: 72%; aspect-ratio: 1; background: radial-gradient(circle, rgba(174, 182, 188, .2) 1px, transparent 1.6px) 0 0 / 8px 8px;
  -webkit-mask: radial-gradient(closest-side, #000, transparent); mask: radial-gradient(closest-side, #000, transparent); }   /* the halftone the site's sheets carry */
.book__insert p { margin: 0; }
.bi__top { position: absolute; left: 7%; right: 7%; top: 5.5%; display: flex; align-items: center; gap: 2.6cqw; }
.bi__top img { width: 8.5cqw; height: auto; }
.bi__top .label { font-size: max(5px, 2.6cqw); letter-spacing: .2em; color: #AEB6BC; white-space: nowrap; }
.bi__count { margin-left: auto; }
.bi__name { --n: 12; --w: 8; position: absolute; left: 7%; right: 7%; top: 14%; font: 700 min(13cqw, calc(100cqw / var(--w)), calc(250cqw / var(--n)))/1 var(--display); text-wrap: balance; }
.bi__bands { position: absolute; left: -12%; right: -12%; top: 60%; height: 15cqh; transform: rotate(-11deg); }
/* the three bands: white, silver and teal, each a smooth metal-like gradient with a crisp edge and a fine highlight */
.bi__bands { display: flex; flex-direction: column; justify-content: space-between; }
.bi__bands i { display: block; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .28), 0 .5cqw 1.1cqw rgba(0, 0, 0, .3); }
.bi__bands i:nth-child(1) { flex: 0 0 30%; background: linear-gradient(90deg, #DCE2E5 0%, #FFFFFF 24%, #F2F4F3 50%, #FFFFFF 72%, #D3D9DC 100%); }
.bi__bands i:nth-child(2) { flex: 0 0 21%; background: linear-gradient(90deg, #7F888E 0%, #C3CAD0 30%, #AEB6BC 55%, #D6DCE0 76%, #8A939A 100%); }
.bi__bands i:nth-child(3) { flex: 0 0 26%; background: linear-gradient(90deg, #0B6874 0%, #19B6C8 30%, #16A7B8 55%, #2FCDDF 76%, #0C7480 100%); }
.bi__fan { position: absolute; inset: 0; }
.bi__fan img { position: absolute; left: calc(50% - 15cqw + var(--o) * 17cqw); top: calc(47cqh + var(--o) * var(--o) * 1.6cqw); width: 30cqw; height: 42cqw; object-fit: cover;
  transform: rotate(calc(var(--o) * 8deg)); box-shadow: 0 1.4cqw 2.6cqw rgba(0, 0, 0, .65), 0 0 0 .25cqw rgba(0, 0, 0, .5); }
.bi__fan img.bi__land { width: 42cqw; height: 30cqw; left: calc(50% - 21cqw + var(--o) * 17cqw); top: calc(53cqh + var(--o) * var(--o) * 1.6cqw); }
.bi__foot { position: absolute; left: 7%; right: 7%; bottom: 4.5%; display: flex; align-items: baseline; justify-content: space-between; gap: 3cqw; }
.bi__foot i { font: italic 400 max(6px, 3.4cqw)/1 var(--display); color: #AEB6BC; white-space: nowrap; }
.bi__foot .label { font-size: max(5px, 2.4cqw); letter-spacing: .18em; color: #AEB6BC; white-space: nowrap; }
.bi__vinyl { position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, .12) 31%, rgba(255, 255, 255, .03) 41%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .05) 80%, rgba(255, 255, 255, 0) 88%),
  linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 22%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 3cqw rgba(0, 0, 0, .45); }

.book[data-state="closed"] .book__in { transform: translateX(var(--shut-x)); }   /* closed, the binder sits in the middle */
.book[data-state="closed"] .book__base, .book[data-state="closed"] .book__half, .book[data-state="closed"] .book__rings { visibility: hidden; }
.book[data-state="open"] .book__lid { visibility: hidden; }
/* while the cover swings, only what lies right of the spine shows; the inside face of the cover brings the rest */
.book[data-state="moving"] .book__half--l { visibility: hidden; }
.book[data-state="moving"] .book__base { clip-path: inset(0 0 0 var(--hinge)); }
.book[data-state="moving"] .book__rings { clip-path: inset(0 0 0 var(--rings-hinge)); }

.bind__nav { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 10px 22px; margin-top: 18px; color: var(--ink-3); }
.bind__cap { margin: 0; text-align: center; }
.bind__nav.is-shut #bind-cap-l { display: none; }
.bind__nav.is-shut #bind-cap-r { grid-column: 2 / 4; }
.turn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--ink); background: var(--stock); color: var(--ink); font: 700 1.1rem/1 var(--sans); box-shadow: 3px 3px 0 var(--btn-shade-2); transition: transform .14s var(--ease), box-shadow .14s var(--ease); }
.turn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--btn-shade-2); }
.turn[disabled] { opacity: .3; cursor: default; }
.bind__jump { max-width: 520px; margin: 14px auto 0; text-align: center; }
.bind__jump input { width: 100%; accent-color: var(--ink); padding: 0; border: 0; height: 28px; }
.bind__sections { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.bind__sections li { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 99px; overflow: hidden; }
.bind__sections button { background: none; border: 0; min-height: 40px; padding: 0 14px; font: 800 .64rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.bind__sections button span { color: var(--ink-3); margin-left: .5em; }
.bind__sections .sec-x { padding: 0 12px 2px 6px; font-size: 1rem; color: var(--ink-3); }
.bind__sections button:hover { background: var(--stock-3); }

/* ---------- My lists: for sale, for trade, looking for ---------- */
.bind__acts button { min-height: 44px; }   /* My lists, Print checklist, Share binder: big enough for a thumb */
.lists { width: min(760px, 100vw - 32px); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; background: var(--stock); color: var(--ink); box-shadow: 0 0 0 2px var(--ink), 10px 10px 0 var(--btn-shade-2); overflow: auto; overscroll-behavior: contain; }
.lists::backdrop { background: rgba(8, 11, 13, .8); }
.lists__top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px 12px; background: var(--stock); border-bottom: 3px solid var(--ink); }
.lists__top h2 { margin: 0; font: 700 clamp(1.4rem, 3vw, 2rem)/1.1 var(--display); }
.lists__x { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--stock); color: var(--ink); font: 500 1.5rem/1 var(--sans); display: grid; place-items: center; padding: 0 0 3px; }
.lists__x:hover { border-color: var(--ink); }
.lists__body { padding: 0 20px 24px; }
.lists__say { margin: 14px 0 0; font-weight: 600; color: var(--ink-2); }
.lists__say:empty { display: none; }
.lists__one { padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.lists__one:last-child { border-bottom: 0; }
.lists__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.lists__head h3 { margin: 0; font: 700 1.3rem/1.2 var(--display); }
.lists__n { display: inline-block; min-width: 1.7em; margin-left: .3em; padding: .2em .45em; background: var(--ink); color: var(--stock); font: 800 .78rem/1.2 var(--sans); text-align: center; vertical-align: .15em; }
.lists .btn--small { min-height: 44px; }
.lists__items { list-style: none; margin: 18px 0 0; padding: 0; }   /* clear of the button's hard shadow above */
.lists__items li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.lists__items li.is-want { grid-template-columns: minmax(0, 1fr) auto; }
.lists__pic { display: block; aspect-ratio: 2.5 / 3.5; background: var(--stock-2); overflow: hidden; }   /* square corners, like every card */
.lists__pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lists__what b { display: block; font-weight: 700; overflow-wrap: anywhere; }
.lists__what small { display: block; margin-top: 2px; color: var(--ink-3); font-size: .86rem; overflow-wrap: anywhere; }
.lists__off { min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--ink-2); font: 600 .86rem/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.lists__off:hover { color: var(--ink); }
.lists__empty { margin: 10px 0 0; color: var(--ink-2); font-size: .95rem; max-width: 40em; }
.lists__add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-top: 16px; }
.lists__add .field-row { flex: 1 1 240px; }
.lists__add .lists__empty { flex-basis: 100%; }
@media (max-width: 560px) {
  .lists { width: 100vw; height: 100dvh; max-height: 100dvh; box-shadow: none; }
  .lists__body { padding: 0 16px 24px; }
  .lists__top { padding: 12px 16px 10px; }
}

/* ---------- reading matter ---------- */
.cb-read { padding-top: clamp(40px, 7vw, 90px); }
.cb-read section + section { margin-top: clamp(46px, 7vw, 84px); }
.cb-read h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.08; margin: .3em 0 .7em; }
.cb-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--line-2); }
.cb-steps li { counter-increment: s; display: grid; grid-template-columns: 2.4em 1fr; padding: 14px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.cb-steps li::before { content: counter(s); font: 700 1.5rem/1.1 var(--display); color: var(--ink); grid-row: span 2; }
.cb-steps b { color: var(--ink); font: 700 1.1rem/1.3 var(--display); display: block; }
.checklist { display: none; }

@media (max-width: 899px) {
  .cb-hero__row { grid-template-columns: 1fr; }
  .cb-ways { grid-template-columns: minmax(0, 1fr); }
  /* on a phone the second way sits below the first: two links under the lede say both are there */
  .cb-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
  .cb-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 999px; color: var(--ink); font: 700 .9rem/1 var(--sans); text-decoration: none; }
  .cb-jump b { font-family: var(--display); }
  .bind__bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 6px; }
  .bind__name, .bind__count, .bind__acts, .bind__keep { flex: none; min-width: 0; }
  .bind__count { padding-bottom: 0; white-space: normal; }
}

/* phones: one page at a time, the binder running off the left edge of the screen */
@media (max-width: 699px) {
  .book { --bw: 100vw; }
  .book__in { perspective: 1500px; perspective-origin: 20% 50%; }
  .book__half--l, .book__lid-b { display: none; }
  .bind__nav { grid-template-columns: auto minmax(0, 1fr) auto; }
  #bind-cap-l { display: none; }
  .bind__nav.is-shut #bind-cap-r { grid-column: auto; }
}

@media print {
  main > *:not(.checklist) { display: none !important; }
  .checklist { display: block; color: #000; font: 11pt/1.4 Georgia, serif; }
  .checklist h1 { font-size: 20pt; margin: 0 0 4pt; }
  .checklist h2 { font-size: 13pt; margin: 18pt 0 6pt; break-after: avoid; }
  .checklist table { width: 100%; border-collapse: collapse; }
  .checklist th, .checklist td { border-bottom: .5pt solid #999; padding: 3pt 6pt; text-align: left; }
  .checklist td:first-child, .checklist th:first-child { width: 3em; }
  .checklist td:first-child { border: .5pt solid #000; text-align: center; }
  .checklist tr { break-inside: avoid; }
}
