/* JuiceDetox editorial single posts. Loaded only on standard blog posts. */

.jd-post-page {
	--jd-dark: #1c2b2a;
	--jd-text: #2e4e4b;
	--jd-muted: #5a6e6b;
	--jd-aqua: #3ab8ae;
	--jd-aqua-dark: #1e9b91;
	--jd-mint: #e8f7f5;
	--jd-mint-strong: #c2ebe7;
	--jd-cream: #f5efe6;
	--jd-orange: #f0a030;
	--jd-orange-dark: #d88c20;
	--jd-border: #d4edea;
	background: var(--jd-cream);
	color: var(--jd-text);
	font-family: 'Poppins', sans-serif;
	overflow: clip;
}

#top .jd-post-page a:focus-visible {
	outline: 3px solid var(--jd-orange);
	outline-offset: 4px;
}

.jd-post-hero {
	align-items: flex-end;
	display: flex;
	min-height: clamp(600px, 68vh, 690px);
	overflow: hidden;
	position: relative;
}

.jd-post-hero__image {
	height: 100%;
	inset: 0;
	max-width: none;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

.jd-post-hero__overlay {
	background: linear-gradient(90deg, rgba(12, 31, 29, 0.83) 0%, rgba(12, 31, 29, 0.58) 48%, rgba(12, 31, 29, 0.16) 82%), linear-gradient(0deg, rgba(11, 28, 27, 0.4), transparent 52%);
	inset: 0;
	position: absolute;
}

.jd-post-hero--fallback {
	background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.78), transparent 30%), linear-gradient(135deg, var(--jd-mint-strong), var(--jd-cream));
}

.jd-post-hero--fallback .jd-post-hero__overlay {
	background: linear-gradient(90deg, rgba(232, 247, 245, 0.18), rgba(245, 239, 230, 0.3));
}

.jd-post-hero::after {
	background: var(--jd-cream);
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
	bottom: -1px;
	content: '';
	height: 38px;
	left: -5%;
	pointer-events: none;
	position: absolute;
	width: 110%;
	z-index: 2;
}

.jd-post-hero__inner {
	box-sizing: border-box;
	color: #fff;
	margin: 0 auto;
	max-width: 1240px;
	padding: 100px 48px 100px;
	position: relative;
	width: 100%;
	z-index: 1;
}

.jd-post-hero--fallback .jd-post-hero__inner {
	color: var(--jd-dark);
}

#top .jd-post-hero__category {
	background: rgba(232, 247, 245, 0.94);
	border-radius: 999px;
	color: var(--jd-aqua-dark);
	display: inline-flex;
	font-family: 'Barlow', sans-serif;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.15em;
	margin-bottom: 22px;
	padding: 8px 16px;
	text-decoration: none;
	text-transform: uppercase;
}

#top .jd-post-hero__category:hover {
	background: #fff;
	color: var(--jd-aqua-dark);
}

#top .jd-post-hero__title {
	color: inherit;
	font-family: 'Gazpacho', 'Playfair Display', Georgia, serif !important;
	font-size: clamp(52px, 6.1vw, 88px) !important;
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 0.98;
	margin: 0;
	max-width: 760px;
	text-wrap: balance;
}

.jd-post-hero__excerpt {
	color: inherit !important;
	font-family: 'Poppins', sans-serif !important;
	font-size: clamp(17px, 1.35vw, 21px) !important;
	line-height: 1.6 !important;
	margin: 26px 0 0 !important;
	max-width: 650px;
	opacity: 0.94;
}

.jd-post-hero__meta {
	align-items: center;
	display: flex;
	gap: 14px;
	margin-top: 34px;
}

.jd-post-hero__avatar {
	border: 2px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	height: 52px;
	object-fit: cover;
	width: 52px;
}

.jd-post-hero--fallback .jd-post-hero__avatar {
	border-color: rgba(30, 155, 145, 0.3);
}

.jd-post-hero__byline {
	display: grid;
	font-family: 'Barlow', sans-serif;
	font-size: 14px;
	font-weight: 700;
	gap: 2px;
}

.jd-post-hero__details {
	align-items: center;
	display: flex;
	font-size: 13px;
	font-weight: 400;
	gap: 8px;
	opacity: 0.82;
}

.jd-post-shell {
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 1240px;
	padding: clamp(68px, 7vw, 104px) 48px clamp(76px, 8vw, 120px);
}

.jd-post-layout {
	display: grid;
	grid-template-areas: 'content sidebar';
	grid-template-columns: minmax(0, 780px) minmax(280px, 320px);
	gap: clamp(48px, 5.6vw, 80px);
	justify-content: space-between;
}

.jd-post-layout--without-toc {
	display: block;
}

.jd-post-layout--without-toc .jd-post-content {
	margin-inline: auto;
	max-width: 780px;
}

.jd-post-content {
	grid-area: content;
	min-width: 0;
}

.jd-post-sidebar {
	grid-area: sidebar;
	min-width: 0;
}

.jd-post-toc {
	background: linear-gradient(145deg, var(--jd-mint), #dff3f0);
	border: 1px solid rgba(58, 184, 174, 0.16);
	border-radius: 18px;
	box-shadow: 0 12px 34px rgba(28, 43, 42, 0.06);
	max-height: calc(100vh - 150px);
	overflow: auto;
	padding: 30px 28px;
	position: sticky;
	top: 120px;
}

.jd-post-toc__title {
	color: var(--jd-aqua-dark) !important;
	font-family: 'Barlow', sans-serif !important;
	font-size: 12px !important;
	font-weight: 800;
	letter-spacing: 0.16em;
	margin: 0 0 18px !important;
	text-transform: uppercase;
}

.jd-post-toc ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.jd-post-toc li + li {
	border-top: 1px solid rgba(30, 155, 145, 0.13);
}

#top .jd-post-toc a {
	color: var(--jd-dark);
	display: block;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	padding: 12px 0 12px 18px;
	position: relative;
	text-decoration: none;
}

#top .jd-post-toc a::before {
	color: var(--jd-aqua-dark);
	content: '\203A';
	font-size: 23px;
	left: 0;
	line-height: 1;
	position: absolute;
	top: 10px;
}

#top .jd-post-toc a:hover {
	color: var(--jd-aqua-dark);
}

.jd-post-content,
.jd-post-content p,
.jd-post-content li,
.jd-post-content td,
.jd-post-content th {
	font-family: 'Poppins', sans-serif;
}

#top .jd-post-content p,
#top .jd-post-content li {
	color: var(--jd-text);
	font-size: 18px;
	line-height: 1.78;
}

#top .jd-post-content p {
	margin: 0 0 22px;
}

#top .jd-post-content > p:first-of-type {
	color: var(--jd-dark);
	font-family: 'Gazpacho', 'Playfair Display', Georgia, serif !important;
	font-size: clamp(22px, 2vw, 25px) !important;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.5 !important;
	margin-bottom: 34px;
}

#top .jd-post-content h2,
#top .jd-post-content h3,
#top .jd-post-content h4 {
	color: var(--jd-dark);
	font-family: 'Gazpacho', 'Playfair Display', Georgia, serif !important;
	font-weight: 800;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

#top .jd-post-content h2 {
	font-size: clamp(36px, 4vw, 48px);
	line-height: 1.08;
	margin: clamp(64px, 7vw, 82px) 0 26px;
	scroll-margin-top: 130px;
}

#top .jd-post-content h3 {
	font-size: clamp(27px, 3vw, 34px);
	line-height: 1.16;
	margin: 48px 0 20px;
}

#top .jd-post-content h4 {
	font-size: clamp(22px, 2.5vw, 27px);
	line-height: 1.25;
	margin: 38px 0 16px;
}

#top .jd-post-content a {
	color: var(--jd-aqua-dark);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(30, 155, 145, 0.4);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

#top .jd-post-content a:hover {
	color: var(--jd-dark);
	text-decoration-color: var(--jd-orange);
}

.jd-post-content strong {
	color: var(--jd-dark);
}

.jd-post-content > ul,
.jd-post-content .wp-block-list:not(ol) {
	list-style: none;
	margin: 26px 0 30px;
	padding-left: 0;
}

.jd-post-content > ul > li,
.jd-post-content .wp-block-list:not(ol) > li {
	padding-left: 30px;
	position: relative;
}

.jd-post-content > ul > li + li,
.jd-post-content .wp-block-list:not(ol) > li + li {
	margin-top: 10px;
}

.jd-post-content > ul > li::before,
.jd-post-content .wp-block-list:not(ol) > li::before {
	background: var(--jd-mint-strong);
	border-radius: 50%;
	color: var(--jd-aqua-dark);
	content: '\2713';
	font-family: 'Barlow', sans-serif;
	font-size: 11px;
	font-weight: 800;
	height: 19px;
	left: 0;
	line-height: 19px;
	position: absolute;
	text-align: center;
	top: 7px;
	width: 19px;
}

.jd-post-content ul ul {
	list-style: disc;
	margin: 12px 0 0;
	padding-left: 24px;
}

.jd-post-content ol {
	margin: 26px 0 30px;
	padding-left: 28px;
}

.jd-post-content ol li + li {
	margin-top: 10px;
}

#top .jd-post-content blockquote,
#top .jd-post-content .wp-block-quote {
	background: var(--jd-mint);
	border: 0;
	border-radius: 18px;
	color: var(--jd-dark);
	margin: clamp(48px, 6vw, 72px) 0;
	padding: clamp(36px, 5vw, 54px);
	position: relative;
}

#top .jd-post-content blockquote::before {
	color: var(--jd-aqua);
	content: '\201C';
	font-family: Georgia, serif;
	font-size: 86px;
	left: 28px;
	line-height: 1;
	opacity: 0.65;
	position: absolute;
	top: 15px;
}

#top .jd-post-content blockquote p {
	color: var(--jd-dark);
	font-family: 'Gazpacho', 'Playfair Display', Georgia, serif !important;
	font-size: clamp(23px, 2.4vw, 30px);
	font-weight: 800;
	line-height: 1.45;
	margin: 0;
	position: relative;
}

#top .jd-post-content blockquote cite {
	color: var(--jd-muted);
	display: block;
	font-family: 'Barlow', sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	margin-top: 18px;
}

.jd-post-content figure,
.jd-post-content > img,
.jd-post-content .wp-block-image,
.jd-post-content .wp-block-gallery,
.jd-post-content .wp-block-table {
	margin-bottom: clamp(38px, 5vw, 58px);
	margin-top: clamp(38px, 5vw, 58px);
}

.jd-post-content img {
	height: auto;
	max-width: 100%;
}

.jd-post-content figure > img,
.jd-post-content > img,
.jd-post-content .wp-block-image img,
.jd-post-content .wp-block-gallery img {
	border-radius: 16px;
}

.jd-post-content .wp-block-image img,
.jd-post-content figure > img {
	width: 100%;
}

.jd-post-content figcaption {
	color: var(--jd-muted);
	font-family: 'Barlow', sans-serif;
	font-size: 13px;
	line-height: 1.55;
	margin-top: 12px;
	text-align: center;
}

.jd-post-content .alignleft {
	float: left;
	margin: 8px 32px 24px 0;
	max-width: 48%;
}

.jd-post-content .alignright {
	float: right;
	margin: 8px 0 24px 32px;
	max-width: 48%;
}

.jd-post-content .aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.jd-post-content .alignwide,
.jd-post-content .alignfull {
	clear: both;
	max-width: 100%;
	width: 100%;
}

.jd-post-content::after {
	clear: both;
	content: '';
	display: table;
}

.jd-post-content table {
	border: 1px solid var(--jd-border);
	border-collapse: collapse;
	display: block;
	font-size: 16px;
	margin: 42px 0;
	overflow-x: auto;
	width: 100%;
}

.jd-post-content th,
.jd-post-content td {
	border: 1px solid var(--jd-border);
	padding: 14px 16px;
	text-align: left;
}

.jd-post-content th {
	background: var(--jd-mint);
	color: var(--jd-dark);
}

#top .jd-post-content .wp-block-button__link,
#top .jd-post-content .wp-element-button {
	background: var(--jd-orange);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 7px 20px rgba(240, 160, 48, 0.24);
	color: #fff;
	display: inline-block;
	font-family: 'Barlow', sans-serif;
	font-size: 14px;
	font-weight: 800;
	padding: 14px 25px;
	text-decoration: none;
}

#top .jd-post-content .wp-block-button__link:hover,
#top .jd-post-content .wp-element-button:hover {
	background: var(--jd-orange-dark);
	color: #fff;
}

.jd-post-tags {
	border-top: 1px solid var(--jd-border);
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 64px;
	padding-top: 30px;
}

#top .jd-post-tags a {
	background: var(--jd-mint);
	border-radius: 999px;
	color: var(--jd-aqua-dark);
	font-family: 'Barlow', sans-serif;
	font-size: 13px;
	font-weight: 700;
	padding: 7px 14px;
	text-decoration: none;
}

#top .jd-post-tags a:hover {
	background: var(--jd-mint-strong);
}

.jd-post-author {
	align-items: center;
	background: rgba(255, 255, 255, 0.56);
	border: 1px solid rgba(58, 184, 174, 0.15);
	border-radius: 18px;
	display: flex;
	gap: 24px;
	margin-top: 54px;
	padding: 28px;
}

.jd-post-author__avatar {
	border-radius: 50%;
	flex: 0 0 auto;
	height: 88px;
	object-fit: cover;
	width: 88px;
}

#top .jd-post-content .jd-post-author__eyebrow,
.jd-post-cta__eyebrow,
.jd-post-related__eyebrow {
	color: var(--jd-aqua-dark) !important;
	font-family: 'Barlow', sans-serif !important;
	font-size: 11px !important;
	font-weight: 800;
	letter-spacing: 0.16em;
	margin: 0 0 5px !important;
	text-transform: uppercase;
}

#top .jd-post-content .jd-post-author__name {
	color: var(--jd-dark);
	font-family: 'Gazpacho', 'Playfair Display', Georgia, serif !important;
	font-size: 28px;
	line-height: 1.1;
	margin: 0 0 8px;
}

#top .jd-post-content .jd-post-author__bio {
	font-size: 14px;
	line-height: 1.6;
	margin: 0 0 8px;
}

#top .jd-post-author__link,
#top .jd-post-related__link {
	color: var(--jd-aqua-dark);
	font-family: 'Barlow', sans-serif;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

#top .jd-post-author__link:hover,
#top .jd-post-related__link:hover {
	color: var(--jd-dark);
}

.jd-post-cta {
	align-items: center;
	background: linear-gradient(125deg, var(--jd-mint-strong), var(--jd-mint));
	border-radius: 22px;
	display: grid;
	gap: 38px;
	grid-template-columns: minmax(0, 1fr) auto;
	margin-top: clamp(74px, 8vw, 112px);
	overflow: hidden;
	padding: clamp(36px, 5vw, 58px);
	position: relative;
}

.jd-post-cta::after {
	background: rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	content: '';
	height: 260px;
	position: absolute;
	right: -100px;
	top: -150px;
	width: 260px;
}

#top .jd-post-cta h2 {
	color: var(--jd-dark);
	font-family: 'Gazpacho', 'Playfair Display', Georgia, serif !important;
	font-size: clamp(34px, 4vw, 48px);
	letter-spacing: -0.025em;
	line-height: 1.05;
	margin: 0 0 12px;
}

#top .jd-post-cta p:not(.jd-post-cta__eyebrow) {
	color: var(--jd-text);
	font-size: 17px;
	line-height: 1.6;
	margin: 0;
}

#top .jd-post-cta__button {
	background: var(--jd-orange);
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(216, 140, 32, 0.28);
	color: #fff;
	font-family: 'Barlow', sans-serif;
	font-size: 14px;
	font-weight: 800;
	padding: 16px 25px;
	position: relative;
	text-decoration: none;
	transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
	white-space: nowrap;
	z-index: 1;
}

#top .jd-post-cta__button:hover {
	background: var(--jd-orange-dark);
	box-shadow: 0 11px 30px rgba(216, 140, 32, 0.34);
	color: #fff;
	transform: translateY(-2px);
}

.jd-post-related {
	background: #fff;
	padding: clamp(76px, 8vw, 112px) 48px;
}

.jd-post-related__inner {
	margin: 0 auto;
	max-width: 1240px;
}

#top .jd-post-related h2 {
	color: var(--jd-dark);
	font-family: 'Gazpacho', 'Playfair Display', Georgia, serif !important;
	font-size: clamp(38px, 4.5vw, 54px);
	letter-spacing: -0.025em;
	line-height: 1.05;
	margin: 0 0 38px;
}

.jd-post-related__grid {
	display: grid;
	gap: 26px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jd-post-related__card {
	background: var(--jd-cream);
	border-radius: 17px;
	box-shadow: 0 12px 32px rgba(28, 43, 42, 0.06);
	overflow: hidden;
}

.jd-post-related__image {
	aspect-ratio: 16 / 10;
	display: block;
	overflow: hidden;
}

.jd-post-related__image img,
.jd-post-related__placeholder {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
	width: 100%;
}

.jd-post-related__placeholder {
	background: linear-gradient(135deg, var(--jd-mint-strong), var(--jd-cream));
}

.jd-post-related__card:hover .jd-post-related__image img {
	transform: scale(1.025);
}

.jd-post-related__body {
	padding: 24px;
}

#top .jd-post-related__body h3 {
	font-family: 'Gazpacho', 'Playfair Display', Georgia, serif !important;
	font-size: 25px;
	line-height: 1.18;
	margin: 0 0 17px;
}

#top .jd-post-related__body h3 a {
	color: var(--jd-dark);
	text-decoration: none;
}

#top .jd-post-related__body h3 a:hover {
	color: var(--jd-aqua-dark);
}

.jd-post-comments {
	background: var(--jd-cream);
	padding: 70px max(48px, calc((100vw - 780px) / 2)) 100px;
}

@media (max-width: 1024px) {
	.jd-post-hero__inner,
	.jd-post-shell,
	.jd-post-related {
		padding-left: 32px;
		padding-right: 32px;
	}

	.jd-post-layout {
		gap: 50px;
		grid-template-areas: 'sidebar' 'content';
		grid-template-columns: minmax(0, 1fr);
	}

	.jd-post-content,
	.jd-post-sidebar {
		margin-inline: auto;
		max-width: 780px;
		width: 100%;
	}

	.jd-post-toc {
		max-height: none;
		padding: 28px 26px;
		position: static;
	}

	.jd-post-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.jd-post-hero {
		min-height: clamp(470px, 72vh, 570px);
	}

	.jd-post-hero__overlay {
		background: linear-gradient(0deg, rgba(12, 31, 29, 0.83) 0%, rgba(12, 31, 29, 0.46) 68%, rgba(12, 31, 29, 0.18) 100%);
	}

	.jd-post-hero__inner {
		padding: 78px 22px 78px;
	}

	#top .jd-post-hero__title {
		font-size: clamp(36px, 10vw, 52px) !important;
		line-height: 1.02;
		overflow-wrap: break-word;
		text-wrap: wrap;
	}

	.jd-post-hero__excerpt {
		display: -webkit-box;
		font-size: 16px !important;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
	}

	.jd-post-hero__meta {
		margin-top: 26px;
	}

	.jd-post-hero::after {
		height: 26px;
	}

	.jd-post-shell {
		padding: 54px 22px 76px;
	}

	.jd-post-layout {
		display: grid;
		gap: 44px;
		grid-template-areas: 'sidebar' 'content';
		grid-template-columns: minmax(0, 1fr);
	}

	.jd-post-layout--without-toc {
		display: block;
	}

	.jd-post-toc {
		max-height: none;
		padding: 25px 22px;
		position: static;
	}

	#top .jd-post-content p,
	#top .jd-post-content li {
		font-size: 17px;
		line-height: 1.72;
	}

	#top .jd-post-content > p:first-of-type {
		font-size: 21px !important;
		line-height: 1.48 !important;
	}

	#top .jd-post-content h2 {
		margin-top: 58px;
		scroll-margin-top: 90px;
	}

	.jd-post-content .alignleft,
	.jd-post-content .alignright {
		float: none;
		margin: 36px 0;
		max-width: 100%;
	}

	#top .jd-post-content blockquote,
	#top .jd-post-content .wp-block-quote {
		padding: 38px 26px 30px;
	}

	#top .jd-post-content blockquote::before {
		font-size: 66px;
		left: 18px;
		top: 9px;
	}

	.jd-post-author {
		align-items: flex-start;
		flex-direction: column;
		gap: 18px;
		padding: 24px;
	}

	.jd-post-author__avatar {
		height: 72px;
		width: 72px;
	}

	.jd-post-cta {
		align-items: start;
		gap: 26px;
		grid-template-columns: 1fr;
		padding: 34px 26px;
	}

	#top .jd-post-cta__button {
		justify-self: start;
	}

	.jd-post-related {
		padding: 70px 22px 82px;
	}

	.jd-post-related__grid {
		grid-template-columns: 1fr;
	}

	.jd-post-comments {
		padding: 56px 22px 80px;
	}
}

@media (max-width: 400px) {
	.jd-post-hero__details {
		align-items: flex-start;
		flex-direction: column;
		gap: 0;
	}

	.jd-post-hero__details > span[aria-hidden='true'] {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jd-post-page *,
	.jd-post-page *::before,
	.jd-post-page *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
