/* ==========================================================================
   Flash Finance — /predictors (extends the shared ff-* market system)
   Only what the predictor pages add: the zone callout, the band row, the
   call-record table and the two chart frames. Cards, stat tiles, hero,
   tables and notes all come from market.css + seasonality.css.

   Zone palette — the same three used by predictors.js so the chart shading
   and the pills cannot drift apart. Green/red carry a sign, so every use is
   paired with a word ("Accumulate zone") and a glyph (▲ / ▼), never colour
   alone.
     accumulate #0f7a3d · neutral #6b7280 · distribute #c2321f
   ========================================================================== */

:root {
  --prd-acc: #0f7a3d;
  --prd-neu: #6b7280;
  --prd-dis: #c2321f;
  --prd-acc-soft: #e6f4ec;
  --prd-neu-soft: #f1f3f6;
  --prd-dis-soft: #fcecea;
}

/* ---- the current-reading callout ---- */
.prd-callout {
  display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center;
  border-radius: var(--ff-radius); padding: 16px 20px; margin: 0 0 14px;
  border-left: 4px solid var(--prd-neu);
  background: linear-gradient(90deg, var(--prd-neu-soft) 0%, #fbfcfe 60%);
}
.prd-callout.zone-acc { border-left-color: var(--prd-acc);
  background: linear-gradient(90deg, var(--prd-acc-soft) 0%, #fbfefc 60%); }
.prd-callout.zone-dis { border-left-color: var(--prd-dis);
  background: linear-gradient(90deg, var(--prd-dis-soft) 0%, #fffbfb 60%); }
.prd-callout-lg { padding: 20px 24px; margin-bottom: 16px; }

.prd-callout-main { flex: 1 1 320px; min-width: 0; }
.prd-callout-band { flex: 0 1 300px; min-width: 0; }
.prd-k {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--ff-text-soft);
}
.prd-zone {
  font-size: 1.35rem; font-weight: 700; line-height: 1.25; margin: 3px 0 5px;
  color: var(--prd-neu);
}
.zone-acc .prd-zone { color: var(--prd-acc); }
.zone-dis .prd-zone { color: var(--prd-dis); }
.prd-gist { font-size: .87rem; line-height: 1.55; color: #374151; margin: 0; }

.prd-band-row {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: 5px 0 3px; font-variant-numeric: tabular-nums;
}
.prd-band-lo, .prd-band-hi { font-size: 1.02rem; font-weight: 600; color: var(--ff-text-soft); }
.prd-band-mid { font-size: 1.5rem; font-weight: 700; color: var(--ff-primary); }
.prd-band-sep { color: #b8bec9; }
.prd-band-legend { font-size: .74rem; color: var(--ff-text-soft); }

.prd-blurb { font-size: .9rem; line-height: 1.6; color: #374151; margin: 0 0 12px; }
.prd-card .ff-btn { margin-top: 12px; }

/* ---- chart frames ---- */
.prd-chart-wrap { position: relative; height: 440px; padding: 4px 2px 0; }
.prd-chart-sm { height: 300px; }
@media (max-width: 700px) {
  .prd-chart-wrap { height: 330px; }
  .prd-chart-sm { height: 240px; }
}

/* ---- zone pill (tables) ---- */
.prd-pill {
  display: inline-block; white-space: nowrap; border-radius: 999px;
  padding: 2px 9px; font-size: .72rem; font-weight: 700; line-height: 1.5;
  background: var(--prd-neu-soft); color: #46505f;
}
.prd-pill.zone-acc { background: var(--prd-acc-soft); color: var(--prd-acc); }
.prd-pill.zone-dis { background: var(--prd-dis-soft); color: var(--prd-dis); }

/* ---- record tables ---- */
.prd-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.prd-table th {
  text-align: left; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--ff-text-soft); padding: 9px 12px;
  border-bottom: 2px solid #e6e9ee; white-space: nowrap; background: #fafbfc;
}
.prd-table td {
  padding: 8px 12px; border-bottom: 1px solid #eef1f4; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.prd-table th.num, .prd-table td.num { text-align: right; }
.prd-table tbody tr:hover td { background: #f7f9fb; }
.prd-table td.pos { color: var(--prd-acc); font-weight: 600; }
.prd-table td.neg { color: var(--prd-dis); font-weight: 600; }
.prd-table td.prd-dim { color: var(--ff-text-soft); }
.prd-hit { color: var(--prd-acc); font-weight: 700; }
.prd-miss { color: #b8bec9; font-weight: 700; }

/* ---- methodology block ---- */
.prd-method h3 {
  font-size: .96rem; font-weight: 700; color: var(--ff-primary);
  margin: 18px 0 6px;
}
.prd-method h3:first-child { margin-top: 0; }
.prd-method p { font-size: .88rem; line-height: 1.65; color: #374151; margin: 0 0 10px; }
.prd-method ul { margin: 0 0 10px; padding-left: 1.15rem; }
.prd-method li { font-size: .88rem; line-height: 1.6; color: #374151; margin-bottom: 7px; }
.prd-method code {
  background: #f1f3f6; padding: 1px 5px; border-radius: 3px;
  font-size: .85em; white-space: nowrap;
}
.prd-sources { font-size: .8rem !important; color: var(--ff-text-soft) !important; }
.prd-sources a { color: var(--ff-accent, #2a78d6); }

@media (max-width: 560px) {
  .prd-callout { gap: 12px; }
  .prd-band-mid { font-size: 1.3rem; }
  .prd-zone { font-size: 1.15rem; }
}

/* ── reliability notice ───────────────────────────────────────────────
   A zone model whose two sides are not equally good has to say so before
   it shows a number, so this sits above the current call, not in the
   methodology section where nobody scrolls. */
.prd-reliability { margin: 0 0 18px; }
.prd-reliability strong { display: block; margin-bottom: 6px; font-size: 1.02rem; }
.prd-reliability p { margin: 0; font-size: .94rem; line-height: 1.58; opacity: .92; }

.prd-reliability-line {
  margin: 0 0 10px; font-size: .92rem; line-height: 1.5;
  color: var(--prd-dis, #c2321f);
}

/* ── sources table ──────────────────────────────────────────────────── */
.prd-sources-table td { vertical-align: top; line-height: 1.55; white-space: normal; }
.prd-sources-table td:first-child { white-space: nowrap; }
.prd-sources-table a { word-break: break-word; }
