/**
 * Rich text inside .entry__content (posts, cases, services).
 */

.entry__content {
	font-size: var(--text-m);
	line-height: 1.65;
	color: var(--text-body);
}

/* Headings */
.entry__content h2,
.entry__content h3,
.entry__content h4,
.entry__content h5,
.entry__content h6 {
	font-weight: 700;
	color: var(--text-title);
	margin: 0 0 var(--space-s);
	line-height: 1.25;
}

.entry__content h2 {
	font-size: var(--text-2xl);
}

.entry__content h3 {
	font-size: var(--text-l);
}

.entry__content h4,
.entry__content h5,
.entry__content h6 {
	font-size: var(--text-m);
}

/* Paragraphs */
.entry__content p {
	color: var(--text-body);
	margin: 0 0 var(--space-m);
	line-height: 1.6;
}

.entry__content p strong {
	color: var(--text-title);
}

.entry__content p a {
	color: var(--primary);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.entry__content p a:hover {
	color: var(--text-title);
}

/* Unordered lists (incl. Gutenberg wp-block-list) */
.entry__content ul,
.entry__content ul.wp-block-list {
	margin: var(--space-m) 0;
	padding-left: 0;
	list-style: none;
}

.entry__content ul li,
.entry__content ul.wp-block-list li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 8px;
}

.entry__content ul li::before,
.entry__content ul.wp-block-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 10px;
	height: 10px;
	background: var(--primary);
	border-radius: 50%;
}

/* Gutenberg social / navigation — not prose bullet lists */
.entry__content ul.wp-block-social-links,
.entry__content .wp-block-navigation ul {
	margin: var(--space-m) 0;
	padding-left: 0;
	list-style: none;
}

.entry__content ul.wp-block-social-links li,
.entry__content .wp-block-navigation li {
	position: static;
	padding-left: 0;
	margin-bottom: 0;
}

.entry__content ul.wp-block-social-links li::before,
.entry__content ul.wp-block-social-links li::after,
.entry__content .wp-block-navigation li::before,
.entry__content .wp-block-navigation li::after {
	content: none;
	display: none;
}

/* Ordered lists — number direct children only */
.entry__content ol,
.entry__content ol.wp-block-list {
	list-style: none;
	counter-reset: item;
	margin: var(--space-m) 0;
	padding-left: 0;
}

.entry__content ol > li,
.entry__content ol.wp-block-list > li {
	counter-increment: item;
	position: relative;
	padding-left: 56px;
	padding-top: 0.5em;
	margin-bottom: 12px;
	min-height: 32px;
}

.entry__content ol > li::before,
.entry__content ol.wp-block-list > li::before {
	content: counter(item);
	position: absolute;
	left: 0;
	top: calc(0.5em + 0.6em - 16px);
	width: 32px;
	height: 32px;
	border-radius: var(--radius-xs);
	background: var(--primary);
	color: var(--text-title);
	border: 1px solid var(--border-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--text-m);
	font-weight: 700;
}

/* Nested ul inside ol — bullets, not numbers */
.entry__content ol ul,
.entry__content ol.wp-block-list ul {
	list-style: none;
	counter-reset: none;
	margin: var(--space-s) 0;
	padding-left: 24px;
}

.entry__content ol ul li,
.entry__content ol.wp-block-list ul li {
	counter-increment: none;
	position: relative;
	padding-left: 22px;
	padding-top: 0;
	margin-bottom: 8px;
	min-height: 0;
}

.entry__content ol ul li::before,
.entry__content ol.wp-block-list ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 10px;
	height: 10px;
	background: var(--primary);
	border-radius: 50%;
	border: none;
	font-size: inherit;
	font-weight: inherit;
	display: block;
	transform: none;
}

/* Images */
.entry__content figure img {
	width: 100%;
	border-radius: var(--radius-m);
}

.entry__content figure figcaption {
	margin-top: var(--space-xs);
	color: var(--text-body);
	font-size: var(--text-s);
	text-align: center;
	opacity: 0.8;
}

/* Blockquote */
.entry__content blockquote,
.entry__content blockquote.wp-block-quote {
	border: none;
	margin: 0;
	padding: 0;
}

.entry__content blockquote p,
.entry__content blockquote.wp-block-quote p {
	border: none;
	font-size: var(--text-m);
	font-weight: 600;
	text-align: center;
	background: var(--bg-surface);
	color: var(--text-body);
	padding: var(--space-xl) var(--space-m);
	margin: var(--space-l) 0;
	border-radius: var(--radius-l);
}

@media (max-width: 767px) {
	.entry__content h2 {
		font-size: var(--text-xl);
	}

	.entry__content blockquote p,
	.entry__content blockquote.wp-block-quote p {
		padding: var(--space-l) var(--space-s);
	}
}

.entry__content blockquote cite,
.entry__content blockquote.wp-block-quote cite {
	margin-top: var(--space-xs);
	color: var(--text-body);
	opacity: 0.6;
	font-style: normal;
	display: block;
}

/* CTA link in article content */
.entry__content .single-post__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 22px;
	background: var(--primary);
	color: var(--text-title);
	border-radius: var(--radius-m);
	font-weight: 600;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		box-shadow 0.2s ease,
		color 0.2s ease;
}

/* Case single — card-style numbered steps */
.case-single__prose ol,
.case-single__prose ol.wp-block-list {
	counter-reset: item;
}

.case-single__prose ol > li,
.case-single__prose ol.wp-block-list > li {
	counter-increment: item;
	padding: 22px 22px 22px 65px;
	margin-bottom: 30px;
	min-height: 0;
	background: var(--bg-surface);
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-m);
	color: var(--text-body);
	box-shadow: var(--shadow-m);
}

.case-single__prose ol > li::before,
.case-single__prose ol.wp-block-list > li::before {
	left: 22px;
	top: 50%;
	transform: translateY(-50%);
}

.case-single__prose ol ul,
.case-single__prose ol.wp-block-list ul {
	margin: var(--space-s) 0;
	padding-left: 24px;
	background: transparent;
	border: none;
	box-shadow: none;
}

.case-single__prose ol ul li,
.case-single__prose ol.wp-block-list ul li {
	padding: 0 0 0 22px;
	margin-bottom: 8px;
	background: transparent;
	border: none;
	box-shadow: none;
}
