/* ============================================================
   Print stylesheet — mirrors the client-generated jsPDF resume
   so that native browser print (Ctrl+P / right-click → Print)
   renders the same way as the PDF produced by the Print button.
   Loaded with media="print".
   ============================================================ */

@page {
	size: A4;
	/* Margins are baked into the content box below (like jsPDF), so the
	   browser print dialog's "Margins" dropdown (Default/None/Custom)
	   cannot remove them. Keep the page margin at zero and let the
	   content padding create the visual margins. */
	margin: 0;
}

html,
body {
	margin: 0 !important;
	padding: 0 !important;
}

/* The printed resume is one A4-wide column with baked-in margins */
#main {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	padding: 17mm !important;
	box-sizing: border-box !important;
}

#main > nav {
	order: -1 !important;
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
}

#main > aside {
	display: none !important;
}

/* ---- header block: name + title + contact row ---- */
.navbar {
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
	overflow: visible !important;
}

.navbar h2 {
	font-size: 22pt !important;
	font-weight: bold !important;
	color: #000 !important;
	margin: 0 0 2pt 0 !important;
	text-align: left !important;
}

.navbar h3 {
	font-size: 11pt !important;
	font-weight: normal !important;
	color: #000 !important;
	margin: 0 0 8pt 0 !important;
	text-align: left !important;
	text-transform: none;
}

/* match jsPDF's Helvetica metrics */
#main,
#main * {
	font-family: Helvetica, Arial, sans-serif !important;
}

/* contact row: icons + full URLs, justified edge to edge (like jsPDF) */
.navbar a {
	display: inline-flex !important;
	align-items: center !important;
	font-size: 8pt !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	color: #3c3c3c !important; /* jsPDF setTextColor(60) */
	text-decoration: none !important;
	margin: 0 !important;
}

/* justify the whole row: the last line (the only one) gets justified */
.navbar {
	text-align: justify !important;
}
.navbar:after {
	content: '';
	display: inline-block;
	width: 100%;
}

/* keep icons on the contact row */
.navbar .svg {
	margin: 0 4pt 0 0 !important;
}

/* ---- section headers: uppercase + underline rule (like jsPDF) ---- */
article h2 {
	display: block !important;
	font-size: 12pt !important;
	font-weight: bold !important;
	text-transform: uppercase !important;
	letter-spacing: normal !important;
	color: #000 !important;
	margin: 12pt 0 6pt 0 !important;
	padding-bottom: 2pt !important;
	border-bottom: 0.8pt solid #000 !important;
}

article h2:first-child {
	margin-top: 4pt !important;
}

/* ---- body text: 10pt black (jsPDF para), line pitch 13pt = ratio 1.3 ---- */
article p {
	font-size: 10pt !important;
	color: #000 !important;
	line-height: 1.3 !important;
	margin: 0 0 4pt 0 !important;
}

/* ---- work experience entries ----
   padding-top gives a real page-top margin when a job starts a new page
   (padding survives the browser's page-break margin collapsing);
   the negative margin cancels it for same-page spacing, so jobs on one
   page stay tight (~7mm) like the jsPDF output. */
.place-date-row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: baseline !important;
	break-inside: avoid !important;
	break-after: avoid !important;
	padding-top: 17mm !important;
	/* net same-page gap = 17mm - 10mm = 7mm (tight, PDF-like) */
	margin-top: -10mm !important;
}

/* keep each job's bullet list together so page breaks happen only at
   job boundaries (job header then carries the page-top padding) */
ul {
	break-inside: avoid !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* first job right after the summary: no big spacer, no negative pull */
.one-col section .place-date-row:first-of-type {
	padding-top: 6pt !important;
	margin-top: 0 !important;
}

.place {
	font-size: 11pt !important;
	font-weight: bold !important;
	color: #000 !important;
}

.dates {
	font-size: 9pt !important;
	color: #505050 !important; /* jsPDF setTextColor(80) */
	/* jsPDF writes date strings as-is (no uppercasing) */
	text-transform: none !important;
	white-space: nowrap;
}

li.accomplishments {
	font-size: 10pt !important;
	color: #000 !important;
	line-height: 1.3 !important;
	margin: 0 !important;
	padding: 0 0 2pt 14pt !important;
	list-style: none !important;
	position: relative;
	break-inside: avoid !important;
}

/* single big section holds everything; its bottom padding would only
   matter at the very end of the document, where #main's own 17mm
   padding-bottom already provides the margin */
.one-col section {
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

li.accomplishments:before {
	content: '•';
	position: absolute;
	left: 0;
}

/* ---- layout: single column, full width ---- */
#main {
	display: flex !important;
	flex-direction: column !important;
}

#main > nav {
	order: -1 !important;
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
}

#main > aside {
	display: none !important;
}

article {
	width: 100% !important;
	box-shadow: none !important;
	padding: 0 !important;
}

header,
footer,
.toolbar,
toolbar,
.exit-view,
.noPrint {
	display: none !important;
}

/* avoid awkward breaks inside jobs */
.one-col section {
	break-inside: auto;
}