/* Print styles for Kincshome Foundation */
@media print {
  /* Hide non-essential elements */
  .navbar,
  .site-footer,
  .btn,
  .hero-section::before,
  .blur-3xl,
  #theme-toggle,
  #search-btn,
  .modal {
    display: none !important;
  }

  /* Use black ink on white paper */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Ensure sufficient contrast */
  .text-primary,
  .text-secondary,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: black !important;
  }

  /* Links should be visible and show URLs */
  a {
    color: black !important;
    text-decoration: underline !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
    font-weight: normal;
  }

  /* Avoid breaking content */
  .card,
  .container {
    break-inside: avoid;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }

  /* Images should be visible but not essential */
  img {
    max-width: 100% !important;
    height: auto !important;
    filter: grayscale(100%) !important;
  }

  /* Remove backgrounds and shadows */
  .bg-light,
  .bg-white,
  .bg-dark,
  .bg-primary,
  .bg-secondary {
    background-color: white !important;
    color: black !important;
  }

  /* Ensure proper margins */
  @page {
    margin: 2cm;
  }

  /* Keep headings on same page as following content */
  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }

  p,
  li {
    page-break-inside: avoid;
  }
}
