/* print.css - Optimized print styles for Apuntes de Acupuntura */

/* Reset page margins and use the full page width */
@page {
    margin: 0.5cm;
  }
  
  /* General body styles */
  body {
    font-family: serif; /* Serif fonts are more readable in print */
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  /* Hide navigation and interactive elements */
  nav, 
  .nav-toggle,
  .app-cta,
  .app-exp,
  .site-header,
  .primary-nav,
  #webapp-popup,
  button,
  .popup_button_no_more,
  script {
    display: none !important;
  }
  
  /* Optimize content area */
  .wiki_content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  
  /* Headings */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  h1 {
    font-size: 18pt;
    margin-top: 0;
  }
  
  h2 {
    font-size: 16pt;
    color: #000;
  }
  
  h3 {
    font-size: 14pt;
  }
  
  /* List items and paragraphs */
  p, ul, ol, li {
    page-break-inside: avoid;
  }
  
  ul {
    margin-left: 0;
    padding-left: 1em;
  }
  
  /* Images */
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
    border: none !important; /* Remove yellow borders */
  }
  
  /* Links */
  a {
    text-decoration: none;
    color: #000;
  }
  
  /* Show link URLs */
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 90%;
    font-style: italic;
  }
  
  /* Don't show URLs for internal links */
  a[href^="/"]:after,
  a[href^="#"]:after,
  a[href*="apuntes-de-acupuntura.com"]:after {
    content: "";
  }
  
  /* Footer optimization */
  .footer {
    margin-top: 2cm;
    font-size: 10pt;
    border-top: 1pt solid #000;
    padding-top: 0.5cm;
  }
  
  /* Authors section */
  .wiki_authors {
    margin-top: 1cm;
    border-top: 1pt solid #000;
  }
  
  .lastAuthors {
    display: none; /* Hide author icons since they're not displaying properly */
  }
  
  /* Tables */
  table {
    border-collapse: collapse;
    width: 100%;
    page-break-inside: avoid;
  }
  
  th, td {
    border: 1pt solid #000;
    padding: 0.25cm;
  }
  
  /* Force background colors to print */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  /* Avoid orphans and widows */
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }