/* ModernCV Banking Style - Print Stylesheet (TeX Gyre Pagella / Palatino) */

@page {
	size: A4;
	margin: 1.15cm 1.5cm;
}

* {
	box-sizing: border-box;
}

html, body, div, span, h1, h2, h3, h4, p, a, code, em, strong, ul, li {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

body {
	font-family: "Palatino", "Palatino Linotype", "TeX Gyre Pagella", "URW Palladio L", "Book Antiqua", Georgia, serif;
	font-size: 9.3pt;
	line-height: 1.28;
	color: #000000;
	background: #ffffff;
	margin: 0;
	max-width: 100%;
}

.site-header, .site-footer, .no-print {
	display: none !important;
}

/* Header: Name on left, Contact info on right to preserve space */
#cv-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 5pt;
	padding-bottom: 2pt;
}

#cv-title {
	text-align: left;
}

#cv-title h1, h1 {
	font-size: 21pt;
	font-weight: bold;
	color: #000000;
	margin: 0;
	line-height: 1.1;
	text-align: left;
}

#cv-title .subtitle {
	font-size: 9.5pt;
	font-style: italic;
	color: #333333;
	margin-top: 2pt;
}

#webaddress {
	text-align: right;
	font-family: "Palatino", "Palatino Linotype", "TeX Gyre Pagella", Georgia, serif;
	font-size: 8.5pt;
	line-height: 1.35;
	color: #333333;
	margin: 0;
}

#webaddress a {
	color: #004b99;
	text-decoration: none;
}

#webaddress a:hover {
	text-decoration: underline;
}

/* Section Headings */
h2 {
	font-size: 10pt;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #000000;
	border-bottom: 1pt solid #000000;
	padding-bottom: 1.5pt;
	margin-top: 7pt;
	margin-bottom: 3pt;
	page-break-after: avoid;
	break-after: avoid;
}

h3 {
	font-size: 9.2pt;
	font-weight: bold;
	margin-top: 4pt;
	margin-bottom: 2pt;
	page-break-after: avoid;
	break-after: avoid;
}

/* Entries and Paragraphs */
p {
	margin-top: 2pt;
	margin-bottom: 1.5pt;
	line-height: 1.28;
	width: 100%;
}

p:has(+ ul) {
	page-break-after: avoid;
	break-after: avoid;
}

/* Dates */
code {
	background: none;
	font-family: "Palatino", "Palatino Linotype", "TeX Gyre Pagella", Georgia, serif;
	font-size: 8.8pt;
	font-weight: normal;
	color: #222222;
}

p code, li code {
	float: right;
	margin-left: 1em;
}

/* Text styles */
strong {
	font-weight: bold;
}

em {
	font-style: italic;
}

/* Lists */
ul {
	width: 100%;
	margin-top: 1pt;
	margin-bottom: 3.5pt;
	padding-left: 1.2em;
	list-style-type: disc;
}

li {
	font-size: 8.8pt;
	line-height: 1.28;
	margin-bottom: 1.2pt;
	page-break-inside: avoid;
	break-inside: avoid;
}

li::marker {
	color: #000000;
	font-size: 0.8em;
}

/* Links */
a {
	color: #004b99;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a::after {
	display: none;
}

/* 3-Column Skills Grid */
.skills-grid {
	display: flex;
	justify-content: space-between;
	gap: 14pt;
	margin-top: 3.5pt;
	margin-bottom: 5pt;
	width: 100%;
}

.skills-col {
	flex: 1;
	min-width: 0;
}

.skills-title {
	font-weight: bold;
	font-size: 9pt;
	color: #000000;
	margin-bottom: 2pt;
	padding-bottom: 1.5pt;
	border-bottom: 0.8pt solid #444444;
}

.skills-col ul {
	margin-top: 2.5pt;
	margin-bottom: 0;
	padding-left: 1.1em;
	list-style-type: disc;
}

.skills-col li {
	font-size: 8.3pt;
	line-height: 1.3;
	margin-bottom: 1.5pt;
	white-space: normal;
}

/* Explicit clean break: Page 1 holds Education, Experience, Skills, Scientific Work. Page 2 holds Projects & Languages. */
#projects, #coursework-projects {
	page-break-before: always;
	break-before: page;
}
