/**
 * Classic Editor content styles for Danh mục single pages.
 * Scoped to .single-danh_muc .entry-content only.
 */

.single-danh_muc .entry-content {
	color: var(--foreground);
	font-family: var(--font-inter, Inter, sans-serif);
	font-size: 0.875rem;
	line-height: 1.625;
	overflow-wrap: anywhere;
}

@media (min-width: 640px) {
	.single-danh_muc .entry-content {
		font-size: 1rem;
	}
}

.single-danh_muc .entry-content::after {
	content: "";
	display: table;
	clear: both;
}

/* Headings */
.single-danh_muc .entry-content h1,
.single-danh_muc .entry-content h2,
.single-danh_muc .entry-content h3,
.single-danh_muc .entry-content h4,
.single-danh_muc .entry-content h5,
.single-danh_muc .entry-content h6 {
	color: var(--foreground);
	font-family: var(--font-manrope, Manrope, sans-serif);
	font-weight: 700;
	line-height: 1.25;
	margin-top: 1.75em;
	margin-bottom: 0.75em;
}

.single-danh_muc .entry-content > :first-child {
	margin-top: 0;
}

.single-danh_muc .entry-content h1 {
	font-size: 1.875rem;
}

.single-danh_muc .entry-content h2 {
	font-size: 1.5rem;
}

.single-danh_muc .entry-content h3 {
	font-size: 1.25rem;
}

.single-danh_muc .entry-content h4 {
	font-size: 1.125rem;
}

.single-danh_muc .entry-content h5 {
	font-size: 1rem;
}

.single-danh_muc .entry-content h6 {
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Paragraphs */
.single-danh_muc .entry-content p {
	margin-top: 0;
	margin-bottom: 1em;
}

.single-danh_muc .entry-content p:last-child {
	margin-bottom: 0;
}

/* Text formatting */
.single-danh_muc .entry-content strong,
.single-danh_muc .entry-content b {
	font-weight: 700;
}

.single-danh_muc .entry-content em,
.single-danh_muc .entry-content i {
	font-style: italic;
}

.single-danh_muc .entry-content u {
	text-decoration: underline;
}

/* Links */
.single-danh_muc .entry-content a {
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (hover: hover) {
	.single-danh_muc .entry-content a:hover {
		color: var(--primary);
		opacity: 0.85;
	}
}

/* Lists */
.single-danh_muc .entry-content ul,
.single-danh_muc .entry-content ol {
	margin: 0 0 1em;
	padding-left: 1.5em;
}

.single-danh_muc .entry-content ul {
	list-style-type: disc;
}

.single-danh_muc .entry-content ol {
	list-style-type: decimal;
}

.single-danh_muc .entry-content li {
	margin-bottom: 0.375em;
}

.single-danh_muc .entry-content li > ul,
.single-danh_muc .entry-content li > ol {
	margin-top: 0.375em;
	margin-bottom: 0;
}

.single-danh_muc .entry-content ul ul {
	list-style-type: circle;
}

.single-danh_muc .entry-content ul ul ul {
	list-style-type: square;
}

/* Blockquotes */
.single-danh_muc .entry-content blockquote {
	margin: 1.5em 0;
	padding: 0.75em 1em;
	border-left: 4px solid var(--primary);
	background-color: color-mix(in oklab, var(--muted) 50%, transparent);
	color: color-mix(in oklab, var(--foreground) 85%, transparent);
	font-style: italic;
}

.single-danh_muc .entry-content blockquote p:last-child {
	margin-bottom: 0;
}

/* Images */
.single-danh_muc .entry-content img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
}

.single-danh_muc .entry-content figure {
	margin: 1.5em 0;
	max-width: 100%;
}

.single-danh_muc .entry-content figure img {
	margin-left: auto;
	margin-right: auto;
}

/* WordPress image alignment */
.single-danh_muc .entry-content .alignnone {
	display: block;
	margin: 1em 0;
	max-width: 100%;
}

.single-danh_muc .entry-content .aligncenter {
	display: block;
	clear: both;
	margin: 1em auto;
	text-align: center;
}

.single-danh_muc .entry-content .aligncenter img {
	margin-left: auto;
	margin-right: auto;
}

.single-danh_muc .entry-content .alignleft {
	float: left;
	margin: 0.25em 1.25em 1em 0;
	max-width: min(100%, 420px);
}

.single-danh_muc .entry-content .alignright {
	float: right;
	margin: 0.25em 0 1em 1.25em;
	max-width: min(100%, 420px);
}

/* Captions */
.single-danh_muc .entry-content .wp-caption,
.single-danh_muc .entry-content figure.wp-caption {
	max-width: 100%;
}

.single-danh_muc .entry-content .wp-caption img,
.single-danh_muc .entry-content figure.wp-caption img {
	margin-bottom: 0.5em;
}

.single-danh_muc .entry-content .wp-caption-text,
.single-danh_muc .entry-content figcaption {
	margin: 0;
	padding-top: 0.375em;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--muted-foreground);
	text-align: center;
}

/* Tables */
.single-danh_muc .entry-content table {
	width: 100%;
	max-width: 100%;
	margin: 1.5em 0;
	border-collapse: collapse;
	font-size: 0.875rem;
	overflow-x: auto;
	display: block;
}

@media (min-width: 640px) {
	.single-danh_muc .entry-content table {
		display: table;
	}
}

.single-danh_muc .entry-content th,
.single-danh_muc .entry-content td {
	padding: 0.625em 0.75em;
	border: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.single-danh_muc .entry-content th {
	background-color: color-mix(in oklab, var(--muted) 60%, transparent);
	font-weight: 600;
}

.single-danh_muc .entry-content hr {
	margin: 2em 0;
	border: 0;
	border-top: 1px solid var(--border);
}

/* Responsive: reset floats on small screens */
@media (max-width: 639px) {
	.single-danh_muc .entry-content .alignleft,
	.single-danh_muc .entry-content .alignright {
		float: none;
		display: block;
		margin: 1em auto;
		max-width: 100%;
	}
}
