/* ============================================================
   Reports family — /reports + /reports/*
   Built on styles.css primitives (dark brand system).
   New cohort pages reuse these components; add classes here,
   never inline styles, when a new report ships.
   ============================================================ */

/* --- Hero --- */
.report-hero {
  position: relative;
  padding: 3.25rem 0 2.75rem;
  overflow: hidden;
}
.report-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% -8%, rgba(255, 59, 59, 0.16), transparent),
    radial-gradient(ellipse 40% 40% at 8% 70%, rgba(255, 59, 59, 0.05), transparent);
  pointer-events: none;
}
.report-hero .wrap {
  position: relative;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
}
.report-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.34rem 0.75rem;
}
.report-chip.fire {
  color: var(--accent);
  border-color: rgba(255, 59, 59, 0.35);
}

.report-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.report-hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.report-hero .report-sub {
  max-width: 44rem;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}
.report-hero .report-sub strong {
  color: var(--text);
}

/* --- Metric band --- */
.report-metrics {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 2.2rem 0 0;
}
.report-metric {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 59, 59, 0.06), transparent 55%), var(--surface);
  padding: 1.05rem 1.1rem 1.15rem;
}
.report-metric b {
  display: block;
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text);
}
.report-metric b .num-tick {
  color: var(--accent);
}
.report-metric span {
  display: block;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* --- Leak ranking --- */
.report-section {
  padding: 2.75rem 0;
}
.report-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.4rem;
}
.report-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}
.report-section .section-lead {
  max-width: 40rem;
  color: var(--muted);
}

.report-leaks {
  margin: 1.9rem 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.report-leak {
  display: grid;
  grid-template-columns: 3rem 1fr minmax(130px, 10rem) 3.4rem;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.2rem;
  border-top: 1px solid var(--border);
}
.report-leak:first-child {
  border-top: none;
}
.report-leak-rank {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
  text-align: center;
}
.report-leak-body b {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}
.report-leak-body span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}
.report-leak-bar {
  height: 8px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
}
.report-leak-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
}
.report-leak-pct {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 639px) {
  .report-leak {
    grid-template-columns: 2.4rem 1fr auto;
    grid-template-areas:
      "rank body pct"
      "rank bar pct";
    gap: 0.35rem 0.8rem;
  }
  .report-leak-rank { grid-area: rank; }
  .report-leak-body { grid-area: body; }
  .report-leak-bar { grid-area: bar; }
  .report-leak-pct { grid-area: pct; }
}

/* --- Pull quote --- */
.report-quote {
  margin: 2.4rem 0 0;
  padding: 1.4rem 1.5rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, rgba(255, 59, 59, 0.08), transparent 70%);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--text);
}
.report-quote small {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Report shelf (hub) --- */
.report-shelf {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1.9rem 0 0;
}
@media (min-width: 700px) {
  .report-shelf {
    grid-template-columns: repeat(2, 1fr);
  }
}
.report-shelf-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.2rem;
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.report-shelf-card:hover {
  border-color: rgba(255, 59, 59, 0.4);
  transform: translateY(-2px);
  text-decoration: none;
}
.report-shelf-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  margin: 0;
}
.report-shelf-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}
.report-shelf-card .report-chip {
  align-self: flex-start;
}
.report-shelf-card.queued {
  border-style: dashed;
  background: transparent;
}
.report-shelf-card,
.report-shelf-card:hover {
  text-decoration: none;
}
.report-shelf-card h3,
.report-shelf-card p,
.report-shelf-card .shelf-link,
.report-shelf-card .report-chip {
  text-decoration: none;
}
.report-shelf-card .shelf-link {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.report-shelf-card .shelf-link::after {
  content: " →";
}

/* --- Footer note strip --- */
.report-note {
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}
.report-note a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Footer extras used by reports pages --- */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--text);
}
.footer-note {
  color: var(--muted);
  font-size: 0.78rem;
  max-width: 34rem;
  margin: 0;
}
@media (min-width: 720px) {
  .footer-nav {
    justify-content: flex-end;
  }
}
