/*
 * Shared long-form article layout.
 * Loaded only for the WordPress post type and additionally scoped here so
 * product, page, archive, header and footer presentation remain unchanged.
 */

body.single-post .wcf-article {
	--wcf-article-shell: 1320px;
	--wcf-article-copy: 740px;
	width: 100%;
	min-width: 0;
}

body.single-post .wcf-article-hero {
	align-items: stretch;
	background: var(--ui-background);
}

body.single-post .wcf-article-hero::before,
body.single-post .wcf-article-hero::after {
	display: none;
	content: none;
}

body.single-post .wcf-article-hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: none;
	opacity: 1;
}

body.single-post .wcf-article-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	width: min(calc(100% - 48px), var(--wcf-article-shell));
	min-height: 100svh;
	align-items: flex-end;
	margin-inline: auto;
	padding: clamp(138px, 18vh, 190px) 0 clamp(28px, 5vh, 52px);
}

body.single-post .wcf-article-hero__copy {
	width: min(100%, 660px);
	max-width: 660px;
	margin: 0;
	padding: clamp(30px, 3.2vw, 46px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--radius-section);
	background: #01373d;
	box-shadow: 0 24px 64px rgba(0, 24, 27, 0.24);
	color: #fff;
	backdrop-filter: none;
}

body.single-post .wcf-article-hero__copy > * {
	max-width: none;
}

body.single-post .wcf-article-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0 0 24px;
	color: rgba(255, 255, 255, 0.68);
	font-size: 12px;
	line-height: 1.45;
}

body.single-post .wcf-article-breadcrumb a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}

body.single-post .wcf-article-breadcrumb a:hover,
body.single-post .wcf-article-breadcrumb a:focus-visible {
	color: #ff8cae;
}

body.single-post .wcf-article-hero__category {
	display: inline-flex;
	margin: 0 0 18px;
	color: #ff8cae;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.11em;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
}

body.single-post .wcf-article-hero h1 {
	max-width: 100%;
	margin: 0;
	color: #fff;
	font-size: clamp(42px, 4.25vw, 64px);
	font-weight: 300;
	letter-spacing: -0.052em;
	line-height: 1;
	overflow-wrap: anywhere;
	text-shadow: none;
}

body.single-post .wcf-article-lead {
	max-width: 590px;
	margin: 24px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: clamp(17px, 1.25vw, 20px);
	line-height: 1.58;
	text-shadow: none;
}

body.single-post .wcf-article-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 9px 18px;
	margin: 28px 0 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	line-height: 1.45;
}

body.single-post .wcf-article-meta > * {
	position: relative;
}

body.single-post .wcf-article-meta > * + *::before {
	position: absolute;
	top: 0;
	left: -11px;
	color: #ff6d98;
	content: "•";
}

body.single-post .wcf-article-meta a {
	color: #fff;
	font-weight: 500;
	text-decoration-color: rgba(255, 255, 255, 0.42);
}

body.single-post .wcf-article-shell {
	display: grid;
	width: min(calc(100% - 48px), var(--wcf-article-shell));
	max-width: var(--wcf-article-shell);
	grid-template-columns: 220px minmax(0, var(--wcf-article-copy)) 260px;
	grid-template-areas:
		"toc article sidebar"
		"related related related"
		"back back back";
	column-gap: 40px;
	row-gap: 0;
	margin-inline: auto;
	padding: clamp(88px, 9vw, 128px) 0 clamp(110px, 10vw, 160px);
}

body.single-post .wcf-article-shell--without-toc {
	grid-template-columns: minmax(0, var(--wcf-article-copy)) 260px;
	grid-template-areas:
		"article sidebar"
		"related related"
		"back back";
	justify-content: center;
}

body.single-post .wcf-article-toc-column {
	grid-area: toc;
	min-width: 0;
}

body.single-post .wcf-article-toc,
body.single-post .wcf-article-sidebar > section {
	position: sticky;
	top: 124px;
}

body.admin-bar.single-post .wcf-article-toc,
body.admin-bar.single-post .wcf-article-sidebar > section {
	top: 156px;
}

body.single-post .wcf-article-toc {
	max-height: calc(100svh - 154px);
	overflow-y: auto;
	padding: 24px 18px;
	border: 1px solid rgba(1, 55, 61, 0.1);
	border-radius: var(--radius-card);
	background: #fff;
	scrollbar-width: thin;
}

body.single-post .wcf-article-toc__title {
	margin: 0 10px 18px;
	color: var(--ui-ink);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

body.single-post .wcf-article-toc__list {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.single-post .wcf-article-toc__item {
	margin: 0;
	padding: 0;
}

body.single-post .wcf-article-toc__item--h3 {
	padding-left: 14px;
}

body.single-post .wcf-article-toc__item a {
	display: block;
	padding: 9px 10px;
	border-left: 2px solid transparent;
	border-radius: 0 9px 9px 0;
	color: rgba(1, 55, 61, 0.68);
	font-size: 13px;
	line-height: 1.4;
	text-decoration: none;
	transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

body.single-post .wcf-article-toc__item--h3 a {
	font-size: 12px;
}

body.single-post .wcf-article-toc__item a:hover,
body.single-post .wcf-article-toc__item a[aria-current="location"] {
	border-left-color: var(--ui-accent);
	background: var(--ui-soft-pink);
	color: var(--ui-accent);
}

body.single-post .wcf-article-main-column {
	grid-area: article;
	min-width: 0;
}

body.single-post .wcf-article-toc-mobile {
	display: none;
}

body.single-post .wcf-article-content {
	width: 100%;
	max-width: var(--wcf-article-copy);
	margin: 0;
	color: rgba(1, 55, 61, 0.78);
	font-size: 18px;
	line-height: 1.78;
}

body.single-post .wcf-article-content > * {
	max-width: 100%;
}

body.single-post .wcf-article-content > :first-child {
	margin-top: 0;
}

body.single-post .wcf-article-content p {
	margin: 0 0 1.55em;
}

body.single-post .wcf-article-content h2 {
	margin: clamp(64px, 7vw, 80px) 0 22px;
	color: var(--ui-ink);
	font-size: clamp(36px, 3vw, 43px);
	font-weight: 300;
	letter-spacing: -0.045em;
	line-height: 1.08;
	scroll-margin-top: 132px;
}

body.single-post .wcf-article-content h3 {
	margin: 48px 0 18px;
	color: var(--ui-ink);
	font-size: clamp(25px, 2.1vw, 29px);
	font-weight: 400;
	letter-spacing: -0.035em;
	line-height: 1.16;
	scroll-margin-top: 132px;
}

body.single-post .wcf-article-content h4 {
	margin: 38px 0 15px;
	color: var(--ui-ink);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.24;
}

body.single-post .wcf-article-content ul,
body.single-post .wcf-article-content ol {
	margin: 0 0 1.7em;
	padding-left: 1.35em;
}

body.single-post .wcf-article-content li {
	margin-bottom: 0.62em;
	padding-left: 0.28em;
}

body.single-post .wcf-article-content li::marker {
	color: var(--ui-accent);
	font-weight: 600;
}

body.single-post .wcf-article-content a {
	color: var(--ui-accent);
	font-weight: 500;
	text-decoration-color: rgba(206, 26, 77, 0.42);
	text-decoration-thickness: 1px;
}

body.single-post .wcf-article-content a:hover,
body.single-post .wcf-article-content a:focus-visible {
	color: var(--ui-ink);
	text-decoration-color: currentColor;
}

body.single-post .wcf-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-card);
}

body.single-post .wcf-article-content figure {
	margin: 42px 0;
}

body.single-post .wcf-article-content figcaption {
	margin-top: 11px;
	color: rgba(1, 55, 61, 0.58);
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
}

body.single-post .wcf-article-content blockquote {
	margin: 44px 0;
	padding: 28px 30px;
	border: 0;
	border-left: 4px solid var(--ui-accent);
	border-radius: 0 var(--radius-card) var(--radius-card) 0;
	background: var(--ui-soft-pink);
	color: var(--ui-ink);
	font-size: clamp(20px, 1.8vw, 23px);
	line-height: 1.55;
}

body.single-post .wcf-article-content blockquote > :last-child {
	margin-bottom: 0;
}

body.single-post .wcf-article-content .wp-block-table,
body.single-post .wcf-article-content table {
	max-width: 100%;
	overflow-x: auto;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 12px;
	scrollbar-width: thin;
}

body.single-post .wcf-article-content table {
	display: block;
	width: 100%;
	margin: 38px 0;
	white-space: nowrap;
}

body.single-post .wcf-article-content th,
body.single-post .wcf-article-content td {
	min-width: 150px;
	padding: 14px 16px;
	border: 0;
	border-right: 1px solid rgba(1, 55, 61, 0.1);
	border-bottom: 1px solid rgba(1, 55, 61, 0.1);
	background: #fff;
	text-align: left;
	vertical-align: top;
}

body.single-post .wcf-article-content th {
	background: var(--ui-light-blue);
	color: var(--ui-ink);
	font-weight: 600;
}

body.single-post .wcf-article-content .wp-block-group {
	margin-bottom: 1.55em;
	padding: 0;
	border-radius: 0;
	background: transparent;
}

body.single-post .wcf-article-content .is-style-wcf-note,
body.single-post .wcf-article-content .wcf-note,
body.single-post .wcf-article-content .wp-block-group.is-style-wcf-note {
	padding: 24px 28px;
	border: 1px solid rgba(1, 55, 61, 0.1);
	border-radius: var(--radius-card);
	background: var(--ui-light-blue);
}

body.single-post .wcf-article-content .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px;
	border: 1px solid rgba(1, 55, 61, 0.1);
	border-radius: var(--radius-card);
	background: #fff;
}

body.single-post .wcf-article-content .wp-block-file__button,
body.single-post .wcf-article-content .wp-block-button__link {
	color: #fff;
	text-decoration: none;
}

body.single-post .wcf-article-content details,
body.single-post .wcf-article-content .wp-block-details {
	margin: 16px 0;
	padding: 18px 20px;
	border: 1px solid rgba(1, 55, 61, 0.12);
	border-radius: 12px;
	background: #fff;
}

body.single-post .wcf-article-content details summary {
	cursor: pointer;
	color: var(--ui-ink);
	font-weight: 600;
}

body.single-post .wcf-article-content details[open] summary {
	margin-bottom: 14px;
}

body.single-post .wcf-article-content pre,
body.single-post .wcf-article-content code {
	max-width: 100%;
	font-size: 0.88em;
}

body.single-post .wcf-article-content pre {
	overflow-x: auto;
	padding: 20px;
	border-radius: 12px;
	background: #082f34;
	color: #fff;
}

body.single-post .wcf-article-content iframe,
body.single-post .wcf-article-content video {
	max-width: 100%;
	border-radius: var(--radius-card);
}

body.single-post .wcf-article-content hr {
	margin: 58px 0;
	border: 0;
	border-top: 1px solid rgba(1, 55, 61, 0.14);
}

body.single-post .wcf-article-action {
	display: grid;
	min-height: 0;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 34px;
	margin: clamp(74px, 8vw, 96px) 0 0;
	padding: clamp(30px, 4vw, 46px);
	border: 1px solid rgba(206, 26, 77, 0.12);
	border-radius: var(--radius-section);
	background: var(--ui-section-gradient);
}

body.single-post .wcf-article-action h2 {
	max-width: 500px;
	margin: 0 0 14px;
	font-size: clamp(30px, 2.7vw, 38px);
	font-weight: 300;
	line-height: 1.08;
}

body.single-post .wcf-article-action p:not(.wcf-eyebrow) {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
}

body.single-post .wcf-article-action__links {
	display: flex;
	min-width: 180px;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
}

body.single-post .wcf-article-action__links .wcf-button {
	width: 100%;
	white-space: nowrap;
}

body.single-post .wcf-article-sidebar {
	grid-area: sidebar;
	min-width: 0;
}

body.single-post .wcf-article-author-card,
body.single-post .wcf-article-inquiry-card {
	padding: 28px;
	border: 1px solid rgba(1, 55, 61, 0.1);
	border-radius: var(--radius-section);
	background: #fff;
	box-shadow: var(--ui-shadow-card);
}

body.single-post .wcf-article-author-card img {
	width: 88px;
	height: 88px;
	margin-bottom: 20px;
	border-radius: 50%;
	object-fit: cover;
}

body.single-post .wcf-article-author-card h2,
body.single-post .wcf-article-inquiry-card h2 {
	margin: 0 0 14px;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.08;
}

body.single-post .wcf-article-author-card p:not(.wcf-eyebrow),
body.single-post .wcf-article-inquiry-card p:not(.wcf-eyebrow) {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.62;
}

body.single-post .wcf-article-inquiry-card .wcf-button {
	width: 100%;
	padding-inline: 18px;
}

body.single-post .wcf-related-articles {
	grid-area: related;
	margin: clamp(110px, 11vw, 160px) 0 72px;
}

body.single-post .wcf-related-articles .wcf-blog-section-heading {
	margin-bottom: 42px;
}

body.single-post .wcf-related-articles .wcf-blog-card__media {
	aspect-ratio: 16 / 9;
}

body.single-post .wcf-back-to-blog {
	grid-area: back;
	justify-self: start;
	min-height: 44px;
	padding: 10px 0;
	color: var(--ui-ink);
}

@media (max-width: 1180px) {
	body.single-post .wcf-article-shell,
	body.single-post .wcf-article-shell--without-toc {
		width: min(calc(100% - 48px), 820px);
		grid-template-columns: minmax(0, var(--wcf-article-copy));
		grid-template-areas:
			"article"
			"sidebar"
			"related"
			"back";
		justify-content: center;
		row-gap: 0;
	}

	body.single-post .wcf-article-toc-column {
		display: none;
	}

	body.single-post .wcf-article-toc-mobile {
		display: block;
		margin: 0 0 54px;
		border: 1px solid rgba(1, 55, 61, 0.12);
		border-radius: var(--radius-card);
		background: #fff;
	}

	body.single-post .wcf-article-toc-mobile summary {
		display: flex;
		min-height: 58px;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 16px 20px;
		cursor: pointer;
		color: var(--ui-ink);
		font-size: 14px;
		font-weight: 600;
		letter-spacing: 0.08em;
		list-style: none;
		text-transform: uppercase;
	}

	body.single-post .wcf-article-toc-mobile summary::-webkit-details-marker {
		display: none;
	}

	body.single-post .wcf-article-toc-mobile summary span {
		position: relative;
		width: 18px;
		height: 18px;
		flex: 0 0 18px;
	}

	body.single-post .wcf-article-toc-mobile summary span::before,
	body.single-post .wcf-article-toc-mobile summary span::after {
		position: absolute;
		top: 8px;
		left: 2px;
		width: 14px;
		height: 2px;
		background: var(--ui-accent);
		content: "";
	}

	body.single-post .wcf-article-toc-mobile summary span::after {
		transform: rotate(90deg);
		transition: transform 180ms ease;
	}

	body.single-post .wcf-article-toc-mobile[open] summary span::after {
		transform: rotate(0);
	}

	body.single-post .wcf-article-toc-mobile nav {
		padding: 0 12px 16px;
	}

	body.single-post .wcf-article-sidebar {
		margin-top: 54px;
	}

	body.single-post .wcf-article-sidebar > section {
		position: static;
		width: 100%;
	}
}

@media (max-width: 900px) {
	body.single-post .wcf-related-articles .wcf-blog-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 782px) {
	body.single-post .wcf-article-hero__inner {
		width: calc(100% - 32px);
		padding: 118px 0 16px;
	}

	body.single-post .wcf-article-hero__copy {
		width: 100%;
		max-width: none;
		padding: 24px;
		border-radius: 16px;
	}

	body.single-post .wcf-article-breadcrumb {
		margin-bottom: 18px;
		font-size: 11px;
	}

	body.single-post .wcf-article-hero__category {
		margin-bottom: 14px;
		font-size: 11px;
	}

	body.single-post .wcf-article-hero h1 {
		font-size: clamp(34px, 10.6vw, 44px);
		line-height: 1.02;
	}

	body.single-post .wcf-article-lead {
		margin-top: 18px;
		font-size: 16px;
		line-height: 1.52;
	}

	body.single-post .wcf-article-meta {
		gap: 8px 16px;
		margin-top: 20px;
		font-size: 12px;
	}

	body.single-post .wcf-article-shell,
	body.single-post .wcf-article-shell--without-toc {
		width: calc(100% - 32px);
		padding: 70px 0 112px;
	}

	body.single-post .wcf-article-toc-mobile {
		margin-bottom: 44px;
	}

	body.single-post .wcf-article-content {
		font-size: 16.5px;
		line-height: 1.75;
	}

	body.single-post .wcf-article-content h2 {
		margin-top: 64px;
		font-size: clamp(31px, 9vw, 36px);
		scroll-margin-top: 96px;
	}

	body.single-post .wcf-article-content h3 {
		margin-top: 42px;
		font-size: clamp(23px, 6.6vw, 27px);
		scroll-margin-top: 96px;
	}

	body.single-post .wcf-article-content blockquote {
		padding: 22px;
		font-size: 19px;
	}

	body.single-post .wcf-article-content .wp-block-file {
		align-items: stretch;
		flex-direction: column;
	}

	body.single-post .wcf-article-content .wp-block-file__button,
	body.single-post .wcf-article-content .wp-block-buttons,
	body.single-post .wcf-article-content .wp-block-button,
	body.single-post .wcf-article-content .wp-block-button__link {
		width: 100%;
	}

	body.single-post .wcf-article-action {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
		padding: 28px 22px;
	}

	body.single-post .wcf-article-action h2 {
		font-size: 32px;
	}

	body.single-post .wcf-article-action__links {
		width: 100%;
	}

	body.single-post .wcf-article-author-card,
	body.single-post .wcf-article-inquiry-card {
		padding: 24px;
	}

	body.single-post .wcf-related-articles {
		margin: 96px 0 54px;
	}
}

@media (max-width: 480px) {
	body.single-post .wcf-article-hero__copy {
		padding: 22px;
	}

	body.single-post .wcf-article-hero h1 {
		font-size: 34px;
	}

	body.single-post .wcf-article-meta > * + *::before {
		display: none;
	}

	body.single-post .wcf-article-meta {
		align-items: flex-start;
		flex-direction: column;
	}

	body.single-post .wcf-article-content table {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.single-post .wcf-article-toc__item a,
	body.single-post .wcf-article-toc-mobile summary span::after {
		transition: none;
	}
}

/* 3.5.1 — stable related media and touch-sized article navigation. */

body.single-post .wcf-article-breadcrumb a,
body.single-post .wcf-article-hero__category,
body.single-post .wcf-article-toc__item a,
body.single-post .wcf-article-author-card .wcf-text-link,
body.single-post .wcf-back-to-blog {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
}

body.single-post .wcf-article-toc__item a {
	width: 100%;
	padding-top: 10px;
	padding-bottom: 10px;
}

body.single-post .wcf-related-articles .wcf-blog-card__media,
body.single-post .wcf-related-articles .wcf-blog-card__media > picture {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

body.single-post .wcf-related-articles .wcf-blog-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.single-post :is(.wcf-article-breadcrumb a, .wcf-article-hero__category, .wcf-article-toc__item a, .wcf-article-content a, .wcf-back-to-blog):focus-visible {
	outline: 3px solid #ff4779;
	outline-offset: 3px;
}

@media (max-width: 599px) {
	body.single-post .wcf-article-toc-mobile nav {
		padding-right: 8px;
		padding-left: 8px;
	}

	body.single-post .wcf-article-toc__item--h3 {
		padding-left: 10px;
	}

	body.single-post .wcf-article-breadcrumb {
		gap: 2px 7px;
		margin-bottom: 12px;
	}

	body.single-post .wcf-article-breadcrumb a {
		padding: 7px 2px;
	}
}

/* 3.6.5 — uncropped article Hero and related-media cards on touch layouts. */
@media (max-width: 1023px) {
	body.single-post :is(.wcf-article-hero__picture, .wcf-related-articles .wcf-blog-card__media) {
		background: #f4f3ef;
	}

	body.single-post :is(.wcf-article-hero__picture, .wcf-related-articles .wcf-blog-card__media) img {
		object-fit: contain !important;
		object-position: center center !important;
		filter: none !important;
		transform: none !important;
	}

	body.single-post .wcf-article-content :is(img, video) {
		width: auto;
		max-width: 100%;
		height: auto;
	}
}
