/**
 * Print styles for PDF export
 * Moved from global SSR styles to reduce server-side processing overhead
 * 
 * This file is loaded only when printing via media="print" attribute,
 * avoiding unnecessary CSS processing during server-side rendering.
 */

@media print {
  html,
  body,
  body * {
    visibility: hidden;

    /* Reset colors to avoid issues with dark mode */
    --theme-box-bg: #fff;
    --gray-800: #1e2d37;
    --gray-700: #324650;
    --gray-600: #526066;
    --gray-500: #9eacb2;
    --gray-400: #cbd2d6;
    --gray-300: #dce1e1;
    --gray-200: #f3f3f3;
    --gray-100: #f8f8f8;
    --white: #fff;
    --black: #000000;
    --white-transparent: rgba(255, 255, 255, 0.7);
  }

  #site-body,
  #site-body * {
    visibility: visible;
    box-shadow: none;
    color: var(--no-overwrite-gray) !important;
    text-overflow: none;
  }

  #site-body figure,
  #site-body p,
  #site-body .no-break-inside {
    break-inside: avoid-page;
  }

  #site-body {
    margin: 0 auto;
    width: 70%;
  }

  /* Hide elements not useful for print */
  .hide-for-print,
  .sticky-outer-wrapper,
  [id^="browsi_"] {
    display: none !important;
  }
}
