/* The browse page. A slim sidebar to narrow down and find a set, a bar of
   controls, and a grid of listings on the pink ground. */
.shell{display:grid;grid-template-columns:244px minmax(0,1fr);gap:24px;align-items:start;padding-top:22px;transition:grid-template-columns 280ms var(--ease-out),gap 280ms var(--ease-out)}
body[data-side="closed"] .shell{grid-template-columns:0px minmax(0,1fr);gap:0}

/* ---- sidebar: condition, price, rarity, then the sets. Kept tight. ---- */
.side{width:244px;position:sticky;top:calc(var(--head) + 16px);max-height:calc(100vh - var(--head) - 32px);overflow-y:auto;scrollbar-width:thin;background:var(--page);border-radius:16px;padding:4px 8px 12px;box-shadow:0 14px 28px rgba(120,30,70,.08);transition:opacity 200ms ease,transform 280ms var(--ease-out),visibility 0s}
body[data-side="closed"] .side{opacity:0;visibility:hidden;transform:translateX(-18px);pointer-events:none;transition:opacity 160ms ease,transform 280ms var(--ease-out),visibility 0s 200ms}
.side-head,.side-foot{display:none}
details summary{list-style:none;cursor:pointer}
details summary::-webkit-details-marker{display:none}
.chev{color:var(--soft);transition:transform 200ms var(--ease-out)}
details[open]>summary .chev{transform:rotate(180deg)}
.facet{border-bottom:1px solid var(--line)}
.facet>summary{display:flex;align-items:center;gap:8px;padding:9px 8px;border-radius:8px;font-weight:600;font-size:13.5px}
.facet>summary span{flex:1}
.facet-body{padding-bottom:9px}
.check{display:flex;align-items:center;gap:9px;min-height:30px;padding:5px 8px;border-radius:7px;font-size:13.5px;line-height:1.35;cursor:pointer}
.check input{appearance:none;flex:none;width:16px;height:16px;margin:0;border-radius:5px;border:1.5px solid var(--line-2);background:var(--page) center/13px no-repeat;transition:background-color 140ms ease,border-color 140ms ease}
.check input:checked{background-color:var(--cover-lo);border-color:var(--cover-lo);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")}
.check.solo{margin:5px 0;padding-block:5px;font-weight:500}
/* price: one track, two thumbs, and the range said in words above it */
.range{padding:0 8px}
.range output{display:block;font-weight:600;font-size:13.5px;color:var(--deep)}
.range-track{position:relative;height:28px;margin-top:2px}
.range-track::before,.range-track i{content:"";position:absolute;top:12px;height:4px;border-radius:2px}
.range-track::before{left:0;right:0;background:var(--line-2)}
.range-track i{left:calc(9px + (100% - 18px) * var(--a));right:calc(9px + (100% - 18px) * (1 - var(--b)));background:var(--cover-lo)}
.range-track input{position:absolute;inset:0;width:100%;height:28px;margin:0;padding:0;appearance:none;-webkit-appearance:none;background:none;pointer-events:none;outline:0}
.range-track input::-webkit-slider-runnable-track{background:none;height:28px}
.range-track input::-moz-range-track{background:none}
.range-track input::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:18px;height:18px;margin-top:5px;border-radius:50%;background:var(--page);border:2px solid var(--cover-lo);box-shadow:0 2px 5px rgba(90,20,55,.28);cursor:grab;transition:transform 140ms var(--ease-out)}
.range-track input::-moz-range-thumb{pointer-events:auto;width:14px;height:14px;border-radius:50%;background:var(--page);border:2px solid var(--cover-lo);box-shadow:0 2px 5px rgba(90,20,55,.28);cursor:grab}
.range-track input:active::-webkit-slider-thumb{transform:scale(1.12);cursor:grabbing}
.range-track input:focus-visible::-webkit-slider-thumb{outline:3px solid var(--deep);outline-offset:2px}
.range-track input:focus-visible::-moz-range-thumb{outline:3px solid var(--deep);outline-offset:2px}
.range-ends{display:flex;justify-content:space-between;font-size:12px;color:var(--soft)}
/* rarities are buttons in their own colours; a chosen one turns the shop's pink */
.rars{display:flex;flex-wrap:wrap;gap:5px;padding:0 6px}
.rar-btn{height:28px;min-width:38px;padding:0 9px;border:0;border-radius:8px;background:var(--plain-bg);color:var(--plain-ink);font-weight:700;font-size:12px;letter-spacing:.02em;white-space:nowrap;transition:background-color 160ms ease,color 160ms ease,transform 140ms var(--ease-out)}
.rar-btn.r-gold{background:var(--gold-bg);color:var(--gold-ink)}.rar-btn.r-sky{background:var(--sky-bg);color:var(--sky-ink)}
.rar-btn.r-lav{background:var(--lav-bg);color:var(--lav-ink)}.rar-btn.r-mint{background:var(--mint-bg);color:var(--mint-ink)}
.rar-btn[aria-pressed="true"]{background:var(--cover-lo);color:#fff}
.rar-more{height:28px;padding:0 8px;border:0;background:none;color:var(--deep);font-weight:600;font-size:12.5px;text-decoration:underline;text-underline-offset:3px}
.side-sets{padding-top:10px}
.side-sets h2{padding:0 8px 7px;font-weight:600;font-size:13.5px}
.field{display:flex;align-items:center;height:36px;margin:0 2px 6px;padding:0 11px;border-radius:9px;background:var(--pocket);border:1.5px solid transparent}
.field:focus-within{border-color:var(--cover);background:var(--page)}
.field input{border:0;outline:0;background:none;width:100%;font-size:13.5px;caret-color:var(--cover)}
.field input::placeholder{color:var(--soft)}
.era summary{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:8px;font-weight:600;font-size:13.5px}
.era summary span:first-child{flex:1}
.row{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:7px;font-size:13.5px;white-space:nowrap;transition:background-color 140ms ease}
.row>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* each set's mark sits in its own column, so the names line up */
.row-mark{flex:none;display:flex;align-items:center;width:44px}
.row.all{padding-left:16px}
.row[aria-current]{background:var(--tint);font-weight:600;color:var(--deep)}
.row.all{color:var(--deep);font-weight:500}
.none{padding:8px;color:var(--soft);font-size:13.5px}

/* ---- page head ---- */
.b-main{min-width:0}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:13px;color:var(--soft)}
.crumbs a{display:inline-block;padding-block:3px;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line-2)}
.crumbs i{font-style:normal;color:var(--line-2)}
.crumbs span{color:var(--ink)}
.b-main>h1{display:flex;align-items:center;gap:14px;margin-top:10px;font-weight:800;font-size:clamp(1.8rem,3vw,2.6rem);line-height:1.06;letter-spacing:-.028em;text-wrap:balance}
/* a set's own mark or symbol, large, before its name */
.b-main>h1 .setcode{font-size:.56em;padding:.14em .42em .06em;border-radius:.28em;border-width:2px;box-shadow:inset 0 0 0 2px #fff;letter-spacing:.01em}
.b-main>h1 .setcode.promo{font-size:.44em}
.b-main>h1 .setsym{height:.95em;width:auto;max-width:1.7em}
.b-sub{margin-top:6px;color:var(--soft);font-size:14.5px}
.set-chips{display:flex;align-items:flex-start;gap:8px;margin-top:16px}
.set-row{flex:0 1 auto;display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.set-chips a,.set-chips button{flex:none;display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px 0 10px;border:0;border-radius:999px;background:var(--page);font-weight:500;font-size:13.5px;white-space:nowrap;transition:background-color 160ms ease,color 160ms ease}
.set-chips a[hidden],.set-chips button[hidden]{display:none}
.set-chips button{background:none;color:var(--deep);font-weight:600;text-decoration:underline;text-underline-offset:4px;padding-inline:8px}

/* ---- the bar: filters, a few quick filters, sort, view ---- */
.b-bar{display:flex;align-items:center;gap:8px;min-height:42px;margin-top:18px}
.bar-btn{flex:none;display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 15px 0 12px;border-radius:999px;border:0;background:var(--page);font-weight:600;font-size:14px;transition:transform 140ms var(--ease-out),color 160ms ease}
.bar-btn b{min-width:20px;height:20px;padding:0 5px;border-radius:999px;display:grid;place-items:center;background:var(--cover-lo);color:#fff;font-size:12px}
.bar-btn b[hidden]{display:none}
.b-sort{flex:none;position:relative;display:flex;align-items:center;margin-left:auto}
.b-sort select{appearance:none;height:42px;padding:0 36px 0 16px;border-radius:999px;border:0;background:var(--page);font-weight:600;font-size:14px;cursor:pointer}
.b-sort .chev{position:absolute;right:13px;pointer-events:none}
.b-views{flex:none;display:flex;padding:3px;border-radius:999px;background:var(--page)}
.b-views button{display:grid;place-items:center;width:38px;height:36px;border:0;border-radius:999px;background:none;color:var(--soft);transition:background-color 160ms ease,color 160ms ease}
.b-views button[aria-pressed="true"]{background:var(--tint);color:var(--deep)}
.b-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px}
.b-chips:empty{display:none}
.chip-x{display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 8px 0 12px;border:0;border-radius:999px;background:var(--tint);color:var(--deep);font-weight:600;font-size:13px;white-space:nowrap;transition:transform 140ms var(--ease-out)}
.chip-x svg{width:15px;height:15px}
.clear{border:0;background:none;padding:6px 8px;color:var(--deep);font-weight:600;font-size:13px;text-decoration:underline;text-underline-offset:4px;white-space:nowrap}
.bar-btn:active,.chip-x:active,.t-chip:active,.more:active,.rar-btn:active{transform:scale(.97)}

#bGrid{margin-top:18px}
.b-group{margin-top:34px;scroll-margin-top:calc(var(--head) + 14px)}
#bGrid>.b-group:first-child{margin-top:4px}
.b-group h2{display:flex;align-items:center;gap:10px;margin-bottom:14px;font-weight:700;font-size:17px;letter-spacing:-.015em}
.b-group h2 span{font-weight:400;color:var(--soft);font-size:13.5px;letter-spacing:0}
.b-group h2 .rar{font-size:12px;padding:5px 8px}
/* the heading over a rarity: a band in the rarity's colour, its letters on a solid block, its name in full */
/* a rarity's heading on a set's page: the cards' own rarity tag (the colour coding lives there alone), the name in the
   page's ink, how many in soft type, a hairline to the edge */
.b-group h2.rar-head{gap:10px;color:var(--ink);font-size:17.5px}
.b-group h2.rar-head .rar{flex:none;font-size:12.5px;padding:6px 9px;border-radius:7px}
.b-group h2.rar-head .rh-name{min-width:0;font-weight:700;font-size:inherit;color:inherit;letter-spacing:-.015em}
.b-group h2.rar-head .rh-n{flex:none}
.b-group h2.rar-head::after{content:"";flex:1 1 16px;min-width:16px;height:1px;background:var(--line-2)}
.see{display:inline-flex;align-items:center;gap:5px;margin-left:auto;padding-block:4px;font-weight:600;font-size:13.5px;letter-spacing:0;color:var(--deep)}
.see svg{width:16px;height:16px;transition:transform 200ms var(--ease-out)}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(172px,1fr));gap:22px 14px}
.grid.gal{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:12px}
/* arriving somewhere new, the first listings settle in one after another */
.enter .t{animation:settle 300ms var(--ease-out) backwards;animation-delay:calc(var(--n,14) * 24ms)}
@keyframes settle{from{opacity:0;transform:translateY(8px)}}

/* ---- a listing: the card in its own box with its rarity and price tag, then
   three tight rows: the name, the set, and the copies on offer beside the cart ---- */
.t{display:flex;flex-direction:column;min-width:0}
.t-pic{position:relative;display:block;width:100%;border:0;border-radius:14px;background:var(--page);padding:12px 22px;transition:box-shadow 220ms var(--ease-out)}
/* the photo is trimmed to the card's own edge, so the card is what you see */
.t-pic .cardimg{box-shadow:0 8px 14px -6px rgba(90,20,55,.38);transition:transform 220ms var(--ease-out)}
.cardimg.slabimg{border-radius:0;overflow:visible;box-shadow:none}
.cardimg.slabimg img{transform:none;object-fit:contain;filter:drop-shadow(0 6px 8px rgba(90,20,55,.3))}
.t-new{position:absolute;left:8px;top:8px;background:var(--t-mint);color:var(--t-mint-ink);font-style:normal;font-weight:700;font-size:11px;letter-spacing:.04em;text-transform:uppercase;padding:4px 8px;border-radius:999px}
.t-sold{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-7deg);background:var(--ink);color:var(--page);font-style:normal;font-weight:700;font-size:12px;padding:5px 12px;border-radius:999px;white-space:nowrap}
.t-tag{position:absolute;right:6px;bottom:9px;display:flex;align-items:baseline;gap:5px;padding:3px 9px 3px 6px;border-radius:0 5px 5px 0;background:#fff;color:#2a1320;font-weight:700;font-size:13.5px;letter-spacing:-.01em;filter:drop-shadow(0 3px 4px rgba(60,10,35,.34)) drop-shadow(0 0 .6px rgba(60,10,35,.5));transform:rotate(-4deg);transform-origin:100% 100%}
.t-tag::before{content:"";position:absolute;right:calc(100% - .5px);top:0;bottom:0;width:12px;background:inherit;clip-path:polygon(100% 0,100% 100%,0 50%)}
.t-tag::after{content:"";position:absolute;left:-4px;top:50%;width:5px;height:5px;margin-top:-2.5px;border-radius:50%;background:#e7c3d2;box-shadow:inset 0 1px 1px rgba(60,10,35,.35)}
.t.sold .cardimg img{filter:grayscale(.9);opacity:.45}
.t-tag s{font-weight:500;font-size:11.5px;opacity:.75}
/* on sale: the tag is the shop's butter yellow */
.t-tag.sale{background:var(--butter);color:var(--t-butter-ink)}
.t-tag.sale::after{background:#fff8dc}
.t.sold .t-name{color:var(--soft)}
.t[aria-current="true"] .t-pic{box-shadow:inset 0 0 0 2px var(--cover)}
.t-info{display:grid;grid-template-columns:minmax(0,1fr);margin-top:8px;min-width:0}
.t-head{display:flex;align-items:center;gap:6px;height:20px;min-width:0}
.t-head .rar{flex:none}
.t-name{flex:0 1 auto;min-width:0;font-weight:600;font-size:14px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.t-set{display:flex;align-items:center;gap:6px;height:18px;margin-top:2px;min-width:0;font-weight:500;font-size:12px;color:var(--soft)}
.t-set>span:last-child{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* one row, as on a phone (owner, 24 Oct 2026): a raw card shows all four conditions, always in the same places (the
   ones not in stock greyed and struck through), so the cart beside them is the same size on every card, filling the
   rest of the row; it is the same size again when it turns into the − 1 + stepper */
.t-buy{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:6px;height:34px;margin-top:8px;min-width:0}
/* each copy is a white chip named by its condition; the chosen one wears a pink border */
.t-chips{display:flex;gap:3px;min-width:0}
.t-chips.four{display:grid;grid-template-columns:repeat(4,28px)}
/* a slab's two grades take the same room as a raw card's four, so its cart is the same size */
.t-chips.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:121px}
.t-chips.two .t-chip{padding:0 4px}
.t-chip{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:0;height:26px;padding:0 4px;overflow:hidden;border:0;border-radius:999px;background:var(--page);box-shadow:inset 0 0 0 1.5px var(--line-2);font-weight:600;font-size:12px;line-height:1;white-space:nowrap;color:var(--ink);transition:transform 140ms var(--ease-out),box-shadow 160ms ease,color 160ms ease}
/* the copy shown (or the only one): filled in the shop's deep pink, white words (owner, 25 Oct 2026; 6.7:1) */
.t-chip[aria-pressed="true"],.t-chip.on{background:var(--cover-lo);box-shadow:none;color:#fff}
.t-chip.off{color:var(--soft)}
.t-chip.none{background:none;box-shadow:inset 0 0 0 1.5px var(--line);color:var(--soft);opacity:.6;text-decoration:line-through;text-decoration-thickness:1.5px}
.t-chips:not(.four) .t-chip{padding:0 8px}
.t-buy .buy.wide{width:auto;justify-self:stretch;min-width:0}
.t-buy .buy-step.wide button{width:22px}
.t-buy .buy-step.wide b{min-width:14px}
.t-gone{display:grid;place-items:center;height:34px;border-radius:10px;background:var(--pocket);font-weight:600;font-size:12.5px;color:var(--soft)}

/* an empty pocket that says more of this rarity are on the way */
.t-soon .t-pic{background:none;outline:2px dashed var(--line-2);outline-offset:-2px;color:var(--soft);transition:outline-color 160ms ease,color 160ms ease}
.soon-in{display:grid;place-content:center;justify-items:center;gap:7px;aspect-ratio:63/88;text-align:center}
.soon-in img{width:58%;opacity:.5;filter:grayscale(.35)}
.soon-in b{font-weight:700;font-size:14px;line-height:1.2;color:var(--ink)}
.soon-in small{font-size:11.5px;line-height:1.35}
.soon-in i{display:inline-flex;align-items:center;gap:4px;margin-top:2px;font-style:normal;font-weight:600;font-size:12px;color:var(--deep)}
.soon-in i svg{width:14px;height:14px;transition:transform 200ms var(--ease-out)}

/* pictures only: the card in its box with its price tag, the name when pointed at */
.t-hover{position:absolute;left:0;right:0;top:0;padding:9px 10px 22px;border-radius:14px 14px 0 0;background:linear-gradient(0deg,rgba(34,10,22,0),rgba(34,10,22,.8) 62%);color:#fff;text-align:left;font-weight:600;font-size:12px;line-height:1.2;opacity:0;transition:opacity 180ms ease}
.t.g .t-pic{padding:10px 16px}
.t.g .t-pic:focus-visible .t-hover{opacity:1}

.more{display:block;margin:30px auto 0;height:48px;padding:0 26px;border-radius:999px;border:0;background:var(--page);font-weight:600;font-size:14.5px;transition:transform 140ms var(--ease-out),color 160ms ease,background-color 160ms ease}
.empty{display:grid;justify-items:center;gap:8px;padding:56px 0 40px;text-align:center;color:var(--soft)}
.empty b{color:var(--ink);font-size:18px;font-weight:700}
.empty .bk-btn{margin-top:8px}

@media (hover:hover) and (pointer:fine){
  .row:hover,.era summary:hover,.check:hover,.facet>summary:hover{background:var(--pocket)}
  .row[aria-current]:hover{background:var(--tint)}
  .rar-more:hover{color:var(--cover)}
  .see:hover svg{transform:translateX(3px)}
  .set-chips a:hover,.more:hover{background:var(--cover-lo);color:#fff}
  .t-soon:hover .t-pic{outline-color:var(--cover);color:var(--ink)}
  .t-soon:hover .soon-in i svg{transform:translateX(3px)}
  .bar-btn:hover,.b-sort select:hover{color:var(--deep)}
  .b-views button:not([aria-pressed="true"]):hover{color:var(--deep)}
  .t-pic:hover .cardimg{transform:translateY(-4px)}
  .t.g .t-pic:hover .t-hover{opacity:1}
  button.t-chip:not([aria-pressed="true"]):hover{box-shadow:inset 0 0 0 1.5px var(--cover);color:var(--deep)}
  .chip-x:hover{background:var(--cover-lo);color:#fff}
}
@media (max-width:1000px){
  .shell{grid-template-columns:minmax(0,1fr)!important;gap:0!important;padding-top:14px}
  /* filters and sets come up as a sheet, with one button to see the result */
  .side{position:fixed;inset:auto 0 0 0;top:auto;z-index:50;width:auto;max-width:560px;margin-inline:auto;max-height:86vh;border-radius:20px 20px 0 0;padding:0 12px;box-shadow:0 -18px 40px rgba(60,10,35,.22);opacity:1!important;visibility:hidden;pointer-events:none;transform:translateY(102%)!important;transition:transform 300ms var(--ease-out),visibility 0s 300ms!important}
  body[data-sheet="open"] .side{visibility:visible;pointer-events:auto;transform:none!important;transition:transform 300ms var(--ease-out),visibility 0s!important}
  .side-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:12px 2px 8px 8px;background:var(--page);font-size:16px}
  .side-head button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:999px;background:var(--pocket)}
  .side-foot{position:sticky;bottom:0;display:block;padding:12px 0 16px;background:var(--page)}
  .side-foot .bk-btn{width:100%;justify-content:center}
  /* fingers need more room than a mouse does */
  .check{padding-block:12px;font-size:14.5px}
  .check input{width:20px;height:20px}
  .check.solo{margin:2px 0;padding-block:12px}
  .row{padding-block:11px;font-size:14.5px}
  .facet>summary,.era summary{padding-block:12px}
  .rars{gap:8px}
  .rar-btn{height:44px;min-width:46px;padding:0 12px;font-size:13px}
  .field{height:44px}
  .field input{font-size:16px}
  .range-track{height:32px}.range-track::before,.range-track i{top:14px}
  .range-track input{height:32px}
  .range-track input::-webkit-slider-thumb{width:24px;height:24px;margin-top:4px}
  /* filter and sort stay in reach while the grid scrolls; the quick filters swipe along underneath */
  .b-bar{position:sticky;top:var(--head);z-index:20;flex-wrap:wrap;margin:14px calc(var(--gutter) * -1) 0;padding:10px var(--gutter);background:var(--ground);border-bottom:1px solid var(--line-2)}
  .b-sort{flex:1;min-width:0}
  .b-sort select{width:100%;padding:0 30px 0 14px;font-size:13.5px}
  .b-sort .chev{right:10px}
  .bar-btn,.b-sort select{height:44px}
  .b-views{padding:0}
  .b-views button{width:44px;height:44px}
  .crumbs a{padding-block:10px}
  .b-main>h1{margin-top:2px}
  .set-chips a,.set-chips button{height:44px}
  .b-group h2.rar-head{font-size:16px}
  .soon-in small{font-size:11px}
  .chip-x{height:40px;padding:0 10px 0 14px}
  .clear{padding:11px 8px}
  /* as many listings across as fit: two on a phone, more on a wider phone, a tablet or a narrow window */
  .grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:20px 10px}
  .grid.gal{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}
  /* the newest cards sit in a row you swipe along */
  .grid.strip:not(.gal){grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:clamp(140px,44%,190px);overflow-x:auto;scrollbar-width:none;margin-inline:calc(var(--gutter) * -1);padding-inline:var(--gutter)}
  .grid.strip::-webkit-scrollbar{display:none}
  .t-pic{padding:10px 18px}
  /* on a phone the copies keep their own row and the cart gets the full width below, sized for a thumb */
  .t-buy{display:grid;grid-template-columns:minmax(0,1fr);height:auto;gap:9px;margin-top:6px}
  .t-buy .buy.wide{width:auto}
  /* the chip stays small to look at; its tap area reaches 44px above and below it */
  .t-chips{height:30px;gap:5px}
  .t-chip{position:relative;flex:none;min-width:42px;height:30px;padding:0 9px}
  button.t-chip::after{content:"";position:absolute;inset:-8px -2px}
  /* a raw card's row lists all four conditions across the full width; the ones not in stock are greyed out */
  .t-chips.four{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
  .t-chips.four .t-chip{min-width:0;padding:0}
  .t-chips.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;width:auto}
  .t-chips.two .t-chip{min-width:0}
  .t-chip.none{display:inline-flex;background:none;box-shadow:inset 0 0 0 1.5px var(--line);color:var(--soft);opacity:.5}
  .side{overscroll-behavior:contain}
  .t-buy .buy.wide,.t-gone{height:44px}
  .t-buy .buy-step.wide button,.t-buy.n3 .buy-step.wide button{width:44px;height:44px}
  .t-buy.n3:has(.buy-step) .t-chip{min-width:42px;padding:0 9px}
  .rar-more{height:44px;padding:0 10px;font-size:13.5px}
  .see{padding-block:11px}
}
/* A desktop draws the shop at 90% (html zoom .9), but 100vh is the whole window, so the sidebar used to stop about a
   tenth short of the bottom. It now runs to the bottom of the window (16px of air), scrolling inside itself. */
@media (min-width:1001px){.side{height:calc(100vh / .9 - var(--head) - 32px);max-height:none}}
/* a set with a very long name ("30th Celebration Premium Deck Set Espeon & Umbreon") never makes its chip wider than
   the row: the name ends in "…" (its full name is on the set's page). It widened a phone's whole page by 56px. */
.set-chips a{max-width:100%;min-width:0}
.set-chips a>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}

/* ---- the bar's search (owner, 21 Oct 2026): an open box beside Filters, as wide as the bar allows; sort and view keep
   their places, and when the box would be too narrow it folds into a button that opens it across the bar ---- */
.b-find{flex:1 1 auto;min-width:0;display:flex;align-items:center}
.b-find .search{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:42px;padding:0 14px;border-radius:999px;background:var(--page);border:1.5px solid transparent;transition:border-color 160ms ease}
.b-find .search:focus-within{border-color:var(--cover)}
.b-find .search svg{flex:none;color:var(--soft)}
.b-find input{flex:1;min-width:0;width:100%;border:0;outline:0;background:none;font:inherit;font-size:14.5px;color:var(--ink);caret-color:var(--cover)}
.b-find input::-webkit-search-cancel-button{-webkit-appearance:none}
.b-find-btn,.b-find-x{display:none;place-items:center;flex:none;width:42px;height:42px;border:0;border-radius:999px;background:var(--page);color:var(--ink);transition:transform 140ms var(--ease-out)}
.b-find-btn:active,.b-find-x:active{transform:scale(.95)}
.b-sort{margin-left:0}
/* too narrow: just the button */
.b-bar.tight .b-find{flex:none}
.b-bar.tight .b-find .search{display:none}
.b-bar.tight .b-find-btn{display:grid}
.b-bar.tight .b-sort{margin-left:auto}
/* the button pressed: the box takes the bar until it is closed */
.b-bar.finding .b-find{flex:1 1 auto;gap:8px}
.b-bar.finding .b-find .search{display:flex}
.b-bar.finding .b-find-btn{display:none}
.b-bar.finding .b-find-x{display:grid}
.b-bar.finding .b-sort,.b-bar.finding .b-views{display:none}
@media (max-width:700px){
  .b-bar{flex-wrap:nowrap}
  .bar-btn span{display:none}.bar-btn{padding:0 12px}
  .b-sort{flex:0 1 auto}.b-sort select{width:auto;max-width:150px}
  .b-find .search,.b-find-btn,.b-find-x{height:44px}.b-find-btn,.b-find-x{width:44px}
  .b-find input{font-size:16px}
  /* (owner, 24 Oct 2026) on a narrow phone, or one with its text set larger, nothing runs into anything: the sort shows
     its choice in a label of its own that shortens itself, with the real list over it, unseen (16px, so an iPhone does
     not zoom in when it opens); the search's hint is a size smaller than what is typed */
  .b-find input::placeholder{font-size:14px}
  .b-sort{flex:0 1 150px;min-width:110px;max-width:210px;margin-left:auto}
  .b-bar.tight .b-sort{flex:1 1 auto}
  .b-sort-v{display:block;width:100%;height:44px;padding:0 30px 0 14px;border-radius:999px;background:var(--page);font-weight:600;font-size:13.5px;line-height:44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .b-sort select{position:absolute;inset:0;width:100%;max-width:none;height:100%;opacity:0;font-size:16px}
  .b-sort:focus-within .b-sort-v{box-shadow:0 0 0 2px var(--cover)}
  /* a page of cards has its own search here, so the one under the header steps aside */
  body[data-view="browse"] .subbar{display:none}
}
/* a condition not in stock, on a phone (owner, 21 Oct 2026): struck through and without the pill's outline, so it
   doesn't read as a button */
@media (max-width:700px){.t-chip.none{box-shadow:none;background:none;opacity:.6;text-decoration:line-through;text-decoration-thickness:1.5px}}

@media (min-width:701px){.b-sort-v{display:none}}
/* a narrow phone: the two ways of showing cards become one button, showing the other way (tap to switch) */
@media (max-width:420px){
  .b-views{background:var(--page)}
  .b-views button[aria-pressed="true"]{display:none}
  .b-views button{color:var(--ink)}
}
