/* checklist.cards — sister-site theme layer.
   Layered ON TOP of the shared chrome (base.html inline styles) and, on pages
   that load them, product_detail.css / player_cards.css / power_checklist.css.
   Design system (2026-07-31, ui-ux-pro-max pass): CardStock's paper/ink
   density language kept verbatim (Roboto, table.ds, ALL-CAPS labels, compact
   padding) with a distinct "ledger green" accent — the checkmark color:

     --chk-accent       #047857  (emerald-700 — 5.1:1 on white, link-safe)
     --chk-accent-deep  #065f46  (emerald-800 — hover / active)
     --chk-tint         #ecfdf5  (wash for active tabs / hovers)

   Scoping: body.site-checklist for chrome accents; page wrappers .chk-landing /
   .chk-index / .chkd for page layouts. Light theme only (site-wide). */

:root {
  --chk-accent: #047857;
  --chk-accent-deep: #065f46;
  --chk-tint: #ecfdf5;
  --chk-ink: #24292e;
  --chk-mut: #57606a;
  --chk-line: #d0d7de;
}

/* ── Chrome accents ─────────────────────────────────────────────────── */
.site-checklist .nav-brand--chk {
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; color: var(--chk-ink);
}
.site-checklist .chk-tick {
  width: 20px; height: 20px; color: var(--chk-accent); flex: 0 0 auto;
}
.site-checklist .chk-wordmark {
  font: 400 19px/1 "Roboto Mono", ui-monospace, monospace;
  letter-spacing: -0.5px; color: var(--chk-ink); white-space: nowrap;
}
.site-checklist .chk-wordmark b { font-weight: 400; color: var(--chk-accent); }
.site-checklist .nav-brand-tool { color: var(--chk-accent); }
.site-checklist .nav-brand-tool:hover { color: var(--chk-accent-deep); }
/* The nav product-search rows have no prices on this site — drop the dead
   "—" price column the shared renderer emits. */
.site-checklist .nav-search-price { display: none; }

/* Genre top-nav — replaces the cardstock breadcrumb (and the market
   flip-chip: checklists are geo-agnostic). Horizontal strip in the
   breadcrumb's grid cell; scrolls sideways on narrow screens. */
.chk-gnav {
  display: flex; align-items: center; gap: 2px;
  overflow-x: auto; scrollbar-width: none; min-width: 0;
}
.chk-gnav::-webkit-scrollbar { display: none; }
.chk-gnav-link {
  display: inline-flex; align-items: center;
  padding: 8px 11px; border-bottom: 2px solid transparent;
  font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--chk-mut); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}
.chk-gnav-link:hover { color: var(--chk-accent-deep); }
.chk-gnav-link.is-on {
  color: var(--chk-accent-deep); border-bottom-color: var(--chk-accent);
}
.chk-gnav-link:focus-visible { outline: 2px solid var(--chk-accent); outline-offset: -2px; }

/* ── Shared bits ────────────────────────────────────────────────────── */
.chk-eyebrow {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--chk-mut);
}
.chk-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; min-height: 34px;
  border: 1px solid var(--chk-accent); border-radius: 6px;
  background: #fff; color: var(--chk-accent);
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .16s ease, color .16s ease;
}
.chk-btn:hover { background: var(--chk-tint); color: var(--chk-accent-deep); }
.chk-btn--solid { background: var(--chk-accent); color: #fff; }
.chk-btn--solid:hover { background: var(--chk-accent-deep); color: #fff; }
a.chk-plain { color: var(--chk-accent); text-decoration: none; }
a.chk-plain:hover { color: var(--chk-accent-deep); text-decoration: underline; }

/* ── Landing (/) ────────────────────────────────────────────────────── */
.chk-landing { max-width: 960px; margin: 0 auto; padding: 24px 16px 48px; }
.chk-hero { text-align: center; padding: 40px 0 18px; }
.chk-hero .chk-tick-big { width: 44px; height: 44px; color: var(--chk-accent); }
.chk-hero h1 {
  font: 400 34px/1.15 "Roboto Mono", ui-monospace, monospace;
  letter-spacing: -1px; margin: 10px 0 6px; color: var(--chk-ink);
}
.chk-hero h1 b { font-weight: 400; color: var(--chk-accent); }
.chk-hero .chk-sub { color: var(--chk-mut); font-size: 15px; margin: 0 0 22px; }

.chk-searchwrap { position: relative; max-width: 620px; margin: 0 auto; }
.chk-search {
  display: flex; align-items: center; gap: 8px;
  border: 2px solid var(--chk-ink); border-radius: 10px; background: #fff;
  padding: 0 12px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.chk-search:focus-within {
  border-color: var(--chk-accent);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, .18);
}
.chk-search svg { width: 18px; height: 18px; color: var(--chk-mut); flex: 0 0 auto; }
.chk-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: 400 17px/1 Roboto, system-ui, sans-serif;
  min-height: 52px; color: var(--chk-ink); min-width: 0;
}
/* The wrapper carries the focus ring (green, :focus-within above) — kill the
   inherited orange input:focus ring from the shared sheets. */
.chk-search input:focus, .chk-search input:focus-visible {
  outline: none !important; box-shadow: none !important; border: 0 !important;
}
.chk-ac {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--chk-line); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(36, 41, 46, .16);
  max-height: 420px; overflow-y: auto; text-align: left;
}
.chk-ac[hidden] { display: none; }
.chk-ac-group {
  padding: 8px 12px 4px; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--chk-mut);
  border-top: 1px solid #eef1f4;
}
.chk-ac-group:first-child { border-top: 0; }
.chk-ac-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; text-decoration: none; color: var(--chk-ink);
  cursor: pointer;
}
.chk-ac-row:hover, .chk-ac-row.is-active { background: var(--chk-tint); }
.chk-ac-thumb {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 6px;
  background: #f0f2f4; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--chk-mut);
}
.chk-ac-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chk-ac-thumb.is-head img { object-fit: cover; }
.chk-ac-name { font-size: 14px; line-height: 1.25; }
.chk-ac-meta { font-size: 12px; color: var(--chk-mut); margin-left: auto; white-space: nowrap; }
.chk-ac-empty { padding: 12px; font-size: 13px; color: var(--chk-mut); }

.chk-stats {
  margin: 14px 0 0; font-size: 13px; color: var(--chk-mut);
  letter-spacing: .03em;
}
.chk-stats b { font-weight: 500; color: var(--chk-ink); }

/* Genre tiles */
.chk-tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px; margin: 34px 0 0;
}
.chk-tile {
  border: 1px solid var(--chk-line); border-radius: 10px; background: #fff;
  padding: 14px; text-decoration: none; color: var(--chk-ink);
  display: block; cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.chk-tile:hover { border-color: var(--chk-accent); background: var(--chk-tint); }
.chk-tile .t-name {
  font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
}
.chk-tile .t-count { font-size: 12.5px; color: var(--chk-mut); margin-top: 3px; }
.chk-tile.is-soon { opacity: .62; }
.chk-tile.is-soon:hover { border-color: var(--chk-line); background: #fff; }

/* Newest strip */
.chk-strip-h {
  margin: 36px 0 10px; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--chk-mut);
}
.chk-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.chk-card {
  display: flex; gap: 10px; align-items: center;
  border: 1px solid var(--chk-line); border-radius: 10px; background: #fff;
  padding: 10px; text-decoration: none; color: var(--chk-ink); cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.chk-card:hover { border-color: var(--chk-accent); background: var(--chk-tint); }
.chk-card .c-img {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 6px;
  background: #f0f2f4; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--chk-mut);
}
.chk-card .c-img img { width: 100%; height: 100%; object-fit: contain; }
.chk-card .c-name { font-size: 13.5px; line-height: 1.3; }
.chk-card .c-meta { font-size: 11.5px; color: var(--chk-mut); margin-top: 2px; }

.chk-cross {
  margin: 40px 0 0; padding: 14px 16px;
  border: 1px dashed var(--chk-line); border-radius: 10px;
  font-size: 13.5px; color: var(--chk-mut); text-align: center;
}

/* ── Index (/<genre>/checklists) ────────────────────────────────────── */
.chk-index { max-width: 1080px; margin: 0 auto; padding: 18px 16px 48px; }
.chk-index-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; }
.chk-index-head h1 {
  font: 400 24px/1.2 Roboto, system-ui, sans-serif; margin: 0;
  color: var(--chk-ink);
}
.chk-index-head .n { color: var(--chk-mut); font-size: 13.5px; }
.chk-qform { margin: 10px 0 4px; max-width: 420px; }
.chk-qform input {
  width: 100%; border: 1px solid var(--chk-line); border-radius: 8px;
  padding: 9px 12px; min-height: 40px; font: 400 14px/1 Roboto, system-ui, sans-serif;
}
.chk-qform input:focus { outline: 2px solid var(--chk-accent); outline-offset: 1px; }
.chk-year-h {
  margin: 24px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--chk-line);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--chk-mut);
}
.chk-index .chk-strip { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.chk-empty-genre {
  margin: 40px auto; max-width: 460px; text-align: center;
  color: var(--chk-mut); font-size: 14.5px; line-height: 1.6;
}

/* ── Detail (/<genre>/checklist/<id>-<slug>) ────────────────────────── */
.chkd { max-width: 1160px; margin: 0 auto; padding: 14px 14px 48px; }
.chkd-head {
  display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap;
  margin: 8px 0 14px;
}
.chkd-img {
  width: 128px; flex: 0 0 auto; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--chk-line); background: #fff;
}
.chkd-img img { display: block; width: 100%; height: auto; }
.chkd-hgroup { flex: 1 1 320px; min-width: 0; }
.chkd-hgroup h1 {
  font: 400 24px/1.2 Roboto, system-ui, sans-serif; margin: 0 0 4px;
  color: var(--chk-ink);
}
.chkd-hgroup h1 .hl { color: var(--chk-accent); }
.chkd-counts { font-size: 13px; color: var(--chk-mut); margin: 0 0 8px; letter-spacing: .02em; }
.chkd-lede { font-size: 14px; line-height: 1.55; color: #3d444c; max-width: 68ch; margin: 0 0 10px; }
.chkd-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* Purpose tabs — server-rendered links, one active. 44px touch height. */
.chk-tabs {
  display: flex; gap: 0; margin: 16px 0 0; border-bottom: 2px solid var(--chk-line);
}
.chk-tab {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 16px; margin-bottom: -2px;
  border-bottom: 2px solid transparent;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--chk-mut); text-decoration: none; cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.chk-tab:hover { color: var(--chk-accent-deep); background: var(--chk-tint); }
.chk-tab.is-on {
  color: var(--chk-accent-deep); border-bottom-color: var(--chk-accent);
}
.chk-tab:focus-visible { outline: 2px solid var(--chk-accent); outline-offset: -2px; }

/* The body partial ships its own Card|Team seg — on the detail page the
   purpose tabs are the ONE view switcher, so hide that seg (first control
   group in the groupbar). */
.chkd .pchk-groupbar .pchk-gsctl:first-child { display: none; }

/* Roster (By player view) */
.chk-roster {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px; margin: 18px 0 0;
}
.chk-pl {
  display: flex; gap: 10px; align-items: center;
  border: 1px solid var(--chk-line); border-radius: 10px; background: #fff;
  padding: 9px 10px; text-decoration: none; color: var(--chk-ink);
}
a.chk-pl { cursor: pointer; transition: border-color .16s ease, background-color .16s ease; }
a.chk-pl:hover { border-color: var(--chk-accent); background: var(--chk-tint); }
.chk-pl .p-img {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%;
  background: #f0f2f4; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--chk-mut);
}
.chk-pl .p-img img { width: 100%; height: 100%; object-fit: cover; }
.chk-pl .p-name { font-size: 13.5px; line-height: 1.25; }
.chk-pl .p-meta { font-size: 11.5px; color: var(--chk-mut); margin-top: 2px; }
.chk-pl .p-fire { margin-left: auto; font-size: 13px; }

/* Outbound eBay fallback row inside the expansion panel */
.pchk-exp-ebay--out { padding: 6px 0 2px; }
.pchk-exp-ebay--out .plc-ebay-search { cursor: pointer; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .chk-hero { padding-top: 22px; }
  .chk-hero h1 { font-size: 26px; }
  .chk-search input { min-height: 48px; font-size: 16px; }
  .chkd-img { width: 96px; }
  .chk-tabs { overflow-x: auto; }
  .chk-tab { padding: 0 12px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .site-checklist *, .chk-landing *, .chk-index *, .chkd * {
    transition-duration: 0.01ms !important;
  }
}
