/* ══════════════════════════════════════════════════════
   HERO KPI
   ══════════════════════════════════════════════════════ */
.hero {
  padding: var(--s-5) 0 var(--s-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  align-items: start;
}
.hero-primary { min-width: 0; }
.hero-week { min-width: 0; }
.hero-week-label {
  font-size: var(--fs-1); color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px;
}
.hero-week-bars {
  display: flex; flex-direction: column; gap: 2px;
  justify-content: center; height: calc(100% - 18px);
}
.hero-week-empty {
  font-size: var(--fs-1);
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: 12px 8px;
  opacity: .7;
}
.hero-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}
/* Desktop / tablet: editorial stat strip. Strip the card chrome
   (background, border, hover transform, box-shadow) and replace
   internal cards with vertical-divider columns. Numbers grow,
   labels shrink, the whole hero KPI row reads as a single
   instrument cluster rather than four floating boxes. */
@media (min-width: 768px) {
  .hero-kpis {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--s-3) 0;
    background: linear-gradient(180deg, rgba(255,255,255,.01), transparent);
  }
  .hero-kpis .kpi-card {
    background: none;
    border: none;
    border-left: 1px solid var(--border);
    border-radius: 0;
    padding: 0 var(--s-4);
    transition: none;
  }
  .hero-kpis .kpi-card:first-child { border-left: none; }
  .hero-kpis .kpi-card:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
  }
  .hero-kpis .kpi-card:first-child:hover { border-left: none; }
  .hero-kpis .kpi-card:not(:first-child):hover { border-left-color: var(--border); }
  .hero-kpis .kpi-label {
    font-size: var(--fs-1);
    letter-spacing: 1px;
    margin-bottom: 6px;
  }
  .hero-kpis .kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.015em;
  }
  .hero-kpis .kpi-sub {
    font-size: var(--fs-1);
    margin-top: 6px;
  }
}
.hero-label {
  font-size: var(--fs-2); color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700;
  margin-bottom: 8px;
}
.hero-number {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 900;
  line-height: 1; letter-spacing: -2px;
  color: var(--gold);
  position: relative;
}
.hero-ci {
  font-size: 1rem; color: var(--muted); margin-top: 14px;
  font-variant-numeric: tabular-nums; letter-spacing: -0.005em;
  max-width: 360px;
}
/* Hero narrative — plain-English summary beneath the CI bar. Reads as a
   single short paragraph; the comparison verdict is highlighted via
   .hn-verdict pos/neg/flat colors so the eye lands on the qualitative
   call before parsing the rest. */
.hero-narrative {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text2);
  max-width: 600px;
}
.hero-narrative p { margin: 0; }
.hero-narrative strong {
  color: var(--text); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hn-verdict { font-weight: 700; }
.hn-pos { color: var(--green); }
.hn-neg { color: var(--red); }
.hn-flat { color: var(--gold); }
@media (max-width: 639px) {
  .hero-narrative { font-size: var(--fs-3); line-height: 1.5; margin-top: 10px; }
}

/* Mobile bottom-nav: removed in iter 22. Top page-tabs strip already
   serves both desktop and mobile; the duplicate bottom nav was extra
   chrome for an audience that isn't gesture/thumb-first. */

/* Confidence breakdown panel removed in iter 25 — the hero narrative +
   confidence badge cover the same ground in plain English. */

/* Festival cluster — sibling sub-events of a multi-event festival
   (e.g. World Open's three sub-events). Renders below the hero
   narrative when applicable. Each card switches the selected
   tournament; the active one carries a gold border. */
.festival-cluster:empty { display: none; }
.festival-cluster {
  margin-top: 16px;
  max-width: 560px;
}
.fc-head {
  display: flex; align-items: baseline; gap: var(--s-2);
  margin-bottom: 8px;
}
.fc-title {
  font-size: var(--fs-1); color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px; font-weight: 700;
}
.fc-sub {
  font-size: var(--fs-1); color: var(--muted);
  opacity: .7;
}
.fc-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 6px;
}
.fc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
  min-width: 0;
}
.fc-card:hover {
  border-color: var(--gold);
  background: var(--surface2);
  transform: translateY(-1px);
}
.fc-card-active {
  border-color: var(--blue);
  background: var(--blue-dim);
  box-shadow: 0 0 0 1px var(--blue);
}
.fc-card-label {
  font-size: var(--fs-1); font-weight: 700;
  color: var(--text2);
  text-transform: uppercase; letter-spacing: .4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fc-card-active .fc-card-label { color: var(--blue); }
.fc-card-num {
  font-size: var(--fs-5); font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  margin: 2px 0;
}
.fc-card-sub {
  font-size: var(--fs-1); color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.hero-ci strong { color: var(--text); font-weight: 700; }
.ci-final { color: var(--text2); font-weight: 600; }

/* ── Confidence-interval visualization ──
   The point estimate is the headline number (.hero-number). The CI bar
   below it shows the 80% range visually with the point estimate marker
   positioned proportionally. Avoids the prior "175 — 219 (80% CI)" wall
   of text by encoding the range as a visual scale. */
.ci-bar {
  display: flex; align-items: center;
  gap: 10px; margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.ci-bound {
  font-size: var(--fs-4); font-weight: 700; color: var(--text2);
  flex-shrink: 0; min-width: 2.5ch; text-align: center;
}
.ci-bound-lo { text-align: right; }
.ci-bound-hi { text-align: left; }
.ci-track {
  flex: 1; position: relative;
  height: 6px; border-radius: 100px;
  background: var(--surface3);
  overflow: visible;
}
/* Subtle CI band tint — green at lower bound, gold center, soft edge at upper. */
.ci-track-fill {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg,
    rgba(63,185,80,.35) 0%,
    rgba(240,192,64,.55) 50%,
    rgba(248,81,73,.30) 100%);
}
.ci-marker {
  position: absolute; top: 50%;
  width: 14px; height: 14px; border-radius: 100px;
  background: var(--text);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--text2), 0 2px 6px rgba(0,0,0,.4);
  transform: translate(-50%, -50%);
  transition: left .5s cubic-bezier(.22,1,.36,1);
  pointer-events: auto; cursor: help;
}
.ci-meta {
  margin-top: 8px;
  font-size: var(--fs-2); color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}

/* KPI Cards */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
}
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.kpi-card:hover { border-color: var(--border-light); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.kpi-label {
  font-size: var(--fs-2); color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
  margin-bottom: 6px;
}
.kpi-value {
  font-size: 1.45rem; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.kpi-sub { font-size: var(--fs-2); color: var(--muted); margin-top: 6px; }
.v-blue { color: var(--blue); }
.v-gold { color: var(--gold); }
.v-green { color: var(--green); }
.v-orange { color: var(--orange); }
.v-red { color: var(--red); }
.v-purple { color: var(--purple); }

