/* ═══════════════════════════════════════════════
   SOLARIZED DARK THEME — #424242 Background
   Report content + House Map
   ═══════════════════════════════════════════════ */

.report-content.theme-dark {
  --bg: #424242;
  --bg-elevated: #4a4a4a;
  --bg-surface: #383838;
  --bg-inset: #353535;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --text-primary: #d0ccc4;
  --text-secondary: #9e9a92;
  --text-tertiary: #7a776f;
  --text-heading: #e8e4dc;
  --accent: #2aa198;
  --accent-glow: rgba(42,161,152,0.12);
  --accent-border: rgba(42,161,152,0.3);
  --success: #859900;
  --success-bg: rgba(133,153,0,0.08);
  --success-border: rgba(133,153,0,0.25);
  --warning: #b58900;
  --warning-bg: rgba(181,137,0,0.08);
  --warning-border: rgba(181,137,0,0.25);
  --danger: #cb4b16;
  --danger-bg: rgba(203,75,22,0.08);
  --danger-border: rgba(203,75,22,0.25);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --page-x: clamp(2rem, 5vw, 4rem);
  --page-y: 2.5rem;
  --section-gap: 3.5rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
}

/* Base */
.report-content.theme-dark {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding: 0; margin: 0;
  font-synthesis: none;
}

@media print {
  .report-content.theme-dark,
  .report-content.theme-dark * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* Typography */
.report-content.theme-dark h1,
.report-content.theme-dark h2,
.report-content.theme-dark h3 {
  font-family: var(--font-display);
  color: var(--text-heading);
  line-height: 1.25;
  margin: 0;
}

.report-content.theme-dark h2 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
  padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-strong);
  margin-bottom: 1.5rem;
}

.report-content.theme-dark h3 { font-size: 1.15rem; font-weight: 700; }
.report-content.theme-dark p { margin: 0 0 1.15em; }
.report-content.theme-dark strong { color: var(--text-heading); font-weight: 600; }
.report-content.theme-dark em { color: var(--text-secondary); font-style: italic; }
.report-content.theme-dark hr { border: none; height: 1px; background: var(--border); margin: var(--section-gap) 0; }

/* ── Cover ── */
.report-content.theme-dark .cover-page {
  min-height: 950px; display: flex; flex-direction: column;
  padding: 3.5rem var(--page-x); box-sizing: border-box;
  position: relative; overflow: hidden;
  page-break-after: always; break-after: page;
}
.report-content.theme-dark .cover-page::before {
  content: ''; position: absolute; top: -180px; right: -180px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(42,161,152,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.report-content.theme-dark .cover-page::after {
  content: ''; position: absolute; bottom: -120px; left: -120px;
  width: 350px; height: 350px; border-radius: 50%;
  background: radial-gradient(circle, rgba(38,139,210,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.report-content.theme-dark .cover-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 2rem; border-bottom: 1px solid var(--border); z-index: 1; position: relative;
  flex-wrap: wrap; gap: 1rem;
}
.report-content.theme-dark .cover-branding {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-tertiary);
}
.report-content.theme-dark .cover-main {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 0; z-index: 1; position: relative;
}
.report-content.theme-dark .cover-methodology-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1rem; background: var(--accent-glow);
  border: 1px solid var(--accent-border); border-radius: 100px;
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent);
  margin-bottom: 2rem; width: fit-content;
}
.report-content.theme-dark .cover-methodology-tag .tag-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.report-content.theme-dark .cover-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.04em;
  color: var(--text-heading); margin: 0 0 1.5rem;
}
.report-content.theme-dark .cover-subtitle {
  font-size: 1.25rem; font-weight: 400; color: var(--text-secondary);
  line-height: 1.5; max-width: 520px; margin: 0 0 2.5rem;
}
.report-content.theme-dark .cover-subtitle .client-names { color: var(--text-heading); font-weight: 600; }
.report-content.theme-dark .cover-divider { width: 56px; height: 3px; background: linear-gradient(90deg, var(--accent), #268bd2); border-radius: 2px; margin-bottom: 2rem; }
.report-content.theme-dark .cover-description { font-size: 0.95rem; color: var(--text-secondary); max-width: 540px; line-height: 1.7; }
.report-content.theme-dark .cover-footer {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid var(--border); padding-top: 2rem; z-index: 1; position: relative;
  flex-wrap: wrap; gap: 1rem;
}
.report-content.theme-dark .cover-author { font-family: var(--font-display); }
.report-content.theme-dark .cover-author-label { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-tertiary); margin-bottom: 0.35rem; }
.report-content.theme-dark .cover-author-name { font-size: 1.05rem; font-weight: 700; color: var(--text-heading); margin-bottom: 0.15rem; }
.report-content.theme-dark .cover-author-role { font-size: 0.8rem; color: var(--accent); font-weight: 500; }
.report-content.theme-dark .cover-date { font-size: 0.8rem; color: var(--text-tertiary); font-family: var(--font-display); font-weight: 500; }

/* ── Body ── */
.report-content.theme-dark .report-body-content { padding: 0; }
.report-content.theme-dark .report-page {
  padding: 3.5rem var(--page-x);
  box-sizing: border-box;
  page-break-after: always;
  break-after: page;
  position: relative;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.report-content.theme-dark .map-page {
  justify-content: center;
}
.report-content.theme-dark .signature-page {
  justify-content: center;
}
.report-content.theme-dark .report-body-content > h2 { margin-top: var(--section-gap); }
.report-content.theme-dark .report-body-content > h2:first-child { margin-top: 0; }

/* Legend */
.report-content.theme-dark .legend-bar {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  margin: 1.5rem 0 2rem;
}
.report-content.theme-dark .legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--text-secondary); }

/* Level Cards */
.report-content.theme-dark .level-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 0; margin-bottom: 1.5rem;
  overflow: hidden; break-inside: avoid; box-shadow: var(--shadow-card);
}
.report-content.theme-dark .level-card-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding: 1.25rem 1.5rem;
  background: var(--bg-inset); border-bottom: 1px solid var(--border);
}
.report-content.theme-dark .level-card-number { font-family: var(--font-display); font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); display: block; margin-bottom: 0.2rem; }
.report-content.theme-dark .level-card-title { font-family: var(--font-display) !important; font-size: 1.1rem !important; font-weight: 700 !important; color: var(--text-heading) !important; margin: 0 !important; line-height: 1.35 !important; }
.report-content.theme-dark .level-card-body { padding: 1.5rem; }
.report-content.theme-dark .level-card-body > p:last-child { margin-bottom: 0; }

/* Badges */
.report-content.theme-dark .status-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.7rem; border-radius: 100px;
  font-family: var(--font-display); font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.report-content.theme-dark .status-badge svg { width: 11px; height: 11px; fill: currentColor; flex-shrink: 0; }
.report-content.theme-dark .status-badge.strength { background: var(--success-bg); border: 1px solid var(--success-border); color: var(--success); }
.report-content.theme-dark .status-badge.improve { background: var(--warning-bg); border: 1px solid var(--warning-border); color: var(--warning); }
.report-content.theme-dark .status-badge.growth { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger); }

/* Partner Scores */
.report-content.theme-dark .partner-scores { display: flex; gap: 0.75rem; flex-wrap: wrap; width: 100%; }
.report-content.theme-dark .partner-score-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.8rem;
  flex-wrap: wrap;
}
.report-content.theme-dark .partner-name { color: var(--text-secondary); font-weight: 600; font-size: 0.75rem; }
.report-content.theme-dark .partner-note { color: var(--text-tertiary); font-size: 0.75rem; font-style: italic; }

/* Blockquotes */
.report-content.theme-dark blockquote {
  margin: 1.75rem 0; padding: 1.25rem 1.5rem;
  background: var(--accent-glow); border: 1px solid var(--accent-border);
  border-radius: var(--radius-md); position: relative; break-inside: avoid;
}
.report-content.theme-dark blockquote::before {
  content: '"'; position: absolute; top: -0.15rem; left: 1rem;
  font-family: var(--font-display); font-size: 3rem; font-weight: 800;
  color: var(--accent); opacity: 0.15; line-height: 1;
}
.report-content.theme-dark blockquote p { margin: 0; font-size: 0.92rem; font-style: italic; color: #93a1a1; line-height: 1.65; }
.report-content.theme-dark blockquote strong {
  display: inline-block; font-style: normal; font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 0.5rem; padding: 0.2rem 0.6rem;
  background: rgba(42,161,152,0.08); border-radius: 4px;
}

/* Lists */
.report-content.theme-dark ul, .report-content.theme-dark ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.report-content.theme-dark li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.report-content.theme-dark li::marker { color: var(--accent); }

.report-content.theme-dark ul.bullet-strength { list-style: none; padding-left: 0; }
.report-content.theme-dark ul.bullet-strength > li { position: relative; padding-left: 1.75rem; margin-bottom: 0.85rem; }
.report-content.theme-dark ul.bullet-strength > li::before { content: '✦'; position: absolute; left: 0; top: 0.1em; color: var(--success); font-size: 0.85rem; }

.report-content.theme-dark ul.bullet-growth { list-style: none; padding-left: 0; }
.report-content.theme-dark ul.bullet-growth > li { position: relative; padding-left: 1.75rem; margin-bottom: 0.85rem; }
.report-content.theme-dark ul.bullet-growth > li::before { content: '◆'; position: absolute; left: 0; top: 0.15em; color: var(--danger); font-size: 0.7rem; }

/* ── House Map ── */
.report-content.theme-dark .house-map-section {
  width: 100%;
}

.report-content.theme-dark .house-map-header {
  text-align: center;
  margin-bottom: 3rem;
}

.report-content.theme-dark .house-map-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  border-bottom: none;
  padding-bottom: 0;
}

.report-content.theme-dark .map-legend {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.report-content.theme-dark .map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.report-content.theme-dark .map-legend-item svg {
  width: 12px; height: 12px;
}
.report-content.theme-dark .map-icon.strength { fill: var(--success); }
.report-content.theme-dark .map-icon.improve { fill: var(--warning); }
.report-content.theme-dark .map-icon.growth { fill: var(--danger); }

/* Diagram */
.report-content.theme-dark .house-map-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.report-content.theme-dark .house-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
  width: 100%;
  max-width: 600px;
  /* Allow grid to handle vertical stacking without fixed height overlap issues */
}

.report-content.theme-dark .row-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
}

.report-content.theme-dark .row-left {
  align-items: flex-end;
  text-align: right;
}

.report-content.theme-dark .row-right {
  align-items: flex-start;
  text-align: left;
}

.report-content.theme-dark .side-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.report-content.theme-dark .row-left .side-score {
  justify-content: flex-end;
}
.report-content.theme-dark .row-right .side-score {
  justify-content: flex-start;
}

.report-content.theme-dark .score-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.report-content.theme-dark .score-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-content.theme-dark .score-icon-wrap svg {
  width: 14px;
  height: 14px;
}

.report-content.theme-dark .row-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
  width: 100%;
  height: 100%;
}

/* Center Blocks */
.report-content.theme-dark .house-shape {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-content.theme-dark .shape-block {
  min-height: 48px;
  height: calc(100% + 2px);
  width: 100%;
  background: var(--bg-surface);
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  z-index: 2;
  margin-bottom: -2px;
}

.report-content.theme-dark .row-wall .shape-block {
  min-height: 70px;
  border-left-width: 6px;
  border-right-width: 6px;
  border-left-color: var(--accent);
  border-right-color: var(--accent);
  background: rgba(42,161,152,0.05);
}

.report-content.theme-dark .shape-roof {
  min-height: 80px;
  height: calc(100% + 2px);
  margin-bottom: -2px;
  z-index: 1;
}

.report-content.theme-dark .roof-svg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  fill: var(--bg-inset);
  stroke: var(--accent-border);
  stroke-width: 2px;
}

.report-content.theme-dark .shape-roof .shape-text {
  margin-top: 25%;
  z-index: 2;
  color: var(--text-heading);
}

.report-content.theme-dark .shape-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0 0.5rem;
  text-align: center;
}

.report-content.theme-dark .shape-level {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.report-content.theme-dark .shape-name {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.2;
}

/* ── Signature ── */
.report-content.theme-dark .signature-block {
  padding: 0;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  break-inside: avoid; flex-wrap: wrap;
  width: 100%;
}
.report-content.theme-dark .signature-info { flex: 1; min-width: 280px; max-width: 420px; }
.report-content.theme-dark .signature-info p { font-size: 0.85rem; color: var(--text-tertiary); margin: 0; line-height: 1.6; }
.report-content.theme-dark .signature-badge { text-align: right; flex-shrink: 0; }
.report-content.theme-dark .signature-line { width: 140px; height: 1px; background: var(--border-strong); margin-bottom: 0.6rem; margin-left: auto; }
.report-content.theme-dark .brand-signature { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-bottom: 0.15rem; }
.report-content.theme-dark .signature-role { font-size: 0.7rem; color: var(--text-tertiary); font-weight: 500; }

/* Responsive */
@media (max-width: 600px) {
  .report-content.theme-dark .cover-page { min-height: 700px; padding: 2rem 1.5rem; }
  .report-content.theme-dark .report-page { padding: 2rem 1.5rem; }
  .report-content.theme-dark .cover-title { font-size: 2rem; }
  .report-content.theme-dark .report-body-content { padding: 0; }
  .report-content.theme-dark .signature-block { flex-direction: column; align-items: flex-start; padding: 0; }
  .report-content.theme-dark .map-level { grid-template-columns: 60px 1fr; }
  .report-content.theme-dark .map-level-scores { grid-column: 1 / -1; justify-content: flex-start; }

  /* Mobile map adjustments */
  .report-content.theme-dark .house-row {
    grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr);
  }
  .report-content.theme-dark .shape-level {
    font-size: 0.55rem;
  }
  .report-content.theme-dark .shape-name {
    font-size: 0.7rem;
  }
  .report-content.theme-dark .row-side {
    padding: 0.25rem 0.5rem;
    gap: 0.25rem;
  }
  .report-content.theme-dark .score-label {
    font-size: 0.6rem;
  }
  .report-content.theme-dark .shape-block { min-height: 38px; }
  .report-content.theme-dark .row-wall .shape-block { min-height: 50px; }
  .report-content.theme-dark .shape-roof { min-height: 60px; }
}

/* ── Relationship Map ── */
.report-content.theme-dark .relationship-map-page {
  justify-content: center; break-before: page; page-break-before: always;
}
.report-content.theme-dark .relationship-map-header {
  display: flex; align-items: end; justify-content: space-between; gap: 2rem;
  padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-strong);
}
.report-content.theme-dark .relationship-map-eyebrow {
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; color: var(--text-tertiary); margin-bottom: 0.35rem;
}
.report-content.theme-dark .relationship-map-header h2 {
  font-size: 1.7rem; border: 0; padding: 0; margin: 0;
}
.report-content.theme-dark .relationship-map-header p {
  max-width: 280px; margin: 0; color: var(--text-secondary); font-size: 0.78rem; line-height: 1.5;
}
.report-content.theme-dark .relationship-map-grid { display: grid; gap: 1rem; }
.report-content.theme-dark .relationship-map-signature {
  margin-top: 2rem; padding-top: 1.35rem; border-top: 1px solid var(--border-strong);
}
.report-content.theme-dark .relationship-map-card {
  --map-accent: var(--accent);
  display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 1.5rem; align-items: center;
  background: var(--bg-surface); border: 1.5px solid var(--map-accent); border-radius: var(--radius-md);
  padding: 1.2rem 1.35rem; break-inside: avoid; page-break-inside: avoid;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
}
.report-content.theme-dark .map-accent-coral { --map-accent: #dc6a62; }
.report-content.theme-dark .map-accent-gold { --map-accent: #d4ad57; }
.report-content.theme-dark .map-accent-cyan { --map-accent: #4fa9b5; }
.report-content.theme-dark .map-accent-green { --map-accent: #63af7d; }
.report-content.theme-dark .map-accent-violet { --map-accent: #a38ad1; }
.report-content.theme-dark .map-accent-blue { --map-accent: #668fca; }
.report-content.theme-dark .map-accent-teal { --map-accent: #4fa6a5; }
.report-content.theme-dark .relationship-map-kicker {
  font-family: var(--font-display); font-size: 0.58rem; line-height: 1; font-weight: 800;
  letter-spacing: 0.12em; color: var(--map-accent); margin-bottom: 0.45rem;
}
.report-content.theme-dark .relationship-map-card h3 {
  font-size: 1rem; font-weight: 750; line-height: 1.15; margin: 0 0 0.55rem; color: var(--text-heading);
}
.report-content.theme-dark .relationship-map-card p {
  margin: 0; color: var(--text-secondary); font-size: 0.74rem; line-height: 1.42;
}
.report-content.theme-dark .relationship-map-scores {
  border-left: 1px solid var(--border-strong); padding-left: 1rem; display: grid; gap: 0.42rem;
}
.report-content.theme-dark .relationship-map-score {
  display: flex; align-items: center; justify-content: space-between; gap: 0.7rem;
  padding-bottom: 0.3rem; border-bottom: 1px solid var(--border);
}
.report-content.theme-dark .relationship-map-score:last-child { border-bottom: 0; padding-bottom: 0; }
.report-content.theme-dark .relationship-map-score span { color: var(--text-secondary); font-size: 0.68rem; }
.report-content.theme-dark .relationship-map-score strong { color: var(--map-accent); font-size: 0.78rem; letter-spacing: 0.1em; white-space: nowrap; }

@media (max-width: 600px) {
  .report-content.theme-dark .relationship-map-header { display: block; margin-bottom: 1rem; padding-bottom: 1rem; }
  .report-content.theme-dark .relationship-map-header h2 { font-size: 1.18rem; }
  .report-content.theme-dark .relationship-map-header p { margin-top: 0.5rem; max-width: none; }
  .report-content.theme-dark .relationship-map-card { grid-template-columns: minmax(0, 1fr) 92px; gap: 0.7rem; padding: 0.8rem; }
  .report-content.theme-dark .relationship-map-card p { display: none; }
  .report-content.theme-dark .relationship-map-card h3 { font-size: 0.88rem; margin-bottom: 0; }
  .report-content.theme-dark .relationship-map-scores { border-left: 1px solid var(--border-strong); border-top: 0; padding: 0 0 0 0.65rem; }
}
