/* ==========================================================
   STRATZ CAREEROS - PIXEL PERFECT A4 PRINT & PDF STYLESHEET
   Ensures zero-margin clipping, crisp vector typography, and ATS compliance
   ========================================================== */

@page {
  size: A4 portrait;
  margin: 10mm 12mm 10mm 12mm;
}

@media print {
  html, body {
    background: #ffffff !important;
    color: #111827 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 9.5pt !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Hide entire application shell */
  .app-header,
  .lockscreen-overlay,
  .cv-controls-panel,
  .toast-container,
  .drawer-backdrop,
  .btn,
  .search-bar-bento,
  .portal-pills,
  .brand-container,
  .nav-tabs,
  .no-print {
    display: none !important;
  }

  .app-main {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .cv-studio-container {
    display: block !important;
  }

  .cv-preview-viewport {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .a4-sheet {
    width: 100% !important;
    min-height: auto !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    color: #111827 !important;
  }

  /* Ensure dark theme reverts to crisp high-contrast print */
  .theme-agentic-bento {
    background: #ffffff !important;
    color: #111827 !important;
  }

  .theme-agentic-bento .cv-name,
  .theme-agentic-bento .job-role,
  .theme-agentic-bento .section-title {
    color: #0f172a !important;
  }

  .theme-agentic-bento .cv-headline {
    color: #2563eb !important;
  }

  .theme-agentic-bento .cv-contacts,
  .theme-agentic-bento .bullet-point,
  .theme-agentic-bento .cv-bullets li {
    color: #334155 !important;
  }

  /* Avoid page breaks inside bullet points and job blocks */
  .cv-item,
  .cv-bullets li {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .section-title {
    page-break-after: avoid;
    break-after: avoid;
  }

  a {
    color: inherit !important;
    text-decoration: none !important;
  }
}
