/* --------------------------------------------------------------------
   Saga Health — Research report shell
   Shared CSS for all interactive research pages. Inherits the design
   tokens from the parent sagahealthcorp site (purple/periwinkle/cream)
   so reports feel like part of the same publication, not bolt-ons.
   -------------------------------------------------------------------- */

:root {
  --purple: #4b0082;
  --purple-soft: rgba(75, 0, 130, 0.06);
  --purple-bright: #6020a0;
  --periwinkle: #8298e4;
  --periwinkle-soft: rgba(130, 152, 228, 0.12);
  --light-blue: #dfe9f2;
  --white: #ffffff;
  --cream: #f7f6f3;
  --cream-deep: #efece5;
  --text: #1c1c2e;
  --muted: #6b7080;
  --muted-soft: #a1a5b3;
  --rule: rgba(75, 0, 130, 0.12);
  --rule-strong: rgba(75, 0, 130, 0.24);
  --success: #2c7a3e;
  --warn: #b76b14;
  --danger: #a8311c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ----- Reading progress bar (fixed top) -------------------------- */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--periwinkle));
  z-index: 200;
  width: 0%;
  transition: width 0.05s linear;
}

/* ----- Top nav (matches main site) ------------------------------ */
.report-nav {
  position: fixed;
  top: 2px; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(247, 246, 243, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
}

.saga-wordmark {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--purple);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.saga-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-back {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--purple); }

.nav-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-print {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.nav-print:hover { background: var(--purple-soft); }

/* ----- Report layout: sidebar + main column --------------------- */
.report-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 5rem;
}

.report-sidebar {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  height: calc(100vh - 6rem);
  padding: 2.5rem 0 2.5rem 2rem;
  border-right: 1px solid var(--rule);
  overflow-y: auto;
}

.sidebar-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-bottom: 1.5rem;
  display: block;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.65rem 1rem 0.65rem 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  line-height: 1.4;
  transition: all 0.18s ease;
}

.sidebar-nav a:hover {
  color: var(--text);
  background: var(--purple-soft);
}

.sidebar-nav a.active {
  color: var(--purple);
  border-left-color: var(--purple);
  background: var(--purple-soft);
  font-weight: 500;
}

.sidebar-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
  line-height: 1.9;
}

.report-main {
  padding: 0 4rem 6rem 4rem;
  min-width: 0;
}

/* ----- Report hero -------------------------------------------- */
.report-hero {
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4rem;
}

.report-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-bottom: 1.5rem;
}

.report-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 780px;
}

.report-title em {
  font-style: italic;
  color: var(--purple);
}

.report-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.hero-stat {
  background: var(--cream);
  padding: 2rem 1.75rem;
}

.hero-stat-value {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 0.6rem;
  display: block;
}

.hero-stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

/* ----- Section structure ------------------------------------- */
.report-section {
  scroll-margin-top: 5.5rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule);
}

.report-section:last-of-type { border-bottom: none; }

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--periwinkle);
}

.section-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 2rem;
}

.section-title em {
  font-style: italic;
  color: var(--purple);
}

.section-body {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-body strong {
  color: var(--purple);
  font-weight: 500;
}

/* ----- Tabbed exec summaries --------------------------------- */
.tabs {
  border: 1px solid var(--rule);
}

.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--rule);
  background: var(--cream-deep);
}

.tab-button {
  flex: 1;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  border-right: 1px solid var(--rule);
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-button:last-child { border-right: none; }
.tab-button:hover { color: var(--text); background: var(--cream); }

.tab-button.active {
  background: var(--cream);
  color: var(--purple);
  font-weight: 500;
  position: relative;
}

.tab-button.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--purple);
}

.tab-panels { padding: 2.5rem 2.5rem 2.75rem; background: var(--cream); }

.tab-panel { display: none; animation: tab-fade 0.3s ease; }
.tab-panel.active { display: block; }

@keyframes tab-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-headline {
  font-family: 'EB Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  background: var(--purple-soft);
  border-left: 2px solid var(--purple);
}

.panel-stat-num {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  color: var(--purple);
  display: block;
}

.panel-stat-cap {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 0.3rem;
  line-height: 1.4;
}

.panel-body {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.bottom-line {
  background: var(--text);
  color: var(--cream);
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--periwinkle);
}

.bottom-line-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-bottom: 0.6rem;
  display: block;
}

.bottom-line-text {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.55;
}

/* ----- Sector selector --------------------------------------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.sector-btn {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 1rem 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.sector-btn:hover {
  border-color: var(--periwinkle);
  color: var(--text);
}

.sector-btn.active {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
  font-weight: 500;
}

.sector-detail {
  display: none;
  border: 1px solid var(--rule);
  background: var(--cream);
}

.sector-detail.active { display: block; animation: tab-fade 0.3s ease; }

.sector-detail-header {
  padding: 1.25rem 1.75rem;
  background: var(--purple-soft);
  border-bottom: 1px solid var(--rule);
  font-family: 'EB Garamond', serif;
  font-size: 1.3rem;
  color: var(--purple);
}

.sector-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 0;
}

.sector-stat {
  padding: 1.5rem 1.75rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.sector-stat-num {
  font-family: 'EB Garamond', serif;
  font-size: 1.75rem;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.sector-stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

/* ----- Cost cards / accordions ------------------------------- */
.cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}

.cost-card {
  background: var(--cream);
  padding: 1.75rem;
  cursor: pointer;
  transition: background 0.2s;
}
.cost-card:hover { background: var(--white); }

.cost-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.cost-card-name {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  color: var(--text);
}

.cost-card-range {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--purple);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.cost-card-desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

.cost-card-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
}

.cost-card.expanded .cost-card-detail {
  max-height: 400px;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.cost-toggle {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-top: 0.75rem;
}

.cost-total {
  background: var(--text);
  color: var(--cream);
  padding: 2rem 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.cost-total-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--periwinkle);
}

.cost-total-num {
  font-family: 'EB Garamond', serif;
  font-size: 2.4rem;
  color: var(--white);
}

/* ----- Comparative progress bars ----------------------------- */
.compare {
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  background: var(--cream);
  border: 1px solid var(--rule);
}

.compare-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.compare-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.compare-values {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: var(--purple);
}

.compare-track {
  position: relative;
  height: 8px;
  background: var(--cream-deep);
  border-radius: 4px;
  overflow: hidden;
}

.compare-fill {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, var(--purple), var(--periwinkle));
  border-radius: 4px;
  width: 0;
  transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.compare-baseline {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--text);
}

.compare-baseline::after {
  content: attr(data-label);
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ----- ROI calculator v3 — two-column desktop layout --------- */
.calc {
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
}

/* Left column — inputs */
.calc-left {
  padding: 2rem 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.calc-left-header {
  font-family: 'EB Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
}
.calc-left-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Right column — results (dark) */
.calc-right {
  background: var(--navy, #0f172a);
  color: var(--cream);
  padding: 2rem 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.calc-right .calc-section-label {
  color: rgba(255,255,255,0.45);
}

/* Full-width rows spanning both columns (charts, tornado, method) */
.calc-full {
  grid-column: 1 / -1;
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-top: 1px solid var(--rule);
}

/* Info icon tooltip next to slider labels. Structurally a <button>
   (keyboard-focusable, screen-reader-announced) paired with an
   aria-describedby-linked <span role="tooltip" hidden>. JS toggles
   the `hidden` attribute on focus/blur + mouseenter/mouseleave. */
.calc-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--rule);
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 600;
  cursor: help;
  margin-left: 4px;
  vertical-align: middle;
  position: relative;
}
.calc-info:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
.calc-info-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--cream);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  padding: 6px 10px;
  border-radius: 4px;
  max-width: 260px;
  min-width: 180px;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  text-align: center;
  line-height: 1.5;
  white-space: normal;
}
/* Keep `hidden` attribute authoritative — the [hidden] attribute
   selector wins here so we don't leak tooltips when the button isn't
   in the focus/hover state. */
.calc-info-tip[hidden] { display: none; }

/* Results tiles inside dark right column */
.calc-right .calc-tiles {
  grid-template-columns: 1fr;
  gap: 1rem;
}
.calc-right .calc-tile {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.calc-right .calc-tile-period { color: rgba(255,255,255,0.5); }
.calc-right .calc-tile-ratio { color: var(--cream); }
.calc-right .calc-tile-ratio-suffix { color: var(--periwinkle); }
.calc-right .calc-tile-row-label { color: rgba(255,255,255,0.5); }
.calc-right .calc-tile-row-val { color: var(--cream); }

/* Hero 1-year tile inside right col */
.calc-right .calc-tile.hero {
  background: var(--purple);
  border-color: var(--periwinkle);
}

/* 3yr + 5yr side by side inside right col */
.calc-right .calc-tile-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .calc-right .calc-tile-pair { grid-template-columns: 1fr; }
}

.calc-right-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0;
}

.calc-callout {
  background: var(--purple);
  color: var(--cream);
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--periwinkle);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.calc-callout-icon {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.75rem;
  color: var(--periwinkle);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.15rem;
}

.calc-callout-body {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.65;
}
.calc-callout-body strong { font-weight: 500; color: var(--white); }

.calc-section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-bottom: 0.75rem;
  display: block;
}

/* Scenario toggle */
.scenarios {
  display: flex;
  gap: 0;
  border: 1px solid var(--rule);
  background: var(--white);
  align-self: flex-start;
  flex-wrap: wrap;
}

.scenario-btn {
  padding: 0.7rem 1.1rem;
  background: transparent;
  border: none;
  border-right: 1px solid var(--rule);
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.scenario-btn:last-child { border-right: none; }
.scenario-btn:hover { color: var(--text); background: var(--purple-soft); }
.scenario-btn.active {
  background: var(--purple);
  color: var(--white);
  font-weight: 500;
}

/* Slider inputs */
.calc-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem 2rem;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.calc-field-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.calc-field-value {
  font-family: 'EB Garamond', serif;
  font-size: 1.25rem;
  color: var(--purple);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

.calc-field-note {
  font-size: 0.7rem;
  color: var(--periwinkle);
  font-style: italic;
  margin-top: 0.3rem;
  line-height: 1.4;
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--cream-deep);
  border-radius: 2px;
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--purple);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px var(--purple);
  cursor: pointer;
}
.calc-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--purple);
  border: 3px solid var(--cream);
  cursor: pointer;
}

/* Primary output tiles — 1yr / 3yr / 5yr summary */
.calc-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.calc-tile {
  background: var(--white);
  padding: 1.5rem 1.5rem 1.75rem;
}

.calc-tile.hero {
  background: var(--text);
  color: var(--cream);
}

.calc-tile-period {
  font-family: 'Space Mono', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-bottom: 1rem;
  display: block;
}

.calc-tile-ratio {
  font-family: 'EB Garamond', serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--purple);
  margin-bottom: 0.4rem;
}
.calc-tile.hero .calc-tile-ratio { color: var(--white); }

.calc-tile-ratio-suffix {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-left: 0.25rem;
}
.calc-tile.hero .calc-tile-ratio-suffix { color: var(--periwinkle); }

.calc-tile-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.calc-tile.hero .calc-tile-rows { border-top-color: rgba(255,255,255,0.12); }

.calc-tile-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
}

.calc-tile-row-label {
  color: var(--muted);
  font-weight: 300;
}
.calc-tile.hero .calc-tile-row-label { color: rgba(255,255,255,0.55); }

.calc-tile-row-val {
  color: var(--text);
  font-weight: 500;
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
}
.calc-tile.hero .calc-tile-row-val { color: var(--cream); }

/* Derived mini-stats strip */
.calc-mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
}

.calc-mini-item {
  padding: 0.9rem 1.1rem;
  border-right: 1px solid var(--rule);
}
.calc-mini-item:last-child { border-right: none; }

.calc-mini-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
  display: block;
}

.calc-mini-val {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1;
}

/* Charts */
.calc-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.calc-chart {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 1.25rem 1.25rem 0.75rem;
}

.calc-chart-title {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.calc-chart-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.calc-chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

.calc-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.calc-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-swatch {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
}
.legend-swatch.purple { background: var(--purple); }
.legend-swatch.periwinkle { background: var(--periwinkle); }
.legend-swatch.conservative {
  background: transparent;
  border-top: 2px dashed var(--muted);
  height: 0;
  border-radius: 0;
}
.legend-swatch.green { background: var(--success); }
.legend-swatch.red { background: var(--danger); }

/* Tornado / sensitivity chart */
.tornado {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 1.5rem 1.5rem 1.75rem;
}

.tornado-row {
  display: grid;
  grid-template-columns: 140px 1fr 230px;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
}
.tornado-row:last-child { margin-bottom: 0; }

.tornado-label {
  color: var(--text);
  font-weight: 500;
}
.tornado-label small {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 300;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

/* Bar-wrap is a 0-anchored axis: zero at 50%, negatives left, positives
   right. The pseudo-element is the visible zero tick. */
.tornado-bar-wrap {
  position: relative;
  height: 28px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.tornado-bar-wrap::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}

.tornado-bar {
  position: absolute;
  top: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(130,152,228,0.45), rgba(75,0,130,0.8));
  border-radius: 1px;
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.tornado-marker {
  position: absolute;
  top: -4px; bottom: -4px;
  width: 2px;
  background: var(--text);
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.tornado-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  text-align: center;
}
.tornado-val {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tornado-val.current {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: var(--purple);
  letter-spacing: 0;
}
.tornado-val.negative { color: var(--muted); }

/* Methodology accordion */
.calc-method {
  background: var(--white);
  border: 1px solid var(--rule);
}

.calc-method-toggle {
  width: 100%;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.calc-method-toggle::after {
  content: '+';
  font-family: 'EB Garamond', serif;
  font-size: 1.4rem;
  color: var(--periwinkle);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s;
}

.calc-method.open .calc-method-toggle::after { content: '−'; }

.calc-method-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.25rem;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}

.calc-method.open .calc-method-body {
  max-height: 600px;
  padding-bottom: 1.25rem;
}

.calc-cta {
  display: inline-block;
  align-self: flex-start;
  padding: 1rem 1.5rem;
  background: var(--purple);
  color: var(--white);
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
}
.calc-cta:hover { background: var(--purple-bright); }

@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc-left, .calc-right { padding: 1.5rem 1.25rem; }
  .calc-charts { grid-template-columns: 1fr; }
  .tornado-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .tornado-values { grid-template-columns: repeat(3, 1fr); }
}

@media print {
  .calc-method-body { max-height: none !important; padding: 0 1.25rem 1rem !important; }
  .calc-method-toggle::after { display: none; }
  .scenarios { display: none; }
}

/* ----- ROI calc v3b: refined output stack ---------------------
   Summary strip → Projected Returns → Break-Even + Cumulative
   Savings → Methodology caption. Replaces the old .calc-mini +
   .calc-tiles + collapsible methodology accordion. Old rules
   stay in the stylesheet so nothing existing breaks; the new DOM
   just stops referencing them.

   The cb98099 two-column .calc layout (calc-left / calc-right
   dark sidebar) is flattened to a single column for v3b — the new
   Projected Returns cards live full-width below the inputs.
   ------------------------------------------------------------ */
.calc { grid-template-columns: 1fr; }
.calc-left { padding-bottom: 1.25rem; }

/* 2a. Summary strip */
.calc-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  background: var(--periwinkle-soft);
}
.calc-summary-item {
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--rule);
}
.calc-summary-item:last-child { border-right: none; }
.calc-summary-label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.calc-summary-value {
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* 2b. Projected Returns */
.calc-returns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.calc-return-card {
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.calc-return-eyebrow {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.calc-return-ratio {
  font-family: 'EB Garamond', serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 3.5vw, 3.4rem);
  color: var(--success);
  line-height: 1;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.calc-return-ratio.negative { color: var(--muted); }
.calc-return-caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-weight: 300;
}
.calc-return-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0 0 1rem;
}
.calc-return-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
}
.calc-return-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.calc-return-rows dt {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 300;
}
.calc-return-rows dd {
  margin: 0;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.calc-return-rows .calc-return-net-positive { color: var(--success); }

/* 2c. Break-even + Cumulative Savings */
.calc-horizon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.calc-horizon-card {
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.calc-horizon-icon {
  width: 28px;
  height: 28px;
  color: var(--success);
  display: block;
  margin-bottom: 0.9rem;
}
.calc-horizon-eyebrow {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.calc-horizon-value {
  font-family: 'EB Garamond', serif;
  color: var(--success);
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  line-height: 1;
  margin-bottom: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.calc-horizon-value.unreachable { color: var(--muted); }
.calc-horizon-caption {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 300;
}

/* Cumulative-savings bar rows */
.calc-cumsavings-rows {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.25rem;
}
.calc-cumsavings-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 0.85rem;
  align-items: center;
}
.calc-cumsavings-label {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 400;
}
.calc-cumsavings-track {
  position: relative;
  height: 2px;
  background: var(--rule);
  border-radius: 999px;
  overflow: hidden;
}
.calc-cumsavings-fill {
  display: block;
  height: 100%;
  background: var(--success);
  border-radius: 999px;
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.calc-cumsavings-value {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  min-width: 3.5em;
  text-align: right;
}

/* 2d. Methodology caption */
.calc-method-caption {
  background: var(--periwinkle-soft);
  border: 1px solid var(--rule);
  padding: 1rem 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.7;
}
.calc-method-caption strong {
  color: var(--text);
  font-weight: 500;
}

/* Mobile */
@media (max-width: 768px) {
  .calc-summary-strip { grid-template-columns: 1fr; }
  .calc-summary-item {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .calc-summary-item:last-child { border-bottom: none; }
  .calc-returns-grid { grid-template-columns: 1fr; }
  .calc-horizon-grid { grid-template-columns: 1fr; }
  .calc-return-card { padding: 1.5rem; }
  .calc-horizon-card { padding: 1.25rem 1.5rem; }
}

/* Print — keep each group together, drop gradients / transitions */
@media print {
  .calc-cumsavings-fill {
    transition: none !important;
    background: #2c7a3e !important;
  }
  .calc-return-card,
  .calc-horizon-card,
  .calc-returns-grid,
  .calc-horizon-grid,
  .calc-method-caption,
  .calc-summary-strip {
    break-inside: avoid;
  }
  .calc-method-caption {
    background: transparent !important;
    border-color: var(--muted-soft);
  }
}

/* ----- Device cards ------------------------------------------ */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.device-card {
  background: var(--cream);
  padding: 1.75rem;
}

.device-name {
  font-family: 'EB Garamond', serif;
  font-size: 1.3rem;
  color: var(--purple);
  margin-bottom: 0.4rem;
}

.device-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-bottom: 1rem;
}

.device-desc {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
}

/* ----- Timeline ---------------------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin: 2rem 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 0; right: 0;
  height: 1px;
  background: var(--rule);
}

.timeline-step {
  position: relative;
  padding-top: 3rem;
  text-align: center;
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px var(--purple);
}

.timeline-phase {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.timeline-desc {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.55;
  text-align: left;
}

/* ----- Domain cards (HPO 6 metrics) -------------------------- */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.domain-card {
  background: var(--cream);
  padding: 1.5rem 1.75rem;
  cursor: pointer;
  transition: background 0.2s;
}
.domain-card:hover { background: var(--white); }

.domain-num {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--periwinkle);
  margin-bottom: 0.5rem;
}

.domain-name {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.domain-source {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.domain-detail {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.domain-card.expanded .domain-detail {
  max-height: 200px;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}

/* ----- Radar chart wrapper ----------------------------------- */
.radar-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 2rem;
  margin-bottom: 2rem;
}

.radar-svg { width: 100%; height: auto; max-height: 420px; }

.radar-legend {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.85rem;
}

.radar-legend-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.radar-legend-swatch {
  width: 18px;
  height: 18px;
  border-radius: 3px;
}

.radar-legend-swatch.current { background: rgba(183, 107, 20, 0.5); border: 2px solid #b76b14; }
.radar-legend-swatch.target { background: rgba(130, 152, 228, 0.4); border: 2px solid var(--periwinkle); }

.radar-legend-text strong { display: block; color: var(--text); margin-bottom: 0.15rem; font-weight: 500; }
.radar-legend-text span { color: var(--muted); font-size: 0.8rem; }

/* ----- CTA blocks -------------------------------------------- */
.cta-block {
  background: var(--purple);
  color: var(--white);
  padding: 3rem;
  text-align: center;
  margin-top: 2rem;
}

.cta-block h3 {
  font-family: 'EB Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--white);
}

.cta-block p {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  max-width: 480px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 1.75rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.cta-btn.primary {
  background: var(--white);
  color: var(--purple);
}
.cta-btn.primary:hover { background: var(--cream); }

.cta-btn.ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.cta-btn.ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }

/* ----- Sources / footer -------------------------------------- */
.sources {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
  list-style: none;
  padding: 0;
}

.sources li {
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.85rem;
}

.sources li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--periwinkle);
}

.report-footer {
  background: var(--purple);
  padding: 2.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.report-footer span,
.report-footer a {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.report-footer a:hover { color: var(--white); }

/* ----- Mobile ------------------------------------------------ */
.mobile-toc-toggle {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 95;
  background: var(--purple);
  color: var(--white);
  border: none;
  padding: 0.85rem 1.1rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(75, 0, 130, 0.25);
}

@media (max-width: 960px) {
  .report-nav { padding: 1rem 1.25rem; }
  .nav-actions { gap: 0.75rem; }
  .nav-print { padding: 0.45rem 0.7rem; }
  .report-shell { grid-template-columns: 1fr; }
  .report-sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 80vw;
    max-width: 320px;
    padding: 5rem 1.5rem 2rem;
    background: var(--cream);
    border-right: 1px solid var(--rule);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 90;
    overflow-y: auto;
  }
  .report-sidebar.open { transform: translateX(0); }
  .report-main { padding: 0 1.25rem 4rem; }
  .report-hero { padding-top: 2rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
  .cost-grid { grid-template-columns: 1fr; }
  .radar-wrap { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 1.5rem; }
  .timeline::before { display: none; }
  .timeline-step { padding-top: 0; padding-left: 2.5rem; text-align: left; }
  .timeline-step::before { top: 4px; left: 0; transform: none; }
  .timeline-desc { text-align: left; }
  .mobile-toc-toggle { display: block; }
  .tab-button { padding: 0.85rem 0.5rem; font-size: 0.5rem; }
  .panel-stats { grid-template-columns: 1fr; }
  .sector-stats { grid-template-columns: 1fr; }
  .report-footer { padding: 1.5rem 1.25rem; flex-direction: column; text-align: center; }
}

/* ----- Print ------------------------------------------------- */
@media print {
  .read-progress, .report-nav, .mobile-toc-toggle, .report-sidebar,
  .nav-print, .calc-cta, .cta-block { display: none !important; }
  body { background: white; }
  .report-shell { display: block; max-width: none; padding: 0; }
  .report-main { padding: 0 1in; }
  .report-section { page-break-inside: avoid; padding: 1.5rem 0; }
  .report-hero { padding-top: 1rem; }
  .tab-panel { display: block !important; page-break-before: auto; }
  .tab-bar { display: none; }
  .tab-panels { padding: 0; }
  .panel-headline { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
  .sector-detail { display: block !important; margin-bottom: 1rem; }
  .sector-grid { display: none; }
  .cost-card-detail { max-height: none !important; padding-top: 0.5rem !important; margin-top: 0.5rem !important; border-top: 1px solid var(--rule); }
  .domain-detail { max-height: none !important; padding-top: 0.5rem !important; margin-top: 0.5rem !important; border-top: 1px solid var(--rule); }
  .report-footer { background: white; color: var(--text); border-top: 1px solid var(--rule); }
  .report-footer span, .report-footer a { color: var(--muted); }
}
