@page {
  size: A4;
  margin: 14mm 16mm;

  @top-left {
    content: none;
  }

  @top-center {
    content: none;
  }

  @top-right {
    content: none;
  }

  @bottom-right {
    content: counter(page) " / " counter(pages);
    font-size: 8pt;
    color: #666;
  }
}

:root {
  --text: #000;
  --muted: #333;
  --line: #999;
}

html {
  font-size: 9.6pt;
}

body {
  line-height: 1.28;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.page,
.cv {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.screen-only {
  display: none !important;
}

.cv-header {
  margin-bottom: 5mm;
}

.cv-header h1 {
  font-size: 18pt;
}

.cv section {
  margin-bottom: 5mm;
}

h2 {
  font-size: 10pt;
  margin-bottom: 2.2mm;
  padding-bottom: 0.8mm;
}

h3 {
  font-size: 9.6pt;
  margin: 2.8mm 0 1.5mm;
}

.cv-entry {
  grid-template-columns: 25mm 1fr;
  gap: 1mm;
  margin-bottom: 1.5mm;
  break-inside: avoid;
}

.cv-entry > .date {
  white-space: nowrap;
}

.period-date {
  line-height: 1.25;
}

.citation-list {
  padding-left: 6mm;
}

.citation-list li {
  margin-bottom: 1.8mm;
  break-inside: avoid;
}

.service-list li {
  break-inside: avoid;
}

.award-entry {
  break-inside: avoid;
}

a,
a:visited {
  color: #000;
  text-decoration: none;
}

footer {
  display: none;
}

.detail {
  color: #222;
}

.publication-list {
  padding-left: 5.5mm;
}

.publication-entry {
  margin-bottom: 1.8mm;
  padding-left: 1mm;
  break-inside: avoid;
}

.publication-title {
  font-weight: 400;
}

.publication-authors,
.publication-meta {
  margin-top: 0.4mm;
}

.pub-links {
  margin-left: 1.5mm;
}

.patent-list {
  padding-left: 5.5mm;
}

.patent-entry {
  margin-bottom: 1.8mm;
  padding-left: 1mm;
  break-inside: avoid;
}

.patent-title {
  font-weight: 400;
}

.patent-authors,
.patent-meta {
  margin-top: 0.4mm;
}

.patent-grant {
  margin-top: 0;
}
