/*
 * CV templates. Used both in the browser and by Dompdf, so stick to
 * tables, floats, absolute/fixed positioning and px units (no flex/grid/vars).
 * Accent colours come from inline styles.
 */

/* ------------------------------------------------------------------ base */

.cv {
	position: relative;
	font-family: 'CV Sans', 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
	font-size: 14.5px;
	line-height: 1.5;
	color: #1e2532;
	background: #fff;
	text-align: left;
}

.cv.cv-font-serif {
	font-family: 'CV Serif', 'Source Serif 4', Georgia, 'Times New Roman', serif;
	font-size: 14px;
}

.cv * {
	box-sizing: border-box;
}

.cv a {
	text-decoration: none;
}

.cv-header {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 30px;
}

.cv-header td {
	padding: 0;
	vertical-align: middle;
}

.cv-avatar-cell {
	width: 92px;
}

.cv-avatar {
	display: block;
	width: 70px;
	height: 70px;
	border-radius: 6px;
	object-fit: cover;
}

.cv .cv-name {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 34px;
	font-weight: bold;
	line-height: 1.15;
	color: inherit;
	letter-spacing: 0;
}

.cv-job-title {
	margin-top: 2px;
	font-size: 15px;
	color: #828ba2;
}

.cv-contact-line {
	margin-top: 8px;
	font-size: 13px;
}

.cv-sep {
	color: #b8c0d0;
}

.cv-clear {
	clear: both;
	height: 0;
	line-height: 0;
}

/* Main column */
.cv-section {
	margin-bottom: 24px;
}

.cv .cv-section-title {
	position: relative;
	margin: 0 0 12px;
	padding: 0;
	font-family: inherit;
	font-size: 21px;
	font-weight: bold;
	line-height: 1.25;
	color: #1e2532;
}

.cv-icon {
	position: absolute;
	left: -23px;
	top: 6px;
	width: 13px;
	height: 13px;
}

.cv-entry {
	margin-bottom: 14px;
}

.cv-entry-title {
	font-weight: bold;
	font-size: 15px;
	line-height: 1.35;
}

.cv-entry-date {
	margin: 2px 0 6px;
	font-size: 12.5px;
	color: #9aa3b6;
}

.cv-rich p {
	margin: 0 0 8px;
}

.cv-rich ul,
.cv-rich ol {
	margin: 0 0 10px;
	padding-left: 30px;
}

.cv-rich li {
	margin: 0 0 1px;
	padding-left: 2px;
}

/* Drawn bullets: Dompdf mis-places native markers next to left floats. */
.cv-rich ul {
	list-style: none;
}

.cv-rich ul {
	padding-left: 18px;
}

.cv-rich ul li {
	padding-left: 14px;
	text-indent: -14px;
}

.cv-rich ul li:before {
	content: '•\00a0\00a0\00a0';
}

.cv-rich > :last-child {
	margin-bottom: 0;
}

/* Sidebar blocks */
.cv-side-section {
	margin-bottom: 22px;
}

.cv .cv-side-title {
	margin: 0 0 4px;
	padding: 0;
	font-family: inherit;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.3;
	color: inherit;
}

.cv-side-line,
.cv-side-text {
	font-size: 14px;
	line-height: 1.5;
	word-wrap: break-word;
}

.cv-side-label {
	margin-top: 8px;
	font-size: 12.5px;
	color: #9aa3b6;
}

.cv-skill {
	margin-bottom: 10px;
}

.cv-skill-name {
	font-size: 14.5px;
	line-height: 1.4;
	margin-bottom: 4px;
}

.cv-skill-level {
	font-size: 12.5px;
	color: #9aa3b6;
}

.cv-bar {
	height: 3px;
	overflow: hidden;
}

.cv-bar-fill {
	height: 3px;
}

.cv-dots-row {
	width: 100%;
	border-collapse: collapse;
}

.cv-dots-row td {
	padding: 0;
	vertical-align: middle;
}

.cv-dots {
	width: 66px;
	text-align: right;
	white-space: nowrap;
}

.cv-dot {
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-left: 3px;
	border-radius: 5px;
}

.cv-skill--dots .cv-skill-name {
	margin-bottom: 0;
}

.cv-inline-list {
	line-height: 1.7;
}

/* Browser-only sheet look */
.cv--html {
	width: 794px;
	min-height: 1123px;
	padding: 42px 52px;
}

/* PDF: page margins are handled by @page */
.cv--pdf {
	width: auto;
	padding: 0;
}

/* --------------------------------------------------------------- classic */

.cv-tpl-classic .cv-side {
	float: right;
	width: 30%;
	margin-left: -30%;
}

.cv-tpl-classic .cv-main {
	margin-right: 36%;
	padding-left: 24px;
}

/* ---------------------------------------------------------------- modern */

.cv-tpl-modern .cv-band {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 280px;
}

.cv-tpl-modern.cv--pdf .cv-band {
	position: fixed;
	top: -40px;
	bottom: -44px;
	left: -50px;
}

.cv-tpl-modern .cv-side {
	position: relative;
	float: left;
	width: 200px;
	margin-right: -200px;
	color: #fff;
}

.cv-tpl-modern .cv-side .cv-side-label {
	color: #fff;
	opacity: 0.75;
}

.cv-tpl-modern .cv-avatar {
	width: 120px;
	height: 120px;
	border-radius: 60px;
	margin: 0 0 26px;
	border: 3px solid #fff;
}

.cv-tpl-modern .cv-main {
	margin-left: 248px;
}

.cv-tpl-modern .cv-header-block {
	margin-bottom: 28px;
}

.cv-tpl-modern .cv-section-title {
	font-size: 17px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* ---------------------------------------------------------- professional */

.cv-tpl-professional .cv-headband {
	margin: -42px -52px 28px;
	padding: 34px 52px 30px;
	color: #fff;
}

.cv-tpl-professional.cv--pdf .cv-headband {
	margin: -40px -50px 28px;
	padding: 34px 50px 30px;
}

.cv-tpl-professional .cv-header {
	margin: 0;
}

.cv-tpl-professional .cv-job-title,
.cv-tpl-professional .cv-contact-line,
.cv-tpl-professional .cv-sep {
	color: #fff;
}

.cv-tpl-professional .cv-avatar {
	width: 84px;
	height: 84px;
	border-radius: 42px;
	border: 3px solid #fff;
}

.cv-tpl-professional .cv-avatar-cell {
	width: 108px;
}

.cv-tpl-professional .cv-side {
	float: left;
	width: 30%;
	margin-right: -30%;
	border-radius: 6px;
}

/* Padding on an inner box: Dompdf ignores box-sizing on floats. */
.cv-tpl-professional .cv-side-inner {
	padding: 18px 16px 4px;
}

.cv-tpl-professional .cv-main {
	margin-left: 35%;
}

.cv-tpl-professional .cv-section-title {
	padding-bottom: 4px;
	border-bottom: 2px solid #1e2532;
	font-size: 17px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* --------------------------------------------------------------- minimal */

.cv-tpl-minimal .cv-center {
	margin-bottom: 30px;
	padding-bottom: 22px;
	border-bottom: 1px solid #e3e7ef;
	text-align: center;
}

.cv-tpl-minimal .cv-avatar {
	margin: 0 auto 14px;
	border-radius: 40px;
	width: 80px;
	height: 80px;
}

.cv-tpl-minimal .cv-section-title {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.cv-tpl-minimal .cv-section {
	margin-bottom: 22px;
}

/* ------------------------------------------------------------- executive */

.cv-tpl-executive .cv-header {
	margin-bottom: 14px;
}

.cv-tpl-executive .cv-header td {
	vertical-align: bottom;
}

.cv-tpl-executive .cv-header-contact {
	width: 40%;
	text-align: right;
	font-size: 13px;
	line-height: 1.5;
}

.cv-tpl-executive .cv-name {
	font-size: 36px;
}

.cv-tpl-executive .cv-rule {
	height: 2px;
	margin-bottom: 26px;
}

.cv-tpl-executive .cv-section-title {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.cv-entry--aside {
	position: relative;
	padding-left: 150px;
}

.cv-entry-aside {
	position: absolute;
	top: 2px;
	left: 0;
	width: 138px;
	font-size: 12.5px;
	line-height: 1.4;
	color: #828ba2;
}

/* ------------------------------------------------------------------ bold */

.cv-tpl-bold .cv-header {
	margin-bottom: 16px;
}

.cv-tpl-bold .cv-avatar {
	width: 82px;
	height: 82px;
	border-radius: 41px;
}

.cv-tpl-bold .cv-avatar-cell {
	width: 104px;
}

.cv-tpl-bold .cv-name {
	font-size: 40px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.cv-tpl-bold .cv-job-title {
	color: #1e2532;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 2px;
}

.cv-tpl-bold .cv-rule {
	height: 5px;
	margin-bottom: 28px;
}

.cv-tpl-bold .cv-side {
	float: left;
	width: 30%;
	margin-right: -30%;
}

.cv-tpl-bold .cv-main {
	margin-left: 36%;
}

.cv-tpl-bold .cv-section-title,
.cv-tpl-bold .cv-side-title {
	padding-bottom: 4px;
	border-bottom: 2px solid #1e2532;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.cv-tpl-bold .cv-section-title {
	font-size: 17px;
}

/* -------------------------------------------------------- PDF line height */
/* Dompdf multiplies line-height by the font's own height (~1.33 for Source
   Sans), so scale it down for the PDF. */

.cv--pdf {
	line-height: 1.1;
}

.cv--pdf .cv-side-line,
.cv--pdf .cv-side-text,
.cv--pdf .cv-skill-name,
.cv--pdf .cv-entry-aside,
.cv--pdf .cv-header-contact {
	line-height: 1.1;
}

.cv--pdf .cv-inline-list {
	line-height: 1.3;
}

.cv--pdf .cv-entry-title,
.cv--pdf .cv-section-title,
.cv--pdf .cv-side-title {
	line-height: 1;
}

.cv--pdf .cv-name {
	line-height: 0.9;
}

.cv--pdf .cv-icon {
	top: 6px;
}
