/* =========================================================================
   PDF Resume — ATS-friendly document
   - Standalone stylesheet (no design-system imports — full ATS isolation)
   - Screen view = PDF preview (what the user sees before saving)
   - Print rules optimize for paper export
   ========================================================================= */

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Screen-only export band */
.pdf-export-band {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #1a1a1a;
  color: white;
  padding: 16px 24px;
  border-bottom: 1px solid #333;
}

.pdf-export-band-inner {
  max-width: 8.5in;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pdf-export-band-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdf-export-band-text strong {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.pdf-export-band-text span {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  color: #999;
}

.pdf-export-button {
  font: inherit;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  background: white;
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.pdf-export-button:hover {
  opacity: 0.9;
}

/* Page wrapper — letter size with shadow on screen */
body.pdf-body {
  margin: 0;
  background: #f5f5f5;
  font-family: Helvetica, Arial, sans-serif;
  color: black;
  line-height: 1.45;
}

.pdf-page {
  max-width: 8.5in;
  min-height: 11in;
  margin: 32px auto 64px;
  padding: 0.55in 0.6in;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.pdf-resume {
  font-size: 10pt;
  color: black;
}

/* -----------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------- */
.pdf-header {
  margin-bottom: 16pt;
  padding-bottom: 10pt;
  border-bottom: 0.5pt solid black;
}

.pdf-name {
  font-size: 20pt;
  font-weight: 700;
  margin: 0 0 6pt 0;
  letter-spacing: -0.005em;
  line-height: 1.15;
}

.pdf-contact {
  font-size: 9.5pt;
  margin: 0 0 4pt 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4pt 6pt;
  align-items: baseline;
  line-height: 1.4;
}

.pdf-contact a {
  color: black;
  text-decoration: underline;
}

.pdf-dot {
  color: black;
}

.pdf-visa {
  font-size: 9pt;
  font-weight: 500;
  margin: 0;
}

/* -----------------------------------------------------------------------
   Sections
   ----------------------------------------------------------------------- */
.pdf-section {
  margin-bottom: 14pt;
}

.pdf-section:last-child {
  margin-bottom: 0;
}

.pdf-section-title {
  font-size: 9.5pt;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8pt 0;
  padding-bottom: 4pt;
  border-bottom: 0.5pt solid black;
}

.pdf-summary {
  font-size: 9.5pt;
  line-height: 1.45;
  margin: 0;
}

/* -----------------------------------------------------------------------
   Roles
   ----------------------------------------------------------------------- */
.pdf-role {
  margin-bottom: 12pt;
}

.pdf-role:last-child {
  margin-bottom: 0;
}

.pdf-role-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12pt;
  margin-bottom: 2pt;
}

.pdf-role-title {
  font-size: 11pt;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0;
  flex: 1 1 auto;
}

.pdf-role-date {
  font-size: 9.5pt;
  font-weight: 500;
  white-space: nowrap;
  margin: 0;
  font-feature-settings: "tnum";
  flex-shrink: 0;
}

.pdf-role-meta {
  font-size: 9pt;
  margin: 0 0 6pt 0;
  line-height: 1.4;
}

/* -----------------------------------------------------------------------
   Bullets
   ----------------------------------------------------------------------- */
.pdf-bullets {
  list-style: disc;
  padding-left: 14pt;
  margin: 0;
  font-size: 9.5pt;
  line-height: 1.4;
}

.pdf-bullets li {
  margin-bottom: 3pt;
}

.pdf-bullets li:last-child {
  margin-bottom: 0;
}

.pdf-bullets--flat li strong {
  font-weight: 700;
}

/* -----------------------------------------------------------------------
   Skills (definition list)
   ----------------------------------------------------------------------- */
.pdf-skills {
  margin: 0;
  display: grid;
  grid-template-columns: 130pt 1fr;
  gap: 6pt 14pt;
  font-size: 9pt;
  line-height: 1.4;
}

.pdf-skills dt {
  font-weight: 700;
}

.pdf-skills dd {
  margin: 0;
}

/* =========================================================================
   PRINT — paper export
   ========================================================================= */
@media print {

  /* Hide screen-only chrome */
  .pdf-export-band {
    display: none !important;
  }

  /* Page setup — 0.5in margins, letter size (ATS standard) */
  @page {
    margin: 0.5in 0.55in;
    size: letter;
  }

  body.pdf-body {
    background: white !important;
    margin: 0;
  }

  .pdf-page {
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
    min-height: 0 !important;
  }

  /* Page-break safety — keep roles together where possible */
  .pdf-role {
    page-break-inside: avoid;
    break-inside: avoid;
  }

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

  .pdf-bullets li {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Defensive: kill any transitions that might leak from hover state */
  * {
    transition: none !important;
    animation: none !important;
  }
}
