/* ==========================================================================
   Resume print stylesheet — visible in both screen and print
   Load it with: <link rel="stylesheet" href="/assets/css/print.css">
   ========================================================================== */

/* ------------------------------------------------------------
   SCREEN (normal view): hide print header, ensure links work
   ------------------------------------------------------------ */
@media screen {
  .resume-print-header {
    display: none !important;
  }
  
  /* Ensure all links are clickable on screen */
  a {
    pointer-events: auto !important;
    visibility: visible !important;
  }
}

/* ------------------------------------------------------------
   PRINT (PDF export / print preview)
   ------------------------------------------------------------ */
@media print {

  /* ----------------- Page Setup ----------------- */
  @page {
    size: A4;
    margin: 1.6cm;
  }

  body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 11pt;
    color: #000;
    background: #fff;
    line-height: 1.4;
  }

  /* Hide site elements not needed for PDF */
  header,
  footer,
  nav,
  .page__footer,
  .page__share,
  .page__related {
    display: none !important;
  }

  /* ----------------- Resume Header ----------------- */
  .resume-print-header {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5em;
    padding: 1.2em 0;
    border-bottom: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  }

  .resume-print-header .myname {
    font-size: 2.2em;
    margin: 0 0 0.2em 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .resume-print-header .sub {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.3;
    color: #34495e;
    font-weight: 500;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  /* Left column for name and subtitle */
  .resume-print-header .left-column {
    flex: 1;
    padding-right: 2em;
  }

  /* Right column for contact info */
  .resume-print-header .coords {
    flex: 0 0 auto;
    min-width: 220px;
    padding: 0.5em 0;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.6;
    text-align: right;
    color: #555;
    font-weight: 400;
  }



  /* ----------------- Links ----------------- */
  /* Make all links visible and clickable in print */
  a {
    color: #000 !important;
    text-decoration: none !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  /* Prevent browser from appending URLs in parentheses for all links */
  a[href]::after {
    content: none !important;
  }

  /* Header links styling - inherit color from parent */
  .resume-print-header a {
    color: inherit !important;
    font-weight: 500;
  }


  /* ----------------- Section Titles ----------------- */
  h2 {
    font-size: 1.1em !important;
    color: #000;
    border-bottom: 1px solid #333;
    padding-bottom: 0.1em;
    margin-top: 0.8em;
    margin-bottom: 0.4em;
  }


  /* ----------------- Lists & Paragraphs ----------------- */
  ul, ol {
    margin: 0.2em 0 0.2em 1.2em;
  }

  p {
    margin: 0.3em 0;
  }

  /* ----------------- Skills Section ----------------- */
  .cv .categories {
    font-size: 1.2em !important;
    font-weight: 600;
  }

  .cv .items {
    font-size: 1.2em !important;
    line-height: 1.4;
  }




  /* ----------------- Minimal Mistakes Cleanup ----------------- */
  .page {
    box-shadow: none;
    padding: 0;
    background: none;
  }
}
