/* Umairr — auto-generated résumé (screen + A4 print). */
:root {
	--ink: #0b1020;
	--muted: #4a5470;
	--line: #dfe4f0;
	--accent: #1f55e6;
	--page: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cv-page { margin: 0; background: #eef1f7; color: var(--ink); font: 400 14px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }

.cv-toolbar {
	position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px;
	padding: 12px max(16px, calc(50% - 400px)); background: rgba(238, 241, 247, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.cv-toolbar a { font-weight: 500; color: var(--muted); }
.cv-toolbar a:hover { color: var(--ink); }
.cv-toolbar button {
	font: 600 13px/1 Inter, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; cursor: pointer;
	background: linear-gradient(135deg, #3aa8ff, #2f6bff 45%, #0f1f8a); border: 0; border-radius: 8px; padding: 12px 18px;
	box-shadow: 0 8px 20px -8px rgba(47, 107, 255, 0.7);
}
.cv-toolbar button:hover { filter: brightness(1.08); }

.cv { max-width: 800px; margin: 28px auto 56px; padding: 48px 56px; background: var(--page); border-radius: 6px; box-shadow: 0 20px 60px -30px rgba(11, 16, 32, 0.35); }
.cv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.cv-head h1 { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; }
.cv-role { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: var(--accent); }
.cv-logo { width: 56px; height: auto; flex: none; }
.cv .cv-contact { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 14px 0 0; padding: 0 0 18px; border-bottom: 2px solid var(--ink); font-size: 13px; color: var(--muted); }
.cv-contact li:not(:last-child)::after { content: "·"; margin: 0 10px; color: #a3abc2; }
.cv-contact a:hover { color: var(--accent); }

.cv-sec { margin-top: 22px; }
.cv-sec h2 { margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.cv-sec p { margin: 0 0 8px; }
.cv-sec strong { font-weight: 600; }

.cv-role-item { margin-bottom: 16px; }
.cv-role-top, .cv-where { break-after: avoid; page-break-after: avoid; }
.cv li { break-inside: avoid; }
.cv-role-item + .cv-role-item { padding-top: 14px; border-top: 1px dashed var(--line); }
.cv-role-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cv-role-top h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; }
.cv-when { flex: none; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cv-where { margin: 2px 0 6px !important; font-size: 13px; color: var(--accent); font-weight: 500; }
.cv ul { margin: 0; padding-left: 18px; }
.cv li { margin: 3px 0; }
.cv li::marker { color: #9aa6c6; }
.cv-skills, .cv-list { padding-left: 18px; }
.cv-cols { columns: 2; column-gap: 32px; }
.cv-cols li { break-inside: avoid; }

@media (max-width: 640px) {
	.cv { margin: 0; padding: 28px 18px; border-radius: 0; box-shadow: none; }
	.cv-head h1 { font-size: 24px; }
	.cv-role-top { flex-direction: column; gap: 2px; }
	.cv-cols { columns: 1; }
}

@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
	body.cv-page { background: #fff; font-size: 10.5pt; }
	.cv-toolbar { display: none; }
	.cv { max-width: none; margin: 0; padding: 0; box-shadow: none; border-radius: 0; }
	.cv-head h1 { font-size: 22pt; }
	.cv-sec { break-inside: auto; }
	.cv-sec h2 { break-after: avoid; }
	a { color: inherit; }
	* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
