/* Print stylesheet for 0DATA Academic Papers
   Converts dark-theme HTML to printer-friendly PDF */

@media print {
  :root {
    --bg: #ffffff !important;
    --panel: #f5f5f7 !important;
    --cyan: #1a6b8a !important;
    --gold: #8a6d3b !important;
    --green: #3b7a6b !important;
    --violet: #5a5a8a !important;
    --text: #1a1a2e !important;
    --dim: #4a4a5a !important;
    --muted: #6a6a7a !important;
    --tx: #1a1a2e !important;
    --s: 'Inter', -apple-system, sans-serif !important;
    --m: 'Share Tech Mono', 'Courier New', monospace !important;
  }

  body {
    background: #ffffff !important;
    color: #1a1a2e !important;
  }

  /* Kill all dark backgrounds and effects */
  body::before, body::after,
  #stars, .sidebar, .nav-links, .nav-mini,
  .back-link, .paper-links, .papers-section,
  .license, .license-box {
    display: none !important;
    visibility: hidden !important;
  }

  /* Restore text colors for print */
  h1, h2, h3, h4, h5, h6 {
    color: #0a0a1e !important;
    -webkit-text-fill-color: #0a0a1e !important;
    background: none !important;
    -webkit-background-clip: initial !important;
  }

  p, li, td, th, blockquote, .abstract p, .refs li {
    color: #1a1a2e !important;
  }

  /* Paper header */
  .paper-header {
    border-bottom-color: #e0e0e0 !important;
    background: none !important;
  }

  .paper-header h1 {
    background: none !important;
    -webkit-text-fill-color: #0a0a1e !important;
    color: #0a0a1e !important;
  }

  .paper-header .venue {
    color: #1a6b8a !important;
  }

  /* Abstract */
  .abstract {
    background: #f5f5f7 !important;
    border-color: #e0e0e0 !important;
    color: #1a1a2e !important;
  }

  .abstract h4 {
    color: #1a6b8a !important;
  }

  /* Tables */
  table {
    border-color: #e0e0e0 !important;
  }

  th {
    color: #1a6b8a !important;
    border-bottom-color: #e0e0e0 !important;
  }

  td {
    color: #3a3a4a !important;
    border-bottom-color: #f0f0f0 !important;
  }

  td:first-child {
    color: #8a6d3b !important;
  }

  td:nth-child(2) {
    color: #1a1a2e !important;
  }

  /* Blockquotes */
  blockquote {
    background: #f5f5f7 !important;
    border-left-color: #1a6b8a !important;
    color: #1a1a2e !important;
  }

  /* Separators */
  .sep {
    color: #1a6b8a !important;
  }

  /* Code blocks */
  pre, code {
    background: #f0f0f2 !important;
    color: #1a1a2e !important;
    border-color: #e0e0e0 !important;
  }

  /* Remove glass effects */
  .glass, .glass-card, .glass-card-m {
    background: #f5f5f7 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-color: #e0e0e0 !important;
  }

  /* Fix gradient borders */
  .glass-card-m.cyan, .glass-card-m.gold, .glass-card-m.green {
    background: #f5f5f7 !important;
    border-left-color: #1a6b8a !important;
  }

  /* Links */
  a {
    color: #1a6b8a !important;
  }

  /* Page margins */
  @page {
    margin: 2cm 2.2cm;
    size: A4;
  }

  /* Ensure content is visible */
  .main-content, .paper, .si {
    background: #ffffff !important;
    color: #1a1a2e !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Kill animations */
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    filter: none !important;
  }

  /* Make sure text is actually visible */
  * {
    color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
