/* Jensen predictions special (/jensen).
   Builds on report.css. Every chapter sets --field inline; this file only adds
   the jn- components and a few hero overrides. Content is static HTML, so
   nothing here may hide text unless html.x-js is set (report.css reveal rules). */

html.jn-failsafe .x-reveal { opacity: 1 !important; transform: none !important; }

/* ---- Hero ---------------------------------------------------------------- */
.jn-hero .x-hero-kicker b { color: var(--field); }
.jn-hero .x-h1 { max-width: 17ch; }
.jn-hero .x-hero-sub { max-width: 56ch; margin: 0 0 1rem; }
.jn-disclaimer { margin: 0 0 1.6rem; font-size: 0.9rem; font-style: italic; color: var(--faint); }
.jn-hero .x-board { max-width: 820px; }
.jn-hero .x-board-num { color: var(--field); font-size: clamp(1.6rem, 3vw, 2rem); }
.jn-hero .x-board-lab a { color: var(--dim); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Chapter copy --------------------------------------------------------- */
.jn-grid { align-items: start; }
.x-col-text p:not(.x-kicker):not(.x-lede),
.jn-wide .x-wrap > p:not(.x-kicker):not(.x-lede):not(.jn-tally):not(.jn-closer):not(.jn-signoff),
#ch-method .x-wrap > p:not(.x-kicker):not(.x-lede):not(.x-note) {
  margin: 0 0 1.05rem;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--dim);
}
.x-col-text a,
.jn-wide .x-wrap > p a,
.jn-points a,
#ch-method a {
  color: color-mix(in srgb, var(--field) 68%, #ffffff 32%);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.x-col-text a:hover,
.jn-wide .x-wrap > p a:hover,
.jn-points a:hover,
#ch-method a:hover { color: #ffffff; }
.jn-wide .x-wrap { max-width: 900px; }
.jn-wide .x-h2 { max-width: 20ch; }
.jn-wide .x-lede { max-width: 62ch; }

/* ---- Headline stat panel -------------------------------------------------- */
.jn-stat .x-bignum.jn-long { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
.jn-stat .x-bignum-sub { line-height: 1.45; }
.x-col-figure { display: grid; gap: 1.1rem; }

/* ---- Chapter 1: how it comes down ----------------------------------------- */
.jn-flow { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.jn-flow::before {
  content: ""; position: absolute; left: 0.85rem; top: 0.9rem; bottom: 0.9rem;
  width: 1px; background: linear-gradient(var(--field), color-mix(in srgb, var(--field) 10%, transparent));
}
.jn-flow li { position: relative; display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.95rem; line-height: 1.45; color: var(--ink); }
.jn-flow-no {
  flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  font-family: "Space Grotesk", monospace; font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--field) 72%, #ffffff 28%); background: #121216; border: 1px solid color-mix(in srgb, var(--field) 70%, transparent);
}
.jn-flow li > span:last-child { padding-top: 0.2rem; }

/* ---- Charts ---------------------------------------------------------------- */
.jn-svg { display: block; width: 100%; height: auto; overflow: visible; }
.jn-gridline { stroke: var(--line); stroke-width: 1; }
.jn-tick { fill: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.jn-area { fill: color-mix(in srgb, var(--field) 13%, transparent); stroke: none; }
.jn-line { fill: none; stroke: var(--field); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.jn-pass { stroke: #f87171; stroke-width: 1.5; stroke-dasharray: 5 4; }
.jn-pass-label { fill: #fca5a5; font-size: 12px; font-weight: 600; }
.jn-dot { fill: var(--field); stroke: #08080a; stroke-width: 2; }
.jn-dot-label, .jn-pass-label {
  paint-order: stroke; stroke: #0d0d10; stroke-width: 4px; stroke-linejoin: round;
}
.jn-dot-label { fill: var(--ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.jn-chart .x-note { margin: 0.9rem 0 0; font-size: 0.86rem; max-width: none; }

@media (prefers-reduced-motion: no-preference) {
  html.jn-ready .jn-chart .jn-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) 0.2s; }
  html.jn-ready .jn-chart.x-in .jn-line { stroke-dashoffset: 0; }
  html.jn-ready .jn-chart .jn-area,
  html.jn-ready .jn-chart .jn-dot,
  html.jn-ready .jn-chart .jn-dot-label { opacity: 0; transition: opacity 0.6s ease 1.4s; }
  html.jn-ready .jn-chart.x-in .jn-area,
  html.jn-ready .jn-chart.x-in .jn-dot,
  html.jn-ready .jn-chart.x-in .jn-dot-label { opacity: 1; }
}
html.jn-failsafe .jn-chart .jn-line { stroke-dashoffset: 0 !important; }
html.jn-failsafe .jn-chart .jn-area,
html.jn-failsafe .jn-chart .jn-dot,
html.jn-failsafe .jn-chart .jn-dot-label { opacity: 1 !important; }

.jn-data { margin-top: 0.9rem; border-top: 1px solid var(--line); padding-top: 0.7rem; }
.jn-data summary {
  display: inline-flex; align-items: center; min-height: 28px; cursor: pointer;
  font-size: 0.82rem; color: var(--dim); text-decoration: underline; text-underline-offset: 3px;
}
.jn-data summary:hover { color: var(--ink); }
.jn-data-scroll { max-height: 15rem; overflow: auto; margin-top: 0.6rem; border-radius: 8px; }
.jn-data table { width: 100%; border-collapse: collapse; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.jn-data th, .jn-data td { padding: 0.35rem 0.5rem; text-align: left; border-bottom: 1px solid var(--line); }
.jn-data thead th { position: sticky; top: 0; background: #17171c; color: var(--faint); font-weight: 600; }
.jn-data tbody th { font-weight: 400; color: var(--dim); }
.jn-data td { text-align: right; color: var(--ink); }

/* ---- Call cards ------------------------------------------------------------ */
.jn-calls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.6rem);
}
.jn-call {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.2rem 1.25rem 1.1rem;
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: rgba(17, 17, 22, 0.88);
  scroll-margin-top: 5rem;
}
.jn-call:target { border-color: color-mix(in srgb, var(--field) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--field) 45%, transparent); }
.jn-call-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.jn-call-no {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: "Space Grotesk", monospace; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim);
}
.jn-call-no::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--field); }
.jn-call-head {
  margin: 0; font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.35rem); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink);
}
.jn-call-body { margin: 0; font-size: 0.93rem; line-height: 1.55; color: var(--dim); }
.jn-terms { margin: auto 0 0; padding-top: 0.8rem; border-top: 1px solid var(--line); display: grid; gap: 0.65rem; }
.jn-terms dt { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.jn-terms dd { margin: 0.2rem 0 0; font-size: 0.86rem; line-height: 1.5; color: var(--ink); }
.jn-countdown { display: inline-block; margin-left: 0.4rem; font-size: 0.8rem; color: var(--faint); }
.jn-countdown:empty { display: none; }
.jn-result { margin: 0; font-size: 0.86rem; line-height: 1.5; color: var(--ink); }
.jn-result a { color: color-mix(in srgb, var(--field) 68%, #ffffff 32%); }

/* Status pills: text carries the meaning, colour only reinforces it. */
.jn-status {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.18rem 0.6rem;
  border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--dim);
}
.jn-status::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; opacity: 0.8; }
.jn-status.is-hit { color: #86efac; border-color: rgba(34, 197, 94, 0.5); background: rgba(34, 197, 94, 0.12); }
.jn-status.is-missed { color: #fca5a5; border-color: rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.12); }

/* ---- Chapter 6: the case against ----------------------------------------- */
.jn-points { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 1.3rem; max-width: var(--measure); }
.jn-points li {
  padding: 0.9rem 0 0; border-top: 2px solid color-mix(in srgb, var(--field) 70%, transparent);
  font-size: 0.97rem; line-height: 1.6; color: var(--dim);
}
.jn-points strong { color: var(--ink); font-weight: 600; }

/* ---- Chapter 7: scorecard -------------------------------------------------- */
.jn-tally { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin: 0.6rem 0 1.4rem; font-size: 0.9rem; color: var(--dim); }
.jn-tally b {
  margin-right: 0.3rem; font-family: "Space Grotesk", sans-serif; font-size: 1.9rem; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.jn-table-wrap { border: 1px solid var(--line); border-radius: 16px; background: rgba(17, 17, 22, 0.88); padding: 0.4rem 0.2rem; }
.jn-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.jn-table caption { caption-side: top; text-align: left; padding: 0.7rem 0.9rem 0.6rem; font-size: 0.8rem; color: var(--faint); }
.jn-table th, .jn-table td { padding: 0.7rem 0.9rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.jn-table thead th { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.jn-table tbody th { font-weight: 500; color: var(--ink); line-height: 1.4; }
.jn-table tbody th a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.jn-table tbody th a:hover { color: #ffffff; border-bottom-color: currentColor; }
.jn-table td { color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.jn-table td a { color: var(--dim); }
.jn-table .jn-col-no { width: 2.5rem; font-family: "Space Grotesk", monospace; color: var(--faint); font-variant-numeric: tabular-nums; }
.jn-closer {
  margin: 2.2rem 0 0.8rem; max-width: 30ch;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance;
}
.jn-signoff { margin: 1.4rem 0 0; font-style: italic; color: var(--faint); }

#ch-method .x-note a { color: var(--dim); }

.x-root summary:focus-visible,
.x-root .jn-data-scroll:focus-visible {
  outline: 2px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(8, 8, 10, 0.92); border-radius: 4px;
}

/* ---- Responsive -------------------------------------------------------------- */
@media (max-width: 860px) {
  .jn-call, .jn-table-wrap { background: #131318; }
}
@media (max-width: 560px) {
  .jn-hero .x-board { grid-template-columns: 1fr; }
  .jn-table { font-size: 0.86rem; }
  .jn-table th, .jn-table td { padding: 0.6rem 0.5rem; }
  .jn-table .jn-col-no { width: 1.8rem; }
  .jn-table td { white-space: normal; }
  .jn-table td .jn-status { padding: 0.15rem 0.45rem; }
}
