/* Blog listing + single post helpers */
.envolve-chip {
	border: 1px solid var(--border-subtle);
	background: var(--white);
	border-radius: 999px;
	padding: 9px 16px;
	font-family: var(--font-display);
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: -0.01em;
	cursor: pointer;
	color: var(--text-body);
	transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.envolve-chip.is-active {
	background: var(--gray-900);
	border-color: var(--gray-900);
	color: var(--white);
}
.envolve-chip:hover:not(.is-active) {
	border-color: var(--border-strong);
}

.envolve-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: var(--gold-100);
	color: var(--gold-800);
}
.envolve-badge--dark {
	background: rgba(20, 20, 20, 0.78);
	color: #fff;
	border: none;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.envolve-blog-cover {
	display: grid;
	place-items: center;
	position: relative;
	overflow: hidden;
}
.envolve-blog-cover__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.envolve-blog-cover__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(15, 15, 15, 0.42) 0%,
		rgba(15, 15, 15, 0.08) 42%,
		rgba(15, 15, 15, 0.18) 100%
	);
	pointer-events: none;
}
.envolve-blog-cover__icon {
	opacity: 0.92;
}
.envolve-blog-cover__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
}

.envolve-blog-cta .envolve-btn--outline {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: #fff;
}

.envolve-blog-card,
.envolve-blog-featured-link {
	display: block;
	color: inherit;
	text-decoration: none;
}
.envolve-blog-featured-link {
	margin-bottom: 40px;
}
.envolve-blog-card[hidden],
.envolve-blog-featured-link[hidden] {
	display: none !important;
}

.envolve-blog-featured-card {
	background: var(--white);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-card);
}
.envolve-blog-card-inner {
	background: var(--white);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	overflow: hidden;
	height: 100%;
	box-shadow: var(--shadow-card);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.envolve-post-hero {
	position: relative;
	overflow: hidden;
}
.envolve-post-hero--has-thumb {
	min-height: 360px;
}
.envolve-post-hero__media {
	position: absolute;
	inset: 0;
}
.envolve-post-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.envolve-post-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 15, 15, 0.55) 0%, rgba(15, 15, 15, 0.78) 100%);
}
.envolve-post-hero__icon {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	opacity: 0.1;
}
.envolve-post-hero__content {
	position: relative;
	z-index: 1;
}
.envolve-post-hero--has-thumb .envolve-post-hero__back,
.envolve-post-hero--has-thumb .envolve-post-hero__title,
.envolve-post-hero--has-thumb .envolve-post-hero__excerpt,
.envolve-post-hero--has-thumb .envolve-post-hero__meta {
	color: #fff;
}

.envolve-tag {
	display: inline-flex;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--gray-100);
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gray-600);
}
.envolve-prose > .wp-block-heading:first-child,
.envolve-prose > h1:first-child {
	/* Title already rendered by page/single template */
	display: none;
}
.envolve-prose h2,
.envolve-prose .wp-block-heading {
	font-family: var(--font-display);
	font-size: 26px;
	line-height: 1.28;
	letter-spacing: -0.02em;
	color: var(--text-heading);
	margin: 42px 0 16px;
	scroll-margin-top: 96px;
}
.envolve-prose h2:first-child,
.envolve-prose .wp-block-heading:first-of-type {
	margin-top: 0;
}
.envolve-prose p {
	font-size: 17.5px;
	line-height: 1.72;
	color: var(--text-body);
	margin-bottom: 22px;
}
.envolve-prose a {
	color: var(--gold-700);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.envolve-prose a:hover {
	color: var(--gold-800);
}
.envolve-prose ul {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.envolve-prose ul li {
	display: flex;
	gap: 12px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--text-body);
}
.envolve-prose ul li::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	background-repeat: no-repeat;
	background-position: center;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23C7A41C'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%206%209%2017l-5-5'/%3E%3C/svg%3E");
}
.envolve-prose blockquote {
	margin: 32px 0;
	padding: 26px 30px;
	background: var(--gray-100);
	border-left: 3px solid var(--gold-500);
	border-radius: 0 12px 12px 0;
}
.envolve-prose blockquote::before {
	content: "";
	display: block;
	width: 24px;
	height: 24px;
	margin-bottom: 12px;
	background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23DEB925'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%2021c3%200%207-1%207-8V5a2%202%200%200%200-2-2H4a2%202%200%200%200-2%202v6a2%202%200%200%200%202%202h2'/%3E%3Cpath%20d='M15%2021c3%200%207-1%207-8V5a2%202%200%200%200-2-2h-4a2%202%200%200%200-2%202v6a2%202%200%200%200%202%202h2'/%3E%3C/svg%3E");
}
.envolve-prose blockquote p {
	font-family: var(--font-display);
	font-size: 20px;
	line-height: 1.45;
	letter-spacing: -0.01em;
	color: var(--text-heading);
	font-style: normal;
	margin: 0;
}
.envolve-prose blockquote cite {
	display: block;
	margin-top: 14px;
	font-size: 13.5px;
	font-style: normal;
	color: var(--text-secondary);
}
.envolve-callout {
	margin: 32px 0;
	display: flex;
	gap: 16px;
	padding: 22px 24px;
	background: var(--gold-50);
	border: 1px solid var(--gold-100);
	border-radius: 14px;
}
.wp-block-envolve-callout {
	composes: envolve-callout;
}

.envolve-post-toc__nav {
	border: 1px solid var(--border-subtle);
	border-radius: 16px;
	padding: 22px;
	background: var(--white);
}
.envolve-post-toc__heading {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gray-500);
	margin-bottom: 14px;
}
.envolve-post-toc__links {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.envolve-post-toc__link {
	display: block;
	font-size: 14px;
	line-height: 1.4;
	color: var(--text-secondary);
	padding: 9px 0;
	border-bottom: 1px solid var(--border-subtle);
	text-decoration: none;
	transition: color var(--dur-fast) var(--ease-standard);
}
.envolve-post-toc__link:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
}
.envolve-post-toc__link:hover {
	color: var(--gold-700);
}
