/* ============================================================
   Product Detail — Cardstock theme
   Extracted from .tmp/cardstock_product_detail.html.

   All selectors are scoped under .cardstock so this stylesheet
   can't bleed into the global base.html chrome.
   ============================================================ */

/* When .cardstock is present on the page, swap the document's body
   background and vignette so the gray-desk gradient fills the entire
   viewport (not just the constrained .main-content column). Also strip
   .main-content's column padding so the panels sit edge-to-edge with
   the desk. :has() is supported in all modern browsers. */
body:has(.cardstock) {
  background: #8e8e8c;
  background-image:
    radial-gradient(ellipse 1500px 1000px at 14% 8%, #a8a8a6 0%, transparent 60%),
    linear-gradient(135deg, #8e8e8c 0%, #6d6d6b 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
body:has(.cardstock)::after {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 110% 80% at 22% 14%, transparent 55%, rgba(0, 0, 0, 0.10) 100%);
  pointer-events: none;
  z-index: 0;
}
body:has(.cardstock) .main-content {
  max-width: none;
  padding: 0;
}

.cardstock {
  /* Darker, cooler palette — beige tones pulled out of the paper and
     desk, replaced with neutral grays. Accent colors (burnt-orange
     title, green deal-score, sky-blue price) keep their warmth so they
     still read as the brand voice against the muted gray substrate. */
  --bg-hi:       #a8a8a6;
  --bg-base:     #8e8e8c;
  --bg-lo:       #6d6d6b;
  --paper:       #cfcfcd;
  --paper-hi:    #dadad8;
  --paper-edge:  #a4a4a2;
  --paper-under: #8c8c8a;

  --ink:         rgba(28, 28, 28, 0.78);
  --ink-2:       rgba(48, 48, 48, 0.70);
  --ink-3:       rgba(92, 92, 92, 0.60);
  --ink-num:     rgba(20, 20, 20, 0.85);
  --rule:        rgba(40, 40, 40, 0.26);
  --rule-soft:   rgba(40, 40, 40, 0.12);

  --accent:      #a04425;
  --accent-deep: #7a2f17;
  --slate:       rgba(72, 88, 106, 0.78);
  --green:       #5a7141;
  --yellow:      #b78b2c;
  --red:         #a13c2c;

  --font-stack:  "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  position: relative;
  color: var(--ink);
  font-family: var(--font-stack);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  z-index: 1;
}
.cardstock *,
.cardstock *::before,
.cardstock *::after { box-sizing: border-box; }

/* ===================================================================
   PANEL — paper card with subtle fiber overlay
   =================================================================== */
.cardstock .panel {
  position: relative;
  background: var(--paper);
  border-radius: 5px;
  box-shadow:
    0 24px 36px -14px rgba(15, 15, 15, 0.36),
    0 6px 10px -2px rgba(15, 15, 15, 0.22),
    0 1px 0 rgba(15, 15, 15, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 6px rgba(40, 40, 40, 0.08);
  isolation: isolate;
}
.cardstock .panel::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background-image: url("/static/images/paper-2.png");
  background-size: 720px 720px;
  background-repeat: repeat;
  mix-blend-mode: multiply;
  opacity: 0.36;
  pointer-events: none;
  z-index: 0;
}
.cardstock .panel > * { position: relative; z-index: 2; }

/* peeling corner */
.cardstock .peel-br {
  box-shadow:
    0 24px 36px -14px rgba(15, 15, 15, 0.36),
    0 6px 10px -2px rgba(15, 15, 15, 0.22),
    22px 26px 34px -8px rgba(10, 10, 10, 0.42),
    0 1px 0 rgba(15, 15, 15, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 6px rgba(40, 40, 40, 0.08);
}
.cardstock .peel-br::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 108px;
  height: 108px;
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
  border-bottom-right-radius: 5px;
  background-image:
    linear-gradient(135deg, transparent 0%, transparent 38%, rgba(15,15,15,0.25) 47%, rgba(15,15,15,0.06) 55%, transparent 62%),
    url("/static/images/paper-2.png"),
    linear-gradient(315deg, var(--paper-under) 0%, #7d7d7b 100%);
  background-size: auto, 360px 360px, auto;
  background-position: 0 0, 30% 70%, 0 0;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-blend-mode: normal, multiply, normal;
  filter: drop-shadow(6px 9px 10px rgba(10, 10, 10, 0.5));
  z-index: 4;
  pointer-events: none;
}

.cardstock .printed {
  color: rgba(28, 18, 6, 0.72);
  mix-blend-mode: multiply;
}

/* ===================================================================
   SHELL
   =================================================================== */
/* Pull the cardstock content flush against the navbar — base.html's
   .main-content padding is collapsed at the top and the shell's own
   top padding is dropped, so the year + product dropdowns sit
   immediately under the header bar without a strip of whitespace. */
.main-content:has(> .cardstock) { padding-top: 0; }
.cardstock .shell {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 36px 80px;
}

/* Crumbs — slim strip above the top panel, sits on the gray bg. The
   text uses the title ink color (#1a1a1a) so the chain reads as one
   cohesive label. Three overlapping radial-fade white blobs give the
   strip a wispy "cloud" feel — just enough brightness for contrast
   against the cardstock paper, no defined edge anywhere. */
.cardstock .crumbs {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 28px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: radial-gradient(ellipse 95% 260% at center,
                              rgba(255, 255, 255, 0.18) 0%,
                              rgba(255, 255, 255, 0.14) 55%,
                              rgba(255, 255, 255, 0) 100%);
}
.cardstock .crumbs a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 150ms ease;
}
.cardstock .crumbs a:hover { color: var(--accent-deep); }
.cardstock .crumbs .sep {
  color: #1a1a1a;
  font-weight: 600;
  opacity: 0.65;
}
.cardstock .crumbs .current {
  color: #1a1a1a;
  font-weight: 700;
}

/* Crumb pickers — inline ▾ next to genre + year crumbs, opening a small
   cardstock-paper panel with the other genres / years. The label itself
   stays a link; only the caret button toggles the picker. */
.cardstock .crumbs .crumb-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cardstock .crumbs .crumb-link { letter-spacing: inherit; }
.cardstock .crumbs .crumb-picker-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 18px; height: 18px;
  padding: 0; margin: 0;
  border: 0; background: transparent;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  color: #1a1a1a;
  cursor: pointer;
  border-radius: 3px;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}
.cardstock .crumbs .crumb-picker-btn:hover {
  color: var(--accent-deep);
  background: rgba(122, 47, 23, 0.10);
}
.cardstock .crumbs .crumb-picker-wrap.open .crumb-picker-btn {
  color: var(--accent-deep);
  background: rgba(122, 47, 23, 0.14);
  transform: rotate(180deg);
}
.cardstock .crumbs .crumb-picker {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 50;
  width: max-content;
  max-width: 320px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  background: var(--paper-hi);
  border: 1px solid var(--paper-edge);
  border-radius: 5px;
  box-shadow:
    0 14px 24px -8px rgba(15, 15, 15, 0.32),
    0 4px 8px -2px rgba(15, 15, 15, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.cardstock .crumbs .crumb-picker[hidden] { display: none; }
.cardstock .crumbs .crumb-picker-item {
  display: block;
  padding: 4px 8px;
  border-radius: 3px;
  color: var(--ink-2);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: inherit;
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease;
}
.cardstock .crumbs .crumb-picker-item:hover {
  background: rgba(122, 47, 23, 0.12);
  color: var(--accent-deep);
}
.cardstock .crumbs .crumb-picker-item.active {
  background: rgba(122, 47, 23, 0.10);
  color: var(--ink-num);
  cursor: default;
}
/* Years stack one-per-line so panel width = widest season label and
   the fuzzy smudge stays tight to the text. */
.cardstock .crumbs .crumb-picker-years .crumb-picker-item {
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 5px 8px;
}

/* PRODUCT JUMPS breadcrumb styles removed — the breadcrumb moved to the
   shared header (base.html / .nav-breadcrumb), restyled to the navbar's
   paper-pill button vocabulary. */

/* ===================================================================
   TOP PANEL
   =================================================================== */
.cardstock .top-panel {
  padding: 20px 44px 32px;
  transform: rotate(-0.2deg);
  display: grid;
  grid-template-rows: auto auto;
  gap: 16px;
}

/* ───── Brown leather corner holders ─────
   Four right-triangle "pockets" tucking each panel corner. Each
   element is a 34×34 square clipped to a triangle pointing inward
   and sits flush with the panel edge (no negative overhang) so the
   pocket reads as part of the page, not an applique on top.
   Texture: paper-2.png multiplied over the leather gradient gives
   a fine grain without an extra asset; the muted brown stops
   (#7e6e58 → #5e4a30 → #3d2d1c) match the packing-flow stitching
   palette so the corners feel native to the page. The per-corner
   --leather-angle var rotates the highlight toward each outer
   corner; everything else stays identical. */
.cardstock .top-panel .paper-corner {
  position: absolute;
  width: 38px;
  height: 38px;
  z-index: 5;
  pointer-events: none;
  /* Per-corner shadow offset (--cx / --cy) points the drop-shadow toward
     the panel interior, so it always lands ON the paper next to the
     hypotenuse — not off the page edge. Stacked at 3 distances:
       · tight contact shadow at the seam  (defines the edge)
       · mid-range directional shadow      (form-defining depth)
       · soft ambient drop                 (grounds the corner)
     The filter follows the clip-path silhouette; the hypotenuse casts
     a visible dark band on the paper just inside it. */
  filter:
    drop-shadow(calc(var(--cx) * 1px) calc(var(--cy) * 1px) 1.5px rgba(10, 6, 2, 0.70))
    drop-shadow(calc(var(--cx) * 2.5px) calc(var(--cy) * 2.5px) 5px rgba(15, 10, 5, 0.50))
    drop-shadow(calc(var(--cx) * 4px) calc(var(--cy) * 4px) 12px rgba(10, 8, 4, 0.32));
  background-image:
    /* Subtle white highlight along the outer corner — catches light
       above the multiply-grain layer so the leather doesn't read flat. */
    linear-gradient(var(--leather-angle, 135deg),
      rgba(255, 248, 230, 0.24) 0%, transparent 32%),
    url("/static/images/paper-2.png"),
    linear-gradient(var(--leather-angle, 135deg),
      #7e6e58 0%, #5e4a30 45%, #3d2d1c 100%);
  background-size: 100% 100%, 200px 200px, 100% 100%;
  background-repeat: no-repeat, repeat, no-repeat;
  background-blend-mode: normal, multiply, normal;
}
.cardstock .top-panel .pc-tl {
  top: 0; left: 0;
  --leather-angle: 135deg;
  --cx:  1; --cy:  1;  /* shadow down-right onto the panel */
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.cardstock .top-panel .pc-tr {
  top: 0; right: 0;
  --leather-angle: 225deg;
  --cx: -1; --cy:  1;  /* shadow down-left */
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.cardstock .top-panel .pc-bl {
  bottom: 0; left: 0;
  --leather-angle: 45deg;
  --cx:  1; --cy: -1;  /* shadow up-right */
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.cardstock .top-panel .pc-br {
  bottom: 0; right: 0;
  --leather-angle: 315deg;
  --cx: -1; --cy: -1;  /* shadow up-left */
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.cardstock .top-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
/* Title-row: title block on the left, price + single-line deal-score
   stacked on the right. align-items:start so the top of the eyebrow
   sits on the same y as the top of the price-mask glyphs. */
.cardstock .top-head-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.cardstock .top-head-text { min-width: 0; }
.cardstock .top-head-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}
.cardstock .top-head-price .price-block {
  display: flex; flex-direction: column; gap: 0;
  align-items: flex-end;
}
/* Price moved under the title — left-align with the title's leading
   edge and add a touch of breathing room below the headline. */
.cardstock .top-head-text .price-block {
  display: flex; flex-direction: column; gap: 0;
  align-items: flex-start;
  margin-top: 10px;
}
/* Top row wraps the hero panel (left) + the .top-right rail (right) which
   holds the stacked description + peers tiles. 60/40 split at desktop when
   .top-right is rendered; falls back to block (hero full width) when there
   are no right-rail tiles to show. */
.cardstock .top-row { display: block; margin-bottom: 36px; }
.cardstock .top-row:has(.top-right) {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: start;
}
.cardstock .top-right {
  display: flex; flex-direction: column;
  gap: 18px;
  min-width: 0;
}
/* When .top-row carries the bottom margin, the inner panels shouldn't. */
.cardstock .top-row > .top-panel { margin-bottom: 0; }
.cardstock .top-right > .charts-card,
.cardstock .top-right > .description-card,
.cardstock .top-right > .chases-card,
.cardstock .top-right > .peers { margin-bottom: 0; }

/* Hero body stacks vertically inside the narrowed top panel — price card,
   then image+editorial, then admin tools. The legacy 35/65 horizontal grid
   needed an ~1080px container; in the new 60% column (~660–720px) the
   stack reads tighter. */
.cardstock .top-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
.cardstock .top-image {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
/* Headline-price row sitting directly above the product image. The trend
   + deal-score companions moved OUT to the taped-paper .signal-notes under
   the image, so this wrapper now carries only the price and reads as a
   single clean focal row centered on the column. The price-block override
   drops the legacy left-aligned flex from the old .top-head-text location. */
.cardstock .top-image .image-price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 36px 4px;
}
.cardstock .top-image .image-price-block .price-block {
  display: flex; flex-direction: column; gap: 0;
  align-items: center;
  margin-top: 0;
}
/* Inline price + trend arrow — the arrow sits to the RIGHT of the headline
   price, vertically centered with it. It's slightly smaller than the
   stand-alone note arrow (36px vs the note's 44px xl) and at half opacity:
   the band hue + the arrow's own band opacity (1.0 / 0.55) multiply against
   this 0.5 on the wrapper, so the "reduce by 50%" reads against whatever
   severity the band already carries. show_pct=False drops the % readout. */
.cardstock .top-image .image-price-block .price-with-trend {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.cardstock .price-with-trend .trend-badge { opacity: 0.5; }
.cardstock .price-with-trend .trend-badge .trend-arrow { font-size: 36px; }
/* Headline price → cheapest retailer's listing. The link wraps the price +
   the retailer caption and inherits the price's ink so it never reads as a
   blue hyperlink; a faint lift on hover is the only affordance. */
.cardstock .top-image .image-price-block .price-best-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.12s ease;
}
.cardstock .top-image .image-price-block .price-best-link:hover { opacity: 0.82; }
.cardstock .top-image .image-price-block .price-best-link:hover .price-retailer {
  color: var(--ink-2);
  text-decoration: underline;
}
/* Subtle retailer slug beneath the price — shares the .price-empty caption
   family (size, weight, tracking, muted ink) so it sits quietly. */
.cardstock .top-image .image-price-block .price-retailer {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
/* ── Signal notes — trend + deal score ──────────────────────────────
   Two taped-paper sticky-notes sitting side by side immediately under the
   hobby-box image: the 30-day price trend (left) and the Deal Score
   (right). They replace the old crowded price+trend+deal cluster — pulling
   the two signals onto their own row under the image gives each room to
   breathe and lets the Deal Score carry a label + plain-language caption
   so it means something to a first-time visitor. */
.cardstock .signal-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px 28px;
  margin: 20px 22px 6px;
}

/* Shared taped-paper note body — gray sheet, square-cut corners, tape
   strip pinned at the top, asymmetric drop shadow, slight hand-placed
   tilt. Lifted from the legacy trend post-it so the scrapbook tone holds.
   The two-layer background (radial raking-light wash + top-to-bottom
   linear) keeps the paper from reading flat. */
.cardstock .signal-note {
  position: relative;
  flex: 0 1 206px;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 20px 15px;
  background:
    radial-gradient(ellipse 75% 55% at 22% 18%,
      rgba(255, 255, 255, 0.42) 0%,
      rgba(255, 255, 255, 0.00) 65%),
    linear-gradient(180deg, #d8d8d6 0%, #bebebc 100%);
  border-radius: 0;
  /* Asymmetric shadow under the bottom-right corner only — the negative
     spread eats the other three edges so the sheet reads as hinged at the
     upper-left and lifting toward the lower-right. */
  box-shadow: 8px 10px 16px -11px rgba(0, 0, 0, 0.34);
  /* GPU-composited layer so the rotated captions inside render crisply
     instead of subpixel-smearing (the old "blur on hover" artifact). */
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Alternate the hand-placed tilt so the pair reads as two separately
   stuck notes rather than a rigid two-up grid. */
.cardstock .signal-note.note-trend { transform: rotate(-1.1deg) translateZ(0); }
.cardstock .signal-note.note-deal  { transform: rotate(1.0deg)  translateZ(0); }

/* Tape strip — translucent rectangle pinning the note at the top, tilted
   opposite the note's own rotation so it reads as hand-applied. */
.cardstock .signal-note::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  width: 46px;
  height: 15px;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.62) 0%,
      rgba(255, 255, 255, 0.38) 100%);
  border-left:  1px solid rgba(0, 0, 0, 0.05);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
  transform: translateX(-50%) rotate(-3deg);
  pointer-events: none;
}
.cardstock .signal-note.note-deal::before { transform: translateX(-50%) rotate(3deg); }

/* Note title — small uppercase caption at the top of each note. */
.cardstock .signal-note .note-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  mix-blend-mode: multiply;
}
/* Foot caption — e.g. the trend window label under the sparkline. */
.cardstock .signal-note .note-foot {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Nested rotated/tilted children flatten so they don't compound the
   note's own tilt — the note owns the hand-drawn angle. */
.cardstock .signal-note .trend-badge,
.cardstock .signal-note .price-trend-wrap {
  transform: none;
  transform-origin: center center;
}

/* Trend note — arrow/pct badge stacked over the sparkline. */
.cardstock .note-trend-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cardstock .signal-note .trend-badge.trend-xl {
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

/* Deal-score note — big band-colored score readout, the 10-cell gauge,
   then a one-line plain-language caption. Number + label + gauge together
   means the signal never relies on color alone. */
.cardstock .note-deal .ds-readout {
  display: flex;
  align-items: baseline;
  gap: 1px;
  line-height: 1;
}
/* Numerator matches the denominator size — the gauge + band color carry the
   visual weight, so the score reads as a compact "82/100" caption rather
   than an oversized hero number. */
.cardstock .note-deal .ds-score {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.cardstock .note-deal .ds-max {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.cardstock .note-deal.green  .ds-score { color: #4f6539; }
.cardstock .note-deal.yellow .ds-score { color: #8f6c1d; }
.cardstock .note-deal.red    .ds-score { color: #993627; }
.cardstock .note-deal .ds-cells {
  display: inline-flex;
  gap: 2px;
}
.cardstock .note-deal .ds-cells .cell {
  width: 9px;
  height: 13px;
  background: rgba(60, 50, 35, 0.18);
  border-radius: 1px;
}
.cardstock .note-deal.green  .ds-cells .cell.filled { background: rgba(90, 113, 65, 0.80); }
.cardstock .note-deal.yellow .ds-cells .cell.filled { background: rgba(183, 139, 44, 0.76); }
.cardstock .note-deal.red    .ds-cells .cell.filled { background: rgba(161, 60, 44, 0.72); }
.cardstock .note-deal .note-desc {
  margin: 2px 0 0;
  max-width: 23ch;
  font-size: 10.5px;
  line-height: 1.34;
  text-align: center;
  color: var(--ink-2);
}

/* ── Rookie-chase paper ─────────────────────────────────────────────
   The rookie portrait rail sits on one full-width sheet of paper held up
   by two tape strips (one per top corner), so the chase rail reads as a
   page torn from the same scrapbook. Same gray-paper treatment as the
   signal notes; a faint counter-rotation keeps it from looking machine-
   placed. */
.cardstock .image-rookies-paper {
  position: relative;
  margin: 24px 12px 6px;
  padding: 20px 16px 14px;
  background:
    radial-gradient(ellipse 85% 60% at 16% 14%,
      rgba(255, 255, 255, 0.40) 0%,
      rgba(255, 255, 255, 0.00) 62%),
    linear-gradient(180deg, #d8d8d6 0%, #c2c2c0 100%);
  box-shadow: 0 13px 22px -15px rgba(0, 0, 0, 0.42);
  transform: rotate(-0.3deg);
}
.cardstock .image-rookies-paper .paper-tape {
  position: absolute;
  top: -10px;
  width: 60px;
  height: 17px;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.60) 0%,
      rgba(255, 255, 255, 0.36) 100%);
  border-left:  1px solid rgba(0, 0, 0, 0.05);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
  pointer-events: none;
}
.cardstock .image-rookies-paper .tape-l { left: 32px;  transform: rotate(-6deg); }
.cardstock .image-rookies-paper .tape-r { right: 32px; transform: rotate(5deg); }
/* Paper title — small uppercase heading centered at the top of the sheet,
   matching the signal-note caption treatment so the scrapbook voice holds. */
.cardstock .rookies-paper-title {
  margin: 0 0 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  mix-blend-mode: multiply;
}
/* Rail inside the paper drops its standalone padding — the sheet supplies
   the breathing room now. */
.cardstock .image-rookies-paper .image-rookies-rail {
  padding: 2px 0 0;
}

/* Sparkline cluster: axis labels (high / low $) on the left, the chart
   itself in the middle, and a "30 DAYS" foot label below. The whole
   group carries the slight -0.6deg tilt that mirrors the pencil-crayon
   price's -1.2deg, so the labels rotate with the chart and read as one
   hand-drawn unit. */
.cardstock .price-trend-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  transform: rotate(-0.6deg);
  transform-origin: left center;
}
.cardstock .price-trend-area {
  display: flex;
  align-items: stretch;
  gap: 4px;
}
.cardstock .price-trend-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  /* Trim text leading so the axis labels sit flush with the chart top/bottom
     edges (the .price-trend is 22px tall — line-height:1 keeps the 9px text
     within that band without poking above/below). */
  line-height: 1;
}
.cardstock .price-trend-hi,
.cardstock .price-trend-lo,
.cardstock .price-trend-foot {
  font-size: 9px;
  font-weight: 500;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cardstock .price-trend-foot {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cardstock .price-trend {
  /* Sized to feel like a small tail off the price — wide enough to read
     direction at a glance, short enough that the eye doesn't snag. */
  width: 64px;
  height: 22px;
  flex: 0 0 auto;
  position: relative;
  /* Faint baseline rule so the line has something to read against
     without adding visual weight. */
  border-bottom: 1px dotted var(--rule-soft);
  opacity: 0.7;
  transition: opacity 160ms ease;
}
.cardstock .price-trend-wrap:hover .price-trend { opacity: 1; }
.cardstock .price-trend svg {
  width: 100%; height: 100%;
  display: block;
  overflow: visible;
}
.cardstock .price-trend .price-trend-line {
  stroke: rgba(120, 88, 56, 0.65);  /* warm umber — earthy pencil, pairs with the
                                       burnt-sienna price without competing */
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  mix-blend-mode: multiply;
}
.cardstock .top-image .image-frame {
  display: grid; place-items: center;
  /* Image hugs the chase rail above and the editorial copy below.
     Horizontal padding only — vertical is zero so there's no gap
     either side of the box. */
  padding: 0 36px;
  position: relative;
}
.cardstock .top-image .image-frame img {
  max-width: 100%;
  /* Hobby box images are tall; cap at a comfortable reading size that
     leaves room for the editorial copy underneath without dominating
     the panel. */
  max-height: 280px;
  width: auto;
  filter:
    drop-shadow(0 0 1px rgba(15, 15, 15, 0.55))
    drop-shadow(0 1px 3px rgba(15, 15, 15, 0.32))
    drop-shadow(-1px -1px 2px rgba(255, 255, 255, 0.20))
    drop-shadow(0 5px 7px rgba(10, 10, 10, 0.22))
    drop-shadow(0 12px 18px rgba(10, 10, 10, 0.24))
    saturate(0.96);
}
.cardstock .image-divider {
  border: 0;
  border-top: 1px dashed var(--rule);
  height: 0;
  background: transparent;
  margin: 26px 0 22px;
  opacity: 1;
}
.cardstock .image-editorial {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cardstock .image-editorial p.lede {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  mix-blend-mode: multiply;
}
.cardstock .image-editorial p.lede strong { color: var(--ink-num); font-weight: 600; }
/* Lede expand/collapse — always active. The lede clamps to 10 lines
   while data-collapsed="1"; the "more" button toggles to data-collapsed="0"
   to release the clamp. JS auto-hides the button when the text already
   fits the clamp (no overflow worth expanding). */
.cardstock .lede-wrap { position: relative; }
.cardstock .lede-wrap[data-collapsed="1"] .lede {
  display: -webkit-box;
  -webkit-line-clamp: 10;
          line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cardstock .lede-more {
  display: inline-block;
  background: transparent;
  border: 0;
  padding: 4px 0 0;
  font: 700 11px/1 var(--font-stack);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  cursor: pointer;
}
.cardstock .lede-more:hover { color: var(--accent); }

/* Eyebrow + Title */
.cardstock .eyebrow {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #6c6c6c;
  margin: 0 0 2px;
}
/* Year token reads bolder and uses the title's ink color so the season
   anchors the eyebrow line. Mirrors the .title color (#1a1a1a @ 0.9). */
.cardstock .eyebrow .eyebrow-year {
  font-weight: 800;
  color: rgba(26, 26, 26, 0.9);
}
.cardstock .title {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.0;
  text-transform: uppercase;
  margin: 0;
  color: #1a1a1a;
  opacity: 0.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-text-stroke: 1px rgba(120, 120, 118, 0.55);
          text-stroke: 1px rgba(120, 120, 118, 0.55);
  paint-order: stroke fill;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.28);
  min-width: 0;
  flex: 1 1 auto;
}
/* Title row — wraps .title + the inline product picker so the ▾ caret
   sits beside the headline. Flex layout lets the title shrink (via the
   fit-to-width JS) while the picker stays at its natural size. */
.cardstock .title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cardstock .title-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.cardstock .title-picker-wrap .crumb-picker-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 28px; height: 28px;
  padding: 0; margin: 0;
  border: 1px solid rgba(26, 26, 26, 0.25);
  background: rgba(255, 255, 255, 0.6);
  font: inherit;
  font-size: 14px;
  line-height: 1;
  color: #1a1a1a;
  cursor: pointer;
  border-radius: 4px;
  transition: color 150ms ease, background 150ms ease,
              border-color 150ms ease, transform 150ms ease;
}
.cardstock .title-picker-wrap .crumb-picker-btn:hover {
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(122, 47, 23, 0.35);
}
.cardstock .title-picker-wrap.open .crumb-picker-btn {
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(122, 47, 23, 0.45);
  transform: rotate(180deg);
}
/* Drop-down panel — anchored to the title-picker button. Scrolls when
   the year carries many releases. */
.cardstock .title-picker {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  min-width: 260px;
  max-width: 420px;
  max-height: 380px;
  overflow-y: auto;
  padding: 6px;
  background: var(--paper-hi);
  border: 1px solid var(--paper-edge);
  border-radius: 5px;
  box-shadow:
    0 14px 24px -8px rgba(15, 15, 15, 0.32),
    0 4px 8px -2px rgba(15, 15, 15, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cardstock .title-picker[hidden] { display: none; }
.cardstock .title-picker .crumb-picker-item {
  display: block;
  padding: 6px 10px;
  border-radius: 3px;
  color: var(--ink-2);
  text-decoration: none;
  white-space: normal;
  line-height: 1.3;
  transition: background 120ms ease, color 120ms ease;
}
.cardstock .title-picker .crumb-picker-item:hover {
  background: rgba(122, 47, 23, 0.12);
  color: var(--accent-deep);
}
.cardstock .title-picker .crumb-picker-item.active {
  background: rgba(122, 47, 23, 0.10);
  color: var(--ink-num);
  cursor: default;
}

/* ============ PRICE COLUMN ============ */
.cardstock .top-price-col {
  display: flex; flex-direction: column; gap: 22px;
  padding-top: 4px;
}

/* Frosted glass tile retired per design — kept as a layout-only flex
   container so child stacking (price-block, deal-score, price-dist,
   charts) still has its vertical rhythm. Strip all visual chrome so
   the children sit directly on the paper-textured top panel. */
.cardstock .frosted-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.cardstock .price-deal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  min-width: 0;
}
.cardstock .price-block { display: flex; flex-direction: column; gap: 4px; flex: 0 1 auto; min-width: 0; }
.cardstock .deal-score {
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
}
.cardstock .deal-score .label,
.cardstock .deal-score .score-meta { text-align: right; }
.cardstock .deal-score .cells { justify-content: flex-end; }

/* Pencil-crayon price mask. Each character is a <span> whose silhouette
   comes from a hand-drawn PNG (mask-image). The fill is the navy crayon
   color; pencil density in the source becomes color density in the
   output. */
.cardstock .price-mask {
  --s: 0.16;
  --pencil-ink: rgba(122, 47, 23, 0.98);
  display: inline-flex;
  align-items: flex-end;
  /* Negative gap collapses some of the 24px transparent border each PNG
     carries, pulling the inks closer without cropping the assets. */
  gap: calc(8px * var(--s) * -3);
  transform: rotate(-1.2deg);
  transform-origin: left center;
  /* multiply removed — the chunky white sticker-halo on .d below needs
     to render as real white, but white-under-multiply collapses to the
     paper color underneath. */
}
.cardstock .price-mask .d {
  display: inline-block;
  flex-shrink: 0;
  background-color: var(--pencil-ink);
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
          mask-position: center bottom;
  /* Outline + halo via stacked 0-blur drop-shadows. CSS borders only
     wrap the rectangular bounding box, but drop-shadows hug the actual
     digit silhouette the mask carves out.
     Offsets are calc'd off `--s` so the outline (~1.5px @ s:0.16) and
     the chunky white halo (~5px @ s:0.16) scale with the digit size.
     This keeps adjacent halos from overlapping when --s shrinks on
     mobile (the digit gap is also calc'd off --s). */
  filter:
    drop-shadow( calc(var(--s) *  9.4px)  0                        0 #000)
    drop-shadow( calc(var(--s) * -9.4px)  0                        0 #000)
    drop-shadow( 0                        calc(var(--s) *  9.4px)  0 #000)
    drop-shadow( 0                        calc(var(--s) * -9.4px)  0 #000)
    drop-shadow( calc(var(--s) *  31px)   0                        0 #fff)
    drop-shadow( calc(var(--s) * -31px)   0                        0 #fff)
    drop-shadow( 0                        calc(var(--s) *  31px)   0 #fff)
    drop-shadow( 0                        calc(var(--s) * -31px)   0 #fff)
    drop-shadow( calc(var(--s) *  22px)   calc(var(--s) *  22px)   0 #fff)
    drop-shadow( calc(var(--s) * -22px)   calc(var(--s) *  22px)   0 #fff)
    drop-shadow( calc(var(--s) *  22px)   calc(var(--s) * -22px)   0 #fff)
    drop-shadow( calc(var(--s) * -22px)   calc(var(--s) * -22px)   0 #fff);
}
/* Dollar sign is repositioned to a small superscript badge in the
   top-right of the price mask (out of the digit baseline flow), so the
   amount itself carries the visual weight. Width/height use a smaller
   scale than --s and override the inline-flex placement. */
/* Optical-spacing tuning. Each PNG has a uniform 24px transparent border,
   so box-to-box gap is consistent — but the GLYPH SHAPE inside that box
   isn't. Concave glyphs ("3", "7") have ink that falls away from the
   bounding box at mid-height → they read as LOOSE next to neighbours.
   Full-bodied glyphs ("0", "8") have ink touching the box edges all the
   way → they read as TIGHT. Negative margin on the concave glyphs pulls
   neighbours back in; the base gap then carries the rest. */
.cardstock .price-mask .d-0      { -webkit-mask-image: url('/static/images/numbers/0.png'); mask-image: url('/static/images/numbers/0.png'); width: calc(411px * var(--s)); height: calc(489px * var(--s)); }
.cardstock .price-mask .d-1      { -webkit-mask-image: url('/static/images/numbers/1.png'); mask-image: url('/static/images/numbers/1.png'); width: calc(220px * var(--s)); height: calc(470px * var(--s)); }
.cardstock .price-mask .d-2      { -webkit-mask-image: url('/static/images/numbers/2.png'); mask-image: url('/static/images/numbers/2.png'); width: calc(368px * var(--s)); height: calc(480px * var(--s)); }
.cardstock .price-mask .d-3      { -webkit-mask-image: url('/static/images/numbers/3.png'); mask-image: url('/static/images/numbers/3.png'); width: calc(391px * var(--s)); height: calc(489px * var(--s)); margin-inline-end: calc(-30px * var(--s)); }
.cardstock .price-mask .d-4      { -webkit-mask-image: url('/static/images/numbers/4.png'); mask-image: url('/static/images/numbers/4.png'); width: calc(411px * var(--s)); height: calc(471px * var(--s)); }
.cardstock .price-mask .d-5      { -webkit-mask-image: url('/static/images/numbers/5.png'); mask-image: url('/static/images/numbers/5.png'); width: calc(391px * var(--s)); height: calc(480px * var(--s)); margin-inline-end: calc(-12px * var(--s)); }
.cardstock .price-mask .d-6      { -webkit-mask-image: url('/static/images/numbers/6.png'); mask-image: url('/static/images/numbers/6.png'); width: calc(394px * var(--s)); height: calc(487px * var(--s)); }
.cardstock .price-mask .d-7      { -webkit-mask-image: url('/static/images/numbers/7.png'); mask-image: url('/static/images/numbers/7.png'); width: calc(360px * var(--s)); height: calc(473px * var(--s)); margin-inline: calc(-18px * var(--s)); }
.cardstock .price-mask .d-8      { -webkit-mask-image: url('/static/images/numbers/8.png'); mask-image: url('/static/images/numbers/8.png'); width: calc(403px * var(--s)); height: calc(492px * var(--s)); }
.cardstock .price-mask .d-9      { -webkit-mask-image: url('/static/images/numbers/9.png'); mask-image: url('/static/images/numbers/9.png'); width: calc(398px * var(--s)); height: calc(488px * var(--s)); }
.cardstock .price-mask .d-comma  { -webkit-mask-image: url('/static/images/numbers/comma.png'); mask-image: url('/static/images/numbers/comma.png'); width: calc(158px * var(--s)); height: calc(226px * var(--s)); }
.cardstock .price-mask .d-dollar {
  -webkit-mask-image: url('/static/images/numbers/dollar.png');
          mask-image: url('/static/images/numbers/dollar.png');
  /* Tiny inline prefix to the left of the digits — half the digit
     scale so it reads as a subtle currency tag, not a co-equal glyph.
     Aligned to the TOP of the digit cap-height (flex-start) so it
     sits like a small superscript-style prefix. */
  width: calc(381px * 0.06);
  height: calc(549px * 0.06);
  transform: none;
  align-self: flex-start;
  margin-right: calc(2px * var(--s));
  opacity: 0.85;
  mask-position: center top;
  -webkit-mask-position: center top;
}

/* No-price state — subtle annotation above the image so the absence of a
   price is acknowledged without stealing focus. Drops the bold dash for a
   small caption-styled label; the .no-price class on .image-price-block
   tightens the surrounding padding so this row doesn't fake hero weight. */
.cardstock .price-block .price-empty {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  cursor: help;
}

/* Currency code (CAD / USD) — small caption tag tucked beside the price
   digits. Shares the .price-empty caption treatment (size, weight, tracking,
   ink-3 color) so the absent-price state and the present-price annotation
   feel like the same typographic family. Aligns to the digit baseline; the
   parent .price-mask carries the -1.2deg tilt so the tag rotates with it. */
.cardstock .price-mask .price-currency {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  align-self: flex-end;
  margin-right: calc(40px * var(--s));
  padding-bottom: calc(20px * var(--s));
}
.cardstock .top-image .image-price-block.no-price {
  padding-top: 4px;
  padding-bottom: 4px;
}

/* Deal score — small + low-saturation by design. The chip is supporting
   info for the price (which carries the visual weight), so cells are
   short bars and label/meta sit at ~9px in muted ink. Filled colors are
   alpha-blended so they hint at the band without shouting. */
.cardstock .deal-score {
  display: flex; flex-direction: column; gap: 2px;
  flex: 0 0 auto;
  align-items: flex-start;
  text-align: left;
  opacity: 0.78;
}
.cardstock .deal-score .label {
  font-size: 8px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  mix-blend-mode: multiply;
}
.cardstock .deal-score .cells-row {
  display: flex; align-items: center; gap: 4px;
}
.cardstock .deal-score .cells { display: flex; gap: 1px; justify-content: flex-start; }
.cardstock .deal-score .score-num {
  font-size: 10px; font-weight: 600;
  color: var(--ink-2);
  mix-blend-mode: multiply;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cardstock .deal-score .cell {
  width: 4px; height: 7px;
  border-radius: 1px;
  background: rgba(50, 50, 50, 0.16);
}
.cardstock .deal-score.green  .cell.filled { background: rgba(90, 113, 65, 0.65); }
.cardstock .deal-score.yellow .cell.filled { background: rgba(183, 139, 44, 0.60); }
.cardstock .deal-score.red    .cell.filled { background: rgba(161, 60, 44, 0.55); }
.cardstock .deal-score .score-meta {
  font-size: 8px; font-weight: 400;
  color: var(--ink-3);
  mix-blend-mode: multiply;
}

/* Retailer price distribution — restyled to reuse the .range-track
   pattern (same chunky band as the 30-day range bars below). Purple
   stick + current label match the dollar price above. Per-retailer
   ticks overlay the band as thin vertical marks. */
.cardstock .price-dist {
  display: flex; flex-direction: column; gap: 4px;
}
.cardstock .pd-tag-row {
  display: flex; justify-content: center;
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  mix-blend-mode: multiply;
}
.cardstock .pd-tag-row .pd-tag { color: var(--ink-3); }
.cardstock .track-row.price-dist-row {
  --band-color: rgba(88, 28, 135, 0.32);
  --track-color: rgba(88, 28, 135, 0.95);
  grid-template-columns: 1fr;
}
.cardstock .track-row.price-dist-row .track-name { display: none; }
.cardstock .track-row.price-dist-row .range-current { font-weight: 800; }
/* Heat-base — the band itself only spans [cheapest, priciest]. Subtle
   purple wash that the per-retailer heat blobs paint over. Overrides
   the textured background the Best/Median bars use. */
.cardstock .price-dist-row .range-band.heat-base {
  background: rgba(88, 28, 135, 0.12);
}
/* Cluster rectangles — one per group of retailers within $5 of one
   another. Width = cluster's price span (so a 4-way tie at $42 reads
   narrow; a group spread $38-$42 reads wider). Color saturation scales
   with retailer count: more retailers in the cluster = hotter band, so
   the consensus price stands out at a glance. min-width keeps singleton
   clusters visible even when their span is zero. */
.cardstock .price-dist-row .range-track .cluster-rect {
  position: absolute;
  top: -3px; bottom: -3px;
  min-width: 4px;
  border-radius: 2px;
  pointer-events: auto;
  z-index: 1;
  background: rgba(88, 28, 135, 0.30);
  box-shadow: inset 0 0 0 0.5px rgba(88, 28, 135, 0.45);
  transition: filter 120ms ease;
}
.cardstock .price-dist-row .range-track .cluster-rect:hover {
  filter: brightness(0.92);
}
.cardstock .price-dist-row .range-track .cluster-rect.r-1 {
  background: rgba(88, 28, 135, 0.28);
}
.cardstock .price-dist-row .range-track .cluster-rect.r-2 {
  background: rgba(88, 28, 135, 0.48);
}
.cardstock .price-dist-row .range-track .cluster-rect.r-3 {
  background: rgba(88, 28, 135, 0.68);
}
.cardstock .price-dist-row .range-track .cluster-rect.r-4plus {
  background: rgba(88, 28, 135, 0.92);
  box-shadow: inset 0 0 0 0.5px rgba(88, 28, 135, 1);
}

/* Trend sparkline */
.cardstock .trend {
  display: flex; flex-direction: column; gap: 4px;
  text-align: left;
}
.cardstock .trend-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
}
.cardstock .trend-legend {
  display: inline-flex; gap: 10px;
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3);
  mix-blend-mode: multiply;
}
.cardstock .trend-legend span { display: inline-flex; align-items: center; gap: 4px; }
.cardstock .trend-legend .dash {
  width: 10px; height: 2px;
  border-radius: 1px; display: inline-block;
}
.cardstock .trend .label,
.cardstock .ranges-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  mix-blend-mode: multiply;
  margin: 0;
}
.cardstock .trend .spark {
  width: 100%; height: 44px;
  background: linear-gradient(to bottom, transparent 0%, transparent 55%, rgba(40, 40, 40, 0.08) 100%);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.cardstock .trend .spark svg { width: 100%; height: 100%; }
.cardstock .trend .spark-empty {
  display: grid; place-items: center;
  width: 100%; height: 44px;
  font-size: 10px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* Charts collapsible — native <details>/<summary>. Summary is a small
   uppercase toggle that styles like a section label; when open the
   trend + range blocks reveal beneath with their own stacking. */
/* ===================================================================
   CHARTS TILE — top of the right rail (admin-only). Carries the price
   distribution band, the 30-day sparkline, and the Best/Median range
   tracks. Always expanded — no collapse toggle.
   =================================================================== */
.cardstock .charts-card {
  padding: 22px 32px 22px;
  margin-bottom: 28px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.cardstock .charts-card h2 {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-num);
  mix-blend-mode: multiply;
  margin: 0 0 14px;
}

/* 30-day range tracks */
.cardstock .ranges { display: flex; flex-direction: column; gap: 10px; }
.cardstock .range-tracks {
  display: flex; flex-direction: column;
  gap: 4px; width: 100%;
}
.cardstock .track-row {
  display: grid; grid-template-columns: 54px 1fr;
  align-items: start; gap: 12px;
}
.cardstock .track-name {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  justify-self: end;
  padding-top: 4px;
}
.cardstock .track-row.best   { --band-color: rgba(15, 50, 105, 0.62);  --track-color: rgba(15, 50, 105, 0.92); }
.cardstock .track-row.median { --band-color: rgba(90, 113, 65, 0.60);  --track-color: rgba(70,  90, 50, 0.95); }

.cardstock .range-track-wrap {
  position: relative;
  display: flex; flex-direction: column;
  gap: 4px;
}
.cardstock .range-track {
  height: 16px;
  background: rgba(40, 40, 40, 0.18);
  border-radius: 8px;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(30, 30, 30, 0.22);
}
.cardstock .range-band {
  position: absolute; top: 2px; bottom: 2px;
  border-radius: 0;
  background:
    repeating-linear-gradient(26deg,
      rgba(255, 255, 255, 0.16) 0px,
      rgba(255, 255, 255, 0.16) 0.6px,
      transparent 0.6px,
      transparent 2.4px),
    repeating-linear-gradient(26deg,
      rgba(0, 0, 0, 0.07) 0px,
      rgba(0, 0, 0, 0.07) 0.3px,
      transparent 0.3px,
      transparent 1.6px),
    radial-gradient(ellipse 38px 9px at 22% 35%, rgba(0, 0, 0, 0.07), transparent 70%),
    radial-gradient(ellipse 32px 8px at 58% 70%, rgba(255, 255, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 36px 8px at 84% 40%, rgba(0, 0, 0, 0.06), transparent 70%),
    var(--band-color, rgba(48, 130, 215, 0.30));
}
/* Vertical stick marking the current position on the bar. Replaces the
   floating arrow + label-above-bar pattern; thin tall stick that punches
   slightly above and below the bar for visibility, in the track color. */
.cardstock .range-stick {
  position: absolute;
  top: -3px; bottom: -3px;
  width: 2px;
  transform: translateX(-1px);
  background: var(--track-color, rgba(0, 0, 0, 0.85));
  border-radius: 1px;
  pointer-events: none;
  z-index: 2;
}
/* Row of labels directly below each bar: $low at left endpoint,
   $current floating at the stick position, $high at the right endpoint.
   Lo/hi are aligned to the bar edges since this row shares the bar's
   width container. */
.cardstock .range-track-labels {
  position: relative;
  height: 14px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  mix-blend-mode: multiply;
}
.cardstock .range-track-labels .range-lo,
.cardstock .range-track-labels .range-hi {
  position: absolute;
  top: 0;
  filter: url(#pencil-num);
}
.cardstock .range-track-labels .range-lo { left: 0; }
.cardstock .range-track-labels .range-hi { right: 0; }
.cardstock .range-track-labels .range-current {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  color: var(--track-color, var(--ink-num));
  opacity: 0.92;
  white-space: nowrap;
  pointer-events: none;
  filter: url(#pencil-num);
}

/* ============ SIBLINGS strip (inside price column) ============ */
.cardstock .siblings {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
}
.cardstock .siblings h3 {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 10px;
  mix-blend-mode: multiply;
}
.cardstock .siblings .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cardstock .sib {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 6px 4px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none;
  color: inherit;
  transition: border-color 180ms ease;
}
.cardstock .sib:hover { border-color: var(--rule); }
.cardstock .sib .sib-thumb {
  width: 100%;
  aspect-ratio: 4/5;
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.cardstock .sib .sib-thumb img {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 4px 5px rgba(10, 10, 10, 0.24));
}
.cardstock .sib .sib-thumb-empty {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--ink-3);
  font-size: 20px;
}
.cardstock .sib .sib-label {
  font-size: 13px; font-weight: 700;
  letter-spacing: -0.005em; text-transform: uppercase;
  color: rgba(36, 24, 10, 0.62);
  mix-blend-mode: multiply;
  text-align: center;
}
.cardstock .sib.current .sib-label { color: rgba(36, 24, 10, 0.82); }
.cardstock .sib .sib-price {
  font-size: 16px; font-weight: 700;
  text-transform: uppercase;
  color: rgba(36, 24, 10, 0.62);
  font-variant-numeric: tabular-nums;
  mix-blend-mode: multiply;
}

/* ===================================================================
   EDITORIAL block under image
   =================================================================== */
.cardstock .image-editorial .packing,
.cardstock .top-image > .packing-flow,
.cardstock .image-editorial .packing-flow {
  /* Horizontal row under the editorial — cards → packs = boxes. Sits
     in .top-image as a sibling below .image-editorial; centered with
     a top divider so it visually separates from the lede above. */
  display: flex; align-items: flex-start; justify-content: center;
  gap: 4px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule);
  flex-wrap: wrap;
}
/* Live packing-flow steps (from spec_steps) restyled into cardstock tone.
   SVG row is sized to ~half the legacy footprint so the cards → packs →
   box strip reads as a subtle annotation rather than a hero visual. */
.cardstock .packing-flow .packing-step {
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  min-width: 56px;
}
.cardstock .packing-flow .packing-step .pf-title {
  display: flex; flex-direction: column;
  text-align: center; line-height: 1.2;
}
.cardstock .packing-flow .packing-step .pf-title-count {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-num);
  font-variant-numeric: tabular-nums;
  mix-blend-mode: multiply;
}
.cardstock .packing-flow .packing-step .pf-title-scope {
  font-size: 8px; font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.12em; text-transform: uppercase;
  mix-blend-mode: multiply;
}
.cardstock .packing-flow .packing-step .pf-svg-area {
  display: flex; align-items: center; justify-content: center;
  height: 55px;
}
.cardstock .packing-flow .packing-step .pf-svg {
  display: block; max-height: 55px; width: auto;
  filter: drop-shadow(0 2px 3px rgba(30, 18, 4, 0.16));
}
.cardstock .packing-flow .pf-connector {
  /* Vertically center the → / = glyphs against the (shrunken) SVG-area's
     55px height; pf-title above is ~24px tall. */
  display: flex; align-items: center; justify-content: center;
  padding-top: 1.6em;
  color: var(--ink-2);
  font-size: 14px;
  mix-blend-mode: multiply;
}

/* ===================================================================
   PRICING panel (admin earmarked)
   =================================================================== */
.cardstock .pricing {
  padding: 26px 36px 28px;
  margin-bottom: 32px;
}
.cardstock .pricing-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 20px;
  flex-wrap: wrap;
}
.cardstock .pricing-head h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink-num);
  mix-blend-mode: multiply;
}
.cardstock .pricing-head .format-select {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 11px;
}
.cardstock .pricing-head .format-select label {
  font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
  mix-blend-mode: multiply;
}
.cardstock .pricing-head .format-select select {
  font: 500 13px/1 var(--font-stack);
  color: var(--ink);
  background: var(--paper-hi);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 6px 10px;
  box-shadow: inset 0 1px 2px rgba(60, 40, 18, 0.10);
  cursor: pointer;
}
.cardstock .pricing-empty {
  margin: 0; color: var(--ink-2);
  font-style: italic;
}

.cardstock table.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cardstock table.pricing-table thead th {
  text-align: left;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 0 12px 8px;
  border-bottom: 1px dashed var(--rule);
  mix-blend-mode: multiply;
}
.cardstock table.pricing-table thead th.num { text-align: right; }
.cardstock table.pricing-table tbody tr {
  border-bottom: 1px dashed var(--rule-soft);
}
.cardstock table.pricing-table tbody tr:hover { background: rgba(160, 68, 37, 0.05); }
.cardstock table.pricing-table td {
  padding: 8px 12px;
  color: var(--ink);
  vertical-align: middle;
  mix-blend-mode: multiply;
  font-weight: 400;
}
.cardstock td.retailer {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  font-size: 17px;
  color: rgba(36, 24, 10, 0.62);
  display: flex; align-items: center; gap: 12px;
}
.cardstock td.retailer a {
  color: inherit;
  text-decoration: none;
  display: flex; align-items: center; gap: 12px;
}
.cardstock td.retailer a:hover { color: var(--accent-deep); }
.cardstock td.retailer .favicon {
  width: 22px; height: 22px;
  border-radius: 3px;
  object-fit: contain;
  background: transparent;
  padding: 1px;
  filter: grayscale(1) brightness(0.42) contrast(1.55);
  opacity: 0.88;
  flex: 0 0 22px;
  mix-blend-mode: multiply;
}
.cardstock td.retailer .ret-name { line-height: 1.2; }
.cardstock td.price {
  text-align: right;
  font-weight: 700;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  font-size: 19px;
  color: rgba(36, 24, 10, 0.62);
}
.cardstock td.price a {
  color: inherit;
  text-decoration: none;
}
.cardstock td.price a:hover { color: var(--accent-deep); text-decoration: underline; }
.cardstock td.price.oos { color: var(--ink-3); font-style: italic; }
.cardstock tr.best { background: rgba(72, 88, 106, 0.10); }
.cardstock tr.best td.price { color: rgba(36, 24, 10, 0.72); }

/* Full retailer matrix (admin collapsible) */
/* Matrix container — replaces the prior <details>/<summary> toggle.
   Matrix renders unconditionally below the pricing heading. */
.cardstock .matrix-container {
  /* Horizontal scroll for wide format matrices on narrow viewports.
     The table is content-sized, not 100%; if formats exceed the panel
     width the user can pan horizontally without the whole page
     ballooning. */
  overflow-x: auto;
  margin-top: 4px;
}
.cardstock .matrix-container table.full-matrix {
  /* Content-width, not full panel width. Each column has a fixed size
     so adding more formats grows the table; few formats keep it tight. */
  width: auto;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}
.cardstock .matrix-container table.full-matrix th,
.cardstock .matrix-container table.full-matrix td {
  padding: 5px 10px;
  border-bottom: 1px dashed var(--rule-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  /* "Standard" data-column width. Narrow enough that multi-word format
     headers (e.g. "HOBBY MASTER CASE") have to stack across two lines,
     keeping the overall table compact when many formats are present;
     wide enough for $X,XXX prices to read cleanly. */
  width: 72px;
}
.cardstock .matrix-container table.full-matrix th {
  /* Field headers right-align to match the data cells below them so the
     edges of each column read as one vertical rule. The Retailer header
     is overridden left-aligned via :first-child further below. */
  text-align: right;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
  background: rgba(255,255,255,0.10);
  vertical-align: bottom;
}
/* Format + quantity render as stacked spans so each line wraps
   independently. Format on top in the head ink color, quantity below in
   a slightly muted tone so the row reads as a hierarchy at a glance. */
.cardstock .matrix-container table.full-matrix th .th-fmt,
.cardstock .matrix-container table.full-matrix th .th-qty,
.cardstock .matrix-container table.full-matrix th .th-var {
  display: block;
  line-height: 1.15;
}
.cardstock .matrix-container table.full-matrix th .th-qty {
  color: var(--ink-3, #7a6a52);
}
/* Variant tag (FOTL / international / french / etc.) — third line of the
   column header, present only on variant-split columns. Smaller + tinted
   gold so the operator sees at a glance that this column is a retail
   variant of the base SKU two columns to its left, not a different format. */
.cardstock .matrix-container table.full-matrix th .th-var {
  margin-top: 1px;
  font-size: 8px;
  letter-spacing: 0.10em;
  color: #a17926;
}
/* First column (retailer name) — left-aligned, sized to the longest
   retailer slug + a small buffer. The width comes from a per-page
   `--site-col-ch` custom property set on the table element (see
   product_detail.html), with 25ch as the fallback when the property is
   missing. nowrap so the column never wraps a long retailer name. */
.cardstock .matrix-container table.full-matrix th:first-child,
.cardstock .matrix-container table.full-matrix td:first-child,
.cardstock .matrix-container table.full-matrix td.site-col {
  width: var(--site-col-ch, 25ch);
  text-align: left;
  font-weight: 600;
  color: rgba(36, 24, 10, 0.72);
  white-space: nowrap;
}
.cardstock .matrix-container table.full-matrix td.empty {
  color: var(--ink-3);
}
.cardstock .matrix-container table.full-matrix td.fmt-hobby-box {
  background: rgba(183, 139, 44, 0.10);
}
/* Cells backed by a real listing are clickable — they reveal the
   listing-actions popover (Visit, Convert, Exclude, Edit match). The
   hover ring is subtle so the matrix still reads as a data table at a
   glance, not a button grid. */
.cardstock .matrix-container table.full-matrix td.cell-action {
  cursor: pointer;
  position: relative;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}
.cardstock .matrix-container table.full-matrix td.cell-action:hover {
  background: rgba(36, 24, 10, 0.06);
  box-shadow: inset 0 0 0 1px rgba(36, 24, 10, 0.18);
}
.cardstock .matrix-container table.full-matrix td.cell-action.cell-active {
  background: rgba(183, 139, 44, 0.16);
  box-shadow: inset 0 0 0 1px rgba(161, 121, 38, 0.55);
}
.cardstock .matrix-container table.full-matrix td.cell-action.cell-excluded .cell-val {
  text-decoration: line-through;
  color: var(--ink-3);
}
.cardstock .matrix-container table.full-matrix td.cell-action .cell-val {
  display: inline-block;
}

/* ============ LISTING ACTIONS popover ============
   Floating panel that anchors to a clicked matrix cell. Same paper tone
   as the surrounding cardstock so it feels native, not an OS chrome
   bubble. Positioning is computed in JS (top/left), here we only style. */
.cardstock .cell-popover,
.cell-popover {
  position: fixed;
  z-index: 60;
  width: 280px;
  border: 1px solid rgba(36, 24, 10, 0.18);
  border-radius: 5px;
  box-shadow:
    0 14px 28px -10px rgba(15, 15, 15, 0.36),
    0 4px 10px -2px rgba(15, 15, 15, 0.20),
    0 1px 0 rgba(15, 15, 15, 0.10);
  padding: 12px 14px 14px;
  font-size: 13px;
  color: var(--ink, #1c1207);
  /* Same paper tone the .panel tiles use — soft paper-2 noise blended
     at low opacity over the base paper, so the popover reads as a piece
     of the same cardstock instead of an OS chrome bubble. */
  background: var(--paper, #efe8d7);
  isolation: isolate;
}
.cell-popover::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background-image: url("/static/images/paper-2.png");
  background-size: 720px 720px;
  background-repeat: repeat;
  mix-blend-mode: multiply;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}
.cell-popover > * { position: relative; z-index: 2; }
.cell-popover[hidden] { display: none; }
.cell-popover .cp-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.cell-popover .cp-site {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2, #4a3a22);
}
.cell-popover .cp-close {
  background: transparent; border: 0;
  font-size: 18px; line-height: 1;
  color: var(--ink-3, #7a6a52);
  cursor: pointer; padding: 0 4px;
}
.cell-popover .cp-close:hover { color: var(--ink, #1c1207); }
.cell-popover .cp-title {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink, #1c1207);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.cell-popover .cp-meta {
  font-size: 11px;
  color: var(--ink-2, #4a3a22);
  margin-bottom: 10px;
}
.cell-popover .cp-sep { margin: 0 6px; color: var(--ink-3, #7a6a52); }
.cell-popover .cp-actions {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cell-popover .cp-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(36, 24, 10, 0.28);
  border-radius: 3px;
  padding: 6px 10px;
  font: 700 11px/1 var(--font-stack, system-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink, #1c1207);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.cell-popover .cp-btn:hover { background: rgba(255, 255, 255, 0.85); border-color: rgba(36, 24, 10, 0.45); }
.cell-popover .cp-btn:disabled { opacity: 0.5; cursor: progress; }
.cell-popover .cp-exclude { color: #8b2a1c; border-color: rgba(139, 42, 28, 0.35); }
.cell-popover .cp-exclude:hover { background: rgba(139, 42, 28, 0.08); border-color: rgba(139, 42, 28, 0.6); }

/* ============ EDIT-MATCH MODAL ============ */
.edit-match-modal {
  position: fixed; inset: 0;
  background: rgba(20, 14, 6, 0.50);
  z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.edit-match-modal[hidden] { display: none; }
.edit-match-modal .emm-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 86vh;
  overflow: auto;
  /* Match the .panel paper tone — base paper color + low-opacity
     paper-2 noise via ::before, so the modal feels carved from the
     same cardstock. */
  background: var(--paper, #efe8d7);
  border: 1px solid rgba(36, 24, 10, 0.18);
  border-radius: 6px;
  box-shadow: 0 30px 60px -16px rgba(0, 0, 0, 0.45);
  padding: 20px 22px 22px;
  color: var(--ink, #1c1207);
  isolation: isolate;
}
.edit-match-modal .emm-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background-image: url("/static/images/paper-2.png");
  background-size: 720px 720px;
  background-repeat: repeat;
  mix-blend-mode: multiply;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}
.edit-match-modal .emm-card > * { position: relative; z-index: 2; }
.edit-match-modal .emm-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.edit-match-modal .emm-head h3 { margin: 0; font-size: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.edit-match-modal .emm-close {
  background: transparent; border: 0;
  font-size: 22px; line-height: 1;
  color: var(--ink-3, #7a6a52);
  cursor: pointer; padding: 0 4px;
}
.edit-match-modal .emm-close:hover { color: var(--ink, #1c1207); }
.edit-match-modal .emm-meta {
  font-size: 12px;
  color: var(--ink-2, #4a3a22);
  border-top: 1px dashed var(--rule, rgba(36, 24, 10, 0.25));
  border-bottom: 1px dashed var(--rule, rgba(36, 24, 10, 0.25));
  padding: 8px 0;
  margin-bottom: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.edit-match-modal .emm-meta strong {
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 10px; color: var(--ink-3, #7a6a52);
  margin-right: 6px;
}
.edit-match-modal .emm-row {
  display: flex; gap: 12px; margin-bottom: 10px;
}
.edit-match-modal .emm-row > label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--ink-3, #7a6a52);
  flex: 1;
}
.edit-match-modal .emm-row.emm-sku-row > label { flex: 1; }
.edit-match-modal .emm-q-label { flex: 1 1 70%; }
.edit-match-modal .emm-year-label { flex: 0 0 130px; }
.edit-match-modal input[type=search],
.edit-match-modal input[type=text],
.edit-match-modal select {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(36, 24, 10, 0.28);
  border-radius: 3px;
  padding: 6px 8px;
  font: 13px var(--font-stack, system-ui);
  color: var(--ink, #1c1207);
}
.edit-match-modal input:focus,
.edit-match-modal select:focus {
  outline: none;
  border-color: rgba(36, 24, 10, 0.55);
  background: #fff;
}
.edit-match-modal .emm-results {
  border-top: 1px dashed var(--rule, rgba(36, 24, 10, 0.25));
  border-bottom: 1px dashed var(--rule, rgba(36, 24, 10, 0.25));
  max-height: 220px; overflow: auto;
  margin: 6px 0 10px;
}
.edit-match-modal .emm-empty {
  text-align: center; padding: 14px;
  font-size: 12px; color: var(--ink-3, #7a6a52);
}
.edit-match-modal .emm-result {
  appearance: none;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed rgba(36, 24, 10, 0.10);
  padding: 6px 4px;
  cursor: pointer;
  display: flex; gap: 10px; align-items: baseline;
  font-size: 13px; color: var(--ink, #1c1207);
}
.edit-match-modal .emm-result:hover { background: rgba(255, 255, 255, 0.45); }
.edit-match-modal .emm-result.selected { background: rgba(183, 139, 44, 0.18); }
.edit-match-modal .emm-r-year {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink-2, #4a3a22);
  min-width: 64px;
}
.edit-match-modal .emm-r-name { flex: 1; }
.edit-match-modal .emm-r-name strong { font-weight: 700; color: var(--ink, #1c1207); }
.edit-match-modal .emm-r-set { color: var(--ink-2, #4a3a22); font-size: 11px; font-weight: 400; }
.edit-match-modal .emm-r-id { color: var(--ink-3, #7a6a52); font-size: 11px; }
.edit-match-modal .emm-selected {
  padding: 8px 10px;
  background: rgba(183, 139, 44, 0.14);
  border: 1px dashed rgba(161, 121, 38, 0.55);
  border-radius: 3px;
  font-size: 12px;
  margin-bottom: 10px;
}
.edit-match-modal .emm-selected[hidden] { display: none; }
.edit-match-modal .emm-selected-id { color: var(--ink-3, #7a6a52); margin-left: 6px; font-size: 11px; }
.edit-match-modal .emm-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.edit-match-modal .emm-status {
  font-size: 12px;
  color: var(--ink-2, #4a3a22);
}
.edit-match-modal .emm-submit {
  appearance: none;
  background: var(--accent-deep, #6c2a1f);
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 8px 18px;
  font: 800 12px/1 var(--font-stack, system-ui);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
}
.edit-match-modal .emm-submit:disabled {
  opacity: 0.45; cursor: not-allowed;
  background: var(--ink-3, #7a6a52);
}

/* ===================================================================
   CHASES TILE — right-rail panel sitting between the description and
   the peers tile. Today the inner content is a single subsection
   (rookie portraits or initials fallback); the structure leaves room
   for additional chase categories (autos / relics / parallels) to slot
   in as sibling .chases-section blocks later.
   =================================================================== */
.cardstock .chases-card {
  padding: 22px 32px 22px;
  margin-bottom: 28px;
}
.cardstock .chases-card h2 {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-num);
  mix-blend-mode: multiply;
  margin: 0 0 14px;
}
.cardstock .chases-section + .chases-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule-soft);
}
.cardstock .chases-section-head {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
  mix-blend-mode: multiply;
  margin: 0 0 10px;
}
.cardstock .chase-rail {
  display: flex; flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 14px 18px;
  padding: 0;
}
.cardstock .chase {
  display: flex; flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  padding: 0;
  border-radius: 8px;
  transition: background 180ms ease;
}
.cardstock .chase:hover { background: rgba(160, 68, 37, 0.06); }
.cardstock .chase:hover .chase-portrait::before {
  box-shadow:
    inset 0 5px 9px rgba(15, 15, 15, 0.65),
    inset 0 -2px 4px rgba(255, 255, 255, 0.35);
}
.cardstock .chase-portrait {
  width: 48px; height: 48px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  flex: 0 0 48px;
  background: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 rgba(20, 20, 20, 0.22);
}
.cardstock .chase-portrait::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  box-shadow:
    inset 0 4px 7px rgba(15, 15, 15, 0.55),
    inset 0 -2px 4px rgba(255, 255, 255, 0.30);
  transition: box-shadow 220ms ease;
}
.cardstock .chase-portrait::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--team-color, rgba(40, 40, 40, 0.30));
  pointer-events: none;
  z-index: 3;
}
.cardstock .chase-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter:
    drop-shadow(0 1px 1px rgba(20, 20, 20, 0.30))
    saturate(0.95) contrast(0.98);
  position: relative;
  z-index: 1;
}
.cardstock .chase-portrait .chase-initials {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(40, 40, 40, 0.50);
  background: rgba(255,255,255,0.10);
  position: relative; z-index: 1;
}
.cardstock .chase-name {
  font-size: 12px; font-weight: 700;
  letter-spacing: -0.005em; text-transform: uppercase;
  color: rgba(36, 24, 10, 0.78);
  mix-blend-mode: multiply;
  line-height: 1.15;
  white-space: nowrap;
}

/* ===================================================================
   Rookie chases — horizontal rail UNDER the box image
   =================================================================== */
/* Each tile stacks portrait over last-name (all caps); the rail wraps and
   centers under the hobby-box image. Mirrors the .chase-rail vocabulary but
   tuned for the image column. */
.cardstock .image-rookies-rail {
  display: flex; flex-direction: row; flex-wrap: wrap;
  justify-content: center; align-items: flex-start;
  gap: 10px 14px;
  padding: 12px 24px 6px;
}
.cardstock .image-rookie {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 5px;
  width: 58px;
  text-decoration: none; color: inherit;
  padding: 4px 2px 3px; border-radius: 10px;
  transition: background 160ms ease;
}
.cardstock .image-rookie:hover { background: rgba(160, 68, 37, 0.06); }
.cardstock .image-rookie:hover .chase-portrait::before {
  box-shadow:
    inset 0 5px 9px rgba(15, 15, 15, 0.65),
    inset 0 -2px 4px rgba(255, 255, 255, 0.35);
}
/* Reuse the gloss/ring .chase-portrait look at the chase-rail size. position
   relative so the AU pill can corner-anchor. */
.cardstock .image-rookie .chase-portrait {
  width: 48px; height: 48px; flex: 0 0 48px;
  position: relative;
}
.cardstock .image-rookie .chase-portrait .chase-initials { font-size: 14px; }
.cardstock .image-rookie-name {
  max-width: 64px;
  font-size: 11px; font-weight: 700; line-height: 1.08;
  letter-spacing: -0.005em; text-transform: uppercase; text-align: center;
  color: rgba(36, 24, 10, 0.80);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Inline tier label — sits beneath the FIRST tile of each tier run (the rail
   is ordered hype_tier DESC) in the tier's ink, replacing a standalone legend.
   The cell wraps the tile so the label can be wider than the 58px tile. */
.cardstock .image-rookie-cell {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
}
.cardstock .image-rookie-tier {
  font-size: 9px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap; text-align: center;
  color: var(--tier-ink, #6a6258);
}
.cardstock .image-rookie-cell.tier-4 { --tier-ink: #b3271a; }
.cardstock .image-rookie-cell.tier-3 { --tier-ink: #9c6a00; }
.cardstock .image-rookie-cell.tier-2 { --tier-ink: #1c6f9e; }
/* Autograph marker — gold circular badge with a white signature squiggle,
   anchored to the portrait's top-right. Lives on the tile (not inside the
   overflow-hidden portrait) and rides a high z-index so it always sits above
   the portrait, the tier-4 glow, and neighbouring tiles. */
.cardstock .image-rookie .auto-badge {
  position: absolute; top: 1px; right: 4px; z-index: 6;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #f3a91f; color: #fff;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 2.5px rgba(15, 15, 15, 0.4);
}
.cardstock .image-rookie .auto-badge svg {
  width: 11px; height: 11px; display: block;
}
/* Tier-4 "Top Chase" — a subtle, static warm glow behind the portrait
   (replaces the old animated two-layer flame, which read as too loud).
   Color only, no flicker: a single soft ember-orange radial halo sits
   BEHIND the portrait and bleeds just past its edge. The portrait is
   lifted above it with z-index; the ring picks up the same warm tint. */
.cardstock .image-rookie.is-top { z-index: 1; }
.cardstock .image-rookie.is-top .chase-portrait { z-index: 2; }
.cardstock .image-rookie.is-top .chase-portrait::after {
  border-color: rgba(255, 138, 40, 0.9);
}
.cardstock .image-rookie.is-top::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 24px;            /* portrait vertical centre (48px tall) */
  z-index: 0;
  width: 66px;
  height: 66px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(255, 168, 64, 0.42) 0%,
      rgba(255, 122, 26, 0.24) 46%,
      rgba(255, 122, 26, 0) 72%);
  filter: blur(2px);
}
/* Phones: keep the rookie chase rail to a SINGLE row (up to 6 tiles). At the
   desktop size 5+ tiles wrap below ~410px, so shrink the portrait, name, gap,
   and padding and switch to nowrap so they always sit on one line. */
@media (max-width: 560px) {
  .cardstock .image-rookies-rail {
    flex-wrap: nowrap; gap: 4px; padding: 8px 2px 4px;
  }
  .cardstock .image-rookie { width: 46px; gap: 3px; padding: 2px 0; }
  .cardstock .image-rookie .chase-portrait {
    width: 40px; height: 40px; flex: 0 0 40px;
  }
  .cardstock .image-rookie .chase-portrait .chase-initials { font-size: 11px; }
  .cardstock .image-rookie-name {
    max-width: 46px; font-size: 9.5px; letter-spacing: -0.02em;
  }
  /* Keep lead-tile labels from widening cells past the nowrap single row. */
  .cardstock .image-rookie-cell { gap: 2px; }
  .cardstock .image-rookie-tier { font-size: 7.5px; letter-spacing: 0.02em; }
  .cardstock .image-rookie .auto-badge { width: 13px; height: 13px; top: 0; right: 1px; }
  .cardstock .image-rookie .auto-badge svg { width: 9px; height: 9px; }
}

/* ===================================================================
   PEERS / Previous releases
   =================================================================== */
.cardstock .peers {
  padding: 22px 32px 22px;
  margin-bottom: 28px;
}
.cardstock .peers h2 {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-num);
  mix-blend-mode: multiply;
  margin: 0 0 14px;
}
.cardstock .peers-grid {
  display: grid;
  /* Peers sits below the description tile in the .top-right rail
     (~40% of shell, ~430–490px). 6-up would crush each thumb to ~60px;
     3-up keeps the year label legible and lets 6+ years stack in two
     rows. align-items:start so cells without thumbs don't stretch to
     match thumb-bearing neighbours. */
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 10px;
}
.cardstock .peer {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  /* Tight stack — no extra gap between thumb/year/price so the year
     reads as the product label directly under the image. */
  gap: 2px;
  padding: 4px 4px 6px;
  background: transparent;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: border-color 200ms ease, transform 200ms ease;
}
.cardstock .peer:hover {
  border-color: var(--slate);
  transform: translateY(-2px);
}
/* Fixed compact height instead of aspect-ratio so wide hobby-box
   images don't leave a tall portrait container with dead space top
   and bottom. Image scales to fit, preserving its own aspect. */
.cardstock .peer-thumb {
  height: 78px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0;
}
.cardstock .peer-thumb img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  filter: drop-shadow(0 4px 6px rgba(10, 10, 10, 0.24))
          drop-shadow(0 1px 2px rgba(10, 10, 10, 0.16));
}
.cardstock .peer-thumb-empty {
  width: 100%; height: 78px;
  display: grid; place-items: center;
  color: var(--ink-3); font-size: 18px;
}
.cardstock .peer .year {
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--ink-num);
  mix-blend-mode: multiply;
  line-height: 1.1;
  margin-top: 4px;
}
.cardstock .peer.current { border-color: var(--slate); }
.cardstock .peer.current .year { color: var(--slate); }
.cardstock .peer .price {
  font-size: 14px; font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  mix-blend-mode: multiply;
  line-height: 1.1;
}
.cardstock .peer .price.empty { color: var(--ink-3); opacity: 0.3; }
.cardstock .peers-grid[data-collapsed] .peer-overflow { display: none; }
.cardstock .peers-more-btn {
  display: block;
  margin: 12px auto 0;
  padding: 6px 14px;
  font: inherit;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-num);
  background: transparent;
  border: 1px solid var(--slate);
  border-radius: 4px;
  cursor: pointer;
  mix-blend-mode: multiply;
  transition: background 200ms ease;
}
.cardstock .peers-more-btn:hover { background: rgba(0, 0, 0, 0.04); }

/* ===================================================================
   DESCRIPTION TILE — top of the right rail. Stacks above the peers tile,
   matches its tone (h2 in the same eyebrow style). Holds the editorial
   lede (3-line clamp + inline "more") and, for admins, the enrichment
   trigger forms + status banners.
   =================================================================== */
.cardstock .description-card {
  padding: 22px 32px 22px;
  margin-bottom: 28px;
}
.cardstock .description-card h2 {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-num);
  mix-blend-mode: multiply;
  margin: 0 0 14px;
}
.cardstock .description-card .image-editorial {
  /* No vertical gap — the lede is the only child, the admin block sits
     in its own .description-admin section with its own divider. */
  gap: 0;
}
.cardstock .description-card .lede-empty {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-3);
  mix-blend-mode: multiply;
}
.cardstock .description-card .image-editorial + .chases-section,
.cardstock .description-card .lede-empty + .chases-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule-soft);
}
.cardstock .description-card .description-admin {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule-soft);
  display: flex; flex-direction: column;
  gap: 8px;
}
.cardstock .description-card .description-admin .admin-section-head {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
  mix-blend-mode: multiply;
}
.cardstock .description-card .description-admin .enrichment-actions {
  margin-top: 0;
}

/* ===================================================================
   EDITORIAL BYLINE — "By CardStock Editorial · Updated Jun 12, 2026".
   Pairs with the Article schema datePublished/dateModified so Google
   doesn't strip the rich result. Muted to sit under the H2 without
   competing with the lede that follows.
   =================================================================== */
.cardstock .editorial-byline {
  margin: -6px 0 14px;
  font-size: 11px;
  font-style: italic;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  mix-blend-mode: multiply;
}
.cardstock .editorial-byline .byline-author {
  font-style: normal;
  font-weight: 600;
  color: var(--ink-2);
}
.cardstock .editorial-byline .byline-sep {
  margin: 0 6px;
  color: var(--ink-3);
}
.cardstock .editorial-byline time { font-variant-numeric: tabular-nums; }

/* ===================================================================
   THIS BOX — auto-odds headline + average box-hits accordion. Lives
   inside the description card, after the lede. Both blocks are
   SEO-load-bearing (featured-snippet targets) so they need to be
   visible in the default page state, not hidden behind interaction.
   The <details open> keeps the box-hits list expanded by default;
   collectors who scan past it can collapse it manually.
   =================================================================== */
.cardstock .this-box {
  margin: 14px 0 4px;
  padding: 12px 14px;
  background: rgba(235, 231, 210, 0.55);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  mix-blend-mode: multiply;
}
.cardstock .this-box-headline {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--ink);
}
.cardstock .this-box-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  flex: 0 0 auto;
}
.cardstock .this-box-value {
  font-weight: 600;
  color: var(--ink-num);
}
.cardstock .box-hits { margin: 0; }
.cardstock .box-hits[open] { margin-top: 4px; }
.cardstock .box-hits-summary {
  cursor: pointer;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 4px 0;
  list-style: none;
}
.cardstock .box-hits-summary::-webkit-details-marker { display: none; }
.cardstock .box-hits-summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
  font-size: 9px;
  transition: transform 140ms ease;
  color: var(--ink-3);
}
.cardstock .box-hits[open] .box-hits-summary::before { transform: rotate(90deg); }
.cardstock .box-hits-list {
  margin: 6px 0 2px;
  padding: 0;
  list-style: none;
  display: flex; flex-direction: column;
  gap: 3px;
}
.cardstock .box-hits-list li {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12px;
  color: var(--ink);
}
.cardstock .box-hit-count {
  flex: 0 0 22px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink-num);
}
.cardstock .box-hit-desc { flex: 1 1 auto; }

/* ===================================================================
   TOP-IMAGE ADMIN STRIP — compact image-edit + lookups bar above the
   chase rail / product image. Admin-only.
   =================================================================== */
.cardstock .top-image-admin {
  margin: 0 36px 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  display: flex; flex-direction: column;
  gap: 6px;
}
.cardstock .top-image-admin .image-edit-panel {
  margin-top: 0;
  padding: 6px 8px;
  font-size: 11px;
}
/* Image-tools disclosure — collapsed when an image already exists. The
   summary is a small, quiet toggle so it doesn't compete with the artwork. */
.cardstock .image-tools-disclosure { width: 100%; }
.cardstock .image-tools-summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-soft, #586069);
  user-select: none;
  padding: 1px 2px;
}
.cardstock .image-tools-summary::-webkit-details-marker { display: none; }
.cardstock .image-tools-summary::before {
  content: '\25B8'; /* ▸ */
  font-size: 9px;
  line-height: 1;
  transition: transform .12s ease;
}
.cardstock .image-tools-disclosure[open] .image-tools-summary::before {
  transform: rotate(90deg);
}
.cardstock .image-tools-summary:hover { color: var(--accent-deep, #0366d6); }
.cardstock .image-tools-disclosure[open] .image-tools-summary { margin-bottom: 6px; }
.cardstock .top-image-admin .source-links {
  margin-top: 0;
  font-size: 11px;
}

/* ===================================================================
   IMAGE-EDIT PANEL (admin) — restyled to cardstock tone
   =================================================================== */
.cardstock .image-edit-panel {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(40,40,40,0.18);
  border-radius: 4px;
  font-size: 12px;
}
.cardstock .image-edit-panel form { margin: 0; display: flex; gap: 4px; align-items: center; }
.cardstock .image-edit-panel input[type=url] {
  flex: 1 1 200px;
  min-width: 0;
  padding: 4px 8px;
  font: 400 12px/1.3 var(--font-stack);
  color: var(--ink);
  background: var(--paper-hi);
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.cardstock .image-edit-panel select {
  font: 500 11px/1 var(--font-stack);
  color: var(--ink);
  background: var(--paper-hi);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 4px 6px;
}
.cardstock .image-edit-panel button {
  font: 700 11px/1 var(--font-stack);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-hi);
  background: var(--accent);
  border: 0;
  border-radius: 3px;
  padding: 5px 9px;
  cursor: pointer;
  transition: background 150ms ease;
}
.cardstock .image-edit-panel button:hover { background: var(--accent-deep); }
.cardstock .image-edit-panel button.image-btn-del,
.cardstock .image-edit-panel button.image-btn-restore {
  background: rgba(40, 40, 40, 0.55);
}
.cardstock .image-edit-panel button.image-btn-del:hover,
.cardstock .image-edit-panel button.image-btn-restore:hover {
  background: rgba(40, 40, 40, 0.85);
}
/* BG button — purple to match the dollar-price ink. */
.cardstock .image-edit-panel button.image-btn-bg {
  background: rgba(88, 28, 135, 0.95);
}
.cardstock .image-edit-panel button.image-btn-bg:hover {
  background: rgba(70, 18, 110, 1);
}
.cardstock .image-edit-panel:not(.has-image) .image-bg-form,
.cardstock .image-edit-panel:not(.has-image) .image-trim-form,
.cardstock .image-edit-panel:not(.has-image) .image-restore-form,
.cardstock .image-edit-panel:not(.has-image) .image-delete-form { display: none; }
.cardstock .image-edit-panel:not(.has-backup) .image-restore-form { display: none; }
.cardstock .image-edit-panel.busy { opacity: 0.65; pointer-events: none; }
.cardstock .image-edit-panel button[disabled] { cursor: wait; opacity: 0.7; }
.cardstock .image-edit-panel .image-spinner {
  display: inline-block;
  width: 10px; height: 10px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: rgba(255,255,255,0.95);
  border-radius: 50%;
  animation: cs-spin 700ms linear infinite;
}
@keyframes cs-spin { to { transform: rotate(360deg); } }

/* Source-lookup links row (admin), beneath image buttons */
.cardstock .source-links {
  margin-top: 8px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cardstock .source-links a {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  transition: color 150ms ease, border-color 150ms ease;
}
.cardstock .source-links a:hover {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* Enrichment actions cluster below editorial (admin) */
.cardstock .enrichment-actions {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 14px;
  margin-top: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.18);
  border: 1px dashed var(--rule);
  border-radius: 4px;
}
.cardstock .enrichment-actions form { margin: 0; }
.cardstock .enrichment-actions .ea-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
}
.cardstock .enrichment-actions button.primary,
.cardstock .enrichment-actions button.secondary {
  font: 700 12px/1 var(--font-stack);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 0; border-radius: 3px;
  cursor: pointer;
  transition: background 150ms ease;
}
.cardstock .enrichment-actions button.primary {
  color: var(--paper-hi); background: var(--accent);
}
.cardstock .enrichment-actions button.primary:hover { background: var(--accent-deep); }
.cardstock .enrichment-actions button.secondary {
  color: var(--ink); background: var(--paper-hi);
  border: 1px solid var(--rule);
}
.cardstock .enrichment-actions button.secondary:hover {
  background: var(--paper);
}

/* Enrichment status banners (content + format share the same look) */
.cardstock #fmt-enrich-banner,
.cardstock #content-enrich-banner {
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 12px;
  display: none;
}
.cardstock #fmt-enrich-banner[data-state="pending"],
.cardstock #fmt-enrich-banner[data-state="running"],
.cardstock #content-enrich-banner[data-state="pending"],
.cardstock #content-enrich-banner[data-state="running"] {
  display: block;
  background: rgba(72, 88, 106, 0.18);
  color: var(--ink);
  border-color: rgba(72, 88, 106, 0.40);
}
.cardstock #fmt-enrich-banner[data-state="success"],
.cardstock #fmt-enrich-banner[data-state="ok"],
.cardstock #content-enrich-banner[data-state="success"],
.cardstock #content-enrich-banner[data-state="ok"] {
  display: block;
  background: rgba(90, 113, 65, 0.22);
  color: var(--ink-num);
  border-color: rgba(90, 113, 65, 0.50);
}
.cardstock #fmt-enrich-banner[data-state="error"],
.cardstock #fmt-enrich-banner[data-state="err"],
.cardstock #content-enrich-banner[data-state="error"],
.cardstock #content-enrich-banner[data-state="err"] {
  display: block;
  background: rgba(161, 60, 44, 0.18);
  color: var(--ink-num);
  border-color: rgba(161, 60, 44, 0.55);
}
.cardstock #content-enrich-banner[data-state="confirm"] {
  display: block;
  background: rgba(207, 165, 73, 0.18);
  color: var(--ink);
  border-color: rgba(207, 165, 73, 0.55);
}
.cardstock #content-enrich-banner .confirm-msg { margin-bottom: 6px; }
.cardstock #content-enrich-banner .confirm-actions {
  display: flex; gap: 6px;
}
.cardstock #content-enrich-banner .confirm-actions button {
  font: 700 11px/1 var(--font-stack);
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 0; border-radius: 3px; padding: 5px 10px;
  cursor: pointer;
}
.cardstock #content-enrich-banner .confirm-yes {
  background: var(--accent); color: var(--paper-hi);
}
.cardstock #content-enrich-banner .confirm-yes:hover { background: var(--accent-deep); }
.cardstock #content-enrich-banner .confirm-no {
  background: rgba(40,40,40,0.55); color: var(--paper-hi);
}
.cardstock #content-enrich-banner .confirm-no:hover { background: rgba(40,40,40,0.85); }
.cardstock #fmt-enrich-banner .stage-list,
.cardstock #content-enrich-banner .stage-list {
  margin: 6px 0 0 16px; padding: 0;
  font-size: 11px;
}
.cardstock #fmt-enrich-banner .stage-list li.done,
.cardstock #content-enrich-banner .stage-list li.done    { color: var(--green); }
.cardstock #fmt-enrich-banner .stage-list li.current,
.cardstock #content-enrich-banner .stage-list li.current { font-weight: 700; }

/* ===================================================================
   PENDING REVIEW (admin) — keep functional, restyle wrapper
   =================================================================== */
.cardstock .review-card {
  padding: 22px 28px;
  margin-bottom: 32px;
}
.cardstock .review-card h2 {
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-num);
  mix-blend-mode: multiply;
  margin: 0 0 6px;
}
.cardstock .review-card .meta {
  font-size: 11px; color: var(--ink-2);
  margin: 0 0 14px;
}
.cardstock .review-card .review-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 720px) {
  .cardstock .review-card .review-grid { grid-template-columns: 1fr; }
}
.cardstock .review-card label {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
}
.cardstock .review-card input[type=text],
.cardstock .review-card input[type=url],
.cardstock .review-card textarea,
.cardstock .review-card select {
  font: 400 13px/1.4 var(--font-stack);
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  background: var(--paper-hi);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 5px 8px;
}
.cardstock .review-card .chase-row {
  border-top: 1px dashed var(--rule-soft);
  padding-top: 10px;
  margin-top: 10px;
}
.cardstock .review-card .review-buttons {
  margin-top: 16px;
  display: flex; gap: 10px;
}
.cardstock .review-card button.approve,
.cardstock .review-card button.reject {
  font: 700 12px/1 var(--font-stack);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 0; border-radius: 3px;
  cursor: pointer;
}
.cardstock .review-card button.approve { color: var(--paper-hi); background: var(--green); }
.cardstock .review-card button.reject  { color: var(--paper-hi); background: var(--red); }

/* ===================================================================
   Misc — small chip & utility
   =================================================================== */
.cardstock .product-id-chip {
  position: absolute;
  bottom: 8px; right: 16px;
  font: 600 10px/1 "Roboto Mono", "SF Mono", Menlo, monospace;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  padding: 3px 6px;
  background: rgba(255,255,255,0.18);
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  z-index: 5;
}

/* a11y */
@media (prefers-reduced-motion: reduce) {
  .cardstock .top-panel, .cardstock .peer { transition: none; transform: rotate(0); }
}
.cardstock *:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1099px) and (min-width: 901px) {
  .cardstock .price-deal-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .cardstock .deal-score {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 900px) {
  /* Mobile-only: flow the panels as a flex column. Admin tools is no
     longer a top-level panel — it's nested inside .pricing.
     `.top-row` collapses to `display: contents` so its children
     (.top-panel, .peers) behave as direct grandchildren of .shell —
     this preserves the mobile order rules below without re-wiring them. */
  .cardstock .shell {
    padding: 16px 16px 56px;
    display: flex;
    flex-direction: column;
    /* Stacked panels (top-panel / peers / pricing) need breathing
       room between them on mobile — desktop's grid gap doesn't carry
       over once .top-row collapses to display:contents. */
    gap: 18px;
  }
  .cardstock .top-row,
  .cardstock .top-row:has(.top-right) {
    display: contents;
  }
  /* .top-right also collapses so its children flow as direct grandchildren
     of .shell — preserves natural document order (description above peers,
     both under the hero). */
  .cardstock .top-right { display: contents; }
  .cardstock .shell > .crumbs       { order: 0; }
  .cardstock .top-row > .top-panel          { order: 1; }
  .cardstock .top-right > .charts-card      { order: 2; }
  .cardstock .top-right > .description-card { order: 3; }
  .cardstock .top-right > .chases-card      { order: 4; }
  .cardstock .top-right > .peers            { order: 5; }
  /* Checklist panels are direct children of .shell with no order of their
     own — without these they default to order:0 and pile up at the very top
     of the mobile column (above the hero). Pin them under the product info,
     above pricing, mirroring desktop DOM order. */
  .cardstock .shell > .checklist-finder     { order: 6; }
  .cardstock .shell > .checklist-teams      { order: 7; }
  .cardstock .shell > .review-card          { order: 8; }
  .cardstock .shell > .pricing              { order: 9; }
  /* FAQ must come AFTER everything else. Without an explicit order it
     defaults to 0 and lands next to .crumbs at the very top of the
     mobile flex column — which is exactly where it was appearing on
     mobile despite sitting last in DOM order. */
  .cardstock .shell > .faq-section          { order: 10; }

  .cardstock .crumbs { font-size: 13px; padding: 2px 4px; }

  /* Price + deal score share a row when they fit, otherwise the deal-
     score wraps to the next line. Wrapped state is LEFT-aligned (kill
     the desktop's flex-end + margin-left:auto) so the chip sits under
     the dollar sign, not pushed to the far right. */
  .cardstock .price-deal-row {
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  .cardstock .price-block { flex: 0 1 auto; min-width: 0; }
  .cardstock .price-deal-row .deal-score {
    flex: 0 0 auto;
    align-items: flex-start;
    text-align: left;
    margin-left: 0;
  }
  .cardstock .price-deal-row .deal-score .label,
  .cardstock .price-deal-row .deal-score .score-meta { text-align: left; }
  .cardstock .price-deal-row .deal-score .cells { justify-content: flex-start; }

  .cardstock .top-panel {
    padding: 16px 22px 24px;
    transform: rotate(0);
    gap: 14px;
  }
  /* Smaller leather corners on mobile so they read as accents,
     not dominant chrome. */
  .cardstock .top-panel .paper-corner { width: 26px; height: 26px; }
  .cardstock .top-head { padding-bottom: 10px; }
  .cardstock .eyebrow { font-size: 15px; margin-bottom: 2px; }
  .cardstock .title { font-size: 45px; line-height: 1.0; }

  /* Stack the title-row vertically on mobile so the wider title+price
     block isn't competing with the deal-score-line for horizontal
     space. Deal-score-line drops below the price, left-aligned with
     the title's leading edge. */
  .cardstock .top-head-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cardstock .top-head-price {
    align-items: flex-start;
    text-align: left;
  }
  /* Scale the sticker-price down so it doesn't overflow narrow
     viewports. The white-halo offsets scale with --s automatically
     (see .price-mask .d filter). */
  .cardstock .top-image .image-price-block .price-block .price-mask { --s: 0.10; }

  .cardstock .top-body {
    grid-template-columns: 1fr;
    gap: 20px;
    /* Break the grid-item min-content sizing chain. Without min-width:0,
       the hobby box image (intrinsic ~1300px wide) forces .top-body —
       and every wrapping container down to .image-frame — to that
       intrinsic size, so `max-width: 100%` on the image computes against
       the bloated grid track and the whole stack pokes ~50px past the
       .top-panel's right edge on phone-sized viewports. min-width:0 on
       the grid item itself + on .top-image (the inner flex container)
       lets each shrink to its parent's actual content width. */
    min-width: 0;
  }
  .cardstock .top-image { min-width: 0; }
  .cardstock .top-image .image-frame { min-width: 0; }

  /* Mobile stack order: price column leads (the headline number is what
     buyers compare at-a-glance), then the image column. The chase rail
     now lives in its own .chases-card panel further down the stack. */
  .cardstock .top-price-col { order: 1; }
  .cardstock .top-image { order: 2; }
  .cardstock .chase-rail {
    gap: 10px 14px;
    padding: 0;
    overflow-x: auto;
  }
  .cardstock .chase-name { font-size: 10px; text-align: center; }
  /* Tighten the image-frame on mobile — desktop's 24/36/12 padding
     eats too much width on a phone, and the min-height creates dead
     space when the image is shorter. */
  .cardstock .top-image .image-frame {
    padding: 8px 4px 4px;
    min-height: 0;
  }
  .cardstock .top-image .image-frame img { max-height: 280px; }
  /* Admin strip mirrors the tightened frame margin so it doesn't dangle
     off the edge of the image on phones. */
  .cardstock .top-image-admin { margin: 0 4px 10px; }
  .cardstock .description-card { padding: 18px 18px; }
  .cardstock .image-divider { margin: 12px 0 10px; }

  .cardstock .deal-score .cell { width: 13px; height: 18px; }
  .cardstock .ranges { gap: 9px; }

  .cardstock .siblings .row { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cardstock .sib .sib-label { font-size: 11px; }
  .cardstock .sib .sib-price { font-size: 14px; }

  .cardstock .image-editorial p.lede { font-size: 14px; }

  /* Hide the packing-flow (cards/packs/boxes count icons) on mobile —
     the visual is wide and crowds the editorial column on phones. */
  .cardstock .image-editorial .packing-flow { display: none; }

  .cardstock .pricing { padding: 22px 22px 22px; }
  .cardstock .pricing-head { flex-direction: column; align-items: flex-start; gap: 14px; }

  .cardstock table.pricing-table { font-size: 13px; }
  .cardstock table.pricing-table thead th { padding: 0 10px 8px; }
  .cardstock table.pricing-table td { padding: 8px 10px; }
  .cardstock td.retailer { font-size: 14px; gap: 9px; }
  .cardstock td.retailer .favicon { width: 20px; height: 20px; flex: 0 0 20px; }
  .cardstock td.price { font-size: 16px; }

  .cardstock .peers { padding: 18px 16px; }
  .cardstock .peers-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cardstock .peer { padding: 5px 4px 7px; }
  .cardstock .peer .year { font-size: 12px; }
  .cardstock .peer .price { font-size: 13px; }
}

@media (max-width: 560px) {
  .cardstock .shell { padding: 12px 12px 48px; }
  .cardstock .crumbs { gap: 10px; font-size: 12px; margin: 0 0 8px; }
  .cardstock .top-panel { padding: 14px 16px 20px; gap: 12px; }
  .cardstock .eyebrow { font-size: 13px; letter-spacing: 0.04em; margin-bottom: 1px; }
  .cardstock .title { font-size: 39px; letter-spacing: 0; line-height: 1.0; }
  /* Further-shrink the sticker-price on small phones — at --s:0.08
     the digits sit around 38px tall, balanced against the smaller
     title above. */
  .cardstock .top-image .image-price-block .price-block .price-mask { --s: 0.08; }

  .cardstock .top-image .image-frame { min-height: 180px; }
  .cardstock .top-image .image-frame img { max-height: 260px; }

  .cardstock .deal-score .cell { width: 11px; height: 16px; }
  .cardstock .siblings .row { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .cardstock .peel-br {
    box-shadow:
      0 18px 28px -12px rgba(45, 28, 10, 0.34),
      0 4px 8px -2px rgba(45, 28, 10, 0.20),
      12px 14px 20px -8px rgba(20, 12, 4, 0.30),
      inset 0 1px 0 rgba(255, 250, 232, 0.55);
  }
  .cardstock .peel-br::after { width: 72px; height: 72px; }

  .cardstock .pricing { padding: 18px 14px 18px; }
  .cardstock .pricing-head h2 { font-size: 17px; }
  .cardstock table.pricing-table thead th { font-size: 9px; }
  .cardstock td.retailer { font-size: 13px; gap: 8px; }
  .cardstock td.retailer .favicon { width: 18px; height: 18px; flex: 0 0 18px; }
  .cardstock td.price { font-size: 15px; }

  .cardstock .peers { padding: 14px 12px; }
  .cardstock .peers-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cardstock .peer .year { font-size: 12px; }
  .cardstock .peer .price { font-size: 13px; }

  .cardstock .chase-portrait { width: 44px; height: 44px; flex: 0 0 44px; }
}

/* Toast (used by image-edit panel AJAX). Position is fixed at the
   viewport bottom so it floats above whatever section the operator
   is currently in. */
#image-action-toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translate(-50%, 16px);
  background: #1a1a1a;
  color: #f5f5f3;
  padding: 9px 16px;
  border-radius: 4px;
  font: 600 12px/1.3 "Roboto", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  z-index: 9000;
}
#image-action-toast.show { opacity: 1; transform: translate(-50%, 0); }
#image-action-toast.error { background: #7a2f17; }

/* ===================================================================
   FAQ — visible Q&A accordion mirroring the FAQPage JSON-LD. Last block
   on the page. Reads as a numbered list of notes pinned to the same
   sheet of paper, not a series of bordered widget cards. Numbered Q1/Q2
   prefix gives visible rhythm even when every item is collapsed.

   Design moves vs the earlier rewrite:
     * No per-item border-boxes — items are separated by a single dashed
       rule between them, like the description-card's section dividers.
     * Question typography reads as a headline (15px / 700 / ink-num),
       not a caption.
     * Numbered Q1/Q2/Q3 prefix in mono, muted, tabular.
     * Answer indented and prefixed with a 2px accent rule on the left so
       it reads as a quoted note attached to the question above.
     * Custom `+/−` toggle on the right edge, crossfading on state — no
       chevron. The whole row is the click target.
     * Hover lifts the question to --accent-deep and tints the row with
       paper-cream.
   =================================================================== */
.cardstock .faq-section {
  padding: 28px 36px 32px;
  margin-top: 36px;
  margin-bottom: 28px;
}
.cardstock .faq-section h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-num);
  mix-blend-mode: multiply;
  margin: 0 0 6px;
}
.cardstock .faq-section h2::after {
  content: "";
  display: block;
  margin-top: 8px;
  height: 1px;
  background: var(--rule);
  opacity: 0.85;
}
.cardstock .faq-list {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}
.cardstock .faq-item {
  border: 0;
  border-top: 1px dashed var(--rule-soft);
  background: transparent;
  mix-blend-mode: multiply;
  transition: background 160ms ease;
}
.cardstock .faq-item:first-child { border-top: 0; }
.cardstock .faq-item:hover { background: rgba(235, 231, 210, 0.42); }
.cardstock .faq-item[open] { background: rgba(235, 231, 210, 0.62); }

.cardstock .faq-q {
  list-style: none;
  cursor: pointer;
  padding: 16px 12px 16px 14px;
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  align-items: baseline;
  gap: 14px;
  outline: none;
  position: relative;
}
.cardstock .faq-q::-webkit-details-marker,
.cardstock .faq-q::marker { display: none; content: ""; }

.cardstock .faq-num {
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  align-self: center;
}
.cardstock .faq-q-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-num);
  letter-spacing: -0.005em;
  transition: color 140ms ease;
}
.cardstock .faq-q::after {
  content: "+";
  align-self: center;
  justify-self: end;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink-3);
  transition: transform 200ms ease, color 140ms ease;
}
.cardstock .faq-item[open] .faq-q::after {
  content: "\2212"; /* unicode minus */
  color: var(--accent-deep);
  transform: rotate(180deg);
}
.cardstock .faq-q:hover .faq-q-text,
.cardstock .faq-item[open] .faq-q .faq-q-text {
  color: var(--accent-deep);
}
.cardstock .faq-q:hover .faq-num { color: var(--ink-2); }
.cardstock .faq-q:focus-visible {
  outline: 2px solid rgba(122, 47, 23, 0.35);
  outline-offset: -2px;
}

.cardstock .faq-a {
  margin: 0 14px 18px 66px; /* aligns the answer body to the Q text column */
  padding: 4px 0 4px 14px;
  border-left: 2px solid var(--accent);
  font-size: 13.5px;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.6;
  letter-spacing: 0.005em;
}
.cardstock .faq-a p:first-child { margin-top: 0; }
.cardstock .faq-a p:last-child { margin-bottom: 0; }

/* Tighten the layout on narrow screens so the 3-column grid doesn't
   squeeze the question text into a 1-2 word column. */
@media (max-width: 620px) {
  .cardstock .faq-section { padding: 22px 18px 24px; }
  .cardstock .faq-q {
    grid-template-columns: 30px 1fr 18px;
    gap: 10px;
    padding: 14px 8px 14px 10px;
  }
  .cardstock .faq-num { font-size: 10px; }
  .cardstock .faq-q-text { font-size: 14px; }
  .cardstock .faq-a {
    margin-left: 50px;
    font-size: 13px;
  }
}

/* ───────────────────────────────────────────────────────────────────
   Checklist finder — "Find your player in this box". A .panel paper tile
   with a search input that lazy-loads the authoritative manufacturer
   checklist and renders a player's full card list (subset · serial · auto
   · pull odds). Tier inks reuse the chase-rail palette so a /1 / auto /
   patch reads the same colour language as the rookie rail above.
   ─────────────────────────────────────────────────────────────────── */
.cardstock .checklist-finder {
  margin-top: 22px;
  padding: 22px 24px 24px;
}
.cardstock .checklist-finder .cf-head { margin-bottom: 14px; }
.cardstock .checklist-finder h2 { margin: 0 0 4px; }
.cardstock .cf-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 60ch;
}
.cardstock .cf-sub strong { color: var(--ink); }

/* search bar — paper-inset field with a focus ring in the accent */
.cardstock .cf-searchbar {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 520px;
}
.cardstock .cf-icon {
  position: absolute;
  left: 13px;
  width: 18px; height: 18px;
  color: var(--ink-3);
  pointer-events: none;
}
.cardstock .cf-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  font-family: var(--font-stack);
  font-size: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--rule);
  border-radius: 7px;
  box-shadow: inset 0 1px 3px rgba(40, 40, 40, 0.12);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cardstock .cf-input::placeholder { color: var(--ink-3); }
.cardstock .cf-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 1px 3px rgba(40, 40, 40, 0.12),
              0 0 0 3px rgba(160, 68, 37, 0.16);
}

/* Chase board: rookie + veteran groups, each a wrap of player chips. */
.cardstock .cf-chase {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}
.cardstock .cf-chase-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
}
.cardstock .cf-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
}
.cardstock .cf-chips-label {
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 2px;
}
/* Player chip: a transparent headshot cutout standing on the chip's bottom
   edge + a two-line First / LASTNAME tag. No avatar circle — the cutout sits
   on a translucent card; the chase tier shows in the bottom-border accent.
   Fixed width so the chips tile in a tidy, consistent grid; long names step
   the font down (.cf-chip-long / .cf-chip-xlong) instead of widening. */
.cardstock .cf-chip {
  --tier: #c2c8d0;
  font-family: var(--font-stack);
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  width: 118px;
  box-sizing: border-box;
  padding: 4px 9px 0 6px;           /* bottom 0 → cutout meets the border */
  min-height: 46px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-bottom: 2px solid var(--tier);
  border-radius: 9px;
  cursor: pointer;
  color: var(--ink);
  overflow: hidden;
  transition: box-shadow 0.13s, transform 0.13s;
}
.cardstock .cf-chip:hover {
  box-shadow: 0 2px 10px rgba(11, 37, 69, 0.14);
  transform: translateY(-1px);
}
.cardstock .cf-chip-av {
  flex: 0 0 auto;
  align-self: flex-end;
  width: 30px;                      /* fixed → every chip gets the same name area */
  height: 40px;
  display: block;
}
.cardstock .cf-chip-av img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}
.cardstock .cf-chip-ini {
  height: 40px;
  width: 30px;
  display: flex; align-items: flex-end; justify-content: center;
}
.cardstock .cf-chip-ini span {
  font-size: 13px; font-weight: 800; color: #9aa3ad; letter-spacing: 0.02em;
  padding-bottom: 5px;
}
.cardstock .cf-chip-name {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  line-height: 1.04;
  padding-bottom: 7px;              /* lift the name off the bottom border */
}
.cardstock .cf-chip-first {
  font-size: 9px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.cardstock .cf-chip-last {
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
/* long-name steps: shrink the font so the name fits the fixed chip width */
.cardstock .cf-chip-long  .cf-chip-last  { font-size: 9px; }
.cardstock .cf-chip-long  .cf-chip-first { font-size: 8px; }
.cardstock .cf-chip-xlong .cf-chip-last  { font-size: 7.5px; letter-spacing: 0; }
.cardstock .cf-chip-xlong .cf-chip-first { font-size: 7.5px; }
.cardstock .cf-chip.chase-t4 { --tier: #d4351c; }
.cardstock .cf-chip.chase-t3 { --tier: #f5a623; }
.cardstock .cf-chip.chase-t2 { --tier: #2a9bd8; }
.cardstock .cf-chip.chase-t1 { --tier: #9aa3ad; }

.cardstock .cf-status {
  font-size: 12.5px;
  color: var(--ink-3);
  min-height: 1em;
  margin: 14px 0 6px;
}

/* results — a stack of collapsible per-player blocks */
.cardstock .cf-results { display: flex; flex-direction: column; gap: 9px; }
.cardstock .cf-player {
  border: 1px solid var(--rule-soft);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.34);
  overflow: hidden;
}
.cardstock .cf-player-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.cardstock .cf-player-head::-webkit-details-marker { display: none; }
.cardstock .cf-player-head::after {
  content: "▸";
  margin-left: auto;
  color: var(--ink-3);
  font-size: 12px;
  transition: transform 0.15s;
}
.cardstock .cf-player[open] .cf-player-head::after { transform: rotate(90deg); }
.cardstock .cf-player[open] .cf-player-head {
  border-bottom: 1px solid var(--rule-soft);
}
.cardstock .cf-pname {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}
.cardstock .cf-pmeta {
  font-size: 12.5px;
  color: var(--ink-3);
}
.cardstock .cf-pmeta strong { color: var(--red); font-weight: 700; }
.cardstock .cf-pcount {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

/* parent-family grouping inside an expanded player */
.cardstock .cf-groups { padding: 3px 0 6px; }
.cardstock .cf-group + .cf-group { border-top: 1px solid var(--rule-soft); }
.cardstock .cf-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 3px;
  border-left: 3px solid var(--tier-ink, #7d8590);
}
.cardstock .cf-gname {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-2);
}
.cardstock .cf-gcount {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  background: rgba(40, 40, 40, 0.07);
  border-radius: 999px;
  padding: 1px 7px;
}

/* one card row inside a family group */
.cardstock .cf-cards { margin: 0; padding: 0; list-style: none; }
.cardstock .cf-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 17px;
  font-size: 13px;
}
.cardstock .cf-dot {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--tier-ink, #7d8590);
}
.cardstock .cf-tier-1 { --tier-ink: #7d8590; }
.cardstock .cf-tier-2 { --tier-ink: #1c6f9e; }
.cardstock .cf-tier-3 { --tier-ink: #9c6a00; }
.cardstock .cf-tier-4 { --tier-ink: #b3271a; }
/* condensed variation label (name + optional finish/season subtext) */
.cardstock .cf-label {
  flex: 1 1 40%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cardstock .cf-label-name {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.25;
}
.cardstock .cf-sub {
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.2;
}
.cardstock .cf-cnum {
  flex: none;
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--ink-3);
}
.cardstock .cf-tags { flex: none; display: flex; gap: 4px; }
.cardstock .cf-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.cardstock .cf-t-num  { color: #fff; background: #7a2f17; }
.cardstock .cf-t-auto { color: #fff; background: var(--accent); }
.cardstock .cf-t-rc   { color: #fff; background: var(--green); }
.cardstock .cf-t-mem  { color: #fff; background: var(--slate); }
.cardstock .cf-t-shared { color: #fff; background: #6d4ca3; }
.cardstock .cf-odds {
  flex: none;
  width: 17ch;
  text-align: right;
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .cardstock .checklist-finder { padding: 18px 14px 20px; }
  .cardstock .cf-card {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .cardstock .cf-label { flex: 1 1 100%; order: 1; }
  .cardstock .cf-dot { order: 0; }
  .cardstock .cf-cnum { order: 0; }
  .cardstock .cf-tags { order: 2; }
  .cardstock .cf-odds {
    order: 3;
    width: auto;
    margin-left: auto;
    text-align: right;
  }
}

/* ───────────────────────────────────────────────────────────────────
   Chase by team — group-break guide. A second .panel sharing the
   checklist data: collapsed team rows → players → family-grouped cards.
   Reuses the .cf-* card/group styling for the deepest level.
   ─────────────────────────────────────────────────────────────────── */
.cardstock .checklist-teams {
  margin-top: 22px;
  padding: 22px 24px 24px;
}
.cardstock .checklist-teams .cf-head { margin-bottom: 14px; }
.cardstock .checklist-teams h2 { margin: 0 0 4px; }
.cardstock .ct-status {
  font-size: 12.5px;
  color: var(--ink-3);
  min-height: 1em;
  margin-bottom: 6px;
}

/* shared little stat readout: bold number + muted label */
.cardstock .ct-stats { display: flex; gap: 12px; flex: none; }
.cardstock .ct-stat {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.cardstock .ct-stat b {
  font-family: "Roboto Mono", ui-monospace, monospace;
  font-weight: 700;
  color: var(--ink);
  margin-right: 1px;
}

/* sort toolbar — alpha (default) / total cards / # autos */
.cardstock .ct-sort {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 12px;
}
.cardstock .ct-sort-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  margin-right: 2px;
}
.cardstock .ct-sort button {
  font-family: var(--font-stack);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.13s, border-color 0.13s, color 0.13s;
}
.cardstock .ct-sort button:hover { border-color: var(--accent); }
.cardstock .ct-sort button.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.cardstock .ct-results { display: flex; flex-direction: column; gap: 20px; }

/* priority sections — position + a tier-coloured label/rule encode the rank
   (Top Chase > Vet > Coveted > Other), so the ranking reads at a glance
   without leaning on row colour alone. Teams sort within each section. */
.cardstock .ct-section { display: flex; flex-direction: column; }
.cardstock .ct-section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.cardstock .ct-section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sec-ink, var(--ink-2));
  white-space: nowrap;
}
.cardstock .ct-section-count {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  background: rgba(40, 40, 40, 0.07);
  border-radius: 999px;
  padding: 1px 8px;
}
.cardstock .ct-section-rule {
  flex: 1 1 auto;
  height: 0;
  border-top: 2px solid var(--sec-ink, var(--rule));
  border-radius: 1px;
  opacity: 0.5;
}
.cardstock .ct-section-teams { display: flex; flex-direction: column; gap: 8px; }
.cardstock .sec-top     { --sec-ink: #b3271a; }
.cardstock .sec-vet     { --sec-ink: #6d4ca3; }
.cardstock .sec-coveted { --sec-ink: #9c6a00; }
.cardstock .sec-other   { --sec-ink: #6a737d; }

/* team level */
.cardstock .ct-team {
  border: 1px solid var(--rule-soft);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.34);
  overflow: hidden;
}
/* chase tint — a faint background wash flags the team's best chase, by
   priority: Top Chase rookie (red), tier-4 veteran (purple), Coveted (yellow). */
.cardstock .ct-team-top      { background: rgba(212, 53, 28, 0.08); }
.cardstock .ct-team-vet      { background: rgba(109, 76, 163, 0.10); }
.cardstock .ct-team-coveted  { background: rgba(245, 166, 35, 0.11); }
.cardstock .ct-team-head,
.cardstock .ct-player-head {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.cardstock .ct-team-head { padding: 11px 14px; }
.cardstock .ct-team-head::-webkit-details-marker,
.cardstock .ct-player-head::-webkit-details-marker { display: none; }
.cardstock .ct-team-head::after,
.cardstock .ct-player-head::after {
  content: "▸";
  color: var(--ink-3);
  font-size: 12px;
  transition: transform 0.15s;
}
.cardstock .ct-team[open] > .ct-team-head::after,
.cardstock .ct-player[open] > .ct-player-head::after { transform: rotate(90deg); }
.cardstock .ct-team[open] > .ct-team-head { border-bottom: 1px solid var(--rule-soft); }
.cardstock .ct-tname {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

/* player level (nested) */
.cardstock .ct-players { padding: 4px 6px 6px; }
.cardstock .ct-player { border-top: 1px solid rgba(40, 40, 40, 0.05); }
.cardstock .ct-player:first-child { border-top: none; }
.cardstock .ct-player-head { padding: 8px 10px; }
/* headshot cutout, scaled to the row height (transparent-bg PNG) */
.cardstock .ct-phead {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  display: flex; align-items: flex-end; justify-content: center;
  margin: -3px 2px -3px 0;
}
.cardstock .ct-phead img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.cardstock .ct-pid {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.cardstock .ct-pname {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
/* "Other team: …" — this card also signs into another roster (group break) */
.cardstock .ct-other {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
  line-height: 1.2;
}
.cardstock .ct-player .cf-groups { padding-left: 6px; }

/* player-name link to the player detail page (team + search panels). Keeps the
   name's type; signals it's a link on hover. cf-plink also tags the anchor for
   the JS click handler that navigates without toggling the <details>. */
.cardstock .cf-plink {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.cardstock .cf-plink:hover { color: var(--accent); text-decoration: underline; }
.cardstock .cf-plink-ic {
  margin-left: 4px;
  font-size: 0.82em;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.7;
}
.cardstock .cf-plink:hover .cf-plink-ic { opacity: 1; }
/* admin-only "+" affordance on an unmatched player — creates a hype row */
.cardstock .cf-plink-add .cf-plink-ic {
  color: var(--green, #2da44e);
  font-weight: 800;
  opacity: 0.85;
}

/* family level (nested, collapsed) — the "sets" under a player. Cards stay
   hidden until the family is expanded so a busy player isn't a wall of rows. */
.cardstock .ct-fam { border-top: 1px solid var(--rule-soft); }
.cardstock .ct-fam:first-child { border-top: none; }
.cardstock .ct-fam-head {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  padding: 7px 14px;
  border-left: 3px solid var(--tier-ink, #7d8590);
}
.cardstock .ct-fam-head::-webkit-details-marker { display: none; }
.cardstock .ct-fam-head::after {
  content: "▸";
  margin-left: auto;
  color: var(--ink-3);
  font-size: 11px;
  transition: transform 0.15s;
}
.cardstock .ct-fam[open] > .ct-fam-head::after { transform: rotate(90deg); }
.cardstock .ct-fam-head .cf-gcount { margin-left: 0; }
.cardstock .ct-fam > .cf-cards { padding-bottom: 4px; }

/* hype highlight — players on the curated chase board (tier ≥ 2) */
.cardstock .ct-player.is-hype { background: rgba(160, 68, 37, 0.05); }
.cardstock .ct-player.is-hype > .ct-player-head {
  box-shadow: inset 3px 0 0 var(--hype-ink, var(--accent));
}
.cardstock .ct-player.hype-2 { --hype-ink: #1c6f9e; }
.cardstock .ct-player.hype-3 { --hype-ink: #9c6a00; }
.cardstock .ct-player.hype-4 { --hype-ink: #b3271a; }
.cardstock .ct-hype {
  flex: none;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--hype-ink, var(--accent));
}
.cardstock .ct-player.hype-2 .ct-hype { background: #1c6f9e; }
.cardstock .ct-player.hype-3 .ct-hype { background: #9c6a00; }
.cardstock .ct-player.hype-4 .ct-hype { background: #b3271a; }

@media (max-width: 720px) {
  .cardstock .checklist-teams { padding: 18px 14px 20px; }
  .cardstock .ct-team-head, .cardstock .ct-player-head { flex-wrap: wrap; gap: 6px 10px; }
  .cardstock .ct-stats { gap: 10px; width: 100%; }
}
