@media print {
  /* Hide non-essential elements */
  nav,
  footer,
  .ad-slot,
  .adsbygoogle,
  .cookie-consent,
  .pwa-install,
  .social-share,
  .print-button,
  .sidebar,
  .breadcrumbs,
  .related-calculators,
  .newsletter-signup,
  [data-controller="cookie-consent"],
  [data-controller="pwa-install"],
  [data-ad-slot],
  #sidebar,
  .sticky {
    display: none !important;
  }

  /* Reset body and backgrounds */
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Remove shadows, borders, and background colors from cards */
  .card,
  .bg-white,
  .bg-gray-50,
  .bg-gray-100,
  [class*="bg-"] {
    background: #fff !important;
    box-shadow: none !important;
  }

  .dark\:bg-gray-800,
  .dark\:bg-gray-900,
  .dark\:bg-gray-950 {
    background: #fff !important;
  }

  /* Ensure text is black for readability */
  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
    page-break-after: avoid;
  }

  p, li, td, th, label, span, div {
    color: #000 !important;
  }

  /* Calculator inputs and results */
  input, select, textarea {
    border: 1px solid #999 !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  /* Readable font sizes */
  h1 { font-size: 20pt; }
  h2 { font-size: 16pt; }
  h3 { font-size: 14pt; }
  p, li { font-size: 11pt; }

  /* Show URL after links */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555 !important;
    word-break: break-all;
  }

  /* Don't show URL for anchor links or javascript links */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  /* Use full page width */
  .max-w-7xl,
  .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Prevent page breaks inside important elements */
  .calculator-results,
  table,
  figure,
  pre {
    page-break-inside: avoid;
  }

  /* Remove rounded corners for cleaner print */
  * {
    border-radius: 0 !important;
  }
}
