/* Tu Futuro Finanzas — shared calculator print styles.
 * Hides site chrome (nav, footer, chat widget, action buttons, ads, FAQ)
 * and prints a clean version of the calculator body so a direct
 * window.print() from a calc-*.html page produces a legible report.
 *
 * This is a safety net — the primary "Report" flow now opens a
 * purpose-built printable summary in a new window (see calc-actions.js).
 */
@media print {
  /* Hide navigation, header, footer, and other page chrome */
  .site-header, .site-footer, header.site-header, footer.site-footer,
  nav, .lang-toggle, .skip-link,
  .mobile-drawer, .mobile-menu, .mobile-nav,
  #accessibe-widget, #acsFlt, .acsb-trigger,
  .newsletter, .newsletter-band, .money-brief,
  .instagram-widget, .ig-embed,
  .chat-widget, .chat-fab, .chat-launcher, [data-chat-demo],
  .related-articles, .latest-articles,
  .faq, .faqs, details.faq-item, summary,
  .breadcrumb, .breadcrumbs,
  .site-header + .cta-band, .cta-band, .cta-strip,
  .result-actions, /* buttons inside the results panel */
  .no-print, [data-no-print] {
    display: none !important;
  }

  /* Ensure content prints on white with dark text */
  html, body {
    background: #ffffff !important;
    color: #0E1B2E !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Tighten body margins to save paper */
  body { margin: 0.5in !important; }

  /* Remove hero background images and heavy tints so text prints crisply */
  .calc-hero, .calc-hero *,
  .result-panel, .result-panel *,
  .analysis, .analysis * {
    background-image: none !important;
    box-shadow: none !important;
  }

  /* Show link URLs after link text so a printed page still shows destinations */
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.75em; color: #5A6372;
  }
  /* But don't clutter internal links */
  a[href^="#"]:after, a[href^="/"]:after, a[href*="tufuturofinanzas.com"]:after {
    content: "";
  }

  /* Force page breaks so tables and result cards don't split awkwardly */
  h1, h2, h3 { page-break-after: avoid; }
  table, .result-panel, .r-card, .card { page-break-inside: avoid; }
}
