body {
	margin: 0;
	padding: 0;
	background-color: white;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: #333;
}

a {
	color: #0645ad;
}

a:visited {
	color: #0b0080;
}

/* Layout */
.container {
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

@media (min-width: 992px) {
	.container {
		width: 970px;
	}
}

.band {
	background-color: #eee;
	padding-top: 1px;
	padding-bottom: 30px;
	margin-top: 40px;
}

#lang {
	text-align: right;
	font-size: 14px;
	padding-top: 12px;
	margin-bottom: -8px;
}

/* Header */
#dhead {
	margin-top: 20px;
}

#dhead .row {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
}

#dpic {
	grid-column: span 5;
	text-align: right;
}

#dpic img {
	width: 240px;
	height: 240px;
	border-radius: 120px;
	object-fit: cover;
}

#ddesc {
	grid-column: span 7;
	padding-top: 30px;
	padding-left: 25px;
}

@media (max-width: 991px) {
	#dpic {
		grid-column: span 12;
		text-align: center;
	}

	#ddesc {
		grid-column: span 12;
		padding-top: 20px;
		padding-left: 0;
		text-align: center;
	}
}

h1 {
	font-size: 34px;
	font-weight: normal;
	padding: 0;
	margin: 0;
}

h2 {
	font-weight: normal;
	font-style: italic;
	color: #999;
	font-size: 18px;
	padding: 0;
	margin: 5px 0 12px 0;
}

@media (min-width: 992px) {
	h2 {
		max-width: 430px;
	}
}

#dico {
	font-size: 15px;
	line-height: 1.9;
}

.sep {
	color: #ccc;
	margin: 0 5px;
}

#demail {
	margin-top: 8px;
	color: #555;
	font-size: 15px;
}

hr {
	height: 1px;
	background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
	padding: 0;
	margin: 20px 0 20px 0;
	border: 0;
}

/* Section titles */
.ctitle {
	font-size: 34px;
	margin-bottom: 20px;
	margin-top: 40px;
}

/* History timeline */
.entry {
	display: grid;
	grid-template-columns: 150px 20px 1fr;
}

.timespan {
	font-size: 14px;
	text-align: right;
	padding-right: 12px;
	color: #bbb;
	padding-top: 1px;
}

.ico {
	border-left: 2px solid #cfcfcf;
	position: relative;
}

.entry-dot {
	position: absolute;
	top: 4px;
	left: -8px;
	width: 10px;
	height: 10px;
	border-radius: 7px;
	background-color: #cfcfcf;
	border: 2px solid white;
}

.desc {
	font-size: 17px;
	padding-left: 20px;
	padding-bottom: 24px;
}

.role {
	color: #555;
	font-size: 14px;
	margin-top: 6px;
}

@media (max-width: 767px) {
	.entry {
		grid-template-columns: 20px 1fr;
	}

	.ico {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.timespan {
		grid-column: 2;
		grid-row: 1;
		text-align: left;
		padding: 0 0 4px 20px;
	}

	.desc {
		grid-column: 2;
		grid-row: 2;
		font-size: 16px;
	}
}

/* Projects */
.project {
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eee;
}

.pname, .pdesc .pname {
	font-weight: bold;
}

.pyear {
	color: #999;
	font-size: 14px;
}

.pend {
	clear: both;
}

/* Publications */
.pub {
	font-size: 14px;
	border-left: 4px solid #aaa;
	padding: 2px 0 2px 10px;
	margin-bottom: 12px;
}

.pub-title {
	display: inline;
	color: #333;
}

.pub-venue {
	display: inline;
	color: #090;
}

.pub-authors {
	display: block;
	color: #333;
}

.pub-note {
	display: block;
	color: #777;
	margin-top: 2px;
}

/* Inline link lists */
.tul {
	text-align: center;
	padding: 0;
	margin: 10px 0 20px 0;
	list-style-type: none;
}

.til {
	display: inline-block;
	padding: 3px 15px;
	margin-bottom: 5px;
}

.tilb {
	border-right: 1px solid #ccc;
}

.nodot {
	list-style-type: none;
	padding-left: 0;
}

.nodot li {
	margin-bottom: 6px;
}

.year {
	color: #999;
	font-size: 14px;
	margin-right: 4px;
}

/* Skills */
.skills {
	margin-bottom: 10px;
}

.skills div {
	margin-bottom: 6px;
}

.skills b {
	color: #333;
}

/* Gallery */
.hovergallery img {
	height: 100px;
	border-radius: 5px;
	margin: 5px 5px 0 0;
	transition: transform 0.2s;
}

.hovergallery img:hover {
	transform: scale(1.05);
}

/* Footer */
.footer {
	color: #999;
	font-size: 14px;
	text-align: center;
	margin-top: 40px;
	margin-bottom: 30px;
}

/* Print: compact one-page CV */
@media print {
	@page {
		margin: 1cm;
		size: A4;
	}

	body {
		font-size: 9pt;
		line-height: 1.3;
		color: black;
	}

	.container {
		width: 100%;
		padding: 0;
	}

	.band {
		background: none;
		margin-top: 0;
		padding-bottom: 0;
	}

	.print-hidden,
	.footer {
		display: none !important;
	}

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

	#dhead {
		margin-top: 0;
	}

	#dpic img {
		width: 90px;
		height: 90px;
		border-radius: 45px;
	}

	#ddesc {
		padding-top: 0;
	}

	h1 {
		font-size: 17pt;
	}

	h2 {
		font-size: 10pt;
		margin: 2px 0 4px 0;
	}

	#dico {
		font-size: 8pt;
		line-height: 1.5;
	}

	.ctitle {
		font-size: 12pt;
		margin: 10px 0 6px 0;
		border-bottom: 1px solid #ddd;
	}

	.desc {
		font-size: 9pt;
		padding-bottom: 8px;
	}

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

	hr {
		margin: 8px 0;
	}
}
