/* ================================
   PART 14: PRINT STYLES (REVISED)
   ================================ */

@media print {

  /* Reset base layout for print */
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background: #FFFFFF !important;
  }

  body,
  .report-page {
    color: #000000 !important;
    box-shadow: none !important;
  }

  /* Hide global site chrome (Astra header/footer, nav, etc.) */
  .site-header,
  .main-header-bar,
  .ast-header-break-point,
  .ast-mobile-header-wrap,
  .site-footer,
  .footer-adv,
  .ast-footer-bar,
  .ast-builder-footer-grid,
  .footer-widget-area,
  .menu-toggle,
  .ast-breadcrumbs {
    display: none !important;
  }

  /* If you wrap "Back to Assessment History..." in this toolbar, hide it too */
  .antah-report-toolbar {
    display: none !important;
  }

  /* Make the report container use full printable width */
  .antah-report-comprehensive,
  .antah-report-free,
  .site-content,
  .entry-content,
  .ast-container,
  .report-page {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .report-page {
    page-break-after: always;
    padding: 40px 32px !important;
    border: none !important;
    box-shadow: none !important;
    background: #FFFFFF !important;
  }

  /* Don’t force a blank trailing page */
  .report-page:last-of-type {
    page-break-after: auto;
  }

  /* Remove BG from outer wrapper so pages look like paper */
  .antah-report-comprehensive,
  .antah-report-free {
    background: #FFFFFF !important;
    padding: 0 !important;
  }

  /* Hide interactive / sales-only elements in print */
  .antah-pdf-btn,
  .cta-button,
  .cta-button-primary,
  .cta-button-upgrade,
  .cta-button-secondary,
  .free-version-badge,
  .free-version-limitation,
  .upgrade-cta-section,
  .domain-coaching-cta,
  .coaching-final-cta,
  .report-footer {
    display: none !important;
  }

  /* Cover page styling preserved for print */
  .page-cover {
    background: linear-gradient(135deg, #1B254B 0%, #26366B 100%) !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .cover-title {
    color: #FFD700 !important;
  }

  .cover-subtitle,
  .cover-tagline,
  .cover-user-info h2,
  .cover-date,
  .cover-context,
  .composite-label,
  .cover-pathway p,
  .cover-researcher p {
    color: #FFFFFF !important;
  }

  .composite-value {
    color: #FFD700 !important;
  }

  .cover-pathway {
    background: rgba(255, 255, 255, 0.1) !important;
  }

  /* Core text and headings inside pages */
  .page-title {
    color: #26366B !important;
    border-bottom-color: #FFD700 !important; /* fixed typo */
  }

  .report-page h2,
  .report-page strong,
  .domain-bar-label,
  .domain-bar-value {
    color: #26366B !important;
  }

  .report-page h3 {
    color: #64748B !important;
  }

  .report-page p,
  .report-page li {
    color: #222329 !important;
  }

  /* Domain / dosha highlight boxes */
  .domain-header,
  .domain-insight-box,
  .domain-lens-analysis,
  .dosha-insight-box {
    background: #F1F5F9 !important;
    border: 1px solid #E5E7EB !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .domain-recommendations {
    border: 2px solid #2E7D32 !important;
    background: #FFFFFF !important;
  }

  .domain-recommendations h3,
  .recommendation-list li::before {
    color: #2E7D32 !important;
  }

  /* Charts & radar */
  canvas,
  svg {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

