.resume-paper {
  --accent: #6453d8;
  --resume-size: 11pt;
  background: #fff;
  color: #252a35;
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--resume-size);
  line-height: 1.48;
  padding: 48px 52px;
  min-height: 1056px;
  width: 746px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  text-align: left;
}
.resume-paper * {
  box-sizing: border-box;
}
.resume-paper h1,
.resume-paper h2,
.resume-paper h3,
.resume-paper p,
.resume-paper ul {
  margin: 0;
}
.resume-heading {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 18px;
  margin-bottom: 23px;
}
.resume-heading h1 {
  font-size: 2.65em;
  line-height: 1.14;
  letter-spacing: -1.4px;
  font-weight: 700;
  color: #212535;
}
.resume-headline {
  font-size: 1.12em;
  margin-top: 7px !important;
  color: var(--accent);
}
.resume-contact,
.resume-links {
  font-size: 0.8em;
  margin-top: 9px !important;
  color: #4e5566;
}
.resume-contact span {
  padding: 0 5px;
}
.resume-links a {
  margin-right: 10px;
}
.resume-paper a {
  color: inherit;
  text-decoration: none;
}
.resume-section {
  margin: 0 0 20px;
  break-inside: auto;
}
.resume-section h2 {
  font-size: 0.79em;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 11px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e4e4ec;
  break-after: avoid;
}
.resume-entry {
  margin-bottom: 15px;
  break-inside: avoid;
}
.resume-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.resume-entry h3 {
  font-size: 1em;
  font-weight: 700;
}
.resume-entry-head > span {
  font-size: 0.77em;
  white-space: nowrap;
  color: #5a6070;
}
.resume-subtitle {
  font-size: 0.89em;
  color: #53596a;
  margin: 3px 0 6px !important;
}
.resume-entry p,
.resume-section > p,
.resume-entry li {
  font-size: 0.87em;
  line-height: 1.6;
}
.resume-entry ul {
  padding-left: 17px;
  margin-top: 6px;
}
.resume-entry li {
  padding-left: 2px;
  margin-bottom: 3px;
}
.resume-entry-link {
  font-size: 0.76em !important;
  color: var(--accent);
  margin-top: 4px !important;
}
.resume-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  float: right;
  margin-left: 20px;
  border-radius: 50%;
}
.font-serif {
  font-family: Georgia, "Times New Roman", serif;
}
.font-mono {
  font-family: "Courier New", monospace;
}
.template-modern .resume-heading {
  border-bottom: 0;
  background: #f1f0f8;
  margin: -48px -52px 24px;
  padding: 36px 52px 24px;
  border-top: 7px solid var(--accent);
}
.template-modern .resume-section h2 {
  border-bottom: 0;
  letter-spacing: 1px;
}
.template-executive .resume-heading {
  text-align: center;
  border-bottom: 3px double var(--accent);
}
.template-executive .resume-heading h1 {
  font-family: Georgia, serif;
  font-weight: 400;
}
.template-executive .resume-section h2 {
  color: #222b3a;
}
.template-minimal .resume-heading {
  border: 0;
  margin-bottom: 28px;
}
.template-minimal .resume-section h2 {
  color: #353c4a;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.06em;
  border: 0;
  padding: 0;
}
.template-minimal .resume-heading h1 {
  font-weight: 400;
}
.template-academic {
  font-family: Georgia, serif;
}
.template-academic .resume-heading {
  border-bottom: 1px solid #222;
}
.template-academic .resume-section h2 {
  color: #222;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.07em;
  border-color: #c9cbd2;
}
.template-creative {
  border-left: 10px solid var(--accent);
}
.template-creative .resume-heading {
  border-bottom: 0;
}
.template-creative .resume-heading h1 {
  color: var(--accent);
}
.template-creative .resume-section h2 {
  border-bottom: 0;
  border-left: 3px solid var(--accent);
  padding: 0 0 0 10px;
}
.spacing-compact .resume-section {
  margin-bottom: 12px;
}
.spacing-compact .resume-entry {
  margin-bottom: 10px;
}
.spacing-relaxed .resume-section {
  margin-bottom: 28px;
}
.spacing-relaxed .resume-entry {
  margin-bottom: 21px;
}
.cover-paper > p {
  margin: 22px 0;
}
.cover-paper > h2 {
  font-size: 1.1em;
  margin: 24px 0;
}
.letter-body {
  white-space: normal;
  line-height: 1.85;
}
.export-body {
  margin: 0;
  background: #eaeaf0;
  font-family: Arial, sans-serif;
}
.export-toolbar {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  background: #242436;
  color: white;
  padding: 16px 30px;
  font-size: 13px;
}
.export-toolbar a {
  font-size: 23px;
  color: white;
  text-decoration: none;
}
.export-toolbar button {
  border: 0;
  background: #8370ef;
  color: #fff;
  border-radius: 7px;
  padding: 12px 20px;
  cursor: pointer;
}
.export-document {
  width: 746px;
  margin: 35px auto;
  box-shadow: 0 6px 30px #0001;
}
.export-document .resume-paper {
  min-height: 1056px;
}
@media (max-width: 780px) {
  .export-document {
    width: 100%;
    margin: 15px 0;
  }
  .export-document .resume-paper {
    width: 100%;
    padding: 28px;
    min-height: 0;
  }
  .export-toolbar {
    flex-wrap: wrap;
  }
  .export-toolbar span {
    display: none;
  }
}
@media print {
  html,
  body.export-body {
    background: white;
    margin: 0;
    padding: 0;
  }
  .export-toolbar {
    display: none !important;
  }
  .export-document {
    width: auto;
    margin: 0;
    box-shadow: none;
  }
  .resume-paper,
  .export-document .resume-paper {
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .template-modern .resume-heading {
    margin: 0 0 24px;
    padding: 16px 20px;
  }
  .resume-entry {
    break-inside: avoid;
  }
  .resume-section h2 {
    break-after: avoid;
  }
  a {
    color: inherit;
  }
  .resume-heading {
    break-inside: avoid;
  }
  .resume-paper p {
    orphans: 3;
    widows: 3;
  }
}

/* Preserve the chosen paper proportions and readable long entries. */
.resume-paper.paper-Letter {
  min-height: 966px;
}
.resume-entry-head {
  flex-wrap: wrap;
  gap: 3px 12px;
}
.resume-heading::after {
  content: "";
  display: block;
  clear: both;
}
@media (max-width: 780px) {
  .export-document .template-modern .resume-heading {
    margin: -28px -28px 24px;
    padding: 28px;
  }
}
@media print {
  .export-document .resume-paper.paper-Letter {
    min-height: 0;
  }
  .export-document .template-modern .resume-heading {
    margin: 0 0 24px;
    padding: 16px 20px;
  }
  .resume-entry {
    break-inside: auto;
  }
  .resume-entry-head,
  .resume-subtitle {
    break-after: avoid;
  }
  .resume-entry li {
    break-inside: avoid;
  }
}
