/* =================================================================
   Emerald single blog post
   ================================================================= */

.emerald-single-wrap {
	box-sizing: border-box;
	width: 100%;
	padding: 120px 0 0;
	background: #f5f6f5;
}

.emerald-single {
	box-sizing: border-box;
	width: 100%;
	max-width: 920px;
	padding: 0 24px;
	margin: 0 auto;
	color: #1f2d2a;
}

.emerald-single__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 36px;
	margin: 0 0 32px;
	text-align: center;
}

.emerald-single__title {
	margin: 0;
	max-width: 16em;
	color: #1f2d2a;
	font-family: 'Manrope', sans-serif;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.emerald-single__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.emerald-single__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid transparent;
	border-radius: 9999px;
	background-color: #fff;
	background-image:
		linear-gradient(#ffffff, #ffffff),
		linear-gradient(168.44deg, rgba(255, 255, 255, 0.462) -8.7%, rgba(255, 255, 255, 0) 112.65%);
	background-origin: border-box;
	background-clip: padding-box, border-box;
	color: #1f2d2a;
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 4px 24px 0 rgba(31, 45, 42, 0.08);
}

.emerald-single__badge--author{
	padding-left: 8px !important;
}

a.emerald-single__badge:hover,
a.emerald-single__badge:focus {
	color: #1d5f51;
	text-decoration: none;
}

.emerald-single__badge svg {
	display: block;
	flex: 0 0 auto;
	color: #1D5F51;
}

.emerald-single__avatar {
	width: 22px !important;
	height: 22px !important;
	border-radius: 50%;
	object-fit: cover;
}

.emerald-single__hero {
	display: block;
	width: 100%;
	margin: 0 0 40px;
	overflow: hidden;
	border-radius: 24px;
	line-height: 0;
}

.emerald-single__hero-img,
.emerald-single__hero img {
	display: block;
	width: 100% !important;
	height: auto !important;
	max-width: 100%;
	border-radius: 24px;
	object-fit: cover;
}

/* —— Post body —— */
.emerald-single__content {
	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 0 0 56px;
	color: #1f2d2a;
	font-family: 'Source Sans 3', sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.7;
}

.emerald-single__content > *:first-child {
	margin-top: 0;
}

.emerald-single__content > *:last-child {
	margin-bottom: 0;
}

.emerald-single__content h2,
.emerald-single__content h3,
.emerald-single__content h4 {
	margin: 1.6em 0 0.55em;
	color: #1f2d2a;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.emerald-single__content h2 {
	font-size: clamp(24px, 3vw, 32px);
}

.emerald-single__content h3 {
	font-size: clamp(20px, 2.4vw, 24px);
}

.emerald-single__content h4 {
	font-size: 18px;
}

.emerald-single__content p {
	margin: 0 0 1.15em;
}

.emerald-single__content a {
	color: #1d5f51;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.emerald-single__content ul,
.emerald-single__content ol {
	margin: 0 0 1.25em;
	padding-left: 1.25em;
}

.emerald-single__content li {
	margin: 0 0 0.45em;
}

.emerald-single__content ul {
	list-style: disc;
}

.emerald-single__content ol {
	list-style: decimal;
}

.emerald-single__content img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	margin: 1.75em 0;
	border-radius: 24px;
}

.emerald-single__content figure {
	margin: 1.75em 0;
}

.emerald-single__content figure img {
	margin: 0;
}

.emerald-single__content blockquote {
	margin: 1.5em 0;
	padding: 0.25em 0 0.25em 1.1em;
	border-left: 3px solid #1d5f51;
	color: #3a4844;
	font-style: italic;
}

.emerald-single__content .page-links {
	margin-top: 2em;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 600;
}

/* —— Elementor after-content sections —— */
.emerald-single__sections {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
}

.emerald-single__section {
	width: 100%;
}

@media (max-width: 767px) {
	.emerald-single-wrap {
		padding: 100px 0 0;
	}

	.emerald-single__header {
		gap: 16px;
		margin-bottom: 24px;
	}

	.emerald-single__title {
		max-width: none;
		font-size: 26px;
	}

	.emerald-single__meta {
		gap: 8px;
	}

	.emerald-single__badge {
		padding: 7px 12px;
		font-size: 12px;
	}

	.emerald-single__hero {
		margin-bottom: 28px;
		border-radius: 18px;
	}

	.emerald-single__hero-img,
	.emerald-single__hero img,
	.emerald-single__content img {
		border-radius: 18px;
	}

	.emerald-single__content {
		font-size: 16px;
		padding-bottom: 40px;
	}
}
