/* ==== Resume Page Layout ==== */

.resume-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 30px 100px 30px; /* top and bottom padding to clear header/footer */
  background: white;
}

.resume-page h1 {
  margin: 0;
  font-size: 2.5rem;
}

.resume-page .contact {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;

  font-size: 1rem;
  font-style: normal;
  margin: 4px 0;
}

.resume-page .contact span {
  white-space: nowrap;
}


.resume-page h2 {
  margin-top: 1.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #ccc;
  font-size: 1.5rem;
}

.resume-page section {
  margin-bottom: 28px;
}

.resume-page .job {
  margin-top: 25px;
  margin-bottom: 20px;
}

.resume-page .job h3 {
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.resume-page .job .company {
  margin: 0;
  font-weight: 500;
}

.resume-page .job .job-details {
  margin: 0 0 6px 0;
}

.resume-page .job-highlights li {
  margin-top: 6px;
  margin-bottom: 4px;
  line-height: 1.35;
}

.resume-page ul {
  list-style-type: disc;
  padding-left: 20px;
}

.resume-page .skills {
  columns: 2;
  column-gap: 2rem;
}

.resume-page .skills li {
  break-inside: avoid;
  text-align: left;
  margin-bottom: 0.5rem;
}

.print-actions {
    text-align: right;
    margin-bottom: 10px;
}

.resume-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

.download-btn:hover {
    background-color: #89a8bf;
}

/* ==== Resume Page Responsiveness ==== */

/* == Mobile == */
@media (max-width: 900px) {

    .resume-page .contact {
      flex-direction: column;
      gap: .25rem;
    }

    .resume-page .contact span:not(:last-child)::after {
      content: "";
      margin: 0;
    }
    .resume-page .skills {
      columns: 1;
  }

}

/* == Desktop == */
@media (min-width: 901px) {

    .resume-page .contact span:not(:last-child)::after {
      content: "•";
      display: inline-block;
      font-size: 1.15em;
      margin-left: 1rem;
    }

}

/* ==== Print Styles ==== */

@media print {
  @page {
    size: letter;
    margin: 0.5in;
  }

  main {
    padding: 0 !important;
    margin: 0 !important;
    flex: none !important;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
  }

  body > header,
  body > footer,
  .print-actions {
    display: none !important;
  }

  .resume-page {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    background: white !important;
  }

  .resume-header {
    text-align: center;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
  }

  .resume-page h1 {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
  }

  .resume-page .contact {
    margin: 4px 0 !important;
    padding: 0 !important;
  }

  .resume-page h2 {
    margin: 18px 0 8px 0 !important;
    padding-bottom: 4px !important;
  }

  .resume-page section {
    margin-bottom: 18px !important;
  }
  
  .resume-page .job {
    break-inside: auto;
    page-break-inside: auto;
  }

  .resume-page .job h3, .resume-page .company, .resume-page .job-details {
    break-after: avoid;
    page-break-after: avoid;
  }

  .resume-page .skills {
    columns: 1;
  }
}
