/* Print Stylesheet */
@media print {
  /* Hide navigation elements */
  .md-header,
  .md-tabs,
  .md-sidebar,
  .md-footer,
  .md-fab,
  .md-search,
  .md-nav,
  .md-version {
    display: none !important;
  }

  /* Reset layout for print */
  .md-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  .md-grid {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    display: block !important;
  }

  .md-main__inner {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Typography for print */
  body {
    background-color: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Link handling - show URL after link text if useful, or just style */
  a {
    text-decoration: none !important;
    color: black !important;
    font-weight: bold;
  }
  
  /* Optional: Show URL after links
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
  */

  /* Page breaks */
  h1 {
    page-break-before: always;
  }
  h1:first-of-type {
    page-break-before: avoid;
  }
  
  h2, h3 {
    page-break-after: avoid;
  }
  
  /* Code blocks */
  pre, code {
    border: 1px solid #ccc;
    background-color: #f5f5f5 !important;
    color: black !important;
    white-space: pre-wrap !important;
  }

  /* Admonitions */
  .admonition {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  
  /* Tables */
  table {
    page-break-inside: avoid;
  }
}

