/**
 * Typography & TOC cho single post (tham chiếu 1gom.vip chi tiết tin).
 */

/* Masthead */
.lmht-article-header__cat-link {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
	color: inherit;
	background: rgba(255, 255, 255, 0.65);
	border: 1px solid rgba(255, 255, 255, 0.95);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.lmht-article-header__cat-link:hover {
	background: rgba(255, 255, 255, 0.92);
	border-color: rgba(99, 119, 143, 0.35);
}

/* Entry prose — spacing & headings */
.lmht-entry-prose {
	font-size: 1rem;
	line-height: 1.75;
	color: inherit;
	max-width: 100%;
}

.lmht-entry-prose > *:first-child {
	margin-top: 0;
}

.lmht-entry-prose > * + * {
	margin-top: 1rem;
}

.lmht-entry-prose h2 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	font-size: clamp(1.125rem, 2.8vw, 1.375rem);
	font-weight: 700;
	line-height: 1.35;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(46, 62, 82, 0.12);
	scroll-margin-top: 6rem;
}

.lmht-entry-prose h3 {
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.4;
	scroll-margin-top: 5rem;
}

.lmht-entry-prose h4 {
	margin-top: 1.25rem;
	font-size: 1rem;
	font-weight: 700;
}

.lmht-entry-prose p {
	margin-top: 0;
	margin-bottom: 1rem;
}

.lmht-entry-prose ul,
.lmht-entry-prose ol {
	margin: 0 0 1rem;
	padding-left: 1.35rem;
}

.lmht-entry-prose li {
	margin-bottom: 0.35rem;
}

.lmht-entry-prose a {
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 600;
}

.lmht-entry-prose img {
	height: auto;
	max-width: 100%;
	border-radius: 0.75rem;
	margin: 1.25rem auto;
	display: block;
	box-shadow: 0 8px 28px rgba(15, 35, 52, 0.08);
}

.lmht-entry-prose figure {
	margin: 1.5rem 0;
	max-width: 100%;
}

.lmht-entry-prose figcaption,
.lmht-entry-prose .wp-caption-text {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: rgba(46, 62, 82, 0.72);
	text-align: center;
}

.lmht-entry-prose blockquote {
	margin: 1.25rem 0;
	padding: 0.75rem 1rem;
	border-left: 4px solid rgba(62, 106, 153, 0.45);
	background: rgba(255, 255, 255, 0.45);
	border-radius: 0 0.5rem 0.5rem 0;
	font-style: italic;
}

.lmht-entry-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	margin: 1.25rem 0;
	overflow-x: auto;
	display: block;
	max-width: 100%;
}

.lmht-entry-prose table thead {
	display: table;
	width: 100%;
}

.lmht-entry-prose table tbody {
	display: table;
	width: 100%;
}

.lmht-entry-prose th,
.lmht-entry-prose td {
	border: 1px solid rgba(46, 62, 82, 0.12);
	padding: 0.5rem 0.65rem;
	text-align: left;
}

.lmht-entry-prose th {
	background: rgba(255, 255, 255, 0.65);
	font-weight: 700;
}

/* TOC — collapsible */
.lmht-toc-root {
	margin-bottom: 1.5rem;
}

.lmht-toc {
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.55);
	overflow: hidden;
}

.lmht-toc__summary {
	cursor: pointer;
	list-style: none;
	padding: 0.65rem 1rem;
	font-weight: 700;
	font-size: 0.9375rem;
	user-select: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.lmht-toc__summary::-webkit-details-marker {
	display: none;
}

.lmht-toc__summary::after {
	content: '';
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	opacity: 0.65;
	flex-shrink: 0;
}

.lmht-toc:not([open]) .lmht-toc__summary::after {
	transform: rotate(-135deg);
	margin-top: 0.15rem;
}

.lmht-toc__nav {
	padding: 0 1rem 1rem;
	border-top: 1px solid rgba(46, 62, 82, 0.08);
}

.lmht-toc__list {
	margin: 0.75rem 0 0;
	padding-left: 1.15rem;
	list-style: decimal;
	font-size: 0.875rem;
	line-height: 1.55;
}

.lmht-toc__list li {
	margin-bottom: 0.35rem;
	padding-left: 0.35rem;
}

.lmht-toc__list a {
	text-decoration: none;
	font-weight: 600;
}

.lmht-toc__list a:hover {
	text-decoration: underline;
}
