/* ============================================================
   HarmoniQ Savings Calculator — printable indicative business case.
   Linked media="print" on savings-calculator.html only (Phase 2).
   main.css is also loaded in print, so var(--accent) etc. resolve here.
   ============================================================ */

@page { margin: 16mm; }

@media print {
  /* Hide site chrome and interactive-only elements */
  .nav, .mobile-nav, .footer, .back-to-top, .skip-link,
  .page-hero, .cta-section,
  .roi-pill-toggle, .roi-cross-refs, .roi-scroll-prompt,
  .roi-actions, #roi-deeplink-hint, #roi-lead,
  #hq-consent, #hq-consent-overlay {
    display: none !important;
  }

  /* Force everything visible: the calculator's reveal + fade-up animations are
     JS/scroll-triggered on screen, so in print the panels would otherwise sit at
     opacity:0 and the page would print blank. */
  .reveal, .roi-calc, .roi-calc *, .roi-panel, .roi-results, .roi-print-only {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    visibility: visible !important;
  }
  html, body { background: #fff !important; color: #000 !important; }
  a { color: #000 !important; text-decoration: none !important; }

  /* Single-column: scenario captured in the print header, so hide the input form */
  .roi-grid { display: block !important; }
  .roi-inputs { display: none !important; }
  .roi-calc { border: 0 !important; box-shadow: none !important; padding: 0 !important; }

  /* Show all three result panels, stacked, kept whole across page breaks */
  .roi-panel { display: block !important; page-break-inside: avoid; margin-bottom: 14px; }
  .roi-results { border: 1px solid #ccc !important; box-shadow: none !important; background: #fff !important; }
  .roi-usd-note { color: #555 !important; text-align: left !important; }

  /* Print-only header + footer */
  .roi-print-only { display: block !important; }
  .roi-print-header {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 16px;
  }
  .roi-print-logo { max-height: 38px; width: auto; height: auto; }
  .roi-print-title { font-size: 1.35rem; font-weight: 700; margin-top: 8px; color: #000; }
  .roi-print-meta { font-size: 0.85rem; color: #333; margin-top: 4px; }
  .roi-print-footer {
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid #ccc;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #555;
  }
}
