/* =============================
   PRINT STYLESHEET
   ============================= */

@media print {
  /* Override dark background for printing */
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Hide navigation and interactive elements */
  .site-header,
  .site-nav,
  .site-nav__mobile-toggle,
  .content-layout__sidebar,
  .back-nav,
  .animated-bg,
  .site-footer__links {
    display: none !important;
  }

  /* Show URLs after links */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
    word-break: break-all;
  }

  /* But not for internal anchors */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: none !important;
  }

  /* Reset card styles for print */
  .card,
  .card--featured,
  .card--term-definition {
    background: white !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

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

  p, li, td, th {
    color: #333 !important;
  }

  /* Code blocks */
  code, pre, .code-block {
    background: #f5f5f5 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
  }

  /* Term links */
  .term-link {
    color: #0066cc !important;
    border-bottom: 1px dotted #0066cc !important;
  }

  /* Full width layout */
  .container {
    max-width: 100% !important;
    padding: 0 1cm !important;
  }

  .content-layout {
    display: block !important;
  }

  .content-layout__main {
    width: 100% !important;
  }

  /* Process steps */
  .process-step {
    background: white !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .process-step__number {
    background: #333 !important;
    color: white !important;
  }

  /* Tables */
  table {
    border: 1px solid #ddd !important;
  }

  th, td {
    border: 1px solid #ddd !important;
    color: #333 !important;
  }

  th {
    background: #f5f5f5 !important;
  }

  /* Page breaks */
  .section {
    page-break-before: auto;
  }

  h2 {
    page-break-before: auto;
    page-break-after: avoid;
  }

  /* Coming soon badge */
  .coming-soon {
    background: #f0f0f0 !important;
    border: 1px solid #ccc !important;
    color: #666 !important;
  }

  /* Footer */
  .site-footer {
    background: white !important;
    border-top: 1px solid #ddd !important;
    margin-top: 2cm;
  }

  .site-footer__meta {
    color: #666 !important;
  }
}
