/* ═══════════════════════════════════════════════
   PRINT THEME — Black & White, Ink-Optimized
   Report content + House Map
   ═══════════════════════════════════════════════ */

.report-content.theme-print {
  --bg: #ffffff;
  --bg-surface: #f7f7f7;
  --bg-inset: #f2f2f2;
  --border: #d4d4d4;
  --border-strong: #999999;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-tertiary: #888888;
  --text-heading: #000000;
  --font-display: 'Inter', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --page-x: 3rem;
  --page-y: 2rem;
  --section-gap: 2.5rem;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

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

@media print {
  .report-content.theme-print {
    print-color-adjust: economy !important;
    -webkit-print-color-adjust: economy !important;
  }
}

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

.report-content.theme-print h2 {
  font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--text-heading);
  margin-bottom: 1.25rem; page-break-after: avoid; break-after: avoid;
}

.report-content.theme-print h3 { font-size: 1.1rem; font-weight: 700; page-break-after: avoid; break-after: avoid; }
.report-content.theme-print p { margin: 0 0 1em; }
.report-content.theme-print strong { color: var(--text-heading); font-weight: 700; }
.report-content.theme-print em { font-style: italic; }
.report-content.theme-print hr { border: none; border-top: 1px solid var(--border); margin: var(--section-gap) 0; }

/* ── Cover ── */
.report-content.theme-print .cover-page {
  min-height: 950px; display: flex; flex-direction: column;
  padding: 3.5rem var(--page-x); box-sizing: border-box;
  page-break-after: always; break-after: page;
}
.report-content.theme-print .cover-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 2rem; border-bottom: 2px solid var(--border-strong);
  flex-wrap: wrap; gap: 1rem;
}
.report-content.theme-print .cover-branding {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-tertiary);
}
.report-content.theme-print .cover-main {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 4rem 0;
}
.report-content.theme-print .cover-methodology-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 1rem; border: 2px solid var(--text-heading);
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-heading);
  margin-bottom: 2rem; width: fit-content;
}
.report-content.theme-print .cover-methodology-tag .tag-dot {
  width: 6px; height: 6px; background: var(--text-heading);
}
.report-content.theme-print .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-print .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-print .cover-subtitle .client-names { color: var(--text-heading); font-weight: 700; }
.report-content.theme-print .cover-divider { width: 56px; height: 4px; background: var(--text-heading); margin-bottom: 2rem; }
.report-content.theme-print .cover-description { font-size: 0.95rem; color: var(--text-secondary); max-width: 540px; line-height: 1.7; }
.report-content.theme-print .cover-footer {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 2px solid var(--border-strong); padding-top: 2rem;
  flex-wrap: wrap; gap: 1rem;
}
.report-content.theme-print .cover-author { font-family: var(--font-display); }
.report-content.theme-print .cover-author-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-tertiary); margin-bottom: 0.35rem; }
.report-content.theme-print .cover-author-name { font-size: 1.05rem; font-weight: 800; color: var(--text-heading); margin-bottom: 0.15rem; }
.report-content.theme-print .cover-author-role { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }
.report-content.theme-print .cover-date { font-size: 0.8rem; color: var(--text-tertiary); font-family: var(--font-display); font-weight: 500; }

/* ── Body ── */
.report-content.theme-print .report-body-content { padding: 0; }
.report-content.theme-print .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-print .map-page {
  justify-content: center;
}
.report-content.theme-print .signature-page {
  justify-content: center;
}
.report-content.theme-print .report-body-content > h2 { margin-top: var(--section-gap); }
.report-content.theme-print .report-body-content > h2:first-child { margin-top: 0; }

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

/* Level Cards */
.report-content.theme-print .level-card {
  background: var(--bg); border: 2px solid var(--border-strong);
  padding: 0; margin-bottom: 1.5rem; overflow: hidden; break-inside: avoid;
}
.report-content.theme-print .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-surface); border-bottom: 2px solid var(--border-strong);
}
.report-content.theme-print .level-card-number { font-family: var(--font-display); font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-tertiary); display: block; margin-bottom: 0.2rem; }
.report-content.theme-print .level-card-title { font-family: var(--font-display) !important; font-size: 1.1rem !important; font-weight: 800 !important; color: var(--text-heading) !important; margin: 0 !important; line-height: 1.35 !important; }
.report-content.theme-print .level-card-body { padding: 1.5rem; }
.report-content.theme-print .level-card-body > p:last-child { margin-bottom: 0; }

/* Badges */
.report-content.theme-print .status-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.6rem; border: 2px solid var(--text-heading);
  font-family: var(--font-display); font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; color: var(--text-heading);
}
.report-content.theme-print .status-badge svg { width: 9px; height: 9px; fill: currentColor; }

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

/* Blockquotes */
.report-content.theme-print blockquote {
  margin: 1.75rem 0; padding: 1.25rem 1.5rem;
  background: var(--bg-surface); border: 2px solid var(--border-strong);
  position: relative; break-inside: avoid;
}
.report-content.theme-print blockquote::before {
  content: '"'; position: absolute; top: -0.15rem; left: 1rem;
  font-family: var(--font-display); font-size: 3rem; font-weight: 800;
  color: var(--text-heading); opacity: 0.2; line-height: 1;
}
.report-content.theme-print blockquote p { margin: 0; font-size: 0.92rem; font-style: italic; color: var(--text-secondary); line-height: 1.65; }
.report-content.theme-print blockquote strong {
  display: inline-block; font-style: normal; font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-heading); margin-bottom: 0.5rem; padding: 0.2rem 0.6rem;
  background: var(--bg); border: 2px solid var(--border-strong);
}

/* Lists */
.report-content.theme-print ul, .report-content.theme-print ol { padding-left: 1.25rem; margin: 0 0 1.25rem; }
.report-content.theme-print li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.report-content.theme-print li::marker { color: var(--text-heading); font-weight: 800; }

.report-content.theme-print ul.bullet-strength { list-style: none; padding-left: 0; }
.report-content.theme-print ul.bullet-strength > li { position: relative; padding-left: 1.5rem; margin-bottom: 0.85rem; }
.report-content.theme-print ul.bullet-strength > li::before { content: '★'; position: absolute; left: 0; top: 0; color: var(--text-heading); font-size: 0.9rem; }

.report-content.theme-print ul.bullet-growth { list-style: none; padding-left: 0; }
.report-content.theme-print ul.bullet-growth > li { position: relative; padding-left: 1.5rem; margin-bottom: 0.85rem; }
.report-content.theme-print ul.bullet-growth > li::before { content: '▸'; position: absolute; left: 0; top: 0; color: var(--text-heading); }

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

.report-content.theme-print .house-map-header { text-align: center; margin-bottom: 2rem; }
.report-content.theme-print .house-map-title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--text-heading); margin-bottom: 0.5rem; border-bottom: none; padding-bottom: 0;
}
.report-content.theme-print .map-legend { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.report-content.theme-print .map-legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--text-secondary); }
.report-content.theme-print .map-legend-item svg { width: 12px; height: 12px; }
.report-content.theme-print .map-icon { fill: var(--text-heading); }

/* Diagram */
.report-content.theme-print .house-map-diagram {
  display: flex; flex-direction: column; align-items: center; width: 100%;
}
.report-content.theme-print .house-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr); width: 100%; max-width: 500px;
}
.report-content.theme-print .row-side { display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; padding: 0.5rem 0.8rem; }
.report-content.theme-print .row-left { align-items: flex-end; text-align: right; }
.report-content.theme-print .row-right { align-items: flex-start; text-align: left; }
.report-content.theme-print .side-score { display: flex; align-items: center; gap: 0.4rem; }
.report-content.theme-print .row-left .side-score { justify-content: flex-end; }
.report-content.theme-print .row-right .side-score { justify-content: flex-start; }

.report-content.theme-print .score-label { font-size: 0.7rem; font-weight: 700; color: var(--text-secondary); }
.report-content.theme-print .score-icon-wrap { display: flex; align-items: center; justify-content: center; }
.report-content.theme-print .score-icon-wrap svg { width: 12px; height: 12px; fill: var(--text-heading); }

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

/* Blocks */
.report-content.theme-print .house-shape { width: 100%; height: 100%; position: relative; display: flex; align-items: center; justify-content: center; }
.report-content.theme-print .shape-block {
  min-height: 40px; height: calc(100% + 2px); width: 100%; background: var(--bg); border: 2px solid var(--text-heading); z-index: 2; margin-bottom: -2px;
}
.report-content.theme-print .row-wall .shape-block { min-height: 60px; border-left-width: 5px; border-right-width: 5px; background: var(--bg-surface); }
.report-content.theme-print .shape-roof { min-height: 60px; height: calc(100% + 2px); margin-bottom: -2px; z-index: 1; }
.report-content.theme-print .roof-svg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  fill: var(--bg-surface); stroke: var(--text-heading); stroke-width: 2px;
}
.report-content.theme-print .shape-roof .shape-text { margin-top: 25%; z-index: 2; color: var(--text-heading); }
.report-content.theme-print .shape-text { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0 0.5rem; text-align: center; }
.report-content.theme-print .shape-level { font-family: var(--font-display); font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); }
.report-content.theme-print .shape-name { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; color: var(--text-heading); line-height: 1.2; }

/* ── Signature ── */
.report-content.theme-print .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-print .signature-info { flex: 1; min-width: 280px; max-width: 420px; }
.report-content.theme-print .signature-info p { font-size: 0.85rem; color: var(--text-tertiary); margin: 0; line-height: 1.6; }
.report-content.theme-print .signature-badge { text-align: right; flex-shrink: 0; }
.report-content.theme-print .signature-line { width: 140px; height: 2px; background: var(--text-heading); margin-bottom: 0.6rem; margin-left: auto; }
.report-content.theme-print .brand-signature { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--text-heading); margin-bottom: 0.15rem; }
.report-content.theme-print .signature-role { font-size: 0.7rem; color: var(--text-secondary); font-weight: 600; }

/* Responsive */
@media (max-width: 600px) {
  .report-content.theme-print .cover-page { min-height: 700px; padding: 2rem 1.5rem; }
  .report-content.theme-print .report-page { padding: 2rem 1.5rem; }
  .report-content.theme-print .cover-title { font-size: 2rem; }
  .report-content.theme-print .report-body-content { padding: 0; }
  .report-content.theme-print .signature-block { flex-direction: column; align-items: flex-start; padding: 0; }

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

/* ── Relationship Map ── */
.report-content.theme-print .relationship-map-page {
  justify-content: center; break-before: page; page-break-before: always;
}
.report-content.theme-print .relationship-map-header {
  display: flex; align-items: end; justify-content: space-between; gap: 2rem;
  padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 2px solid var(--text-heading);
}
.report-content.theme-print .relationship-map-eyebrow {
  font-family: var(--font-display); font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.14em; color: var(--text-secondary); margin-bottom: 0.35rem;
}
.report-content.theme-print .relationship-map-header h2 {
  font-size: 1.55rem; border: 0; padding: 0; margin: 0;
}
.report-content.theme-print .relationship-map-header p {
  max-width: 280px; margin: 0; color: var(--text-secondary); font-size: 0.76rem; line-height: 1.45;
}
.report-content.theme-print .relationship-map-grid { display: grid; gap: 0.9rem; }
.report-content.theme-print .relationship-map-signature {
  margin-top: 1.7rem; padding-top: 1.15rem; border-top: 2px solid var(--text-heading);
}
.report-content.theme-print .relationship-map-card {
  display: grid; grid-template-columns: minmax(0, 1fr) 145px; gap: 1.25rem; align-items: center;
  background: var(--bg); border: 2px solid var(--text-heading); padding: 1.1rem 1.25rem;
  break-inside: avoid; page-break-inside: avoid;
}
.report-content.theme-print .relationship-map-kicker {
  font-family: var(--font-display); font-size: 0.57rem; line-height: 1; font-weight: 800;
  letter-spacing: 0.12em; color: var(--text-secondary); margin-bottom: 0.4rem;
}
.report-content.theme-print .relationship-map-card h3 {
  font-size: 0.98rem; font-weight: 800; line-height: 1.15; margin: 0 0 0.5rem;
}
.report-content.theme-print .relationship-map-card p {
  margin: 0; color: var(--text-secondary); font-size: 0.72rem; line-height: 1.4;
}
.report-content.theme-print .relationship-map-scores {
  border-left: 1px solid var(--border-strong); padding-left: 0.9rem; display: grid; gap: 0.38rem;
}
.report-content.theme-print .relationship-map-score {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding-bottom: 0.28rem; border-bottom: 1px solid var(--border);
}
.report-content.theme-print .relationship-map-score:last-child { border-bottom: 0; padding-bottom: 0; }
.report-content.theme-print .relationship-map-score span { color: var(--text-secondary); font-size: 0.67rem; }
.report-content.theme-print .relationship-map-score strong { font-size: 0.76rem; letter-spacing: 0.1em; white-space: nowrap; }

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