/* ============================================================================
   CV page styles — screen + print
   ============================================================================ */

/* --- Section base --- */
.cv-hero {
	border-bottom: 3px solid #000;
}
.cv-name {
	font-size: 2.5rem;
	font-weight: 900;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	margin: 0 0 0.3rem 0;
	color: #000;
}
.cv-title {
	font-size: 1.4rem;
	font-weight: 600;
	margin: 0 0 0.15rem 0;
	color: #333;
}
.cv-tagline {
	font-family: 'Playfair Display', serif;
	font-style: italic;
	font-size: 1rem;
	color: #666;
	margin: 0;
}
.cv-contact {
	text-align: right;
	font-size: 0.9rem;
	line-height: 1.6;
}
.cv-contact p {
	margin: 0;
}
.cv-contact a {
	color: #333;
	text-decoration: none;
}
.cv-contact a:hover {
	color: #000;
	text-decoration: underline;
}

/* --- Section layout --- */
.cv-section {
	background-color: #fff;
}
.cv-label h6 {
	font-size: 0.9rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
	margin: 0;
	padding-top: 0.15rem;
}
.cv-section p {
	font-size: 1rem;
	line-height: 1.7;
	color: #333;
	margin: 0;
}

/* --- Horizontal rule --- */
.cv-hr {
	margin: 0;
	border: 0;
	border-top: 1px solid #e8e8e8;
}

/* --- Skills grid --- */
.cv-skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem 1.5rem;
}
.cv-skill-group {
	break-inside: avoid;
}
.cv-skill-group-title {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #888;
	margin-bottom: 0.4rem;
}
.cv-skill-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
}
.cv-pill {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	background-color: #f5f5f5;
	border: 1px solid #e5e5e5;
	border-radius: 999px;
	font-size: 0.85rem;
	color: #444;
	white-space: nowrap;
}

/* --- Experience / Education entries --- */
.cv-entry {
	margin-bottom: 1.8rem;
}
.cv-entry:last-child {
	margin-bottom: 0;
}
.cv-entry-header {
	margin-bottom: 0.5rem;
}
.cv-entry-date {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #aaa;
	margin: 0 0 0.2rem 0;
}
.cv-entry-header h5 {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0;
	color: #000;
}
.cv-entry-subtitle {
	font-size: 0.9rem !important;
	color: #777 !important;
	font-style: italic;
}
.cv-entry-details {
	margin: 0;
	padding-left: 1.2rem;
	list-style: disc;
}
.cv-entry-details li {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #444;
	margin-bottom: 0.15rem;
}
.cv-entry-details li:last-child {
	margin-bottom: 0;
}

/* --- Clients tags --- */
.cv-clients {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.cv-client-tag {
	display: inline-block;
	padding: 0.35rem 0.85rem;
	background-color: #000;
	color: #fff;
	border-radius: 4px;
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* --- Languages --- */
.cv-languages {
	font-size: 1rem;
	color: #333;
}
.cv-lang-spacer {
	color: #ccc;
	padding: 0 0.8rem;
}

/* ============================================================================
   PRINT — A4-optimised PDF export
   ============================================================================ */
@media print {
	/* Remove screen-only elements */
	#preloader,
	.skip-nav,
	.scroll-down,
	header,
	.sticky-header,
	.sticky-footer,
	#cookie-banner,
	.cookie-banner,
	footer,
	.cv-hero { display: none !important; }

	/* Page setup */
	@page {
		size: A4;
		margin: 1.5cm 2cm 1.5cm 2cm;
	}
	body {
		background: white !important;
		color: #000 !important;
		font-size: 10pt !important;
		line-height: 1.45 !important;
	}
	#main {
		background: white !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	/* Print header */
	.cv-print-header {
		display: block !important;
		border-bottom: 2px solid #000;
		padding-bottom: 0.5cm;
		margin-bottom: 0.5cm;
	}
	.cv-print-header h1 {
		font-size: 18pt;
		font-weight: 900;
		text-transform: uppercase;
		margin: 0 0 2pt 0;
	}
	.cv-print-header .cv-print-sub {
		font-size: 10pt;
		color: #555;
		margin: 0;
	}
	.cv-print-header .cv-print-contact {
		font-size: 8.5pt;
		color: #777;
		margin: 4pt 0 0 0;
	}

	/* Section spacing */
	.cv-section {
		padding: 8pt 0 !important;
		break-inside: avoid;
	}
	.cv-label h6 {
		font-size: 7.5pt;
		color: #999;
	}
	.cv-name,
	.cv-title,
	.cv-tagline,
	.cv-contact { display: none; }

	/* Reduce margins */
	.cv-section p,
	.cv-entry-details li {
		font-size: 9pt !important;
		line-height: 1.4 !important;
		color: #000 !important;
	}
	.cv-hr {
		border-top-color: #ddd !important;
		margin: 4pt 0 !important;
	}

	/* Skills compact for print */
	.cv-skills-grid {
		grid-template-columns: repeat(3, 1fr) !important;
		gap: 0.5rem !important;
	}
	.cv-pill {
		background: #f0f0f0 !important;
		border: 1px solid #ddd !important;
		font-size: 7.5pt !important;
		padding: 1pt 6pt !important;
		color: #000 !important;
	}
	.cv-client-tag {
		background: #333 !important;
		font-size: 8pt !important;
		padding: 2pt 8pt !important;
	}
	.cv-entry-header h5 {
		font-size: 10pt !important;
	}
	.cv-entry-subtitle {
		font-size: 8.5pt !important;
	}
	.cv-entry-date {
		font-size: 7pt !important;
		color: #aaa !important;
	}
}
