/* print.css */

/* General page setup */
@page {
  size: A4;
  margin: 1in;
}

@media print {
  /* Reset background colors and shadows for clarity */
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
    line-height: 1.4;
  }

  /* Hide navigation, footers, and interactive elements */
  nav, footer, .menu, .sidebar, .buttons, .download-links {
    display: none !important;
  }

  /* Ensure headings look sharp */
  h1, h2, h3 {
    color: #000 !important;
    margin-top: 1em;
    margin-bottom: 0.5em;
    page-break-after: avoid;
  }

  /* Links: show the URL in parentheses */
  a::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }

  /* Images: scale appropriately */
  img {
    max-width: 100%;
    height: auto;
    page-break-inside: avoid;
  }

  /* Tables: make them readable */
  table {
    border-collapse: collapse;
    width: 100%;
  }
  th, td {
    border: 1px solid #000;
    padding: 4px 6px;
  }

  /* Avoid breaking sections awkwardly */
  section, article, div {
    page-break-inside: avoid;
  }

  /* Add subtle spacing between sections */
  .section {
    margin-bottom: 1.5em;
  }
}
