/* CMS article-specific styles. The bulk of the wiki layout (sidebar, hero,
   breadcrumb, nav links) lives in `wiki.css`; this file only carries the
   bits that wiki.css doesn't already provide. */

.cms-heading {
  scroll-margin-top: 96px; /* clears the sticky topnav on anchor jumps */
}

.cms-h2 { font-size: 1.25rem; font-weight: 600; }
.cms-h3 { font-size: 1.0625rem; font-weight: 600; }
.cms-h4 { font-size: 0.9375rem; font-weight: 600; }

.cms-callout {
  border-left-width: 4px;
}

.cms-callout-info { border-left-color: var(--varial-primary, #1B3AA0); }
.cms-callout-note { border-left-color: var(--varial-gray-500, #6c757d); }
.cms-callout-warning { border-left-color: var(--varial-warning, #f0ad4e); }
.cms-callout-tip { border-left-color: var(--varial-success, #28a745); }

.cms-figure {
  margin: 1.5rem 0;
}

.cms-figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

/* Inline forecast figure (ForecastChartBlock, replayed by figure-replay.js). */
.report-chart {
  border: 1px solid var(--varial-gray-200, #e6e3de);
  border-radius: var(--varial-radius, 6px);
  padding: 1rem 1.25rem 1.25rem;
  background: var(--varial-surface, #fff);
}

.report-chart-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--varial-gray-700, #3f3b36);
}

.report-chart-plot {
  width: 100%;
  min-height: 340px;
}

.report-chart-plot.is-error::after {
  content: "Chart unavailable.";
  display: block;
  padding: 2rem 0;
  text-align: center;
  color: var(--varial-gray-500, #8a857d);
  font-size: 0.875rem;
}

.report-chart-caption {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* The report tab wraps its content in .wiki-article-page (report.html), so the
   full-width header + separator, the left-aligned capped reading row, and the
   fill-the-column card all come from wiki.css and match the standalone wiki
   article exactly. Only the report-specific bits live here. */

/* In the Spot results "Report" tab, the sticky sub-nav (tab strip) sits above the
   article, so the on-this-page TOC needs a larger sticky offset than the standalone
   wiki article, and a scroll of its own when it is taller than the viewport. */
.results-report .wiki-sidebar.card {
  top: 5.5rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
}

/* Report tab head: a clear title + summary lede at the top of the article card
   (reuses the wiki article's minimal-title/-sub type), separated from the first
   section by a hairline so the title reads as the report headline, not a section. */
.results-report-head {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--varial-border, #E7E0CC);
}

.results-report-head .results-report-summary {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Disclaimer / preamble lifted out of the body into the TOC rail: a quiet
   collapsible (native <details>) under the on-this-page nav, matching the TOC's
   left-accent look rather than the full-width blue callout box in the article body.
   Collapsed by default so the long fine-print stays out of the way. */
.results-report-aside {
  margin-top: 1.75rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--varial-border);
}

.results-report-aside-summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--varial-gray-500);
  transition: color 0.15s ease;
}

.results-report-aside-summary::-webkit-details-marker {
  display: none;
}

/* Caret: a rotated square corner — points right when closed, down when open. */
.results-report-aside-summary::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.results-report-aside[open] .results-report-aside-summary::before {
  transform: rotate(45deg);
}

.results-report-aside-summary:hover {
  color: var(--varial-gray-900);
}

.results-report-aside-body {
  margin-top: 0.65rem;
}

/* Mobile-only copy of the disclaimer at the foot of the report (the TOC rail that
   holds the desktop copy is hidden < lg). Separated from the content above. */
.results-report-aside-mobile {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--varial-border, #E7E0CC);
}

.results-report-aside-mobile .results-report-aside {
  margin-top: 0;
}

.results-report-aside .cms-callout {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--varial-gray-500);
  font-size: 0.72rem;
  line-height: 1.55;
}

/* The <summary> is the label now, so hide the callout's own heading. */
.results-report-aside .cms-callout .alert-heading {
  display: none;
}

.results-report-aside .cms-callout-body p:last-child {
  margin-bottom: 0;
}

.cms-code {
  border-radius: var(--varial-radius-sm, 4px);
  padding: 1rem;
  background: var(--varial-gray-100, #f5f7fa);
  overflow-x: auto;
}

.cms-xref {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--varial-primary-bg-light, rgba(27, 58, 160, 0.05));
  border-radius: var(--varial-radius-sm, 4px);
}

.cms-xref-heading {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--varial-primary, #1B3AA0);
}

.cms-internal-link {
  color: var(--varial-primary, #1B3AA0);
  text-decoration: underline;
}

.cms-marketing-hero-img {
  border-radius: var(--varial-radius, 6px);
}

.cms-legal {
  max-width: 800px;
}

.cms-marketing-body {
  max-width: 880px;
}

.wiki-paywall-teaser-copy {
  margin: 0.75rem 0 1.25rem;
  color: var(--varial-gray-600, #555);
  font-size: 1rem;
}

/* Expandable "detail" disclosures in the report body (a raw <details> carried
   in a rich_text block, class="report-detail"). Styled as a subtle info panel
   so a deeper-dive reads as optional, and clearly separated from the prose
   around it. */
.report-detail {
  margin: 1.75rem 0;
  border: 1px solid var(--varial-gray-200, #e6e3de);
  border-left: 3px solid var(--varial-primary, #1B3AA0);
  border-radius: var(--varial-radius, 6px);
  background: var(--varial-primary-bg-light, rgba(27, 58, 160, 0.05));
  padding: 0 1.25rem;
}

.report-detail > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0;
  font-weight: 600;
  color: var(--varial-primary, #1B3AA0);
  list-style: none;
}

.report-detail > summary::-webkit-details-marker {
  display: none;
}

.report-detail > summary::before {
  content: "\203A"; /* chevron, rotates when open */
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
  transition: transform 0.15s ease;
}

.report-detail[open] > summary::before {
  transform: rotate(90deg);
}

.report-detail[open] > summary {
  margin-bottom: 0.25rem;
}

.report-detail > p {
  margin-bottom: 0.85rem;
}

.report-detail > p:last-child {
  margin-bottom: 1.1rem;
}

/* A touch more breathing room between the report's H3 sub-sections. */
.results-report-page .cms-h3 {
  margin-top: 1.75rem;
}

/* Lever summary matrix (raw <table class="report-lever-table"> in a rich_text block).
   Scenario columns are centred, the first column left-aligned, and the Central
   (anchor) column is tinted so the eye lands on the best-estimate case. */
.report-lever-table-wrap {
  margin: 1.25rem 0;
  overflow-x: auto;
}

.report-lever-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.78rem;
}

.report-lever-table th,
.report-lever-table td {
  padding: 0.4rem 0.4rem;
  border-bottom: 1px solid var(--varial-gray-200, #e6e3de);
  white-space: nowrap;
  text-align: center;
}

.report-lever-table thead th {
  font-weight: 600;
  vertical-align: bottom;
  border-bottom: 2px solid var(--varial-gray-300, #d4d0c9);
}

.report-lever-table th:first-child,
.report-lever-table td:first-child {
  text-align: left;
  font-weight: 500;
  white-space: normal;
  min-width: 7.5rem;
  padding-left: 0;
}

.report-lever-table th .pct {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--varial-gray-500, #8a857d);
}

/* Highlight the Central (P50) anchor column. */
.report-lever-table th:nth-child(4),
.report-lever-table td:nth-child(4) {
  background: var(--varial-primary-bg-light, rgba(27, 58, 160, 0.05));
  font-weight: 600;
}

.report-lever-table tbody tr:last-child td {
  border-bottom: none;
}
