:root {
	--primary: #0a2e56;
	--primary-dark: #061d38;
	--secondary: #29b6ff;
	--secondary-soft: #dff4ff;
	--accent: #0f4f8a;
	--accent-warm: #f2a23a;
	--text: #263240;
	--muted: #5d6b7b;
	--sidebar-text: #ffffff;
	--bg-light: #f5f9fc;
	--card-border: rgba(10, 46, 86, 0.08);
	--card-shadow: 0 18px 40px rgba(10, 30, 60, 0.12);
	--sidebar-width: clamp(220px, 26vw, 280px);
	--page-width: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
	margin: 0;
	padding: 64px 24px 32px;
	background:
		radial-gradient(circle at top left, rgba(41, 182, 255, 0.22), transparent 30%),
		radial-gradient(circle at bottom right, rgba(242, 162, 58, 0.16), transparent 26%),
		linear-gradient(135deg, #eef5fb 0%, #dce8f1 56%, #f5f8fb 100%);
	color: var(--text);
	line-height: 1.45;
}

/* Standard Layout Enforcements */
.main {
	box-sizing: border-box !important;
}


.container {
	width: var(--page-width);
	min-height: auto;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.8);
	box-shadow: 0 28px 65px rgba(10, 30, 60, 0.18);
	display: grid !important;
	grid-template-columns: var(--sidebar-width) 1fr !important;
	grid-template-areas: "sidebar main";
	align-items: stretch !important;
}

.sidebar {
	grid-area: sidebar;
	background:
		linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0)) top / 100% 140px no-repeat,
		linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
	color: var(--sidebar-text);
	padding: 38px 22px;
	width: var(--sidebar-width) !important;
	box-sizing: border-box !important;
}

.photo-container {
	width: 132px;
	height: 132px;
	border-radius: 50%;
	border: 4px solid rgba(41, 182, 255, 0.85);
	margin: 0 auto 26px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.12);
	box-shadow: 0 12px 24px rgba(0,0,0,0.28);
}

.photo-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.sidebar h2 {
	font-size: 0.78rem;
	color: var(--secondary);
	text-transform: uppercase;
	border-bottom: 1px solid rgba(41,182,255,0.35);
	padding-bottom: 6px;
	margin: 26px 0 10px;
	letter-spacing: 1.2px;
}

.contact-line,
.edu-item,
.lang-container { font-size: 0.78rem; }

.contact-line {
	margin-bottom: 10px;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	color: rgba(255,255,255,0.92);
}

.contact-line a {
	color: #ffffff;
	text-decoration: none;
}

.contact-line a:hover { color: var(--secondary); text-decoration: underline; }

.cert-item {
	background: rgba(255,255,255,0.08);
	padding: 8px 9px;
	border-radius: 8px;
	margin-bottom: 8px;
	border: 1px solid rgba(41,182,255,0.16);
	border-left: 3px solid var(--secondary);
	font-size: 0.74rem;
	backdrop-filter: blur(2px);
}

.cert-item strong { display: block; color: #fff; }
.cert-link { color: var(--secondary); text-decoration: none; font-weight: 700; }
.cert-link:hover { text-decoration: underline; }

/* --- REVISED SCREEN VIEWS (PAGES 2 & 3 FIX) --- */
.page2-print-block, 
.page3-print-block { 
	display: block; 
	width: 100%;
}

.page2-left-pane, 
.page3-left-pane { 
	display: none !important; 
}

.page2-right-pane, 
.page3-right-pane { 
	width: 100% !important;
	padding: 0 !important;
}
/* --------------------------------------------- */

.sidebar-stacks-block { margin-top: 2px; }
.key-tech-block { display: none; }
.stack-category { margin-top: 11px; }
.stack-category h3 {
	font-size: 0.72rem;
	color: rgba(255,255,255,0.96);
	text-transform: uppercase;
	margin: 0 0 5px 0;
	opacity: 0.95;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.tag-container { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
	background: rgba(15, 79, 138, 0.92);
	padding: 4px 7px;
	border-radius: 999px;
	font-size: 0.68rem;
	border: 1px solid rgba(41,182,255,0.45);
	color: #fff;
}

.main {
	grid-area: main;
	min-width: 0;
	padding: clamp(30px, 4vw, 48px);
	background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.header-box {
	margin-bottom: 24px;
	padding: clamp(22px, 3.2vw, 34px);
	background:
		linear-gradient(135deg, rgba(10,46,86,0.06), rgba(41,182,255,0.10)),
		linear-gradient(90deg, rgba(242,162,58,0.10), rgba(242,162,58,0));
	border: 1px solid rgba(41,182,255,0.18);
	border-radius: 16px;
	box-shadow: 0 16px 30px rgba(10, 46, 86, 0.08);
}

.header-box h1 {
	margin: 0;
	font-size: clamp(2.05rem, 4.2vw, 3.15rem);
	color: var(--primary);
	text-transform: uppercase;
	letter-spacing: 0;
	line-height: 1;
	overflow-wrap: anywhere;
}

.header-box h3 {
	margin: 10px 0 12px;
	font-size: clamp(1rem, 1.65vw, 1.28rem);
	color: var(--accent);
	font-weight: 700;
}

.header-box .exp-content {
	color: var(--text) !important;
	font-size: clamp(0.9rem, 1.1vw, 1rem) !important;
	font-weight: 500 !important;
	line-height: 1.55;
	text-align: left;
}

.section-title {
	font-size: clamp(0.92rem, 1.25vw, 1.05rem);
	font-weight: 800;
	color: var(--primary);
	text-transform: uppercase;
	display: flex;
	align-items: center;
	margin: 22px 0 12px;
	letter-spacing: 0.8px;
}

.section-title::after {
	content: "";
	flex: 1;
	height: 2px;
	margin-left: 12px;
	background: linear-gradient(90deg, rgba(41,182,255,0.7), rgba(41,182,255,0));
}

.exp-item {
	margin-bottom: 16px;
	padding: 18px 20px 18px 22px;
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid var(--card-border);
	border-left: 4px solid rgba(41,182,255,0.82);
	box-shadow: 0 10px 24px rgba(15, 54, 92, 0.07);
	page-break-inside: avoid;
	break-inside: avoid;
}

.exp-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 14px;
}

.role { font-size: 1rem; font-weight: 800; color: var(--primary); }

.date {
	font-size: 0.78rem;
	color: var(--muted);
	font-weight: 700;
	background: rgba(10,46,86,0.06);
	padding: 3px 8px;
	border-radius: 999px;
	white-space: nowrap;
}

.company {
	font-size: 0.92rem;
	color: var(--accent);
	font-weight: 700;
	display: block;
	margin: 3px 0 6px;
}

.company a { color: inherit; text-decoration: none; }
.company a:hover { text-decoration: underline; }

.exp-content {
	font-size: 0.9rem;
	color: #3f4d5c;
	text-align: justify;
}

.exp-content ul { padding-left: 16px; margin: 6px 0 0; }
.exp-content li { margin-bottom: 4px; }

.edu-item { margin-bottom: 10px; color: rgba(255,255,255,0.94); }
.edu-item strong { color: var(--secondary); display: block; margin-bottom: 2px; }

.lang-container { line-height: 1.45; display: flex; flex-direction: column; gap: 8px; }
.lang-row { display: flex; align-items: flex-start; gap: 8px; }
.svg-flag { width: 18px; height: 13px; display: inline-block; border-radius: 2px; box-shadow: 0 0 1px rgba(0,0,0,0.3); margin-top: 3px; flex-shrink: 0; }

.lang-switcher {
	position: fixed;
	top: 16px;
	right: max(18px, calc((100vw - var(--page-width)) / 2));
	display: flex;
	gap: 8px;
	z-index: 1000;
}

.lang-switcher a {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 700;
	border: 1.5px solid rgba(10,46,86,0.18);
	background: #ffffff;
	color: var(--muted);
	box-shadow: 0 2px 8px rgba(10,30,60,0.10);
	transition: all 0.18s;
}

.lang-switcher a:hover {
	border-color: var(--secondary);
	color: var(--primary);
	box-shadow: 0 4px 14px rgba(41,182,255,0.18);
}

.lang-switcher a.active {
	background: var(--primary);
	color: #fff;
	border-color: var(--primary);
}

.lang-switcher svg { border-radius: 2px; box-shadow: 0 0 1px rgba(0,0,0,0.25); }

.btn-pdf {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 700;
	border: 1.5px solid rgba(41,182,255,0.5);
	background: var(--primary);
	color: #fff;
	box-shadow: 0 2px 8px rgba(10,30,60,0.15);
	transition: all 0.18s;
	cursor: pointer;
}

.btn-pdf:hover {
	background: var(--accent);
	border-color: var(--secondary);
	box-shadow: 0 4px 14px rgba(41,182,255,0.25);
}

@page {
	size: A4;
	margin: 0mm;
}

@page:first {
	margin: 0mm;
}

@media print {
	.lang-switcher { display: none !important; }

	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

	html, body {
		width: 210mm;
		margin: 0;
		padding: 0;
		background: #ffffff;
	}

	body {
		background: linear-gradient(to right, var(--primary) 0%, var(--primary) 25%, #ffffff 25%, #ffffff 100%);
	}

	:root {
		--print-sidebar-width: 52.5mm;
		--print-main-width: 157.5mm;
	}

	.container {
		display: block;
		width: 210mm;
		min-height: auto;
		margin: 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
		overflow: visible;
	}

	.sidebar {
		position: absolute;
		top: 0;
		left: 0;
		width: var(--print-sidebar-width);
		height: 297mm;
		padding: 35px 16px;
		background: transparent;
	}

	.sidebar .sidebar-stacks-block { display: none !important; }

	.main {
		margin-left: var(--print-sidebar-width);
		width: var(--print-main-width);
		padding: 32px 28px 24px;
		background: transparent;
	}

	.header-box,
	.exp-item {
		background: transparent;
		box-shadow: none;
	}

	.header-box {
		border: 0;
		border-radius: 0;
		padding: 0 0 14px 0;
		margin-top: 32px;
		margin-bottom: 18px;
		border-bottom: 3px solid var(--primary);
	}

	.exp-item {
		border: 0;
		border-left: 3px solid rgba(41,182,255,0.8);
		border-radius: 0;
		padding: 0 0 0 12px;
		margin-bottom: 15px;
	}

	.page2-print-block {
		display: flex !important;
		width: 210mm;
		margin-left: calc(-1 * (var(--print-sidebar-width) + 28px));
		page-break-before: always;
		break-before: page;
		align-items: start;
	}

	.page2-left-pane {
		display: block !important;
		width: var(--print-sidebar-width) !important;
		flex: 0 0 var(--print-sidebar-width) !important;
		padding: 0 16px 0 !important;
		min-width: 0;
	}

	.page2-left-pane h2 {
		font-size: 9.8pt;
		color: var(--secondary);
		text-transform: uppercase;
		border-bottom: 1px solid rgba(41,182,255,0.35);
		padding-bottom: 6px;
		margin-top: 0;
		letter-spacing: 1.2px;
	}

	.page2-right-pane {
		width: var(--print-main-width) !important;
		flex: 0 0 var(--print-main-width) !important;
		padding: 32px 28px 0 !important;
		min-width: 0;
	}

	.section-title {
		page-break-after: avoid;
		break-after: avoid;
	}

	.page2-print-block + .exp-item {
		margin-top: 0;
	}

	.page3-print-block {
		display: flex !important;
		width: 210mm;
		margin-left: calc(-1 * (var(--print-sidebar-width) + 28px));
		align-items: start;
	}

	.page3-left-pane {
		display: block !important;
		width: var(--print-sidebar-width) !important;
		flex: 0 0 var(--print-sidebar-width) !important;
		padding: 0 16px 0 !important;
		min-width: 0;
	}

	.page3-right-pane {
		width: var(--print-main-width) !important;
		flex: 0 0 var(--print-main-width) !important;
		padding: 0 28px 0 !important;
		min-width: 0;
	}
}

/* Button Styling */
.btn-toggle-cv {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	background-color: #00a8ff;
	color: #fff !important;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: bold;
	text-decoration: none;
	transition: background-color 0.2s;
}
.btn-toggle-cv:hover {
	background-color: #0086cc;
}

/* Print elements hidden by default in browser viewing */
.print-inline-link {
	display: none;
}

/* Header flex layout for positioning link on the right side */
.header-title-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 18px;
	width: 100%;
}

/* Controlled visibility states for the print variants */
body.reduced-view .print-extense-only {
	display: none !important;
}
body:not(.reduced-view) .print-reduced-only {
	display: none !important;
}

@media screen and (min-width: 1180px) {
	.exp-item {
		transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
	}

	.exp-item:hover {
		transform: translateY(-2px);
		border-left-color: var(--accent-warm);
		box-shadow: 0 16px 34px rgba(15, 54, 92, 0.11);
	}
}

@media screen and (max-width: 980px) {
	:root {
		--page-width: min(100%, calc(100vw - 28px));
		--sidebar-width: 230px;
	}

	body {
		padding: 74px 14px 24px;
	}

	.container {
		border-radius: 18px;
		grid-template-columns: minmax(210px, 30%) minmax(0, 1fr) !important;
	}

	.sidebar {
		padding: 30px 18px;
	}

	.main {
		padding: 30px 24px;
	}

	.header-title-row {
		flex-direction: column;
		gap: 8px;
	}
}

@media screen and (max-width: 760px) {
	:root {
		--page-width: 100%;
	}

	body {
		padding: 58px 0 0;
		background: #eef5fb;
	}

	.container {
		width: 100%;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		display: grid !important;
		grid-template-columns: 1fr !important;
		grid-template-areas:
			"main"
			"sidebar";
	}

	.lang-switcher {
		position: fixed;
		top: 8px;
		left: 10px;
		right: 10px;
		justify-content: flex-end;
		flex-wrap: nowrap;
		gap: 6px;
		width: auto;
		padding: 6px;
		background: rgba(255, 255, 255, 0.94);
		border: 1px solid rgba(10,46,86,0.08);
		border-radius: 999px;
		box-shadow: 0 10px 24px rgba(10,30,60,0.14);
		backdrop-filter: blur(14px);
	}

	.lang-switcher a,
	.btn-pdf,
	.btn-toggle-cv {
		min-height: 34px;
		padding: 6px 9px;
		font-size: 0.75rem;
		justify-content: center;
		flex: 1 1 0;
		min-width: 0;
	}

	.main {
		padding: 18px 14px 24px;
	}

	.header-box {
		padding: 20px 16px;
		margin-bottom: 18px;
		border-radius: 12px;
		box-shadow: 0 10px 24px rgba(10, 46, 86, 0.08);
	}

	.header-box h1 {
		font-size: clamp(2rem, 11vw, 2.8rem);
		line-height: 0.98;
	}

	.header-box h3 {
		font-size: 1rem;
		line-height: 1.28;
	}

	.header-box .exp-content,
	.exp-content {
		font-size: 0.92rem !important;
		text-align: left;
	}

	.section-title {
		align-items: flex-start;
		margin: 20px 0 10px;
		line-height: 1.2;
	}

	.section-title::after {
		margin-top: 0.55em;
	}

	.exp-item {
		padding: 16px 14px;
		margin-bottom: 12px;
		border-radius: 10px;
		border-left-width: 3px;
		box-shadow: 0 8px 18px rgba(15, 54, 92, 0.06);
	}

	.exp-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.role {
		font-size: 1rem;
		line-height: 1.22;
	}

	.company {
		font-size: 0.9rem;
		line-height: 1.3;
		margin-top: 7px;
	}

	.date {
		font-size: 0.75rem;
	}

	.exp-content ul {
		padding-left: 18px;
	}

	.exp-content li {
		margin-bottom: 7px;
	}

	.sidebar {
		width: 100% !important;
		padding: 24px 16px 30px;
		background:
			linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0) 38%),
			linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
	}

	.sidebar h2 {
		font-size: 0.82rem;
		margin-top: 24px;
	}

	.sidebar h2:first-child {
		margin-top: 0;
	}

	.contact-line,
	.edu-item,
	.lang-container {
		font-size: 0.86rem;
	}

	.cert-item {
		font-size: 0.82rem;
	}

	.tag-container {
		gap: 7px;
	}

	.tag {
		font-size: 0.76rem;
		padding: 5px 8px;
		white-space: normal;
	}

	body.reduced-view .main {
		padding-top: 18px !important;
	}
}

@media screen and (max-width: 420px) {
	.lang-switcher {
		left: 6px;
		right: 6px;
		gap: 4px;
		padding: 5px;
	}

	.lang-switcher a,
	.btn-pdf,
	.btn-toggle-cv {
		padding-inline: 7px;
		font-size: 0.7rem;
	}

	.header-box h1 {
		font-size: clamp(1.86rem, 12vw, 2.3rem);
	}

	.main {
		padding-inline: 10px;
	}

	.header-box,
	.exp-item {
		padding-inline: 12px;
	}
}

/* ==========================================
   PRINT ENGINE CONFIGURATIONS
   ========================================== */
@media print {
	:root {
		--sidebar-width: 52.5mm;
	}

	.page-break-block {
		page-break-before: always;
		break-before: page;
	}
	.container {
		display: grid !important;
		grid-template-columns: var(--sidebar-width) 1fr !important;
		align-items: stretch !important;
	}
	.sidebar {
		width: var(--sidebar-width) !important;
	}
	
	/* Expose inline layout links next to the main name heading */
	.print-inline-link {
		display: inline-flex !important;
		align-items: center !important;
		gap: 4px !important;
		font-size: 8.5pt !important;
		font-weight: bold !important;
		color: #00a8ff !important;
		text-decoration: underline !important;
		white-space: nowrap !important;
	}
	.print-inline-link svg {
		display: inline-block !important;
	}
	.print-inline-link a {
		color: #00a8ff !important;
		text-decoration: underline !important;
	}
}

/* ==========================================
   REDUCED VIEW RULES (FOR 1-PAGE MODE)
   ========================================== */

/* 1. Hide Technical Stacks sidebar blocks entirely */
body.reduced-view .sidebar-stacks-block {
	display: none !important;
}

body.reduced-view .key-tech-block {
	display: block !important;
}

/* 2. Keep the executive summary visible in the reduced view */
body.reduced-view .header-box .exp-content {
	display: block !important;
}

/* 3. Hide all bullet lists inside Professional Experience */
body.reduced-view .exp-content ul {
	display: none !important;
}

/* 4. Neutralize multi-page hard breaks so content flows into page 1 */
body.reduced-view .page-break-block {
	page-break-before: avoid !important;
	break-before: avoid !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* 5. Maintain identical layout geometry and stretch blue background to bottom edge */
body.reduced-view .container {
	display: grid !important;
	grid-template-columns: var(--sidebar-width) 1fr !important; /* Locks width identically */
	align-items: stretch !important;
	min-height: calc(100vh - 10px) !important; /* Adjusted to account for the top padding offset */
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

body.reduced-view .sidebar {
	width: var(--sidebar-width) !important;                      /* Strict width uniformity */
	height: auto !important;
	min-height: 100% !important;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

body.reduced-view .main {
	height: auto !important;
	min-height: 100% !important;
	padding-top: 10px !important;    /* Uses minor padding-top to keep content completely safe inside the page viewport */
	padding-bottom: 0 !important;   /* Eliminated whitespace buffers at the foot of the document column */
	margin-bottom: 0 !important;
}

/* 6. Header positioning adjustments */
body.reduced-view .header-box {
	margin-top: 0 !important;        /* Neutralized negative offset to prevent cross-boundary clipping */
	margin-bottom: 0px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	width: 100% !important;          
	clear: both !important;
}

body.reduced-view .header-box h1 {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

body.reduced-view .header-box h3 {
	margin-top: 1px !important;       
	margin-bottom: 0px !important;
}

body.reduced-view .section-title {
	margin-top: 14px !important;     /* Clean margin separation between the title line and the start of professional experience */
	margin-bottom: 3px !important;    
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	clear: both !important;           
}

body.reduced-view .exp-item {
	margin-top: 0 !important;
	margin-bottom: 8px !important;   /* Slightly reduced margin from 12px to 8px to guarantee single page lock */
}

body.reduced-view .exp-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}


@media screen and (max-width: 760px) {
	body.reduced-view .container {
		display: grid !important;
		grid-template-columns: 1fr !important;
		grid-template-areas:
			"main"
			"sidebar";
		min-height: auto !important;
	}

	body.reduced-view .sidebar {
		width: 100% !important;
		min-height: auto !important;
		padding-bottom: 30px !important;
	}

	body.reduced-view .main {
		padding: 18px 14px 24px !important;
		min-height: auto !important;
	}

	body.reduced-view .header-box {
		padding: 20px 16px !important;
		margin-bottom: 18px !important;
		border-radius: 12px !important;
	}

	body.reduced-view .header-box h3 {
		margin-top: 10px !important;
		margin-bottom: 0 !important;
	}

	body.reduced-view .section-title {
		margin: 20px 0 10px !important;
	}

	body.reduced-view .exp-item {
		margin-bottom: 12px !important;
	}
}

@media screen and (min-width: 761px) {
	:root {
		--screen-top-offset: 26px;
	}

	.sidebar,
	body.reduced-view .sidebar {
		padding-top: 24px !important;
	}

	.main,
	body.reduced-view .main {
		padding-top: var(--screen-top-offset) !important;
	}

	.header-box,
	body.reduced-view .header-box {
		padding-top: 14px !important;
		margin-top: 0 !important;
		margin-bottom: 18px !important;
	}

	body.reduced-view .header-box {
		padding-bottom: 12px !important;
	}

	body.reduced-view .header-box h3 {
		margin-top: 6px !important;
		margin-bottom: 0 !important;
	}
}

@media print {
	@page {
		size: A4;
		margin: 0mm;
	}

	@page:first {
		margin: 0mm;
	}

	:root {
		--sidebar-width: 58mm;
		--print-sidebar-width: 58mm;
		--print-main-width: 152mm;
		--print-top-offset: 24px;
	}

	body {
		background: #ffffff !important;
	}

	body::before {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		width: var(--print-sidebar-width);
		height: 297mm;
		background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
		z-index: 0;
	}

	.container,
	body.reduced-view .container {
		position: relative !important;
		z-index: 1 !important;
		display: block !important;
		width: 210mm !important;
		min-height: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		background: transparent !important;
		overflow: visible !important;
	}

	.sidebar,
	body.reduced-view .sidebar {
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		width: var(--print-sidebar-width) !important;
		height: 297mm !important;
		min-height: 297mm !important;
		padding: var(--print-top-offset) 13px 0 !important;
		margin: 0 !important;
		background: transparent !important;
		overflow: visible !important;
	}

	.sidebar h2 {
		font-size: 8.9pt !important;
		margin-top: 18px !important;
		margin-bottom: 7px !important;
		padding-bottom: 5px !important;
	}

	.contact-line,
	.edu-item,
	.lang-container {
		font-size: 7.2pt !important;
		line-height: 1.34 !important;
	}

	.cert-item {
		font-size: 6.9pt !important;
		padding: 5px 6px !important;
		margin-bottom: 5px !important;
		border-radius: 0 !important;
	}

	.stack-category {
		margin-top: 8px !important;
	}

	.stack-category h3 {
		font-size: 6.6pt !important;
		margin-bottom: 4px !important;
	}

	.tag-container {
		gap: 4px !important;
	}

	.tag {
		font-size: 5.9pt !important;
		padding: 2px 5px !important;
	}

	.sidebar h2:first-child,
	body.reduced-view .sidebar h2:first-child {
		margin-top: 0 !important;
	}

	body:not(.reduced-view) .sidebar .sidebar-stacks-block {
		display: block !important;
		position: absolute !important;
		top: calc(297mm + var(--print-top-offset)) !important;
		left: 0 !important;
		width: var(--print-sidebar-width) !important;
		padding: 0 13px !important;
	}

	body.reduced-view .sidebar .sidebar-stacks-block {
		display: none !important;
	}

	body:not(.reduced-view) .page-break-block,
	body:not(.reduced-view) .page-three-block {
		page-break-before: auto !important;
		break-before: auto !important;
	}

	.main,
	body.reduced-view .main {
		margin-left: var(--print-sidebar-width) !important;
		width: var(--print-main-width) !important;
		min-height: auto !important;
		height: auto !important;
		padding: var(--print-top-offset) 22px 20px !important;
		margin-bottom: 0 !important;
		background: transparent !important;
	}

	.header-box,
	body.reduced-view .header-box {
		margin-top: 0 !important;
		margin-bottom: 16px !important;
		padding: 0 0 12px 0 !important;
		border: 0 !important;
		border-bottom: 3px solid var(--primary) !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		background: transparent !important;
	}

	.header-box h1 {
		font-size: 23pt !important;
	}

	.header-box h3 {
		font-size: 11.5pt !important;
		margin-top: 4px !important;
		margin-bottom: 8px !important;
	}

	.header-box .exp-content {
		font-size: 8.4pt !important;
		line-height: 1.42 !important;
	}

	.section-title {
		font-size: 10.5pt !important;
		margin-top: 17px !important;
		margin-bottom: 9px !important;
	}

	.exp-item {
		margin-top: 6px !important;
		margin-bottom: 7px !important;
		padding-left: 10px !important;
		page-break-inside: avoid !important;
		break-inside: avoid !important;
	}

	.role {
		font-size: 9.3pt !important;
	}

	.company {
		font-size: 8.5pt !important;
		margin: 2px 0 4px !important;
	}

	.date {
		font-size: 7.2pt !important;
		padding: 2px 6px !important;
	}

	.exp-content {
		font-size: 7.9pt !important;
		line-height: 1.36 !important;
	}

	.exp-content ul {
		margin-top: 4px !important;
		padding-left: 14px !important;
	}

	.exp-content li {
		margin-bottom: 2px !important;
	}

	body.reduced-view .header-box h3 {
		margin-top: 4px !important;
		margin-bottom: 0 !important;
	}

	body.reduced-view .section-title {
		margin-top: 14px !important;
		margin-bottom: 6px !important;
	}

	.page2-print-block,
	.page3-print-block {
		width: 210mm !important;
		margin-left: calc(-1 * (var(--print-sidebar-width) + 22px)) !important;
	}

	.page2-left-pane,
	.page3-left-pane {
		width: var(--print-sidebar-width) !important;
		flex: 0 0 var(--print-sidebar-width) !important;
		padding: 0 13px !important;
	}

	.page2-right-pane,
	.page3-right-pane {
		width: var(--print-main-width) !important;
		flex: 0 0 var(--print-main-width) !important;
		padding-left: 22px !important;
		padding-right: 20px !important;
	}
}
