/* =============================================================================
   Single post — blog detail layout

   Two columns on desktop (article ~70% / sticky sidebar ~30%), sidebar below the
   article on tablet, single column on mobile.

   Reuses the theme's existing tokens throughout (--yd-primary, --yd-heading,
   --yd-body, --yd-line, --yd-font, --yd-container) and the shared .btn base —
   no new type scale or colour system is introduced here.

   @package yendigital
============================================================================= */
.post-single {
	--post-gap: clamp( 32px, 4vw, 72px );
	--post-radius: 20px;
	/* Sticky offset: clear of the sticky site header. */
	--post-sticky-top: 116px;
	background: #fff;
}

/* -----------------------------------------------------------------------------
   Reveal — shared by the JS-observed blocks. Without JS nothing gets .is-reveal
   so everything simply renders visible.
----------------------------------------------------------------------------- */
.post-single .is-reveal {
	opacity: 0;
	transform: translateY( 18px );
	transition: opacity 0.7s cubic-bezier( 0.22, 1, 0.36, 1 ), transform 0.7s cubic-bezier( 0.22, 1, 0.36, 1 );
	will-change: opacity, transform;
}
.post-single .is-reveal.is-revealed {
	opacity: 1;
	transform: none;
}

/* =============================================================================
   Hero
============================================================================= */
.post-hero {
	padding: clamp( 40px, 5vw, 80px ) 0 0;
}
.post-hero__container {
	max-width: 1080px;
}
.post-hero__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	font-family: var( --yd-font );
	font-size: 14px;
	line-height: 1;
}
.post-hero__category {
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba( 255, 57, 81, 0.1 );
	color: var( --yd-primary );
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	font-size: 12px;
	transition: background 0.25s ease, color 0.25s ease;
}
.post-hero__category:hover,
.post-hero__category:focus-visible {
	background: var( --yd-primary );
	color: #fff;
}
.post-hero__meta-item {
	position: relative;
	padding-left: 20px;
	color: var( --yd-body );
}
/* Dot separators drawn in CSS rather than as markup. */
.post-hero__meta-item::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 6px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.5;
	transform: translateY( -50% );
}
.post-hero__title {
	margin: clamp( 18px, 2vw, 28px ) 0 0;
	max-width: 22em;
	font-size: clamp( 30px, 4vw, 54px );
	line-height: 1.14;
	letter-spacing: -0.01em;
}
.post-hero__excerpt {
	margin: clamp( 14px, 1.6vw, 22px ) 0 0;
	max-width: 44em;
	color: var( --yd-body );
	font-size: clamp( 16px, 1.3vw, 20px );
	line-height: 1.62;
}
.post-hero__figure {
	overflow: hidden;
	margin: clamp( 28px, 3.4vw, 52px ) 0 0;
	border-radius: var( --post-radius );
	background: #f4f4f6;
}
.post-hero__image {
	display: block;
	width: 100%;
	height: auto;
}

/* --- Author card --- */
.post-author-card {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: clamp( 16px, 2vw, 28px );
	margin-top: clamp( 20px, 2.4vw, 32px );
	padding: clamp( 18px, 1.8vw, 26px );
	border: 1px solid var( --yd-line );
	border-radius: 16px;
	background: #fcfcfd;
}
.post-author-card__avatar {
	flex-shrink: 0;
	overflow: hidden;
	width: 52px;
	height: 52px;
	border-radius: 50%;
}
.post-author-card__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.post-author-card__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	margin-right: auto;
}
.post-author-card__name {
	color: var( --yd-heading );
	font-family: var( --yd-font );
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
}
.post-author-card__role {
	color: var( --yd-body );
	font-size: 14px;
	line-height: 1.35;
}
.post-author-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: clamp( 18px, 2vw, 34px );
	margin: 0;
}
.post-author-card__fact dt {
	color: var( --yd-body );
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.post-author-card__fact dd {
	margin: 4px 0 0;
	color: var( --yd-heading );
	font-family: var( --yd-font );
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
}

/* =============================================================================
   Body grid
============================================================================= */
.post-body {
	padding: clamp( 40px, 5vw, 76px ) 0 clamp( 48px, 6vw, 96px );
}
/* Three tracks while the share rail is visible: rail · article · sidebar.
   The rail is a direct child of this grid, and a grid item ignores `float` — so
   giving it its own narrow track is what keeps the article and sidebar in one
   row. The two-track form is restored at the breakpoint where the rail hides. */
.post-body__container {
	position: relative;
	display: grid;
	grid-template-columns: 48px minmax( 0, 1fr ) minmax( 0, 30% );
	align-items: start;
	gap: var( --post-gap );
}

/* --- Floating share rail --- */
.post-share-rail {
	position: sticky;
	top: var( --post-sticky-top );
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.post-share-rail__label {
	color: var( --yd-body );
	font-family: var( --yd-font );
	font-weight: 700;
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	writing-mode: vertical-rl;
}
.post-share-rail__link,
.post-share__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var( --yd-line );
	border-radius: 50%;
	background: #fff;
	color: var( --yd-heading );
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.post-share-rail__link svg,
.post-share__link svg {
	width: 17px;
	height: 17px;
}

/* Brand colour on hover — the one place the palette steps outside the theme
   tokens, because a share button that does not show its network's colour reads
   as decoration rather than an action. */
@media ( hover: hover ) and ( pointer: fine ) {
	.post-share-rail__link:hover,
	.post-share__link:hover {
		transform: translateY( -2px );
		color: #fff;
	}
	.post-share-rail__link--linkedin:hover,
	.post-share__link--linkedin:hover {
		border-color: #0a66c2;
		background: #0a66c2;
	}
	.post-share-rail__link--x:hover,
	.post-share__link--x:hover {
		border-color: #000;
		background: #000;
	}
	.post-share-rail__link--facebook:hover,
	.post-share__link--facebook:hover {
		border-color: #1877f2;
		background: #1877f2;
	}
	.post-share-rail__link--email:hover,
	.post-share__link--email:hover {
		border-color: var( --yd-primary );
		background: var( --yd-primary );
	}
}
.post-share__link:focus-visible {
	outline: 3px solid var( --yd-primary );
	outline-offset: 2px;
}

/* =============================================================================
   Article content — long-form reading
============================================================================= */
.post-article {
	min-width: 0;
}
/* A measure, not the column width: ~70ch is the readable band regardless of how
   wide the grid track happens to be. */
.post-article__content {
	max-width: 70ch;
	color: var( --yd-body );
	font-size: clamp( 16px, 1.15vw, 18px );
	line-height: 1.78;
}
.post-article__content > * {
	margin-top: 0;
	margin-bottom: 1.3em;
}
.post-article__content > *:last-child {
	margin-bottom: 0;
}

/* Headings get generous space above and tight space below, so each binds to the
   text it introduces rather than floating between blocks. */
.post-article__content h2,
.post-article__content h3,
.post-article__content h4 {
	color: var( --yd-heading );
	line-height: 1.24;
	/* scroll-margin so an anchored heading clears the sticky header. */
	scroll-margin-top: var( --post-sticky-top );
}
.post-article__content h2 {
	margin-top: 2em;
	margin-bottom: 0.6em;
	font-size: clamp( 24px, 2.2vw, 34px );
}
.post-article__content h3 {
	margin-top: 1.7em;
	margin-bottom: 0.5em;
	font-size: clamp( 19px, 1.6vw, 24px );
}
.post-article__content h4 {
	margin-top: 1.5em;
	margin-bottom: 0.45em;
	font-size: clamp( 17px, 1.3vw, 20px );
}
.post-article__content h2:first-child,
.post-article__content h3:first-child {
	margin-top: 0;
}

.post-article__content a:not( .btn ) {
	color: var( --yd-primary );
	text-decoration: none;
	/* Animated underline drawn with a background so it can grow from the left
	   without shifting the text. */
	background-image: linear-gradient( var( --yd-primary ), var( --yd-primary ) );
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 100% 1px;
	transition: background-size 0.3s ease;
}
.post-article__content a:not( .btn ):hover {
	background-size: 100% 2px;
}

.post-article__content ul,
.post-article__content ol {
	padding-left: 1.4em;
}
.post-article__content li + li {
	margin-top: 0.5em;
}
.post-article__content li::marker {
	color: var( --yd-primary );
}

.post-article__content blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: clamp( 20px, 2vw, 30px ) clamp( 22px, 2.2vw, 34px );
	border-left: 3px solid var( --yd-primary );
	border-radius: 0 14px 14px 0;
	background: #fbf7f7;
	color: var( --yd-heading );
	font-size: 1.06em;
	font-style: italic;
	line-height: 1.62;
}
.post-article__content blockquote p:last-child {
	margin-bottom: 0;
}
.post-article__content blockquote cite {
	display: block;
	margin-top: 12px;
	color: var( --yd-body );
	font-size: 0.86em;
	font-style: normal;
}

.post-article__content img,
.post-article__content video,
.post-article__content iframe {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}
.post-article__content figure {
	margin-left: 0;
	margin-right: 0;
}
.post-article__content figcaption {
	margin-top: 10px;
	color: var( --yd-body );
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

/* Tables scroll rather than squash. The wrapper is what WordPress emits for
   block tables; the bare-table rule covers classic-editor content. */
.post-article__content .wp-block-table,
.post-article__content figure.wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.post-article__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94em;
}
.post-article__content th,
.post-article__content td {
	padding: 12px 14px;
	border: 1px solid var( --yd-line );
	text-align: left;
	vertical-align: top;
}
.post-article__content th {
	background: #fafafb;
	color: var( --yd-heading );
	font-family: var( --yd-font );
	font-weight: 700;
}

.post-article__content code {
	padding: 0.15em 0.4em;
	border-radius: 5px;
	background: #f3f3f6;
	color: var( --yd-heading );
	font-size: 0.9em;
}
.post-article__content pre {
	overflow-x: auto;
	padding: clamp( 16px, 1.8vw, 24px );
	border-radius: 14px;
	background: #14142b;
	color: #e8e8f0;
	font-size: 14px;
	line-height: 1.66;
	-webkit-overflow-scrolling: touch;
}
.post-article__content pre code {
	padding: 0;
	background: none;
	color: inherit;
	font-size: inherit;
}

.post-article__content hr {
	margin: 2.4em 0;
	border: 0;
	border-top: 1px solid var( --yd-line );
}

/* -----------------------------------------------------------------------------
   Callout boxes

   Add one of these classes to a group/paragraph block in the editor:
     is-style-key-takeaways · is-style-pro-tip · is-style-note · is-style-best-practice
   The icon is a CSS ::before, so the editor never has to paste markup.
----------------------------------------------------------------------------- */
.post-article__content .is-style-key-takeaways,
.post-article__content .is-style-pro-tip,
.post-article__content .is-style-note,
.post-article__content .is-style-best-practice {
	position: relative;
	margin-top: 1.8em;
	margin-bottom: 1.8em;
	padding: clamp( 18px, 1.8vw, 26px ) clamp( 20px, 2vw, 28px ) clamp( 18px, 1.8vw, 26px ) clamp( 52px, 4.4vw, 64px );
	border-left: 4px solid var( --callout-accent );
	border-radius: 0 14px 14px 0;
	background: var( --callout-bg );
	color: var( --yd-heading );
}
.post-article__content .is-style-key-takeaways::before,
.post-article__content .is-style-pro-tip::before,
.post-article__content .is-style-note::before,
.post-article__content .is-style-best-practice::before {
	content: var( --callout-icon );
	position: absolute;
	top: clamp( 16px, 1.7vw, 24px );
	left: clamp( 18px, 1.7vw, 24px );
	font-size: 20px;
	line-height: 1;
}
.post-article__content .is-style-key-takeaways > *:last-child,
.post-article__content .is-style-pro-tip > *:last-child,
.post-article__content .is-style-note > *:last-child,
.post-article__content .is-style-best-practice > *:last-child {
	margin-bottom: 0;
}
.post-article__content .is-style-key-takeaways {
	--callout-accent: var( --yd-primary );
	--callout-bg: #fdf2f3;
	--callout-icon: "\1F4CC";   /* pushpin */
}
.post-article__content .is-style-pro-tip {
	--callout-accent: #17a673;
	--callout-bg: #eefaf5;
	--callout-icon: "\1F4A1";   /* light bulb */
}
.post-article__content .is-style-note {
	--callout-accent: #d99413;
	--callout-bg: #fdf7ea;
	--callout-icon: "\26A0";    /* warning sign */
}
.post-article__content .is-style-best-practice {
	--callout-accent: #2f7bbf;
	--callout-bg: #eef5fc;
	--callout-icon: "\2705";    /* check mark */
}

/* --- Tags --- */
.post-article__tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: clamp( 32px, 3.4vw, 48px );
	padding-top: clamp( 20px, 2vw, 28px );
	border-top: 1px solid var( --yd-line );
}
.post-article__tags-label {
	color: var( --yd-body );
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.post-article__tag-list a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 6px 14px;
	border: 1px solid var( --yd-line );
	border-radius: 999px;
	color: var( --yd-heading );
	font-size: 13px;
	text-decoration: none;
	transition: border-color 0.25s ease, color 0.25s ease;
}
.post-article__tag-list a:hover {
	border-color: var( --yd-primary );
	color: var( --yd-primary );
}

/* =============================================================================
   Inline CTA
============================================================================= */
.post-cta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: clamp( 20px, 2.4vw, 40px );
	max-width: 70ch;
	margin: clamp( 34px, 3.6vw, 56px ) 0;
	padding: clamp( 24px, 2.6vw, 40px );
	border-radius: var( --post-radius );
	background: linear-gradient( 135deg, #14142b 0%, #2a2340 100% );
	color: #fff;
}
.post-cta__body {
	flex: 1 1 260px;
	min-width: 0;
}
/* Scoped to the content wrapper as well, because the JS moves this card INSIDE
   .post-article__content — and `.post-article__content h2` (0,1,1) outranks a
   lone `.post-cta__title` (0,1,0), which left the heading dark on the dark card. */
.post-cta__title,
.post-article__content .post-cta__title {
	margin: 0;
	color: #fff;
	font-size: clamp( 19px, 1.7vw, 25px );
	line-height: 1.26;
}
.post-cta__text {
	margin: 8px 0 0;
	color: rgba( 255, 255, 255, 0.78 );
	font-size: 15px;
	line-height: 1.55;
}
.post-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.post-cta__btn {
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}
.post-cta__btn--primary {
	border-color: var( --yd-primary );
	background: var( --yd-primary );
	color: #fff;
}
.post-cta__btn--ghost {
	border-color: rgba( 255, 255, 255, 0.4 );
	background: transparent;
	color: #fff;
}
@media ( hover: hover ) and ( pointer: fine ) {
	.post-cta__btn--primary:hover {
		background: var( --yd-primary-dark, #e42d44 );
		border-color: var( --yd-primary-dark, #e42d44 );
	}
	.post-cta__btn--ghost:hover {
		border-color: #fff;
		background: #fff;
		color: var( --yd-heading );
	}
}
.post-cta__btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

/* =============================================================================
   Previous / next
============================================================================= */
.post-adjacent {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: clamp( 14px, 1.6vw, 22px );
	margin-top: clamp( 36px, 4vw, 60px );
}
.post-adjacent__card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp( 18px, 1.8vw, 24px );
	border: 1px solid var( --yd-line );
	border-radius: 16px;
	background: #fff;
	text-decoration: none;
	transition: transform 0.3s cubic-bezier( 0.22, 1, 0.36, 1 ), box-shadow 0.3s ease, border-color 0.3s ease;
}
/* A single next-post card should sit on the right, mirroring its label. */
.post-adjacent__card--next {
	grid-column: 2;
	text-align: right;
}
.post-adjacent__card--next .post-adjacent__row {
	flex-direction: row-reverse;
}
.post-adjacent__label {
	color: var( --yd-primary );
	font-family: var( --yd-font );
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.post-adjacent__row {
	display: flex;
	align-items: center;
	gap: 14px;
}
.post-adjacent__thumb {
	flex-shrink: 0;
	overflow: hidden;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	background: #f4f4f6;
}
.post-adjacent__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s cubic-bezier( 0.22, 1, 0.36, 1 );
}
.post-adjacent__title {
	color: var( --yd-heading );
	font-family: var( --yd-font );
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
}
@media ( hover: hover ) and ( pointer: fine ) {
	.post-adjacent__card:hover {
		transform: translateY( -3px );
		border-color: transparent;
		box-shadow: 0 18px 40px rgba( 0, 0, 0, 0.1 );
	}
	.post-adjacent__card:hover .post-adjacent__thumb img {
		transform: scale( 1.08 );
	}
	.post-adjacent__card:hover .post-adjacent__title {
		color: var( --yd-primary );
	}
}
.post-adjacent__card:focus-visible {
	outline: 3px solid var( --yd-primary );
	outline-offset: 3px;
}

/* =============================================================================
   Author bio
============================================================================= */
.post-author-bio {
	display: flex;
	flex-wrap: wrap;
	gap: clamp( 20px, 2.4vw, 34px );
	margin-top: clamp( 40px, 4.4vw, 68px );
	padding: clamp( 24px, 2.6vw, 38px );
	border-radius: var( --post-radius );
	background: #fafafb;
}
.post-author-bio__avatar {
	flex-shrink: 0;
	overflow: hidden;
	width: 84px;
	height: 84px;
	border-radius: 50%;
}
.post-author-bio__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.post-author-bio__body {
	flex: 1 1 300px;
	min-width: 0;
}
.post-author-bio__eyebrow {
	display: block;
	color: var( --yd-body );
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.post-author-bio__name {
	margin: 8px 0 0;
	font-size: clamp( 20px, 1.7vw, 26px );
	line-height: 1.25;
}
.post-author-bio__role {
	display: block;
	margin-top: 4px;
	color: var( --yd-primary );
	font-family: var( --yd-font );
	font-weight: 600;
	font-size: 14px;
}
.post-author-bio__text {
	margin: 14px 0 0;
	max-width: 62ch;
	color: var( --yd-body );
	line-height: 1.7;
}
.post-author-bio__link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 18px;
	padding: 11px 20px;
	border: 1px solid var( --yd-line );
	border-radius: 999px;
	background: #fff;
	color: var( --yd-heading );
	font-family: var( --yd-font );
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.post-author-bio__link svg {
	width: 16px;
	height: 16px;
}
.post-author-bio__link:hover {
	border-color: #0a66c2;
	background: #0a66c2;
	color: #fff;
}
.post-author-bio__link:focus-visible {
	outline: 3px solid var( --yd-primary );
	outline-offset: 3px;
}

/* =============================================================================
   Sticky sidebar
============================================================================= */
/* align-self:stretch is what makes the sticky child work: with the grid's
   align-items:start the column collapsed to its own content height, leaving
   position:sticky nothing to travel along, so the sidebar scrolled away with
   the page. Stretched, the column runs the full height of the article. */
.post-sidebar {
	align-self: stretch;
	min-width: 0;
}
.post-sidebar__inner {
	position: sticky;
	top: var( --post-sticky-top );
	display: flex;
	flex-direction: column;
	gap: clamp( 16px, 1.6vw, 24px );
	/* Own scrollbar only if the stack is genuinely taller than the viewport. */
	max-height: calc( 100vh - var( --post-sticky-top ) - 24px );
	overflow-y: auto;
	scrollbar-width: thin;
}
.post-widget {
	padding: clamp( 18px, 1.8vw, 24px );
	border: 1px solid var( --yd-line );
	border-radius: 16px;
	background: #fff;
}
.post-widget__title {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.3;
	letter-spacing: 0.02em;
}

/* --- Search --- */
.post-widget--search {
	padding: 0;
	border: 0;
}
.post-search {
	position: relative;
	display: flex;
}
.post-search__input {
	width: 100%;
	padding: 14px 48px 14px 18px;
	border: 1px solid var( --yd-line );
	border-radius: 999px;
	background: #fff;
	color: var( --yd-heading );
	font-family: var( --yd-font );
	font-size: 14px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.post-search__input:focus {
	outline: none;
	border-color: var( --yd-primary );
	box-shadow: 0 0 0 4px rgba( 255, 57, 81, 0.12 );
}
.post-search__submit {
	position: absolute;
	top: 50%;
	right: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var( --yd-body );
	cursor: pointer;
	transform: translateY( -50% );
	transition: background 0.25s ease, color 0.25s ease;
}
.post-search__submit svg {
	width: 17px;
	height: 17px;
}
.post-search__submit:hover {
	background: var( --yd-primary );
	color: #fff;
}
.post-search__submit:focus-visible {
	outline: 3px solid var( --yd-primary );
	outline-offset: 2px;
}

/* --- Table of contents --- */
.post-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.post-toc__item--h3 {
	padding-left: 14px;   /* the only thing expressing nesting depth */
}
.post-toc__link {
	display: block;
	padding: 7px 0 7px 14px;
	border-left: 2px solid var( --yd-line );
	color: var( --yd-body );
	font-size: 14px;
	line-height: 1.45;
	text-decoration: none;
	transition: color 0.25s ease, border-color 0.25s ease;
}
.post-toc__link:hover {
	color: var( --yd-heading );
	border-color: var( --yd-body );
}
.post-toc__link--active {
	border-color: var( --yd-primary );
	color: var( --yd-primary );
	font-weight: 700;
}
.post-toc__link:focus-visible {
	outline: 3px solid var( --yd-primary );
	outline-offset: -3px;
}

/* --- Share --- */
.post-share {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* --- Recent posts --- */
.post-recent {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.post-recent__link {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 9px;
	border-radius: 12px;
	text-decoration: none;
	transition: background 0.25s ease;
}
.post-recent__thumb {
	flex-shrink: 0;
	overflow: hidden;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	background: #f4f4f6;
}
.post-recent__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s cubic-bezier( 0.22, 1, 0.36, 1 );
}
.post-recent__body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}
.post-recent__title {
	color: var( --yd-heading );
	font-family: var( --yd-font );
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	transition: color 0.25s ease;
}
.post-recent__date {
	color: var( --yd-body );
	font-size: 12px;
	line-height: 1;
}
@media ( hover: hover ) and ( pointer: fine ) {
	.post-recent__link:hover {
		background: #fafafb;
	}
	.post-recent__link:hover .post-recent__thumb img {
		transform: scale( 1.09 );
	}
	.post-recent__link:hover .post-recent__title {
		color: var( --yd-primary );
	}
}
.post-recent__link:focus-visible {
	outline: 3px solid var( --yd-primary );
	outline-offset: 2px;
}

/* =============================================================================
   Related posts
============================================================================= */
.post-related {
	padding: clamp( 48px, 5.5vw, 88px ) 0;
	background: #fafafb;
}
.post-related__heading {
	margin: 0 0 clamp( 26px, 3vw, 44px );
	font-size: clamp( 26px, 3vw, 40px );
	line-height: 1.2;
}
.post-related__grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 280px, 1fr ) );
	gap: clamp( 18px, 2vw, 30px );
}
.post-card {
	display: flex;
}
.post-card__link {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	width: 100%;
	border-radius: var( --post-radius );
	background: #fff;
	text-decoration: none;
	transition: transform 0.35s cubic-bezier( 0.22, 1, 0.36, 1 ), box-shadow 0.35s ease;
}
.post-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #f0f0f3;
}
.post-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.55s cubic-bezier( 0.22, 1, 0.36, 1 );
}
.post-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 10px;
	padding: clamp( 18px, 1.8vw, 26px );
}
.post-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	color: var( --yd-body );
	font-size: 12.5px;
	line-height: 1.3;
}
.post-card__category {
	color: var( --yd-primary );
	font-family: var( --yd-font );
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.post-card__dot {
	opacity: 0.5;
}
.post-card__title {
	color: var( --yd-heading );
	font-family: var( --yd-font );
	font-weight: 700;
	font-size: clamp( 17px, 1.4vw, 20px );
	line-height: 1.34;
	transition: color 0.25s ease;
}
.post-card__excerpt {
	color: var( --yd-body );
	font-size: 14.5px;
	line-height: 1.6;
}
.post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
	color: var( --yd-primary );
	font-family: var( --yd-font );
	font-weight: 700;
	font-size: 14px;
}
.post-card__more svg {
	width: 17px;
	height: 17px;
	transition: transform 0.3s ease;
}
@media ( hover: hover ) and ( pointer: fine ) {
	.post-card__link:hover {
		transform: translateY( -5px );
		box-shadow: 0 24px 50px rgba( 0, 0, 0, 0.12 );
	}
	.post-card__link:hover .post-card__image {
		transform: scale( 1.06 );
	}
	.post-card__link:hover .post-card__title {
		color: var( --yd-primary );
	}
	.post-card__link:hover .post-card__more svg {
		transform: translateX( 4px );
	}
}
.post-card__link:focus-visible {
	outline: 3px solid var( --yd-primary );
	outline-offset: 3px;
}

/* =============================================================================
   Newsletter
============================================================================= */
.post-newsletter {
	padding: 0 0 clamp( 56px, 6vw, 96px );
	background: #fafafb;
}
.post-newsletter__card {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: clamp( 22px, 2.6vw, 44px );
	padding: clamp( 28px, 3.2vw, 52px );
	border-radius: var( --post-radius );
	background: #fff;
	box-shadow: 0 20px 50px rgba( 0, 0, 0, 0.07 );
}
.post-newsletter__body {
	flex: 1 1 300px;
	min-width: 0;
}
.post-newsletter__title {
	margin: 0;
	font-size: clamp( 22px, 2.2vw, 32px );
	line-height: 1.24;
}
.post-newsletter__text {
	margin: 10px 0 0;
	max-width: 46ch;
	color: var( --yd-body );
	font-size: 15px;
	line-height: 1.6;
}
.post-newsletter__form {
	display: flex;
	flex: 1 1 320px;
	gap: 10px;
}
.post-newsletter__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 15px 20px;
	border: 1px solid var( --yd-line );
	border-radius: 999px;
	background: #fff;
	color: var( --yd-heading );
	font-family: var( --yd-font );
	font-size: 15px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.post-newsletter__input:focus {
	outline: none;
	border-color: var( --yd-primary );
	box-shadow: 0 0 0 4px rgba( 255, 57, 81, 0.12 );
}
.post-newsletter__submit {
	flex-shrink: 0;
	border-color: var( --yd-primary );
	background: var( --yd-primary );
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}
.post-newsletter__submit:hover {
	border-color: var( --yd-primary-dark, #e42d44 );
	background: var( --yd-primary-dark, #e42d44 );
}
.post-newsletter__submit:focus-visible {
	outline: 3px solid var( --yd-heading );
	outline-offset: 3px;
}

/* =============================================================================
   Comments
============================================================================= */
.post-article .comments-area {
	margin-top: clamp( 40px, 4.4vw, 68px );
	padding-top: clamp( 26px, 3vw, 40px );
	border-top: 1px solid var( --yd-line );
}
.post-article .comments-title,
.post-article .comment-reply-title {
	font-size: clamp( 20px, 1.8vw, 26px );
	line-height: 1.25;
}
.post-article .comment-list {
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}
.post-article .comment-list ol.children {
	margin: 18px 0 0 clamp( 16px, 2vw, 34px );
	padding: 0;
	list-style: none;
}
.post-article .comment-body {
	padding: clamp( 18px, 1.8vw, 24px );
	border: 1px solid var( --yd-line );
	border-radius: 16px;
	background: #fff;
}
.post-article .comment-list > li + li,
.post-article .comment-list ol.children > li + li {
	margin-top: 14px;
}
.post-article .comment-author img {
	border-radius: 50%;
	vertical-align: middle;
}
.post-article .comment-author .fn {
	color: var( --yd-heading );
	font-family: var( --yd-font );
	font-weight: 700;
	font-style: normal;
}
.post-article .comment-metadata,
.post-article .comment-metadata a {
	color: var( --yd-body );
	font-size: 13px;
	text-decoration: none;
}
.post-article .reply a {
	display: inline-block;
	margin-top: 8px;
	color: var( --yd-primary );
	font-family: var( --yd-font );
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
}
.post-article .comment-form {
	display: grid;
	gap: 14px;
	margin-top: 20px;
}
.post-article .comment-form p {
	margin: 0;
}
.post-article .comment-form label {
	display: block;
	margin-bottom: 6px;
	color: var( --yd-heading );
	font-family: var( --yd-font );
	font-weight: 600;
	font-size: 14px;
}
.post-article .comment-form input:not( [type="submit"] ):not( [type="checkbox"] ),
.post-article .comment-form textarea {
	width: 100%;
	padding: 13px 18px;
	border: 1px solid var( --yd-line );
	border-radius: 14px;
	background: #fff;
	color: var( --yd-heading );
	font-family: var( --yd-font );
	font-size: 15px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.post-article .comment-form textarea {
	min-height: 130px;
	border-radius: 16px;
	resize: vertical;
}
.post-article .comment-form input:focus,
.post-article .comment-form textarea:focus {
	outline: none;
	border-color: var( --yd-primary );
	box-shadow: 0 0 0 4px rgba( 255, 57, 81, 0.12 );
}
.post-article .comment-form .submit {
	justify-self: start;
	padding: 15px 32px;
	border: 0;
	border-radius: 999px;
	background: var( --yd-primary );
	color: #fff;
	font-family: var( --yd-font );
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.2s ease;
}
.post-article .comment-form .submit:hover {
	background: var( --yd-primary-dark, #e42d44 );
	transform: translateY( -2px );
}

/* =============================================================================
   Responsive
============================================================================= */
/* Tablet: the sidebar moves below the article, and the floating rail goes with
   it — there is no longer a margin for it to sit in. */
@media ( max-width: 1200px ) {
	.post-share-rail {
		display: none;
	}
	/* Rail gone — drop its track, or the article would inherit the 48px one. */
	.post-body__container {
		grid-template-columns: minmax( 0, 70% ) minmax( 0, 30% );
	}
}
@media ( max-width: 1024px ) {
	.post-body__container {
		grid-template-columns: minmax( 0, 1fr );
	}
	.post-article__content,
	.post-cta {
		max-width: none;
	}
	.post-sidebar__inner {
		position: static;
		max-height: none;
		overflow: visible;
		/* Two across while there is room, so the stack does not become a long
		   scroll between the article and the related posts. */
		display: grid;
		grid-template-columns: repeat( auto-fit, minmax( 280px, 1fr ) );
		align-items: start;
	}
	.post-widget--search {
		grid-column: 1 / -1;
	}
}
@media ( max-width: 700px ) {
	.post-author-card {
		gap: 14px;
	}
	.post-author-card__facts {
		gap: 18px;
		width: 100%;
		padding-top: 14px;
		border-top: 1px solid var( --yd-line );
	}
	.post-adjacent {
		grid-template-columns: minmax( 0, 1fr );
	}
	/* Stacked, a right-aligned "next" card reads as a mistake. */
	.post-adjacent__card--next {
		grid-column: 1;
		text-align: left;
	}
	.post-adjacent__card--next .post-adjacent__row {
		flex-direction: row;
	}
	.post-sidebar__inner {
		grid-template-columns: minmax( 0, 1fr );
	}
	.post-cta {
		flex-direction: column;
		align-items: stretch;
	}
	.post-cta__actions {
		flex-direction: column;
	}
	.post-cta__btn {
		justify-content: center;
		width: 100%;
	}
	.post-newsletter__form {
		flex-direction: column;
	}
	.post-newsletter__submit {
		justify-content: center;
		width: 100%;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.post-single * {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.post-single .is-reveal {
		opacity: 1;
		transform: none;
	}
}
