/**
 * AfroTools — Print Stylesheet
 * Applied when user triggers window.print() as a PDF fallback.
 * Hides chrome, shows only calculation results with branding.
 */

@media print {
  /* Hide all chrome */
  afro-navbar,
  afro-footer,
  .cookie-consent,
  .cookie-banner,
  .sidebar,
  .ad-section,
  .hero,
  .faq-section,
  .faq-toggle,
  .newsletter-section,
  .related-tools,
  .action-row,
  .ai-advisor,
  .ai-section,
  .regime-toggle,
  .input-section,
  .calculator-form,
  .share-row,
  #authModal,
  .toast,
  .no-print,
  .back-link,
  .breadcrumb {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.5;
    margin: 0;
    padding: 20px;
  }

  /* Show results cleanly */
  .result-section,
  .result-card,
  .breakdown-table,
  .tax-bands-section,
  .summary-card {
    break-inside: avoid;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    background: #fff !important;
    margin-bottom: 16px;
  }

  /* Print header — hidden on screen, shown on print */
  .print-header {
    display: block !important;
    text-align: center;
    padding: 20px 0;
    border-bottom: 2px solid #007AFF;
    margin-bottom: 20px;
  }
  .print-header h1 {
    font-size: 18pt;
    color: #007AFF;
    margin: 0 0 4px;
  }
  .print-header p {
    font-size: 10pt;
    color: #666;
    margin: 0;
  }

  /* Print footer */
  .print-footer {
    display: block !important;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    margin-top: 20px;
    font-size: 8pt;
    color: #999;
  }

  /* Tables */
  table {
    border-collapse: collapse;
    width: 100%;
  }
  th, td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    text-align: left;
  }

  /* Links — show URL */
  a[href]::after {
    content: none; /* Don't clutter with URLs */
  }

  /* Page breaks */
  h2, h3 {
    break-after: avoid;
  }
}
