/*
 * Khối hero – split: ảnh một bên, chữ một bên, không lớp phủ.
 * Khung ảnh: plain (3:2, điện thoại 4:3) | polaroid-stack (ảnh chính + 2 ảnh nhỏ xoay trên máy tính) | offset-portrait (4:5 lệch 64px).
 * Panel dark-facts: nền tối, dòng số liệu chữ mono, số tô màu nhấn trên nền tối. Mobile trước, mốc 640px / 1024px.
 */

.vh-hero-split {
	padding-block: clamp(16px, 4vw, 56px) clamp(32px, 6vw, 72px);
}

.vh-hero-split__in {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(20px, 4vw, 40px);
	align-items: center;
}

.vh-hero-split--text-first .vh-hero-split__text {
	order: -1;
}

/* ---- Ảnh ---- */
.vh-hero-split__media {
	position: relative;
	min-width: 0;
}

.vh-hero-split__main {
	position: relative;
	margin: 0;
}

.vh-hero-split__main .vh-img,
.vh-hero-split__main img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	object-position: var(--vh-focal, 50% 50%);
	border-radius: var(--vh-radius-media);
}

.vh-hero-split__sticker {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
}

/* Chân dung 4:5 (mẫu biên tập): giữ dọc cả trên điện thoại nhưng không cao quá màn hình. */
.vh-hero-split--offset-portrait .vh-hero-split__main img {
	aspect-ratio: 4 / 5;
	max-height: 78vh;
	max-height: 78svh;
}

/* ---- Polaroid ---- */
.vh-hero-split--polaroid-stack .vh-hero-split__main,
.vh-hero-split__mini {
	padding: 10px 10px 12px;
	border-radius: 2px;
	background: var(--vh-color-card);
	box-shadow: var(--vh-shadow-card);
}

.vh-hero-split--polaroid-stack .vh-hero-split__main img,
.vh-hero-split__mini img {
	border-radius: 0;
}

/* Băng dán washi: chỉ trang trí. */
.vh-hero-split--polaroid-stack .vh-hero-split__main::before {
	content: "";
	position: absolute;
	top: -10px;
	left: 50%;
	z-index: 1;
	width: 96px;
	height: 24px;
	background: color-mix(in srgb, var(--vh-color-ornament, var(--vh-color-accent)) 70%, transparent);
	transform: translateX(-50%) rotate(-3deg);
}

.vh-hero-split__cap {
	margin-top: 8px;
	color: var(--vh-color-text);
	font-family: var(--vh-font-accent, var(--vh-font-body));
	font-size: 1.25rem;
	line-height: 1.25;
	text-align: center;
}

.vh-hero-split__mini {
	display: none;
	margin: 0;
}

.vh-hero-split__mini img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

/* ---- Chữ ---- */
.vh-hero-split__text {
	display: grid;
	justify-items: start;
	gap: 12px;
	min-width: 0;
}

.vh-hero-split__title {
	margin: 0;
	overflow-wrap: anywhere;
}

.vh-hero-split__title--display {
	font-size: var(--vh-fs-display, clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem));
	line-height: max(1.1, var(--vh-lh-display, 1.1));
	font-variation-settings: var(--vh-heading-variation, normal);
}

.vh-hero-split__sub {
	max-width: 36rem;
	margin: 0;
	color: var(--vh-color-muted);
}

/* ---- Panel tối, dòng số liệu chữ mono ---- */
.vh-hero-split--dark .vh-hero-split__text {
	align-self: stretch;
	align-content: center;
	padding: clamp(24px, 5vw, 48px);
	border-radius: var(--vh-radius-panel, 0);
	background: var(--vh-color-deep);
	color: var(--vh-color-on-deep);
}

.vh-hero-split--dark .vh-hero-split__sub {
	color: var(--vh-color-muted-on-deep);
}

.vh-hero-split--dark .vh-hero-split__eyebrow {
	color: var(--vh-color-accent-on-deep, var(--vh-color-on-deep));
}

.vh-hero-split__facts {
	display: grid;
	gap: 6px;
	margin: 4px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid color-mix(in srgb, currentColor 24%, transparent);
	font-family: var(--vh-font-accent, var(--vh-font-body));
	font-size: var(--vh-fs-small);
	line-height: 1.5;
	list-style: none;
}

.vh-hero-split--dark .vh-hero-split__facts {
	color: var(--vh-color-muted-on-deep);
}

.vh-hero-split__n {
	color: var(--vh-color-accent-on-deep, var(--vh-color-on-deep));
	font-weight: var(--vh-fw-medium);
	font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
	.vh-hero-split__main .vh-img,
	.vh-hero-split__main img {
		aspect-ratio: 3 / 2;
	}

	.vh-hero-split--offset-portrait .vh-hero-split__main img {
		aspect-ratio: 4 / 5;
	}
}

/* ---- Máy tính: hai cột theo tỷ lệ ---- */
@media (min-width: 1024px) {
	.vh-hero-split__in {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: clamp(32px, 4vw, 64px);
	}

	.vh-hero-split--r6-6 .vh-hero-split__in {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.vh-hero-split--media-right .vh-hero-split__in {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	}

	.vh-hero-split--media-right.vh-hero-split--r6-6 .vh-hero-split__in {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.vh-hero-split--media-right .vh-hero-split__media {
		order: 2;
	}

	.vh-hero-split--text-first .vh-hero-split__text {
		order: 0;
	}

	.vh-hero-split--dark .vh-hero-split__in {
		gap: 0;
		align-items: stretch;
	}

	/* Ảnh cao bằng panel tối bên cạnh (panel dài hơn thì ảnh cắt theo, không để khoảng trắng). */
	.vh-hero-split--dark .vh-hero-split__main,
	.vh-hero-split--dark .vh-hero-split__main img {
		height: 100%;
	}

	.vh-hero-split__sticker {
		top: -20px;
		right: -12px;
	}

	/* Chân dung lệch xuống 64px; khối có thêm khoảng dưới để ảnh không đè thanh đặt phòng. */
	.vh-hero-split--offset-portrait {
		padding-bottom: calc(clamp(32px, 6vw, 72px) + 64px);
	}

	.vh-hero-split--offset-portrait .vh-hero-split__main {
		transform: translateY(64px);
	}

	/* Polaroid: ảnh chính 4:5 nghiêng nhẹ, 2 ảnh nhỏ xoay ±3–4° đè mép phải. */
	/* Ảnh chính chiếm 70%, hai ảnh nhỏ chỉ đè góc phải để không che chú thích viết tay ở giữa. */
	.vh-hero-split--polaroid-stack .vh-hero-split__media {
		padding: 24px 30% 72px 0;
	}

	.vh-hero-split--polaroid-stack .vh-hero-split__main {
		transform: rotate(-2deg);
	}

	.vh-hero-split--polaroid-stack .vh-hero-split__main img {
		aspect-ratio: 4 / 5;
	}

	.vh-hero-split__mini {
		display: block;
		position: absolute;
		width: 34%;
		padding-bottom: 8px;
	}

	.vh-hero-split__mini--1 {
		top: 0;
		right: 0;
		transform: rotate(3deg);
	}

	.vh-hero-split__mini--2 {
		right: 3%;
		bottom: 0;
		transform: rotate(-4deg);
	}

	/* Chữ viết tay không nhỏ hơn 20px (dễ đọc với font tay). */
	.vh-hero-split__mini .vh-hero-split__cap {
		font-size: 1.25rem;
	}
}
