/* Set Builder and Super Collector: Breakdown, Journey and Game plan (chase/breakdown.js, journey.js, plan.js), builder V4.
   Prefixes: .ch-ix- shared by the three tabs, .ch-bd- the breakdown, .ch-jr- the journey, .ch-gp- the game plan.
   Site tokens only, both stocks. Every press target is at least 48 px. Anything that stands for a card (a plan card, a
   stamp, a card's line) has square corners. Have, need and asking or sold differ by shape and by words, never by a
   color alone. Nothing moves under prefers-reduced-motion. */

.ch-ix { display: block; padding-bottom: 24px; }
.ch-ix-title { margin: 6px 0 0; font: 700 clamp(1.45rem, calc(1.1rem + 1.2vw), 1.9rem)/1.15 var(--display); letter-spacing: -.01em; outline: none; }
.ch-ix-sec { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
/* a long list of rows (a set's teams, a player's years) sits in two columns on a computer */
@media (min-width: 900px) {
  .ch-bd-teams .ch-ix-rows, .ch-bd-types .ch-ix-rows, .ch-bd-years .ch-ix-rows, .ch-bd-products .ch-ix-rows, .ch-bd-sets .ch-ix-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; align-items: start; }
}
.ch-ix-h { margin: 0 0 12px; font: 700 1.25rem/1.2 var(--display); }
.ch-ix-h4 { margin: 22px 0 10px; font: 800 .72rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.ch-ix-label { margin: 0; font: 800 .68rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.ch-ix-lede { margin: 8px 0 0; color: var(--ink); font-size: 1.0625rem; line-height: 1.5; max-width: 40em; }
.ch-ix-quiet { margin: 8px 0 0; color: var(--ink-2); font-size: 1rem; line-height: 1.5; max-width: 44em; }
.ch-ix-fine { margin: 22px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-2); color: var(--ink-3); font-size: .9rem; line-height: 1.5; max-width: 52em; }
.ch-ix-status { min-height: 1.4em; }
.ch-ix-clip { position: fixed; left: -9999px; top: 0; opacity: 0; }
.ch-ix button:focus-visible, .ch-ix a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ch-ix .ch-meter { margin-top: 2px; }
.ch-ix .ch-seg { margin: 14px 0 4px; }

/* a link that opens in a new tab: the site's spaced, underlined words, 48 px tall */
.ch-ix-out { display: inline-flex; align-items: center; min-height: 48px; padding: 0 2px; color: var(--ink); font: 800 .7rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-wrap: nowrap; }
.ch-ix-out::after { content: ""; width: 7px; height: 7px; margin-left: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.ch-ix-out:hover { text-decoration-thickness: 2.5px; }
.ch-ix .btn.ch-ix-out, .ch-ix .btn.ch-gp-act { text-decoration: none; letter-spacing: normal; text-transform: none; font: inherit; }

/* ---------- rows: a name, "14 of 26", a bar ---------- */
.ch-ix-rows { list-style: none; margin: 0; padding: 0; }
.ch-ix-row { padding: 6px 0 12px; border-bottom: 1px solid var(--line); }
.ch-ix-row__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 48px; width: 100%; margin: 0; padding: 0; text-align: left; }
.ch-ix-row__b { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.ch-ix-row__b:hover .ch-ix-row__name { text-decoration: underline; text-underline-offset: 4px; }
.ch-ix-row__name { flex: 1 1 12em; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.ch-ix-row__n { color: var(--ink-2); font-variant-numeric: tabular-nums; text-wrap: nowrap; }
.ch-ix-row__n b { color: var(--ink); }
.ch-ix-row__off { flex-basis: 100%; color: var(--ink-3); font-size: .92rem; }
.ch-ix-chev { width: 10px; height: 10px; margin: 0 6px 4px 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease-out); }
.ch-ix-row.is-open .ch-ix-chev { transform: translateY(4px) rotate(225deg); }
.ch-ix-done { display: inline-flex; align-items: center; gap: 7px; font: 800 .64rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-wrap: nowrap; }
.ch-ix-done i { width: 16px; height: 16px; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3L12.5 5' fill='none' stroke='%23080B0D' stroke-width='2.4' stroke-linecap='square'/%3E%3C/svg%3E") center / 80% no-repeat; }
.ch-ix-row.is-done .ch-ix-row__name { color: var(--ink); }
.ch-ix-row__open { padding: 6px 0 4px; }

/* the cards a row opens, and the price lists: number and name, price, the link */
.ch-ix-needs { margin-top: 4px; padding: 4px 0 0 14px; border-left: 3px solid var(--line-2); }
.ch-ix-cards { list-style: none; margin: 8px 0 0; padding: 0; }
.ch-ix-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 2px 16px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.ch-ix-card__id { display: flex; flex-wrap: wrap; gap: 2px 8px; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.ch-ix-card__par { color: var(--ink-3); }
.ch-ix-card__price { display: grid; justify-items: end; line-height: 1.2; }
.ch-ix-card__price b { font: 700 1.1rem/1.1 var(--display); }
.ch-ix-from { font-size: .82rem; color: var(--ink-3); }
.ch-ix-more { margin-top: 6px; }
ol.ch-bd-list { counter-reset: ch-n; }
ol.ch-bd-list > li { grid-template-columns: 2.2em minmax(0, 1fr) auto auto; }
ol.ch-bd-list > li::before { counter-increment: ch-n; content: counter(ch-n); font: 700 1rem/1 var(--display); color: var(--ink-3); }
@media (max-width: 560px) {
  .ch-ix-card { grid-template-columns: minmax(0, 1fr) auto; }
  .ch-ix-card > .ch-ix-out { grid-column: 1 / -1; justify-self: start; }
  ol.ch-bd-list > li { grid-template-columns: 2em minmax(0, 1fr) auto; }
  ol.ch-bd-list > li > .ch-ix-out { grid-column: 2 / -1; }
}

/* ---------- the breakdown ---------- */
.ch-bd-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; content-visibility: visible; }
.ch-bd-progress__words { flex: 1 1 260px; min-width: 0; }
.ch-bd-count { margin: 0; font: 400 1.3rem/1.2 var(--display); color: var(--ink-2); }
.ch-bd-count b { font: 700 2.4rem/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.ch-bd-progress .ch-stats { margin-top: 16px; max-width: 520px; }
@media (max-width: 420px) { .ch-bd-progress .ch-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ch-bd-spent { padding-bottom: 6px; }
.ch-bd-big { margin: 4px 0 0; font: 700 2rem/1.1 var(--display); letter-spacing: -.01em; }
.ch-bd-noprice { margin-top: 14px; }
.ch-bd-check { margin-top: 18px; padding: 18px 20px; border: 1.5px dashed var(--line-2); }
.ch-bd-check .ch-acts { margin-top: 14px; }
.ch-bd-ask .ch-meter { margin-top: 10px; max-width: 420px; }
.ch-bd-ask .ch-acts { margin-top: 12px; }
.ch-bd-worths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; margin-top: 20px; }
@media (max-width: 700px) { .ch-bd-worths { grid-template-columns: minmax(0, 1fr); } }
.ch-bd-worth { padding: 16px 18px; border: 1.5px solid var(--line-2); background: var(--stock-2); }
.ch-bd-parts { list-style: none; margin: 10px 0 0; padding: 0; }
.ch-bd-part { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; padding: 4px 0; line-height: 1.35; }
.ch-bd-part b { font: 700 1.55rem/1.1 var(--display); letter-spacing: -.01em; }
.ch-bd-part i { flex: none; align-self: center; width: 12px; height: 12px; margin-right: 6px; }
.ch-bd-part--sold i { background: var(--ink); }
.ch-bd-part--asks i { border: 2px solid var(--ink); }
.ch-bd-part--none i { border: 1.5px dashed var(--ink-3); }
.ch-bd-part--none { color: var(--ink-2); }
.ch-bd-when { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 14px; }
.ch-bd-when .ch-acts { margin-top: 0; }
.ch-bd-when > p { flex: 1 1 18em; margin: 0; }
.ch-bd-top, .ch-bd-best { margin-top: 10px; }

/* the collector's numbers, read like a record */
.ch-bd-record { padding: 18px 20px 20px; border: 3px double var(--line-2); background: var(--stock-2); }
.ch-bd-record__pct { margin: 0 0 14px; color: var(--ink-2); }
.ch-bd-record__pct b { font: 700 2.4rem/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.ch-bd-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 18px; margin: 0; }
@media (max-width: 900px) { .ch-bd-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ch-bd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ch-bd-fact { padding-top: 8px; border-top: 1px solid var(--line-2); min-width: 0; }
.ch-bd-fact dt { font: 800 .6rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ch-bd-fact dd { margin: 4px 0 0; font: 700 1.7rem/1.05 var(--display); }

/* ---------- the journey ---------- */
.ch-jr-start { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 20px; border: 1.5px dashed var(--line-2); }
.ch-jr-start .ch-pockets { width: 96px; }
.ch-jr-start > div { flex: 1 1 220px; }
.ch-jr-fig { margin: 0; padding: 22px 0 0; overflow: clip; }
.ch-jr-plot { position: relative; height: clamp(170px, 30vw, 280px); margin: 0 8px 0 8px; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.ch-jr-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ch-jr-grid { stroke: var(--line); stroke-width: 1; }
.ch-jr-goal { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 6 5; }
.ch-jr-area { fill: var(--teal); opacity: .16; }
.ch-jr-path { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: miter; }
.ch-jr-top { position: absolute; left: 8px; top: -20px; font: 800 .62rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ch-jr-now { position: absolute; right: -6px; width: 12px; height: 12px; margin-bottom: -6px; background: var(--teal); box-shadow: 0 0 0 3px var(--stock); }
.ch-jr-mark { position: absolute; width: 0; height: 0; }
.ch-jr-mark i { position: absolute; left: -7px; bottom: -7px; width: 14px; height: 14px; background: var(--stock); border: 2px solid var(--ink); transform: rotate(45deg); }
.ch-jr-mark em { position: absolute; left: 10px; bottom: 8px; font: 800 .58rem/1.2 var(--sans); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); text-wrap: nowrap; display: none; }
@media (min-width: 761px) { .ch-jr-mark em { display: block; } }
.ch-jr-axis { display: flex; justify-content: space-between; margin: 6px 8px 0 8px; font: 800 .62rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ch-jr-fig figcaption { margin-top: 10px; }

.ch-jr-pace__nums { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 30px; }
.ch-jr-pace__big { color: var(--ink-2); font: 400 1.2rem/1 var(--display); }
.ch-jr-pace__big b { font: 700 3rem/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.ch-jr-pace .ch-stats { flex: 1 1 280px; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 420px; }
.ch-jr-said { margin-top: 16px; }
.ch-jr-goalform { margin-top: 18px; max-width: 30em; }
.ch-jr-goalform .ch-acts { margin-top: 14px; }
.ch-jr-goalform input[type="date"] { width: 100%; max-width: 16em; }

.ch-jr-stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ch-jr-stamp { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 0; background: var(--stock); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 3px var(--stock), inset 0 0 0 4px var(--line-2); }
.ch-jr-stamp:hover { background: var(--stock-2); }
.ch-jr-stamp[aria-expanded="true"] { background: var(--stock-3); }
.ch-jr-stamp__mark { flex: none; width: 18px; height: 18px; background: var(--teal); transform: rotate(45deg); box-shadow: 0 0 0 3px var(--stock), 0 0 0 4.5px var(--ink); }
.ch-jr-stamp__t { display: grid; gap: 2px; min-width: 0; }
.ch-jr-stamp__t b { font: 700 1rem/1.2 var(--display); overflow-wrap: anywhere; }
.ch-jr-stamp__t span { font-size: .86rem; color: var(--ink-2); }
.ch-jr-stamp__say { margin: 6px 2px 4px; color: var(--ink-2); line-height: 1.45; overflow-wrap: anywhere; }
.ch-jr-stamps li { animation: ch-jr-stamp .42s var(--ease-out) both; }
.ch-jr-stamps li:nth-child(2) { animation-delay: .05s; } .ch-jr-stamps li:nth-child(3) { animation-delay: .1s; } .ch-jr-stamps li:nth-child(n+4) { animation-delay: .15s; }
@keyframes ch-jr-stamp { from { opacity: 0; transform: scale(1.08); } }

.ch-jr-days { list-style: none; margin: 0; padding: 0; }
.ch-jr-day { padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
.ch-jr-day__h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; margin: 0 0 6px; font: 700 1rem/1.3 var(--display); outline: none; }
.ch-jr-day__h:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ch-jr-day__n { font: 600 .92rem/1.3 var(--sans); color: var(--ink-2); }
.ch-jr-items { list-style: none; margin: 0; padding: 0; }
.ch-jr-item { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; min-height: 40px; padding: 2px 0; }
.ch-jr-item__shape { flex: none; width: 11px; height: 15px; background: var(--ink); }
.ch-jr-item.is-coming .ch-jr-item__shape { background: repeating-linear-gradient(135deg, var(--ink-3) 0 2px, transparent 2px 4px); border: 1.5px solid var(--ink-3); }
.ch-jr-item__t { flex: 1 1 14em; display: flex; flex-wrap: wrap; gap: 0 10px; min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.ch-jr-item__t span { color: var(--ink-2); }
.ch-jr-item--ms .ch-jr-stamp__mark { width: 11px; height: 11px; margin: 0 2px; box-shadow: 0 0 0 2px var(--stock), 0 0 0 3.5px var(--ink); }
.ch-jr-item--ms b { font-family: var(--display); }
.ch-jr-more { margin-top: 18px; }

.ch-jr-bars { list-style: none; display: flex; align-items: flex-end; gap: 6px; height: 120px; margin: 18px 0 0; padding: 0; max-width: 560px; }
.ch-jr-bar { position: relative; flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; padding-bottom: 20px; }
.ch-jr-bar__fill { display: block; width: 100%; background: var(--teal); }
.ch-jr-bar__fill.is-zero { background: var(--line-2); }
.ch-jr-bar__m { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: 800 .62rem/1.4 var(--sans); color: var(--ink-3); }

/* ---------- the game plan ---------- */
.ch-gp-why { margin-top: 10px; }
.ch-gp-cards { list-style: none; display: grid; gap: 14px; margin: 22px 0 0; padding: 0; max-width: 54em; }
.ch-gp-card { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 14px; padding: 20px 22px 22px 16px; border: 1.5px solid var(--line-2); border-radius: 0; background: var(--stock-2); animation: ch-in .3s var(--ease-out) both; }
.ch-gp-card:nth-child(2) { animation-delay: .04s; } .ch-gp-card:nth-child(3) { animation-delay: .08s; } .ch-gp-card:nth-child(n+4) { animation-delay: .12s; }
.ch-gp-n { font: 700 1.7rem/1 var(--display); color: var(--ink-3); text-align: right; }
.ch-gp-n--plus { color: var(--teal); }
.ch-gp-body { min-width: 0; }
.ch-gp-t { margin: 2px 0 0; font: 700 1.2rem/1.25 var(--display); overflow-wrap: anywhere; }
.ch-gp-p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.55; max-width: 42em; overflow-wrap: anywhere; }
.ch-gp-acts { margin-top: 16px; }
.ch-gp-acts .btn { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.ch-gp-card--prices { border-style: dashed; background: var(--stock); }
.ch-gp-check .ch-acts { margin-top: 14px; }
.ch-gp-check .ch-meter { margin-top: 10px; max-width: 420px; }
.ch-gp-card.is-done { border: 3px double var(--teal); background: var(--stock); padding-top: 26px; }
.ch-gp-stamp { display: inline-block; margin: 0 0 10px; padding: 6px 12px; border: 2px solid var(--ink); font: 800 .78rem/1.2 var(--sans); letter-spacing: .24em; text-transform: uppercase; transform: rotate(-3deg); animation: ch-gp-stamp .5s var(--ease-out) both .1s; }
@keyframes ch-gp-stamp { from { opacity: 0; transform: rotate(-3deg) scale(1.4); } }
@media (max-width: 420px) {
  .ch-gp-card { grid-template-columns: minmax(0, 1fr); padding: 18px 16px 20px; }
  .ch-gp-n { text-align: left; font-size: 1.2rem; margin-bottom: 4px; }
  .ch-gp-acts .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ch-jr-stamps li, .ch-gp-card, .ch-gp-stamp { animation: none; }
  .ch-ix-chev { transition: none; }
}
