/* The CV retains its document typography, palette and A4 layout. */
.cv-page {
  --ink: #1a3042;
  --muted: #596974;
  --accent: #236a75;
  --font-family: "DejaVu Sans", Arial, sans-serif;
  --page-background: #e9eef0;
  --body-color: var(--text);
  --body-font-size: 10pt;
  --body-line-height: 1.4;
  --focus-offset: 5px;
  --focus-radius: 0;
  color: var(--text);
  font-family: var(--font-family);
  font-size: 10pt;
  line-height: 1.4;
}
.cv-document {
  min-height: 100vh;
  background: #e9eef0;
}
.site-main.cv-page {
  align-self: start;
  padding: 0 24px 24px;
}
.site-main.cv-page .paper {
  max-width: 100%;
}
.cv-page a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cv-page .toolbar {
  max-width: 210mm;
  margin: 18px auto 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 0 6px;
}
.cv-page .home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 0;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.cv-page .print-button {
  --focus-radius: 5px;
  border: 1px solid #bbcbcf;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  padding: 9px 14px;
  cursor: pointer;
}
.cv-page .print-button:hover {
  border-color: var(--accent);
  background: var(--pale);
}
.cv-page .paper {
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto 32px;
  padding: 30pt 42pt 35pt;
  background: #fff;
  box-shadow: 0 8px 35px #1a304214;
}
.cv-page .accent-line {
  width: 35pt;
  height: 3pt;
  background: var(--accent);
  margin-bottom: 14pt;
}
.cv-page h1 {
  color: var(--ink);
  font-size: 29.5pt;
  font-weight: 700;
  line-height: 34pt;
}
.cv-page .occupation {
  margin: 7pt 0 0 1pt;
  color: var(--accent);
  font-size: 15.3pt;
  font-weight: 700;
  line-height: 18pt;
}
.cv-page .contacts {
  display: flex;
  gap: 49pt;
  margin: 10pt 0 0 1pt;
  font-size: 10.3pt;
  line-height: 14pt;
}
.cv-page .address {
  margin: 4pt 0 0 1pt;
  color: var(--muted);
  font-size: 10.3pt;
  line-height: 14pt;
  font-style: normal;
}
.cv-page .qualifications {
  display: flex;
  align-items: center;
  gap: 80pt;
  min-height: 29pt;
  margin-top: 6pt;
  padding: 6pt 13pt;
  background: var(--pale);
  border-radius: 4pt;
  color: var(--ink);
  font-size: 10.2pt;
}
.cv-page .qualifications strong {
  color: var(--accent);
  font-size: 10.9pt;
}
.cv-page .columns {
  display: grid;
  grid-template-columns: 145pt minmax(0, 1fr);
  gap: 31pt;
  margin: 18pt 0 0 1pt;
}
.cv-page h2 {
  margin: 0 0 9pt;
  padding: 0 0 7pt;
  border-bottom: .65pt solid var(--rule);
  color: var(--ink);
  font-size: 10pt;
  line-height: 13pt;
  font-weight: 700;
}
.cv-page p {
  margin: 0;
}
.cv-page .sidebar section + section {
  margin-top: 24pt;
}
.cv-page .profile {
  font-size: 10.2pt;
  line-height: 14.5pt;
}
.cv-page .skills {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cv-page .skills li {
  position: relative;
  padding-left: 12pt;
  margin-top: 8pt;
  font-size: 10pt;
  line-height: 14pt;
}
.cv-page .skills li:first-child {
  margin-top: 0;
}
.cv-page .skills li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.cv-page .education p {
  line-height: 14pt;
}
.cv-page .education p + p {
  margin-top: 16pt;
}
.cv-page .languages {
  line-height: 16pt;
}
.cv-page .job {
  margin-bottom: 13pt;
  break-inside: avoid;
}
.cv-page h3 {
  margin: 0;
  color: var(--ink);
  font-size: 11.3pt;
  font-weight: 700;
  line-height: 14.5pt;
}
.cv-page .job-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8pt;
  margin: 5pt 0 4pt;
  line-height: 12pt;
}
.cv-page .employer {
  color: var(--accent);
  font-size: 9.8pt;
  font-weight: 700;
}
.cv-page .date {
  color: var(--muted);
  font-size: 9pt;
  white-space: nowrap;
}
.cv-page .job-description {
  font-size: 10pt;
  line-height: 14pt;
}
.cv-page .other-experience {
  margin-top: 16pt;
}
.cv-page .other-job {
  margin-top: 9pt;
  break-inside: avoid;
}
.cv-page .other-job:first-of-type {
  margin-top: 0;
}
.cv-page .other-job h3 {
  margin-bottom: 3pt;
  font-size: 10.1pt;
  line-height: 13pt;
}
.cv-page .other-job p {
  color: var(--muted);
  font-size: 9.5pt;
  line-height: 13pt;
}
@media screen and (max-width: 820px) {
  .cv-page .paper {
    width: calc(100% - 32px);
    min-height: 0;
    padding: 30px;
  }
  .cv-page .toolbar {
    margin: 12px 16px;
  }
  .cv-page h1 {
    font-size: clamp(25px, 5vw, 39px);
    line-height: 1.15;
  }
  .cv-page .occupation {
    font-size: clamp(14px, 2.6vw, 20px);
    line-height: 1.35;
  }
  .cv-page .contacts {
    gap: 12px 32px;
    flex-wrap: wrap;
  }
  .cv-page .qualifications {
    gap: 24px;
    justify-content: space-between;
  }
  .cv-page .columns {
    grid-template-columns: minmax(160px, .75fr) minmax(0, 1.6fr);
    gap: 24px;
  }
  .cv-page .job-meta {
    flex-wrap: wrap;
    gap: 2px 12px;
  }
  .cv-page h2 {
    line-height: 1.4;
  }
}
@media screen and (max-width: 580px) {
  .site-main.cv-page {
    padding: 0;
  }
  .cv-document {
    background: #fff;
  }
  .cv-page .paper {
    width: 100%;
    margin-bottom: 0;
    padding: 24px 22px 32px;
    box-shadow: none;
  }
  .cv-page .toolbar {
    margin: 12px 16px 0;
  }
  .cv-page .home-link {
    font-size: 13px;
  }
  .cv-page .print-button {
    padding: 9px 10px;
    font-size: 12px;
  }
  .cv-page .accent-line {
    margin-bottom: 20px;
  }
  .cv-page .occupation {
    margin-top: 10px;
  }
  .cv-page .contacts {
    flex-direction: column;
    gap: 5px;
    margin-top: 18px;
    font-size: 14px;
  }
  .cv-page .address {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
  }
  .cv-page .qualifications {
    margin-top: 18px;
    padding: 12px;
    gap: 12px;
  }
  .cv-page .columns {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 28px;
  }
  .cv-page .sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cv-page .sidebar section + section {
    margin-top: 0;
  }
  .cv-page h2 {
    font-size: 14px;
    margin-bottom: 14px;
  }
  .cv-page .profile, .cv-page .skills li, .cv-page .education p, .cv-page .languages, .cv-page .job-description {
    font-size: 14px;
    line-height: 1.55;
  }
  .cv-page .skills li {
    margin-top: 7px;
  }
  .cv-page h3 {
    font-size: 16px;
    line-height: 1.4;
  }
  .cv-page .job {
    margin-bottom: 24px;
  }
  .cv-page .job-meta {
    margin: 6px 0;
  }
  .cv-page .employer, .cv-page .date, .cv-page .other-job p {
    font-size: 13px;
    line-height: 1.5;
  }
  .cv-page .other-job {
    margin-top: 16px;
  }
  .cv-page .other-job h3 {
    font-size: 14px;
    line-height: 1.4;
  }
}
@page {
  size: A4;
  margin: 0;
}
/* Both the integrated CV and the standalone document print as one A4 sheet. */
@media print {
  html, body {
    background: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  body[data-page="cv"] .site-header,
  body[data-page="cv"] .site-footer,
  body[data-page="cv"] .landscape,
  .cv-page .toolbar,
  .cv-page .route-error {
    display: none;
  }
  body[data-page="cv"] .page {
    display: block;
    min-height: 0;
    overflow: visible;
    isolation: auto;
  }
  .cv-document,
  .site-main.cv-page {
    min-height: 0;
    margin: 0;
    padding: 0;
    background: #fff;
  }
  .cv-page .paper {
    width: 210mm;
    max-width: none;
    min-height: 297mm;
    margin: 0;
    padding: 30pt 42pt 35pt;
    box-shadow: none;
  }
  .cv-page a {
    text-decoration: none;
  }
}
