/* CV Builder — front-end styles (mirrors the original site design)
   Selectors are prefixed with .mcb-cv and use explicit resets so the
   active theme cannot shift the layout. */

.mcb-cv {
	--mcb-text: #1a1a1a;
	--mcb-body: #444;
	--mcb-muted: #777;
	--mcb-line: #e3e3e3;
	max-width: 640px;
	margin: 0 auto;
	padding: 0 20px 64px;
	background: #fff;
	color: var(--mcb-text);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	text-align: left;
	direction: ltr;
}

.mcb-cv *,
.mcb-cv *::before,
.mcb-cv *::after {
	box-sizing: border-box;
}

.mcb-cv img {
	max-width: none;
	border: 0;
	box-shadow: none;
	float: none;
}

/* ---- Top bar ---- */
.mcb-cv .mcb-topbar {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	padding: 14px 4px;
	border-bottom: 1px dashed var(--mcb-line);
	font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mcb-muted);
}

.mcb-cv .mcb-topbar-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* ---- Header ---- */
.mcb-cv .mcb-header {
	text-align: center;
	padding: 40px 0 32px;
}

.mcb-cv .mcb-photo {
	width: 96px;
	height: 112px;
	border-radius: 12px;
	object-fit: cover;
	display: block;
	margin: 0 auto 16px;
}

.mcb-cv .mcb-name {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 6px;
	line-height: 1.2;
	text-align: center;
}

.mcb-cv .mcb-tagline {
	margin: 0;
	color: var(--mcb-muted);
	font-size: 16px;
	text-align: center;
}

/* ---- Sections ---- */
.mcb-cv .mcb-section {
	padding: 36px 4px;
	border-top: 1px dashed var(--mcb-line);
}

.mcb-cv .mcb-heading {
	font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 22px;
	color: var(--mcb-text);
	text-align: left;
}

.mcb-cv .mcb-text {
	color: var(--mcb-body);
	margin: 0 0 12px;
	text-align: left;
}

.mcb-cv .mcb-text:last-child {
	margin-bottom: 0;
}

/* ---- Entries: logo always at the start (top-left) of the entry ---- */
.mcb-cv .mcb-entry {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 16px;
	margin: 0 0 32px;
	padding: 0;
	border: 0;
	text-align: left;
}

.mcb-cv .mcb-entry:last-child {
	margin-bottom: 0;
}

.mcb-cv .mcb-entry-logo {
	width: 52px;
	height: 52px;
	object-fit: contain;
	border-radius: 8px;
	flex: 0 0 52px;
	align-self: flex-start;
	margin: 0;
	order: 0;
}

/* Certifications get slightly larger logos, like the original site */
.mcb-cv .mcb-cert .mcb-entry-logo {
	width: 60px;
	height: 60px;
	flex: 0 0 60px;
}

.mcb-cv .mcb-entry-body {
	flex: 1 1 auto;
	min-width: 0;
	order: 1;
	text-align: left;
	overflow-wrap: break-word;
}

.mcb-cv .mcb-entry-head {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
}

.mcb-cv .mcb-entry-title {
	font-size: 17px;
	font-weight: 600;
	margin: 2px 0 4px;
	padding: 0;
	line-height: 1.35;
	text-align: left;
}

.mcb-cv .mcb-entry-title a {
	color: inherit;
	text-decoration: none;
	border: 0;
	box-shadow: none;
}

.mcb-cv .mcb-entry-title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mcb-cv .mcb-arrow {
	font-family: "Geist Mono", monospace;
	font-size: 16px;
	color: var(--mcb-muted);
	text-decoration: none;
	border: 0;
	box-shadow: none;
	flex: 0 0 auto;
	transition: transform 0.15s ease, color 0.15s ease;
}

.mcb-cv .mcb-arrow:hover {
	color: var(--mcb-text);
	transform: translateX(3px);
}

.mcb-cv .mcb-meta {
	font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
	font-size: 11.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mcb-muted);
	margin: 0 0 10px;
	text-align: left;
}

.mcb-cv .mcb-bullets {
	margin: 0;
	padding: 0 0 0 18px;
	color: var(--mcb-body);
	list-style: disc outside;
	text-align: left;
}

.mcb-cv .mcb-bullets li {
	margin: 0 0 8px;
	padding: 0;
	list-style: disc outside;
	text-align: left;
}

.mcb-cv .mcb-bullets li:last-child {
	margin-bottom: 0;
}

/* ---- Languages ---- */
.mcb-cv .mcb-languages {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mcb-cv .mcb-languages li {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: baseline;
	padding: 8px 0;
	margin: 0;
	border-bottom: 1px dashed var(--mcb-line);
	list-style: none;
}

.mcb-cv .mcb-languages li:last-child {
	border-bottom: 0;
}

.mcb-cv .mcb-lang-name {
	font-weight: 600;
}

.mcb-cv .mcb-lang-level {
	font-family: "Geist Mono", monospace;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--mcb-muted);
}

/* ---- Contact links ---- */
.mcb-cv .mcb-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mcb-cv .mcb-links li {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 8px 0;
	margin: 0;
	border-bottom: 1px dashed var(--mcb-line);
	list-style: none;
}

.mcb-cv .mcb-links li:last-child {
	border-bottom: 0;
}

.mcb-cv .mcb-link-label {
	font-family: "Geist Mono", monospace;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--mcb-muted);
	flex: 0 0 auto;
}

.mcb-cv .mcb-links a {
	color: var(--mcb-text);
	text-decoration: none;
	border-bottom: 1px solid var(--mcb-line);
	box-shadow: none;
	word-break: break-all;
}

.mcb-cv .mcb-links a:hover {
	border-bottom-color: var(--mcb-text);
}

/* ---- Footer ---- */
.mcb-cv .mcb-footer {
	text-align: center;
	padding: 40px 0 8px;
	font-family: "Geist Mono", monospace;
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--mcb-muted);
}

/* ---- Responsive ---- */
@media (max-width: 540px) {
	.mcb-cv .mcb-entry {
		gap: 12px;
	}

	.mcb-cv .mcb-entry-logo {
		width: 42px;
		height: 42px;
		flex: 0 0 42px;
	}

	.mcb-cv .mcb-cert .mcb-entry-logo {
		width: 48px;
		height: 48px;
		flex: 0 0 48px;
	}

	.mcb-cv .mcb-name {
		font-size: 24px;
	}
}
