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

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.5pt;
  line-height: 1.3;
  color: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.cv {
  display: grid;
  grid-template-columns: 68% 32%;
  grid-template-areas: "content sidebar";
  grid-template-rows: auto 1fr;
  column-gap: 10mm;
  row-gap: 4mm;
}

.intro {
  grid-column: 1;
  grid-row: 1;
}

.content-column {
  grid-column: 1;
  grid-area: content;
  grid-row: 2;
}

.sidebar-column {
  grid-column: 2;
  grid-area: sidebar;
  grid-row: 1 / span 2;
  border-left: 0.3mm solid #d6dbe1;
  padding-left: 4mm;
}

h1 {
  font-size: 24pt;
  margin: 0 0 2.5mm;
  font-weight: 700;
}

.cv-title {
  font-size: 13pt;
  margin: 0 0 4mm;
  font-weight: 600;
}

section {
  padding: 0;
  border: none;
}

h2 {
  font-size: 11.5pt;
  margin: 0 0 2mm;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  break-after: avoid;
  page-break-after: avoid;
}

h3 {
  font-size: 11pt;
  margin: 0;
  font-weight: 700;
  break-after: avoid;
  page-break-after: avoid;
}

h4 {
  font-size: 10pt;
  margin: 2mm 0 1mm;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  break-after: avoid;
  page-break-after: avoid;
}

.job,
.job-section {
  break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 4mm;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4mm;
}

.job-dates {
  font-size: 10pt;
  color: #555;
}

.job-location {
  display: block;
  margin-top: 1mm;
  font-size: 9.5pt;
  color: #666;
}

ul {
  margin: 1.5mm 0 0 12px;
  padding: 0;
  list-style-type: disc;
  break-inside: avoid;
  page-break-inside: avoid;
}

li {
  break-inside: avoid;
  page-break-inside: avoid;
}

li + li {
  margin-top: 3px;
}

.stack-list li {
  margin-top: 1mm;
}

p {
  margin: 0 0 2.5mm;
}

.summary p {
  margin-bottom: 3mm;
}

.continued-note {
  display: none;
  margin: 2mm 0 3mm;
  font-size: 9pt;
  color: #555;
  font-style: italic;
}

.work-history .continued-note {
  display: block;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5mm;
  height: 4.5mm;
  margin-right: 2mm;
  border: 0.2mm solid #c7cdd6;
  border-radius: 1.5mm;
  color: #555;
}

.contact-icon svg {
  width: 2.8mm;
  height: 2.8mm;
  fill: currentColor;
  display: block;
}

.contacts li {
  display: flex;
  align-items: center;
}
