/* ==========================================
   thanh.lyforge.net — Print Stylesheet
   ========================================== */

@page {
  margin: 0.75in 0.5in;
  size: letter;
}

@media print {
  /* Hide non-essential elements */
  header,
  footer,
  .page-header .btn,
  .cta-section,
  .btn {
    display: none !important;
  }

  body {
    font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-size: 10.5pt;
    line-height: 1.45;
    color: #000;
    background: #fff;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .container.narrow {
    max-width: 100%;
  }

  .section {
    padding: 0.5rem 0;
    page-break-inside: avoid;
  }

  .section:first-of-type {
    padding-top: 0;
  }

  .section:last-of-type {
    padding-bottom: 0;
  }

  .page-header {
    padding: 0 0 0.35rem 0;
    text-align: left;
    border-bottom: 2px solid #2563eb;
    margin-bottom: 0.75rem;
  }

  .page-header h1 {
    font-size: 18pt;
    margin-bottom: 0.15rem;
  }

  .page-header .subtitle {
    font-size: 9.5pt;
    color: #555;
    margin-bottom: 0;
  }

  h2 {
    font-size: 12pt;
    margin-bottom: 0.5rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid #ccc;
    color: #2563eb;
  }

  h3 {
    font-size: 10.5pt;
    margin-bottom: 0.1rem;
  }

  /* Resume items */
  .resume-item {
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dotted #ddd;
  }

  .resume-item:last-child {
    border-bottom: none;
  }

  .resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
  }

  .date {
    font-size: 9pt;
    color: #555;
  }

  .resume-org {
    font-size: 9.5pt;
    color: #2563eb;
    margin-bottom: 0.25rem;
  }

  .resume-item ul {
    padding-left: 1rem;
    margin: 0;
  }

  .resume-item ul li {
    font-size: 9.5pt;
    margin-bottom: 0.15rem;
    line-height: 1.35;
  }

  /* Skills & Certs in print */
  .skills-list {
    display: block;
    gap: 0;
  }

  .skill-category {
    background: none;
    border: none;
    padding: 0.25rem 0;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .skill-category h3 {
    font-size: 9.5pt;
    color: #2563eb;
    margin-bottom: 0.1rem;
  }

  .skill-category p {
    font-size: 9pt;
    color: #333;
    margin: 0;
  }

  .awards-list {
    margin: 0;
  }

  .awards-list li {
    font-size: 9.5pt;
    padding: 0.2rem 0;
    border-bottom: none;
    color: #333;
  }

  /* Prevent page breaks in bad places */
  .resume-item {
    page-break-inside: avoid;
  }

  .skill-category,
  .awards-list li {
    page-break-inside: avoid;
  }

  /* Remove About Me section from print (or keep compact) */
  .section:last-of-type .container.narrow p {
    font-size: 9.5pt;
    margin-bottom: 0.25rem;
    color: #333;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  /* Remove shadows and effects */
  .stat-card,
  .skill-category,
  .project-card,
  .resume-item {
    box-shadow: none !important;
    border: none !important;
  }
}
