.resume-pdf-layout {
  background-color: #f0f0f0 !important;
  min-height: 0 !important; /* Overrides global 100vh */
  height: auto !important;
  margin: 0 !important;
  display: flex;
  justify-content: center;
}

.resume-container {
  max-width: none !important; /* Overrides global 800px */
  padding: 0 !important;
  margin: 0 !important;
}

@media screen {
  body.resume-body {
    background: #e0e0e0;
    display: flex;
    justify-content: center;
    padding: 20px;
  }
  :root[data-view-type="web"] .resume-paper {
    background: transparent;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    min-height: 0;
  }
  :root[data-view-type="paper"] .resume-paper {
    background: white;
    width: 8.5in;
    min-height: 11in;
    margin: 20px 0;
    padding: 0.5in;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
  }
}

@media print {
  .resume-pdf-layout {
    background: white !important;
    margin: 0.5in; /* Re-establish a visual margin for the actual content */
    padding: 0;
  }
  .resume-paper {
    width: 8.5in;
    height: 11in;
    padding: 0;
    margin: 0;
    padding: 0.5in; /* Re-establish margins inside the paper for the printer */
    box-shadow: none;

  .resume-paper {
    width: 8.5in !important;
    height: 11in !important;
    padding: 0.5in !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: white !important;
    color: black !important;
    overflow: hidden; /* Ensure single-page fit */
  }
  .resume-link {
    text-decoration: none !important;
    color: black !important; /* Ensure black ink for printing */
  }

  .resume-paper {
    overflow: hidden;
    page-break-after: avoid;
    padding: 0.25in !important;
  }
}

:root[data-view-type="web"] body.resume-body {
  font-family: inherit;
  color: var(--text-main);
  line-height: 1.6;
}
:root[data-view-type="paper"] body.resume-body {
  font-family: "Helvetica", "Arial", sans-serif;
  color: #333;
  font-size: 9.5pt;
  line-height: 1.15;
}
:root[data-view-type="web"] h1.resume-h1 {
  font-size: 2rem;
  border-bottom: 2px solid var(--accent-primary);
  text-align: left;
  margin-bottom: 1rem;
}
:root[data-view-type="paper"] h1.resume-h1 {
  text-align: center;
  text-transform: uppercase;
  margin: 0;
  /* font-size: 24pt; */
  font-size: 16pt;
  margin-bottom: 2px;
}
.resume-contact-bar {
  text-align: center;
  font-size: 10pt;
  border-bottom: 2px solid #444;
  padding-bottom: 5px;
  /* margin-bottom: 15px; */
  padding-bottom: 2px;
}
:root[data-view-type="web"] h2.resume-h2 {
  font-size: 1.4rem;
  color: var(--accent-primary);
  border-bottom: 1px solid var(--border-medium);
  margin-top: 1.5rem;
}
:root[data-view-type="paper"] h2.resume-h2 {
  /* font-size: 14pt; */
  border-bottom: 1px solid #888;
  text-transform: uppercase;
  margin: 15px 0 5px 0;
  font-size: 11pt;
}
.resume-entry {
  /* margin-bottom: 10px; */
  margin-bottom: 4px;
}
.resume-entry-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}
.resume-entry-header, .resume-sub-header {
  align-items: baseline;
  flex-wrap: nowrap;
}
.resume-sub-header {
  display: flex;
  justify-content: space-between;
  font-style: italic;
  font-size: 11pt;
}
ul.resume {
  margin: 2px 0;
  padding-left: 15px;
  /* margin: 5px 0; */
  /* padding-left: 20px; */
}

ul.resume li {
  margin-bottom: 1px;
}

:root[data-view-type="paper"] .resume-link {
  text-decoration: none;
  color: #333; /* Match your resume text color */
}
.resume-skills {
  margin-bottom: 10px;
  font-size: 11pt;
}
.resume-skill-category {
  margin-bottom: 3px;
}

.resume-summary {
  margin: 2px 0;
  font-size: 11pt;
  /* margin: 5px 0; */
}
