/* ============================================================================
   reports-magazine.css

   Magazine-style design system for older TI reports that use the .report-page
   container class. Brings PARTIAL- and OLD-tier reports to the same visual
   standard as the recent NEW-FORMAT reports (e.g. buybacks-are-the-mechanism,
   you-dont-own-what-you-think, the-dilution-the-market).

   Pattern:
     - This stylesheet targets `.report-page` (old reports' container).
     - New reports use `.article-body` and have their own inline styles , 
       this file does not affect them.
     - Load AFTER each report's inline <style> block so the cascade
       overrides where intended (e.g. top padding nav-overlap fix).

   Audit reference: reports/audit-feature-leverage-2026-06-05.md
   Initial commit: 2026-06-08
   ========================================================================= */


/* ---- Container ---- */

.report-page {
  max-width: 880px;
  margin: 0 auto;
  /* Critical fix: account for the 72px fixed nav. Old reports used 32px which
     caused the eyebrow + title to render behind the nav. */
  padding: calc(72px + 32px) 24px 64px;
  color: #0f172a;
  line-height: 1.65;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}


/* ---- Headers + eyebrow + byline (typography lift) ---- */

.report-page .report-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 10px;
}

.report-page .report-title,
.report-page h1 {
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #0f172a;
}

.report-page .report-byline {
  font-size: 13px;
  color: #94a3b8;
  padding-bottom: 16px;
  margin-bottom: 36px;
  border-bottom: 1px solid #e2e8f0;
}

.report-page .report-byline strong {
  color: #475569;
}


/* ---- Lede paragraph (first paragraph after byline) ---- */

.report-page > .report-page-lede,
.report-page > p:first-of-type {
  font-size: 18px;
  line-height: 1.55;
  color: #475569;
  font-weight: 500;
  margin-bottom: 28px;
}


/* ---- Sections + headings (magazine accent) ---- */

.report-page .report-section {
  margin: 40px 0;
}

.report-page .report-section h2,
.report-page > h2 {
  font-size: 25px;
  font-weight: 800;
  margin: 48px 0 14px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  /* Magazine accent: indigo bottom border, inline-block so it sizes to text */
  border-bottom: 2px solid #6366f1;
  padding-bottom: 4px;
  display: inline-block;
  color: #0f172a;
}

.report-page .report-section h3,
.report-page > h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: #0f172a;
}

.report-page .report-section p,
.report-page > p {
  font-size: 16px;
  color: #475569;
  margin: 0 0 16px;
  line-height: 1.65;
}

.report-page p strong {
  color: #0f172a;
}

.report-page .report-section ul,
.report-page .report-section ol,
.report-page > ul,
.report-page > ol {
  font-size: 16px;
  color: #475569;
  margin: 0 0 16px;
  padding-left: 24px;
  line-height: 1.65;
}

.report-page li {
  margin-bottom: 6px;
}

.report-page li strong {
  color: #0f172a;
}


/* ---- Stat strip refinement (old reports already have .report-stat-strip) ---- */

.report-page .report-stat-strip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.report-page .report-stat-value {
  font-weight: 800;
}


/* ---- Punch quote + callouts (available for future content upgrades) ---- */

.report-page .punch,
.report-page .report-punch {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin: 24px 0;
  padding: 16px 22px;
  border-left: 4px solid #6366f1;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.05), transparent);
  letter-spacing: -0.01em;
}

.report-page .callout-key,
.report-page .report-callout-key {
  padding: 18px 22px;
  background: rgba(99, 102, 241, 0.08);
  border-left: 4px solid #6366f1;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}

.report-page .callout-key strong,
.report-page .report-callout-key strong {
  color: #4338ca;
}

.report-page .callout-warn,
.report-page .report-callout-warn {
  padding: 18px 22px;
  background: rgba(245, 158, 11, 0.08);
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}

.report-page .callout-warn strong,
.report-page .report-callout-warn strong {
  color: #92400e;
}


/* ---- Tables (lift typography to match new format) ---- */

.report-page .report-table,
.report-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.report-page .report-table thead th,
.report-page table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
  padding: 10px 12px;
  background: #f8fafc;
  color: #94a3b8;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
}

.report-page .report-table tbody td,
.report-page table td {
  padding: 11px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}

.report-page tr:last-child td {
  border-bottom: none;
}

.report-page td strong {
  color: #0f172a;
}

.report-page .pos {
  color: #16a34a;
  font-weight: 700;
}

.report-page .neg {
  color: #dc2626;
  font-weight: 700;
}


/* ---- Related links + disclaimer (footer-style) ---- */

.report-page .report-related {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 18px 22px;
  border-radius: 8px;
  margin-top: 40px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
}

.report-page .report-related h3 {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #94a3b8;
}

.report-page .report-related a {
  color: #4338ca;
  text-decoration: none;
  font-weight: 500;
}

.report-page .report-related a:hover {
  text-decoration: underline;
}

.report-page .report-disclaimer {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.6;
  padding-top: 24px;
  margin-top: 40px;
  border-top: 1px solid #e2e8f0;
}


/* ---- Mobile refinements ---- */

@media (max-width: 640px) {
  .report-page {
    padding: calc(72px + 24px) 16px 48px;
  }
  .report-page .report-stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
