/*
 * Typografia treści wysiwyg w konstruktorze bloga.
 * Tailwindowy preflight motywu zeruje style p/ul/h3 — ręczne wpisy demo tego
 * nie ujawniały (krótkie akapity), ale pełne artykuły stają się ścianą tekstu.
 * Zakres celowo wąski: tylko kontener .text-md wewnątrz [data-blog-post].
 */

[data-blog-post] .text-md p {
	margin: 0 0 1em;
}

[data-blog-post] .text-md p:last-child {
	margin-bottom: 0;
}

[data-blog-post] .text-md ul,
[data-blog-post] .text-md ol {
	margin: 0 0 1.25em;
	padding-left: 1.5em;
}

[data-blog-post] .text-md ul {
	list-style: disc;
}

[data-blog-post] .text-md ol {
	list-style: decimal;
}

[data-blog-post] .text-md li {
	margin: 0.35em 0;
}

[data-blog-post] .text-md h3,
[data-blog-post] .text-md h4 {
	font-weight: 700;
	color: var(--color-secondary-40, #1a2b49);
	margin: 1.5em 0 0.6em;
}

[data-blog-post] .text-md h3 {
	font-size: 1.375em;
}

[data-blog-post] .text-md h4 {
	font-size: 1.125em;
}

[data-blog-post] .text-md h3:first-child,
[data-blog-post] .text-md h4:first-child {
	margin-top: 0;
}

[data-blog-post] .text-md a {
	color: var(--color-primary-60, #f1603a);
	text-decoration: underline;
	text-underline-offset: 2px;
}

[data-blog-post] .text-md blockquote {
	border-left: 3px solid var(--color-primary-60, #f1603a);
	padding-left: 1em;
	margin: 1.25em 0;
	font-style: italic;
}

[data-blog-post] .text-md img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	margin: 1.25em 0;
}

[data-blog-post] .text-md iframe {
	max-width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	width: 100%;
	border-radius: 16px;
	margin: 1.25em 0;
}
