/* The trading card section. Everything is built from what a collector handles: a binder sheet, shelf tags, a slab label. */

/* ---------- /cards: an open binder. Left page: why we're here. Right page: the nine stops, in a nine-pocket sheet. ---------- */
.fct-spread { display: grid; gap: 1.3rem 2.6rem; grid-template-areas: "text" "binder" "note"; }
.fct-spread-text { grid-area: text; }
.fct-spread-text .ffn-page-headline { margin: 0; }
main.fct-hub--cards.ffn-pilot-page .fct-spread .ffn-page-headline-title { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: .98; }
.fct-binder { grid-area: binder; }
.fct-spread-note { grid-area: note; }
.fct-cards-note { display: grid; gap: .4rem; margin: 0; padding: .9rem 1.1rem .8rem; }
.fct-cards-note img { display: block; width: min(100%, 300px); height: auto; margin: 0 auto; }
.fct-cards-note figcaption { font: 700 1.55rem/1.1 var(--ffn-ed-font-hand); text-align: center; }
.fct-spread-note > .fct-note { margin-top: .8rem; font-size: .95rem; }

.fct-binder { --sheet: rgba(255, 255, 255, .62); position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: .6rem .6rem .6rem 2.1rem; border-radius: .9rem; list-style: none; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--ffn-ed-border-strong), var(--ffn-ed-shadow-card); }
html[data-theme="dark"] .fct-binder { --sheet: rgba(255, 255, 255, .05); }
.fct-binder::before { content: ""; position: absolute; top: 0; bottom: 0; left: .55rem; width: 1rem; background: radial-gradient(circle, var(--ffn-ed-bg) 0 .38rem, var(--ffn-ed-border-strong) .38rem .44rem, transparent .46rem) center / 1rem 33.34% repeat-y; }
.fct-pocket { --ink: #6ea8ff; position: relative; padding: .38rem; border-radius: .45rem; background: rgba(7, 16, 31, .035); box-shadow: inset 0 0 0 1px var(--ffn-ed-border); }
html[data-theme="dark"] .fct-pocket { background: rgba(255, 255, 255, .03); }
.fct-pocket:nth-child(n+4) { --ink: #ffa04d; }
.fct-pocket:nth-child(n+7) { --ink: #5fd6ae; }

.fct-tc { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) 46%; aspect-ratio: 5 / 7; overflow: hidden; border-radius: .42rem; background: radial-gradient(90% 70% at 30% 18%, rgba(255, 255, 255, .08), transparent 70%), var(--board); color: var(--chalk); text-decoration: none; box-shadow: 0 1px 2px rgba(7, 16, 31, .3); transition: transform .16s ease, box-shadow .16s ease; }
.fct-tc::before { content: ""; position: absolute; inset: .28rem; border: 1.5px solid var(--ink); border-radius: .26rem; pointer-events: none; }
.fct-tc-no { position: absolute; top: .55rem; left: .65rem; color: var(--ink); font: 700 .72rem/1 var(--ffn-ed-font-mono); }
.fct-tc-art { display: block; width: 58%; aspect-ratio: 1; margin: auto; background: url(/images/chalk-stops.png) 0 0 / 300% 300% no-repeat; }
.fct-tc-plate { position: relative; display: grid; gap: .12rem; align-content: start; margin: 0 .42rem .42rem; padding: .45rem .55rem .4rem; border-radius: .16rem; background: #fff; color: #07101f; }
.fct-tc-plate strong { font-size: 1rem; font-weight: 900; letter-spacing: -.015em; line-height: 1.1; }
.fct-tc-plate small { color: #42516c; font-size: .77rem; line-height: 1.28; }
.fct-tc:hover, .fct-tc:focus-visible { z-index: 2; transform: translateY(-6px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); box-shadow: 0 12px 24px -8px rgba(7, 16, 31, .55); }
.fct-tc::after { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; mix-blend-mode: screen; background: linear-gradient(115deg, transparent 28%, rgba(120, 190, 255, .34) 42%, rgba(255, 255, 255, .5) 50%, rgba(255, 170, 110, .3) 58%, transparent 72%) var(--mx, 50%) 0 / 240% 100% no-repeat; transition: opacity .16s ease; }
.fct-tc:hover::after, .fct-tc:focus-visible::after { opacity: 1; }
.fct-binder { perspective: 900px; }
@media (prefers-reduced-motion: no-preference) {
  .fct-tc { animation: fct-deal .44s cubic-bezier(.2, .75, .25, 1) both; animation-delay: calc(var(--i) * 42ms); }
  @keyframes fct-deal { from { opacity: 0; transform: translateY(-16px) rotate(-1.4deg); } }
}
@media (prefers-reduced-motion: reduce) { .fct-tc { transition: none; } .fct-tc:hover, .fct-tc:focus-visible { transform: none; } }

.fct-soon { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: .6rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.fct-soon li { display: grid; gap: .05rem; padding: .1rem 0 .1rem .9rem; border-left: 3px solid var(--ffn-ed-accent); }
.fct-soon time { font: 700 1.3rem/1.1 var(--ffn-ed-font-hand); color: var(--ffn-ed-accent); }
.fct-soon strong { font-weight: 800; line-height: 1.3; }
.fct-soon + .fct-note { margin-top: .9rem; }

@media (min-width: 1040px) {
  .fct-spread { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "text binder" "note binder"; }
}
/* Phones: the sheet stays three across, so all nine stops fit one screen. The words behind each title stay for screen readers. */
@media (max-width: 640px) {
  .fct-binder { gap: .3rem; padding: .35rem .35rem .35rem 1.35rem; }
  .fct-binder::before { left: .28rem; width: .8rem; background-image: radial-gradient(circle, var(--ffn-ed-bg) 0 .28rem, var(--ffn-ed-border-strong) .28rem .33rem, transparent .35rem); background-size: .8rem 33.34%; }
  .fct-pocket { padding: .2rem; }
  .fct-tc::before { inset: .18rem; }
  .fct-tc-no { top: .38rem; left: .42rem; font-size: .62rem; }
  .fct-tc-art { width: 54%; }
  .fct-tc { grid-template-rows: minmax(0, 1fr) 30%; }
  .fct-tc-plate { margin: 0 .24rem .24rem; padding: .2rem .3rem; align-content: center; }
  .fct-tc-plate strong { font-size: .8rem; line-height: 1.08; }
  .fct-tc-plate small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- /cards/packs: pick a sport and a budget, read the shelf. The big number on a tag is the unit price for that goal. ---------- */
.fct-pack-picker { display: grid; gap: .5rem; margin: 0 0 1.4rem; padding: .9rem 1.1rem; border-radius: 1rem; background: var(--ffn-ed-surface-muted); }
html[data-theme="dark"] .fct-pack-picker { background: rgba(255, 255, 255, .05); }
.fct-cards-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 1.6rem 2rem; align-items: start; }
.fct-cards-goals[hidden] { display: none; }
.fct-cards-goals > .fct-note { grid-column: 1 / -1; margin: 0; }
.fct-shelf h3 { margin: 0; font-size: 1.2rem; font-weight: 900; letter-spacing: -.015em; }
.fct-shelf-measure { margin: .05rem 0 .6rem; color: var(--ffn-ed-text-muted); font-size: .93rem; }
.fct-shelf.is-empty .fct-note { margin: 0; padding: .7rem .9rem; border: 1px dashed var(--ffn-ed-border-strong); border-radius: .55rem; }
.fct-tags { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.fct-tag { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); overflow: hidden; border-radius: .55rem; background: var(--ffn-ed-surface); box-shadow: inset 0 0 0 1px var(--ffn-ed-border-strong); }
.fct-tag-unit { display: grid; align-content: center; justify-items: center; gap: .1rem; padding: .6rem .3rem; background: var(--ffn-ed-accent-soft); text-align: center; }
.fct-tag-unit b { color: var(--ffn-ed-text); font-size: 1.32rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fct-tag-unit span { color: var(--ffn-ed-text-muted); font-size: .76rem; font-weight: 700; line-height: 1.15; }
.fct-tags .fct-tag:first-child .fct-tag-unit { background: var(--board); }
.fct-tags .fct-tag:first-child .fct-tag-unit b { color: var(--chalk); font-size: 1.55rem; }
.fct-tags .fct-tag:first-child .fct-tag-unit span { color: var(--chalk-dim); }
.fct-tag-body { display: grid; gap: .22rem; padding: .6rem .85rem .65rem; }
.fct-tag-body h4 { margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.25; }
.fct-tag-body p { margin: 0; color: var(--ffn-ed-text-muted); font-size: .9rem; line-height: 1.42; }
.fct-tag-body p.fct-tag-src { font-size: .82rem; }
.fct-cards-single { margin: 1.4rem 0 0; color: var(--ffn-ed-accent); font-size: 1.5rem; line-height: 1.1; text-align: center; }
.fct-cards-out { color: var(--ffn-ed-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fct-cards-filter { max-width: 14rem; margin: 0 0 .8rem; }
main .fct-table-scroll .rankings-table td.fct-cards-tight { min-width: 7rem; }
.fct-table-scroll .rankings-table small { color: var(--ffn-ed-text-muted); }
.fct-hub--cards .fct-pill { display: inline-block; white-space: nowrap; }
@media (max-width: 480px) {
  :is(#price-table, #chase-table) :is(th, td):first-child { box-sizing: border-box; min-width: 9rem; max-width: 9rem; border-right: 1px solid var(--ffn-ed-border); white-space: normal; }
  #chase-table td.fct-wrap { min-width: 11rem; }
  .fct-hub--cards .fct-pill { white-space: normal; }
  .fct-pack-picker { padding: .7rem .8rem; }
  .fct-chips legend { float: none; width: 100%; line-height: 1.6; }
  .fct-tag { grid-template-columns: 5.4rem minmax(0, 1fr); }
  .fct-tag-unit b { font-size: 1.12rem; }
  .fct-tags .fct-tag:first-child .fct-tag-unit b { font-size: 1.3rem; }
}

/* ---------- /cards/values and /cards/grading: the tool is a slab. The white label holds the details, the dark window the answer. ---------- */
.fct-slab { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); overflow: hidden; padding: .55rem; border-radius: 1.1rem; background: linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(214, 226, 245, .6)); box-shadow: inset 0 0 0 1px var(--ffn-ed-border-strong), inset 0 0 0 4px rgba(255, 255, 255, .5), var(--ffn-ed-shadow-card); }
html[data-theme="dark"] .fct-slab { background: linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); }
.fct-slab-label { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem .7rem; align-content: center; padding: .9rem 1rem 1rem; border-radius: .65rem 0 0 .65rem; background: var(--ffn-ed-surface); }
.fct-slab-label--three label:last-child { grid-column: 1 / -1; }
#comp-finder .fct-slab-label { grid-template-columns: repeat(6, minmax(0, 1fr)); }
#comp-finder label[for="comp-year"], #comp-finder label[for="comp-number"] { grid-column: span 2; }
#comp-finder label[for="comp-set"], #comp-finder label[for="comp-player"] { grid-column: span 4; }
#comp-finder label[for="comp-parallel"], #comp-finder label[for="comp-grade"] { grid-column: span 3; }
.fct-slab-window { display: grid; align-content: center; gap: .45rem; min-height: 12rem; padding: 1.1rem 1.25rem; border-radius: 0 .65rem .65rem 0; background: radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .07), transparent 60%), var(--board); color: var(--chalk); }
.fct-slab-window p { margin: 0; color: var(--chalk-dim); font-size: .93rem; line-height: 1.45; }
.fct-slab-window strong { color: var(--chalk); font-weight: 800; }
.fct-slab-window .fct-slab-for { font: 700 1.3rem/1.1 var(--ffn-ed-font-hand); color: var(--pylon-soft); }
.fct-slab-window .fct-slab-words { color: var(--chalk); font-size: clamp(1.25rem, 2.3vw, 1.6rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.fct-slab-window button { justify-self: start; min-height: 48px; margin: .25rem 0; }
.fct-slab-window .fct-cards-out { color: var(--chalk); }
.fct-hub-tool.fct-slab input { width: 100%; box-sizing: border-box; min-width: 0; }

/* Cards to know reads like a set checklist: name, why it matters, one tap to sold prices. */
.fct-known-tools { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin: 0 0 .8rem; }
.fct-known-tools input[type="search"] { flex: 1 1 14rem; min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--ffn-ed-border-strong); border-radius: var(--ffn-ed-radius-pill); background: var(--ffn-ed-surface); color: var(--ffn-ed-text); font: inherit; }
.fct-known { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: .45rem .9rem; margin: 0 0 .9rem; padding: 0; list-style: none; }
.fct-known a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .08rem .9rem; height: 100%; box-sizing: border-box; padding: .6rem .85rem; border-radius: .55rem; background: var(--ffn-ed-surface); box-shadow: inset 0 0 0 1px var(--ffn-ed-border-strong); color: var(--ffn-ed-text); text-decoration: none; }
.fct-known a:hover { box-shadow: inset 0 0 0 1.5px var(--ffn-ed-accent); }
.fct-known strong { font-size: .97rem; font-weight: 800; line-height: 1.3; }
.fct-known span { grid-column: 1; color: var(--ffn-ed-text-muted); font-size: .87rem; line-height: 1.4; }
.fct-known em { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--ffn-ed-accent); font-size: .8rem; font-style: normal; font-weight: 800; text-align: right; white-space: nowrap; }

@media (max-width: 760px) {
  .fct-slab { grid-template-columns: minmax(0, 1fr); }
  .fct-slab-label { border-radius: .65rem .65rem 0 0; }
  .fct-slab-window { min-height: 0; border-radius: 0 0 .65rem .65rem; }
  .fct-known a { grid-template-columns: minmax(0, 1fr); }
  .fct-known em { grid-column: 1; grid-row: auto; text-align: left; margin-top: .1rem; }
}

/* The card from the binder, at the top of the page it opens. */
.fct-head-card { display: none; }
@media (min-width: 900px) {
  .fct-head-card { display: block; flex: none; width: 6.4rem; transform: rotate(2.5deg); }
  .fct-head-card .fct-tc { animation: none; grid-template-rows: minmax(0, 1fr); box-shadow: 0 10px 22px -8px rgba(7, 16, 31, .5); pointer-events: none; }
  .fct-head-card .fct-tc-art { width: 62%; }
  .fct-head-card .fct-tc-no { top: .5rem; left: .6rem; }
}
.fct-head-card.is-blue { --ink: #6ea8ff; }
.fct-head-card.is-orange { --ink: #ffa04d; }
.fct-head-card.is-green { --ink: #5fd6ae; }
