/* =====================================================
   NEWS DETAIL — standalone editorial article skin
   Shared tokens: main.css + home-2.css
===================================================== */

body.page-news-detail {
	background: var(--h2-bg);
	color: var(--h2-ink);
	font-family: var(--font);
	-webkit-font-smoothing: antialiased;
}

body.page-news-detail .h2-nav:not(.is-scrolled) {
	background: transparent;
	border-bottom-color: transparent;
}

.insight-detail {
	background: var(--bg);
	color: #fff;
	overflow: hidden;
}

.insight-detail .container {
	max-width: var(--h2-max);
	padding-left: var(--h2-pad);
	padding-right: var(--h2-pad);
}

/* =====================================================
   ARTICLE HERO
===================================================== */
.id-hero {
	position: relative;
	isolation: isolate;
	/* Tối thiểu 16:9 theo chiều rộng màn hình (không theo chiều cao): zoom/độ phân giải không đổi vùng cắt ảnh.
	   Dùng min-height thay vì aspect-ratio để chữ dài hơn khung luôn đẩy hero cao thêm (Safari iOS cắt mất nội dung với aspect-ratio). */
	min-height: 56.25vw;
	display: flex;
	align-items: flex-end;
	padding: calc(var(--h2-nav-h) + 72px) 0 72px;
	background: var(--bg);
}

.id-hero-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: #1F1E23;
}

.id-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 42%;
	display: block;
	filter: brightness(0.62) contrast(1.04) saturate(0.9);
}

.id-hero-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(31, 30, 35, 0.78) 0%, rgba(31, 30, 35, 0.34) 52%, rgba(31, 30, 35, 0.22) 100%),
		linear-gradient(180deg, rgba(31, 30, 35, 0.24) 0%, rgba(31, 30, 35, 0.18) 42%, rgba(31, 30, 35, 0.94) 100%);
}

.id-hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
}

.id-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	max-width: 820px;
	margin: 0 auto 18px;
	font-size: var(--text-xs);
	font-weight: var(--w-regular);
	color: rgba(255, 255, 255, 0.72);
}

.id-breadcrumb a {
	color: var(--cyan);
}

.id-breadcrumb-sep {
	color: rgba(255, 255, 255, 0.45);
}

.id-hero h1 {
	max-width: 820px;
	margin: 0 auto 20px;
	font-family: var(--font);
	font-size: clamp(32px, 4.7vw, 58px);
	font-weight: var(--w-bold);
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: #fff;
	text-shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
}

.id-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	max-width: 820px;
	margin: 0 auto;
	font-size: var(--text-xs);
	color: rgba(255, 255, 255, 0.72);
}

.id-meta-tag {
	font-weight: var(--w-semibold);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--cyan);
}

/* =====================================================
   READING COLUMN
===================================================== */
.id-section {
	padding: clamp(64px, 8vw, 104px) 0 72px;
	background: var(--bg);
}

.id-section > .container {
	max-width: var(--h2-max);
}

.id-lead,
.id-prose {
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
}

.id-lead {
	margin-bottom: 48px;
	font-size: clamp(18px, 1.6vw, 22px);
	font-weight: var(--w-medium);
	line-height: 1.65;
	color: #f8f8f9;
}

.id-prose {
	font-size: var(--text-s);
	font-weight: var(--w-regular);
	line-height: 1.8;
	color: var(--text-muted);
}

.id-prose p + p {
	margin-top: 1.35em;
}

.id-prose :is(h2, h3.taj-h2) {
	margin: 52px 0 18px;
	font-size: clamp(18px, 1.7vw, 22px);
	font-weight: var(--w-semibold);
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: #fff;
}

.id-prose ul {
	margin: 16px 0;
	padding-left: 1.25em;
	list-style: disc;
}

.id-prose li + li {
	margin-top: 10px;
}

.id-figure {
	max-width: 960px;
	margin: 52px 0;
}

.id-figure img {
	width: 100%;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius);
}

.id-figure figcaption {
	margin-top: 12px;
	font-size: var(--text-xs);
	line-height: 1.5;
	color: var(--text-muted);
}

.id-pullquote {
	max-width: 720px;
	margin: 56px 0;
	padding: 28px 8px;
	text-align: center;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.id-pullquote p {
	margin: 0;
	font-size: clamp(20px, 2.4vw, 28px);
	font-weight: var(--w-medium);
	line-height: 1.45;
	color: #fff;
}

.id-takeaways {
	max-width: 720px;
	margin: 56px 0 0;
	padding: 28px 32px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius);
	background: rgba(31, 30, 35, 0.46);
}

.id-takeaways h3 {
	margin: 0 0 18px;
	font-size: var(--text-s);
	font-weight: var(--w-semibold);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--cyan);
}

.id-takeaways ul {
	margin: 0;
	padding: 0 0 0 18px;
	list-style: none;
}

.id-takeaways li {
	position: relative;
	padding-left: 2px;
	font-size: var(--text-s);
	line-height: 1.6;
	color: var(--text-muted);
}

.id-takeaways li + li {
	margin-top: 12px;
}

.id-takeaways li::before {
	content: '';
	position: absolute;
	left: -17px;
	top: 0.7em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--cyan);
}

/* =====================================================
   RELATED INSIGHTS
===================================================== */
.id-related {
	padding: 72px 0 96px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: var(--bg);
}

.id-related :is(h2, h3.taj-h2) {
	margin: 0 0 28px;
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: var(--w-bold);
	line-height: 1.1;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	color: #fff;
}

.id-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.id-related-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0;
	background: rgba(31, 30, 35, 0.46);
	transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}

.id-related-card:hover,
.id-related-card:focus-visible {
	border-color: rgba(var(--cyan-rgb), 0.58);
	background: rgba(17, 17, 32, 0.7);
	transform: translateY(-3px);
}

.id-related-card img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.id-related-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: 9px;
	padding: 16px 18px 18px;
}

.id-related-tag {
	font-size: 10px;
	font-weight: var(--w-semibold);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--cyan);
}

.id-related-card-body h3 {
	margin: 0;
	font-size: clamp(16px, 1.3vw, 19px);
	font-weight: var(--w-semibold);
	line-height: 1.35;
	color: #fff;
}

.id-related-meta {
	margin-top: auto;
	font-size: var(--text-xs);
	color: var(--text-muted);
}

.id-related-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: var(--text-xs);
	font-weight: var(--w-semibold);
	color: var(--cyan);
}

.id-related-link svg {
	flex: 0 0 auto;
}

@media (max-width: 900px) {
	.id-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.id-hero {
		padding-top: calc(var(--h2-nav-h) + 36px);
		padding-bottom: 44px;
	}

	.id-hero-media img {
		object-position: 58% center;
	}

	.id-hero h1 {
		font-size: clamp(30px, 9vw, 42px);
	}

	.id-section {
		padding-top: 56px;
	}

	.id-lead {
		margin-bottom: 36px;
		font-size: 18px;
	}

	.id-prose {
		font-size: 15px;
	}

	.id-prose :is(h2, h3.taj-h2) {
		margin-top: 40px;
	}

	.id-pullquote {
		margin: 44px auto;
		padding: 24px 0;
	}

	.id-takeaways {
		padding: 24px 22px;
	}

	.id-related {
		padding: 56px 0 72px;
	}

	.id-related :is(h2, h3.taj-h2) {
		font-size: 30px;
	}

	.id-related-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.id-related-card {
		transition: border-color 0.2s, background 0.2s;
	}
}
