/* The Jimbo Index: A visual scroll in the home page's style:
   sticker drawings, big rust numbers, a gold first-down line.
   Shared variables only (site.css + the Gridiron look); no team colours. */

.jb { max-width: 760px; overflow-x: clip; }
.jb-upto { font-size: var(--step-0); font-weight: 700; color: var(--ink-soft); letter-spacing: 0; vertical-align: middle; }
.jb-word { font-size: var(--step-1); font-weight: 800; color: var(--ink); letter-spacing: 0; }

/* ---------- Hero ---------- */
.jb-hero { text-align: center; padding: 1.4rem 0 2.2rem; }
.jb-hero__q { font-size: clamp(2.8rem, 13vw, 4.8rem); margin: 0.4rem 0 1rem; text-wrap: balance; }
.jb-hl { color: var(--rust); }
.jb-hero__sub { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; text-wrap: balance; margin: -0.2rem 0 1rem; letter-spacing: -0.02em; }
.jb-hero__def { font-size: var(--step-1); margin: 0 auto 1.8rem; max-width: 34ch; }
.jb-go { animation: jb-nudge 1.8s ease-in-out infinite; }
@keyframes jb-nudge { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(5px); } 90% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .jb-go { animation: none; } }

/* ---------- Coach picker (in the hero) ---------- */
.jb-pick {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.4rem;
  padding: 0.3rem 0.4rem 0.3rem 1rem; background: var(--field); background-image: var(--yardlines);
  border: var(--border) solid var(--ink); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.jb-pick__label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); }
.jb-pick select {
  font: inherit; font-weight: 800; color: var(--ink); min-height: 44px; padding: 0 2.1rem 0 0.9rem; cursor: pointer;
  border: 2px solid var(--ink); border-radius: 999px; appearance: none; -webkit-appearance: none;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23123a20' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat right 0.8rem center;
}
.jb-pick select option { background: #fff; }
.jb-go { display: flex; margin: 0 auto; }

/* ---------- The stops ---------- */
.jb-stops { list-style: none; margin: 0; padding: 0; }
.jb-stop { position: relative; margin: 0 0 3.6rem; scroll-margin-top: 1.5rem; }
.jb-art {
  position: relative; z-index: 2;
  width: min(62%, 260px); margin: 0 auto -1.6rem;
  background: var(--tint, var(--yellow)); border: var(--border) solid var(--ink); border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden;
  transform: rotate(-4deg);
}
.jb-stop--r .jb-art { transform: rotate(4deg); }
.jb-art svg { display: block; width: 100%; height: auto; }
.jb-card {
  position: relative; background: var(--card); border: var(--border) solid var(--ink); border-radius: 22px;
  box-shadow: var(--shadow); padding: 2.2rem 1rem 0.7rem; text-align: center;
  container-type: inline-size;
}
.jb-meta { margin: 0; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; font-size: var(--step--1); }
.jb-name { font-size: var(--step-2); margin: 0.25rem 0 0.5rem; text-wrap: balance; overflow-wrap: anywhere; }
.jb-value { margin: 0 0 0.4rem; line-height: 1; overflow-wrap: anywhere; }
.jb-value b {
  font-family: var(--font-display); font-weight: 400; color: var(--rust); white-space: nowrap;
  /* big, but never wider than the card: shrinks for long decimals like 0.000000012 */
  font-size: min(4.4rem, 15vw, calc(92cqi / (var(--n, 4) * 0.66)));
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.jb-stop.is-target .jb-card { outline: 5px solid var(--gold); outline-offset: 4px; }

.jb-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 0.7rem; }
.jb-src { font-size: var(--step--1); color: var(--ink-soft); font-weight: 600; padding: 0.7rem 0.2rem; }
.jb-share {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0 0.95rem;
  font: inherit; font-weight: 800; color: var(--ink); background: var(--card);
  border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); cursor: pointer;
}
.jb-share:active { transform: translateY(3px); box-shadow: none; }

/* Reveal: only after the script marks a stop .is-in (no script or reduced motion: all shown) */
@media (prefers-reduced-motion: no-preference) {
  .jb-ready .jb-stop:not(.is-in) .jb-art { opacity: 0; transform: translateY(30px) rotate(-14deg) scale(0.8); }
  .jb-ready .jb-stop--r:not(.is-in) .jb-art { transform: translateY(30px) rotate(14deg) scale(0.8); }
  .jb-ready .jb-stop:not(.is-in) .jb-card { opacity: 0; transform: translateY(40px); }
  .jb-art { transition: transform 0.55s cubic-bezier(.2, 1.6, .4, 1), opacity 0.3s; }
  .jb-card { transition: transform 0.5s cubic-bezier(.2, 1.2, .4, 1) 0.06s, opacity 0.3s 0.06s; }
}

/* The first-down line: where one unit falls */
.jb-line { position: relative; height: 3rem; margin: -1.4rem 0 2.6rem; display: flex; align-items: center; justify-content: center; }
.jb-line::before {
  content: ""; position: absolute; left: -50vw; right: -50vw; top: 50%; height: 10px; margin-top: -5px;
  background: var(--gold); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.jb-line span {
  position: relative; background: var(--gold); color: var(--ink); border: var(--border) solid var(--ink); border-radius: 999px;
  padding: 0.25rem 1.1rem; font-family: var(--font-display); font-size: var(--step-1); text-transform: uppercase; box-shadow: var(--shadow-sm);
  transform: rotate(-2deg);
}

/* ---------- The end ---------- */
.jb-end { text-align: center; padding: 1rem 0 2rem; }
.jb-end__kicker { font-weight: 800; color: var(--ink-soft); margin: 0; }
.jb-end__line { font-size: var(--step-2); margin: 0.3rem 0 0.3rem; }
.jb-end__big { margin: 0 0 0.6rem; line-height: 1; overflow-wrap: anywhere; }
.jb-end__big b { font-family: var(--font-display); font-weight: 400; color: var(--rust); font-size: clamp(3rem, 15vw, 5.5rem); letter-spacing: -0.03em; }
.jb-end__usd {
  display: inline-block; margin: 0 0 1.6rem; padding: 0.3rem 1rem;
  background: var(--gold); color: var(--ink); border: var(--border) solid var(--ink); border-radius: 999px; box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-size: var(--step-1); font-variant-numeric: tabular-nums; transform: rotate(-1.5deg);
}
.jb-end__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-bottom: 1.2rem; }
.jb-end__try { font-weight: 700; }
.jb-end__back { margin: 1.8rem 0 0; }
.jb-end__back .btn { white-space: normal; text-wrap: balance; max-width: 30rem; line-height: 1.2; }
.jb-chip {
  font: inherit; font-weight: 800; min-height: 44px; padding: 0 1rem; margin: 0.25rem 0.15rem; cursor: pointer;
  background: var(--gold); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink);
}

/* ---------- Sources ---------- */
.jb-sources { margin: 1rem 0 0; border-top: 2px solid var(--ink); padding-top: 0.4rem; font-size: var(--step--1); color: var(--ink-soft); }
.jb-sources summary { font-weight: 800; color: var(--ink); cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.jb-sources h2 { font-size: var(--step-1); color: var(--ink); margin: 1rem 0 0.4rem; }
.jb-sources ol { padding-left: 1.8em; }
.jb-sources li { margin: 0 0 0.5rem; overflow-wrap: anywhere; scroll-margin-top: 6rem; }
.jb-sources a { color: var(--ink); }
.jb-back { text-decoration: none; padding: 0 0.2em; }

/* ---------- Wider screens: drawing beside the card, alternating sides ---------- */
@media (min-width: 720px) {
  .jb-stop { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: center; }
  .jb-stop--r { grid-template-columns: minmax(0, 1fr) 230px; }
  .jb-stop--r .jb-art { order: 2; margin: 0 0 0 -1.6rem; }
  .jb-art { width: 250px; margin: 0 -1.6rem 0 0; }
  .jb-card { padding: 1.3rem 1.3rem 0.8rem 2.6rem; }
  .jb-stop--r .jb-card { padding: 1.3rem 2.6rem 0.8rem 1.3rem; }
}
