/* Printed CV: a classic A4 page, built from the .print-cv article. */
@page { size: A4; margin: 12mm 13mm 11mm; }

html, body { background: #fff !important; color: #111 !important; }
html { scroll-behavior: auto; overflow: visible !important; }
body { font-size: 9.5pt; line-height: 1.44; overflow: visible !important; }
body::after { display: none !important; content: none !important; }
body > *:not(.print-cv) { display: none !important; }

.print-cv {
  display: block !important;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-variation-settings: "wdth" 100;
  color: #111;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.print-cv * { animation: none !important; transition: none !important; }
.print-cv p { margin: 0; }
.print-cv ul { list-style: none; margin: 0; padding: 0; }

.p-head { display: grid; grid-template-columns: 15mm 1fr auto; gap: 0 5mm; align-items: center; padding-bottom: 4.5mm; border-bottom: 2.4pt solid #FF4A1C; }
.p-mono { width: 15mm; height: 15mm; }
.p-head h1 { margin: 0; font-size: 25pt; line-height: 1; letter-spacing: -.03em; font-weight: 400; font-variation-settings: "wght" 780, "wdth" 100; }
.p-title { margin-top: 1.6mm !important; font-size: 10.5pt; font-variation-settings: "wght" 500; }
.p-contact { text-align: right; font-size: 8.3pt; line-height: 1.55; }
.p-contact b { font-weight: 400; font-variation-settings: "wght" 700; color: #111; }

.p-body { display: grid; grid-template-columns: 1fr 50mm; gap: 8mm; margin-top: 5.5mm; }
.p-side { border-left: .5pt solid #ccc; padding-left: 5mm; }
.print-cv h2 {
  margin: 0 0 2.4mm; padding-bottom: 1.2mm; border-bottom: .6pt solid #111;
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 7.2pt; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}
.print-cv section { margin-bottom: 5.4mm; }
.p-main > section:first-child p { font-size: 10pt; line-height: 1.48; }

.p-job { margin-bottom: 4mm; break-inside: avoid; }
.p-job-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4mm; }
.p-job h3 { margin: 0; font-size: 10.2pt; font-weight: 400; font-variation-settings: "wght" 700; letter-spacing: -.01em; }
.p-job .when { font-family: "JetBrains Mono", monospace; font-size: 7pt; color: #555; white-space: nowrap; letter-spacing: .02em; }
.p-job .org { margin: .6mm 0 1.2mm; color: #444; font-size: 8.8pt; }
.p-job ul li { position: relative; padding-left: 3.6mm; margin: .7mm 0; }
.p-job ul li::before { content: ""; position: absolute; left: 0; top: 1.62mm; width: 1.4mm; height: 1.4mm; border-radius: 50%; background: #FF4A1C; }

.p-projects li { margin: .9mm 0; }
.p-projects b { font-weight: 400; font-variation-settings: "wght" 680; }

.p-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4mm 3mm; }
.p-figs li { font-size: 7.8pt; line-height: 1.25; color: #333; }
.p-figs b { display: block; font-size: 17pt; line-height: 1; font-weight: 400; font-variation-settings: "wght" 800, "wdth" 70; color: #111; }
.p-side p { margin-bottom: 1.8mm; font-size: 8.4pt; line-height: 1.4; }
.p-side p b { font-weight: 400; font-variation-settings: "wght" 700; }
.p-langs li { display: flex; justify-content: space-between; gap: 2mm; padding: .7mm 0; border-bottom: .4pt solid #ddd; font-size: 8.4pt; }
.p-langs span { color: #555; }

.p-foot { margin-top: 3mm; padding-top: 2mm; border-top: .5pt solid #bbb; font-size: 7pt; color: #666; }
