/* Print-specific styles */

@media print {
  /* Hide interactive elements */
  theme-toggle,
  role-toggle {
    display: none !important;
  }

  a {
    color: var(--color-text);
    background: none;
    text-decoration: none;
  }

  hr {
    display: none;
  }

  /* Show print-only content */
  .print-only {
    display: inline !important;
  }

  /* Page break control */
  h2, h3 {
    page-break-after: avoid;
    page-break-before: auto;
  }

  /* Ensure timeline entries don't break across pages */
  work-entry,
  education-entry {
    page-break-inside: avoid;
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
  }

  /* Force timeline entries to be visible */
  work-entry::part(entry),
  education-entry::part(entry) {
    opacity: 1 !important;
  }

  /* Page margins - reduced for more content per page */
  @page {
    margin: 1.5cm;
  }

  /* Force light theme colors for print */
  :root {
    --color-background: #ffffff;
    --color-text: #000000;
    --color-text-muted: #666666;
    --color-border: #000000;
    --color-border-light: #dddddd;
    --color-accent: #2563eb;
    --color-timeline-line: #dddddd;
    --color-timeline-dot: #2563eb;

    /* Compact spacing for print */
    --spacing-xs: 4px;
    --spacing-sm: 6px;
    --spacing-md: 8px;
    --spacing-lg: 12px;
    --spacing-xl: 16px;

    /* Smaller font sizes for print */
    --font-size-sm: 10pt;
    --font-size-base: 11pt;
    --font-size-lg: 12pt;
    --font-size-xl: 14pt;
    --font-size-2xl: 16pt;
    --font-size-3xl: 18pt;
  }

  body {
    background-color: #ffffff;
    color: #000000;
    font-size: 11pt;
    line-height: 1.4;
  }

  /* Compact headings */
  h1 {
    font-size: 18pt;
    margin-bottom: 6px;
  }

  h2 {
    font-size: 14pt;
    margin-bottom: 6px;
  }

  h3 {
    font-size: 12pt;
    margin-bottom: 4px;
  }

  h4 {
    font-size: 11pt;
    margin-bottom: 4px;
    margin-top: 8px;
  }

  /* Compact lists */
  ul, ol {
    margin: 4px 0;
    padding-left: 16px;
  }

  li {
    margin-bottom: 2px;
    line-height: 1.3;
  }

  /* Compact paragraphs */
  p {
    margin-bottom: 4px;
  }

  /* Disable animations for print */
  * {
    animation: none !important;
    transition: none !important;
  }
}
