/* Casvia · print.css — print-only styles for report summary.
   Hides everything except .report-summary. A4, no truncation. */

@media print {
  /* Reset page */
  @page {
    size: A4 portrait;
    margin: 15mm 12mm;
  }

  /* Hide all site chrome */
  body * {
    visibility: hidden;
  }

  /* Show only the report summary and its ancestors */
  .report-summary,
  .report-summary * {
    visibility: visible;
  }

  .report-summary {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    background: #fff !important;
    color: #1a1a1a !important;
    padding: 0;
    margin: 0;
    font-size: 10pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Override dark theme colors for print */
  .report-summary .rpt-brand { color: #0f766e !important; }
  .report-summary .rpt-subtitle,
  .report-summary .rpt-date,
  .report-summary .rpt-taxyear,
  .report-summary .rpt-section h3,
  .report-summary .rpt-primary-label,
  .report-summary .rpt-primary-suffix,
  .report-summary .rpt-metric-label,
  .report-summary .rpt-disclaimer p,
  .report-summary .rpt-footer {
    color: #555 !important;
  }
  .report-summary .rpt-calc-title,
  .report-summary .rpt-table td,
  .report-summary .rpt-table .rpt-val,
  .report-summary .rpt-metric-value,
  .report-summary .rpt-insight {
    color: #1a1a1a !important;
  }
  .report-summary .rpt-primary-value { color: #0f766e !important; }
  .report-summary .rpt-primary {
    background: #f0faf8 !important;
    border-color: #b2dfdb !important;
  }
  .report-summary .rpt-metric {
    background: #f8f9f9 !important;
  }
  .report-summary .rpt-section h3 {
    border-bottom-color: #ddd !important;
  }
  .report-summary .rpt-table td {
    border-bottom-color: #eee !important;
  }

  /* Hide interactive elements that might leak into print */
  .report-cta-section,
  .report-cta-buttons,
  .report-share-status,
  .trust-bar,
  .src-foot,
  .sticky-result,
  .site-header,
  .site-footer,
  .calc-shell,
  nav,
  header,
  footer,
  .theme-toggle,
  .faq,
  .btn {
    display: none !important;
  }

  /* Ensure no page break inside key blocks */
  .rpt-section,
  .rpt-primary,
  .rpt-metric {
    page-break-inside: avoid;
  }

  /* Restore print-only summary container (it lives outside .calc-shell) */
  .report-summary-container.print-only {
    position: static !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
  }
}
