/**
 * The article page.
 *
 * Most of this file is the body of the article, because that is the whole
 * point of the page: whatever the client types into WordPress has to come out
 * looking considered without them thinking about it. Headings on a scale,
 * a measure that stays readable, quotes that are quiet, tables that do not
 * push the page sideways.
 *
 * Everything else — the crumbs, the contents, the sharing, the next article —
 * is furniture, and stays out of the way.
 */

.pfh-post {
	--pfh-po-max: 1240px;
	--pfh-po-measure: var(--pfh-po-measure-set, 880px);
	--pfh-po-aside: var(--pfh-po-aside-set, 320px);
	--pfh-po-gap: var(--pfh-po-gap-set, 64px);
	--pfh-po-module-gap: var(--pfh-po-module-gap-set, 24px);
	--pfh-po-pt: var(--pfh-po-pt-set, 30px);
	--pfh-po-pb: var(--pfh-po-pb-set, 88px);
	--pfh-po-radius: 16px;

	--pfh-po-ink: #22301c;
	--pfh-po-body: #43503f;
	--pfh-po-muted: #8d9589;
	--pfh-po-accent: #2b5f63;
	--pfh-po-line: #eaeaea;
	--pfh-po-band: #f6f8f5;
	--pfh-po-tag-bg: #dfe9dc;
	--pfh-po-tag-ink: #46603f;

	--pfh-po-title: var(--pfh-po-title-set, 42px);
	--pfh-po-title-mobile: var(--pfh-po-title-mobile-set, 32px);
	--pfh-po-text: var(--pfh-po-text-set, 17px);
	--pfh-po-sidebar-title: var(--pfh-po-sidebar-title-set, 18px);

	--pfh-po-search-bg: #fff;
	--pfh-po-search-ink: #7f897b;
	--pfh-po-search-border: #e4e8e1;
	--pfh-po-search-radius: 14px;
	--pfh-po-product-bg: #fff;
	--pfh-po-product-media: #f6f1e7;
	--pfh-po-product-border: #e3cbbd;
	--pfh-po-product-radius: 16px;
	--pfh-po-promises-bg: #f6f6f6;
	--pfh-po-promises-ink: #596b54;
	--pfh-po-promises-icon: #83a07c;
	--pfh-po-promises-radius: 24px;
	--pfh-po-cta-image: none;
	--pfh-po-cta-top: rgba(34, 48, 28, .94);
	--pfh-po-cta-bottom: rgba(34, 48, 28, .12);
	--pfh-po-cta-ink: #fff;
	--pfh-po-cta-button-bg: #fff;
	--pfh-po-cta-button-ink: #22301c;
	--pfh-po-cta-height: 390px;
	--pfh-po-cta-radius: 18px;

	display: block;
	container-type: inline-size;
	padding-block: var(--pfh-po-pt) var(--pfh-po-pb);
	font-family: var(--pfh-font);
	color: var(--pfh-po-body);
	font-size: 15px;
	line-height: 1.7;
}

.pfh-post[hidden],
.pfh-post [hidden] { display: none !important; }

.pfh-post__inner {
	width: 100%;
	max-width: calc(var(--pfh-po-max) + (var(--pfh-gutter) * 2));
	margin-inline: auto;
	padding-inline: var(--pfh-gutter);
}

.pfh-post em,
.pfh-post i {
	font-family: var(--pfh-po-serif, "Playfair Display", Georgia, serif);
	font-style: italic;
	font-weight: 400;
}

.pfh-post a:focus-visible {
	outline: 2px solid var(--pfh-po-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ------------------------------------------------------------------ *
 * How far down the article the reader is
 * ------------------------------------------------------------------ */

.pfh-post__progress {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 90;
	width: 100%;
	height: 3px;
	background: transparent;
	pointer-events: none;
}

.pfh-post__progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--pfh-po-accent);
	transform-origin: 0 50%;
}

/* ------------------------------------------------------------------ *
 * The head
 * ------------------------------------------------------------------ */

.pfh-post__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	color: var(--pfh-po-muted);
	font-size: 13px;
}

.pfh-post__crumbs a { color: inherit; text-decoration: none; }
.pfh-post__crumbs a:hover { color: var(--pfh-po-accent); }
.pfh-post__crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.pfh-post__crumbs [aria-current] { color: var(--pfh-po-ink); }

.pfh-post__head {
	max-width: var(--pfh-po-measure);
	margin-bottom: 38px;
	padding-bottom: 38px;
	border-bottom: 1px solid var(--pfh-po-line);
}

.pfh-post__tag {
	display: inline-flex;
	align-items: center;
	padding: 6px 13px;
	margin-bottom: 18px;
	border-radius: 999px;
	background: var(--pfh-po-tag-bg);
	color: var(--pfh-po-tag-ink);
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
}

.pfh-post .pfh-post__title {
	max-width: 18ch;
	margin: 0;
	color: var(--pfh-po-ink);
	font-size: var(--pfh-po-title);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.03em;
	text-wrap: balance;
}

.pfh-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 18px 0 0;
	color: var(--pfh-po-muted);
	font-size: 14px;
}

.pfh-post__meta > span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.pfh-post__meta svg { width: 15px; height: 15px; }

.pfh-post__avatar {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	object-fit: cover;
}

.pfh-post__hero {
	margin: 0 0 40px;
	border-radius: var(--pfh-po-radius);
	overflow: hidden;
	background: var(--pfh-po-band);
}

.pfh-post__hero img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--pfh-po-hero, 16 / 9);
	object-fit: cover;
}

.pfh-post__hero figcaption {
	padding: 12px 16px;
	color: var(--pfh-po-muted);
	font-size: 13px;
	text-align: center;
}

/* ------------------------------------------------------------------ *
 * The two columns
 * ------------------------------------------------------------------ */

.pfh-post__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--pfh-po-aside);
	grid-template-areas: "article sidebar";
	align-items: start;
	gap: var(--pfh-po-gap);
}

.pfh-post__layout--wide { grid-template-columns: minmax(0, 1fr); }
.pfh-post__main {
	grid-area: article;
	min-width: 0;
	max-width: var(--pfh-po-measure);
}

.pfh-post__sidebar {
	display: grid;
	grid-area: sidebar;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--pfh-po-module-gap);
	min-width: 0;
	width: 100%;
}

/* ---------- the contents ---------- */

.pfh-post__toc {
	border: 1px solid var(--pfh-po-line);
	border-radius: 14px;
	background: #fff;
	overflow: clip;
}

.pfh-post__toc > summary {
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 0 17px;
	color: var(--pfh-po-ink);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	list-style: none;
	text-transform: uppercase;
	cursor: pointer;
}

.pfh-post__toc > summary::-webkit-details-marker { display: none; }

.pfh-post__toc > summary::after {
	content: "+";
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-left: auto;
	border-radius: 50%;
	background: var(--pfh-po-band);
	font-size: 18px;
	font-weight: 400;
	transition: transform var(--pfh-speed, .28s) var(--pfh-ease, ease);
}

.pfh-post__toc[open] > summary::after {
	content: "−";
	transform: rotate(180deg);
}

.pfh-post__toc-list {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0 17px 17px;
	list-style: none;
}

.pfh-post__toc-link {
	/*
	 * Two lines at most: article headings are sentences, and a panel of
	 * four-line entries stops being something you can glance at. The full
	 * heading stays in the title attribute.
	 */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	padding: 8px 10px;
	border-left: 2px solid var(--pfh-po-line);
	color: var(--pfh-po-body);
	font-size: 13px;
	line-height: 1.45;
	text-decoration: none;
	transition: border-color var(--pfh-speed, .28s) var(--pfh-ease, ease), color var(--pfh-speed, .28s) var(--pfh-ease, ease);
}

.pfh-post__toc-link:hover { color: var(--pfh-po-accent); }

.pfh-post__toc-link.is-here {
	border-left-color: var(--pfh-po-accent);
	color: var(--pfh-po-accent);
	font-weight: 500;
}

/* A sub-heading sits in from its own section. */
.pfh-post__toc-item--3 .pfh-post__toc-link { padding-left: 22px; font-size: 12.5px; }

/* ---------- search shortcut ---------- */

.pfh-post__search {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 54px;
	padding: 0 12px 0 16px;
	border: 1px solid var(--pfh-po-search-border);
	border-radius: var(--pfh-po-search-radius);
	background: var(--pfh-po-search-bg);
	color: var(--pfh-po-search-ink);
	font-size: 14px;
	text-decoration: none;
	transition: border-color var(--pfh-speed, .28s) var(--pfh-ease, ease), color var(--pfh-speed, .28s) var(--pfh-ease, ease), background-color var(--pfh-speed, .28s) var(--pfh-ease, ease);
}

.pfh-post__search:hover {
	border-color: var(--pfh-po-accent);
	background: var(--pfh-po-band);
	color: var(--pfh-po-ink);
}

.pfh-post__search > svg {
	flex: none;
	width: 19px;
	height: 19px;
	color: var(--pfh-po-accent);
}

.pfh-post__search-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pfh-post__search-shortcut {
	flex: none;
	margin-left: auto;
	padding: 3px 7px;
	border: 1px solid var(--pfh-po-line);
	border-radius: 6px;
	background: var(--pfh-po-band);
	color: var(--pfh-po-muted);
	font-family: var(--pfh-font);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.4;
}

/* ---------- popular products ---------- */

.pfh-post__products {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	contain: inline-size paint;
	padding-top: 6px;
}

.pfh-post__module-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 17px;
}

.pfh-post .pfh-post__module-head h2,
.pfh-post .pfh-post__promises h2,
.pfh-post .pfh-post__cta h2 {
	margin: 0;
	font-size: var(--pfh-po-sidebar-title);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -.02em;
}

.pfh-post .pfh-post__module-head h2 { color: var(--pfh-po-ink); }

.pfh-post__slider-controls { display: flex; gap: 7px; }

.pfh-post__slider-button {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--pfh-po-line);
	border-radius: 50%;
	background: #fff;
	color: var(--pfh-po-ink);
	cursor: pointer;
	transition: border-color var(--pfh-speed, .28s) var(--pfh-ease, ease), background-color var(--pfh-speed, .28s) var(--pfh-ease, ease);
}

.pfh-post__slider-button:hover { border-color: var(--pfh-po-accent); background: var(--pfh-po-band); }
.pfh-post__slider-button:disabled { opacity: .35; cursor: default; }
.pfh-post__slider-button svg { width: 12px; height: 16px; }

.pfh-post__product-track {
	display: flex;
	gap: 12px;
	padding: 2px 1px 8px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: inline mandatory;
	scrollbar-width: none;
}

.pfh-post__product-track::-webkit-scrollbar { display: none; }

.pfh-post__product-card {
	flex: 0 0 calc(72% - 6px);
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--pfh-po-product-border);
	border-radius: var(--pfh-po-product-radius);
	background: var(--pfh-po-product-bg);
	scroll-snap-align: start;
}

.pfh-post__product-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.pfh-post__product-media {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1 / .88;
	overflow: hidden;
	background: var(--pfh-po-product-media);
}

.pfh-post__product-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .45s var(--pfh-ease, ease);
}

.pfh-post__product-card:hover .pfh-post__product-media img { transform: scale(1.04); }

.pfh-post__product-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 1;
	padding: 5px 8px;
	border-radius: 999px;
	background: var(--pfh-po-ink);
	color: #fff;
	font-size: 9px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.pfh-post__product-body { display: block; padding: 14px; }
.pfh-post__product-brand { display: block; margin-bottom: 4px; color: var(--pfh-po-muted); font-size: 11px; }

.pfh-post__product-title {
	display: -webkit-box;
	min-height: 2.5em;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	color: var(--pfh-po-ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.25;
}

.pfh-post__product-price {
	display: block;
	margin-top: 10px;
	color: var(--pfh-po-accent);
	font-size: 13px;
	font-weight: 600;
}

.pfh-post__product-price del { margin-right: 5px; color: var(--pfh-po-muted); font-weight: 400; }
.pfh-post__product-price ins { text-decoration: none; }

/* ---------- promises ---------- */

.pfh-post__promises {
	padding: 28px 24px 24px;
	border-radius: var(--pfh-po-promises-radius);
	background: var(--pfh-po-promises-bg);
	color: var(--pfh-po-promises-ink);
}

.pfh-post .pfh-post__promises h2 { margin-bottom: 12px; color: inherit; font-size: calc(var(--pfh-po-sidebar-title) + 4px); }

.pfh-post__promises ul {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pfh-post__promises li {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	min-height: 45px;
	margin: 0;
	padding: 9px 0;
	border-bottom: 1px solid rgba(89, 107, 84, .12);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
}

.pfh-post__promises li.is-compact {
	min-height: 38px;
	padding-block: 7px;
	border-bottom: 0;
}

.pfh-post__promise-icon {
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	color: var(--pfh-po-promises-icon);
}

.pfh-post__promise-icon svg { width: 18px; height: 18px; }

/* ---------- shop call to action ---------- */

.pfh-post__cta {
	position: relative;
	min-height: var(--pfh-po-cta-height);
	padding: 28px;
	overflow: hidden;
	border-radius: var(--pfh-po-cta-radius);
	background: var(--pfh-po-ink);
	color: var(--pfh-po-cta-ink);
	isolation: isolate;
}

.pfh-post__cta::before,
.pfh-post__cta::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.pfh-post__cta::before {
	z-index: -2;
	background: var(--pfh-po-cta-image) center / cover no-repeat;
}

.pfh-post__cta::after {
	z-index: -1;
	background: linear-gradient(180deg, var(--pfh-po-cta-top) 0%, var(--pfh-po-cta-top) 40%, var(--pfh-po-cta-bottom) 100%);
}

.pfh-post .pfh-post__cta-eyebrow {
	margin: 0 0 18px;
	color: var(--pfh-po-cta-ink);
	opacity: .76;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.pfh-post .pfh-post__cta h2 {
	max-width: 11ch;
	color: inherit;
	font-family: var(--pfh-po-serif, "Playfair Display", Georgia, serif);
	font-size: 24px;
	font-style: italic;
	font-weight: 500;
	line-height: 1.12;
}

.pfh-post .pfh-post__cta-text {
	max-width: 28ch;
	margin: 14px 0 22px;
	color: var(--pfh-po-cta-ink);
	opacity: .78;
	font-size: 13px;
	line-height: 1.55;
}

.pfh-post__cta-button {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 45px;
	padding: 0 17px;
	border-radius: 999px;
	background: var(--pfh-po-cta-button-bg);
	color: var(--pfh-po-cta-button-ink);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: transform var(--pfh-speed, .28s) var(--pfh-ease, ease), background-color var(--pfh-speed, .28s) var(--pfh-ease, ease);
}

.pfh-post__cta-button:hover { transform: translateY(-2px); }
.pfh-post__cta-button svg { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ *
 * The article itself
 * ------------------------------------------------------------------ */

.pfh-post__body {
	color: var(--pfh-po-body);
	font-size: var(--pfh-po-text);
	line-height: 1.78;
}

.pfh-post__body > :first-child { margin-top: 0; }
.pfh-post__body > :last-child { margin-bottom: 0; }

.pfh-post__body p { margin: 0 0 1.3em; }

/* The opening paragraph carries the reader in. */
.pfh-post__body > p:first-of-type {
	font-size: calc(var(--pfh-po-text) * 1.12);
	line-height: 1.65;
	color: var(--pfh-po-ink);
}

.pfh-post__body h2,
.pfh-post__body h3,
.pfh-post__body h4 {
	color: var(--pfh-po-ink);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.01em;
	text-wrap: balance;
	/* Room to be scrolled to without hiding under a sticky header. */
	scroll-margin-top: 90px;
}

.pfh-post__body h2 { margin: 1.9em 0 .55em; font-size: calc(var(--pfh-po-text) * 1.65); }
.pfh-post__body h3 { margin: 1.6em 0 .5em; font-size: calc(var(--pfh-po-text) * 1.3); }
.pfh-post__body h4 { margin: 1.5em 0 .45em; font-size: calc(var(--pfh-po-text) * 1.08); }

.pfh-post__body a {
	color: var(--pfh-po-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.pfh-post__body a:hover { text-decoration-thickness: 2px; }

.pfh-post__body strong { color: var(--pfh-po-ink); font-weight: 600; }

.pfh-post__body ul,
.pfh-post__body ol {
	margin: 0 0 1.3em;
	padding-left: 1.4em;
}

.pfh-post__body li { margin-bottom: .5em; }
.pfh-post__body li::marker { color: var(--pfh-po-accent); }

.pfh-post__body blockquote {
	margin: 1.8em 0;
	padding: 4px 0 4px 26px;
	border-left: 3px solid var(--pfh-po-accent);
	color: var(--pfh-po-ink);
	font-family: var(--pfh-po-serif, "Playfair Display", Georgia, serif);
	font-size: calc(var(--pfh-po-text) * 1.18);
	font-style: italic;
	line-height: 1.55;
}

.pfh-post__body blockquote p:last-child { margin-bottom: 0; }
.pfh-post__body blockquote cite {
	display: block;
	margin-top: 10px;
	color: var(--pfh-po-muted);
	font-family: var(--pfh-font);
	font-size: 14px;
	font-style: normal;
}

.pfh-post__body img,
.pfh-post__body video {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: var(--pfh-po-radius);
}

.pfh-post__body figure { margin: 1.8em 0; }

.pfh-post__body figcaption {
	margin-top: 10px;
	color: var(--pfh-po-muted);
	font-size: 13.5px;
	line-height: 1.5;
}

.pfh-post__body hr {
	height: 1px;
	margin: 2.4em 0;
	border: 0;
	background: var(--pfh-po-line);
}

/* A wide table scrolls in its own box rather than widening the page. */
.pfh-post__body .pfh-post__scroller {
	margin: 1.8em 0;
	overflow-x: auto;
	border: 1px solid var(--pfh-po-line);
	border-radius: 12px;
}

.pfh-post__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}

.pfh-post__body th,
.pfh-post__body td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--pfh-po-line);
	text-align: left;
}

.pfh-post__body thead th {
	background: var(--pfh-po-band);
	color: var(--pfh-po-ink);
	font-weight: 600;
}

.pfh-post__body tbody tr:last-child td { border-bottom: 0; }

.pfh-post__body code {
	padding: 2px 6px;
	border-radius: 5px;
	background: var(--pfh-po-band);
	font-size: .9em;
}

.pfh-post__body pre {
	margin: 1.8em 0;
	padding: 18px 20px;
	overflow-x: auto;
	border-radius: 12px;
	background: #1f2a20;
	color: #e7ede4;
	font-size: 13.5px;
	line-height: 1.6;
}

.pfh-post__body pre code { padding: 0; background: none; color: inherit; }

/* ------------------------------------------------------------------ *
 * Under the article
 * ------------------------------------------------------------------ */

.pfh-post__share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid var(--pfh-po-line);
}

.pfh-post__share-label {
	margin-right: 4px;
	color: var(--pfh-po-muted);
	font-size: 14px;
}

.pfh-post__share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--pfh-po-line);
	border-radius: 50%;
	background: transparent;
	color: var(--pfh-po-ink);
	cursor: pointer;
	transition: border-color var(--pfh-speed, .28s) var(--pfh-ease, ease), background-color var(--pfh-speed, .28s) var(--pfh-ease, ease), color var(--pfh-speed, .28s) var(--pfh-ease, ease);
}

.pfh-post__share-link svg { width: 17px; height: 17px; }

.pfh-post__share-link:hover {
	border-color: var(--pfh-po-accent);
	background: var(--pfh-po-accent);
	color: #fff;
}

.pfh-post__share-link.is-done {
	border-color: var(--pfh-po-accent);
	color: var(--pfh-po-accent);
}

.pfh-post__author {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 18px;
	margin-top: 36px;
	padding: 26px;
	border: 1px solid var(--pfh-po-line);
	border-radius: 14px;
}

.pfh-post__author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.pfh-post__author h3 { margin: 0 0 6px; color: var(--pfh-po-ink); font-size: 16px; font-weight: 600; }
.pfh-post__author p { margin: 0; font-size: 14.5px; }

/* ---------- what to read next ---------- */

.pfh-post__nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 40px;
}

.pfh-post__nav-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 22px;
	border: 1px solid var(--pfh-po-line);
	border-radius: 14px;
	color: var(--pfh-po-ink);
	text-decoration: none;
	transition: border-color var(--pfh-speed, .28s) var(--pfh-ease, ease);
}

.pfh-post__nav-link:hover { border-color: var(--pfh-po-accent); }
.pfh-post__nav-link--next { text-align: right; flex-direction: row-reverse; }

.pfh-post__nav-link svg { flex: none; width: 14px; height: 14px; color: var(--pfh-po-accent); }
.pfh-post__nav-dir { display: block; color: var(--pfh-po-muted); font-size: 12.5px; }
.pfh-post__nav-title { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; line-height: 1.35; }

/* ---------- the row of related articles ---------- */

.pfh-post__related {
	margin-top: 72px;
	padding-top: 48px;
	border-top: 1px solid var(--pfh-po-line);
}

.pfh-post .pfh-post__related-title {
	margin: 0 0 28px;
	color: var(--pfh-po-ink);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.01em;
}

/* ---------- builder placeholder ---------- */

.pfh-post--empty {
	padding: 40px;
	border: 1px dashed rgba(20, 24, 27, .16);
	border-radius: 12px;
	color: #6b6b6b;
	text-align: center;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
	.pfh-post { --pfh-po-gap: 40px; }
	.pfh-post__product-card { flex-basis: 82%; }
}

@media (max-width: 900px) {
	.pfh-post {
		--pfh-po-title: var(--pfh-po-title-mobile);
		--pfh-po-text: 16.5px;
		--pfh-po-pb: 64px;
	}

	/* The sidebar becomes part of the single content flow. Ordering keeps the
	   contents first and deliberately sends search to the end on a phone. */
	.pfh-post__layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: none;
		row-gap: 48px;
	}

	.pfh-post__main { grid-area: auto; max-width: none; order: 2; }
	.pfh-post__sidebar { display: contents; }
	.pfh-post__toc { order: 1; }
	.pfh-post__products { order: 3; }
	.pfh-post__promises { order: 4; }
	.pfh-post__cta { order: 5; }
	.pfh-post__search { order: 6; }
	.pfh-post__product-card { flex-basis: min(260px, 74vw); }
	.pfh-post__cta { min-height: min(var(--pfh-po-cta-height), 340px); }
}

/* Bricks sections can be narrower than the browser viewport. Mirror the
   phone flow against the widget itself so an embedded article never keeps a
   squeezed desktop sidebar simply because the surrounding screen is wide. */
@container (max-width: 900px) {
	.pfh-post__title { font-size: var(--pfh-po-title-mobile) !important; }
	.pfh-post__body { font-size: 16.5px; }
	.pfh-post__layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: none;
		row-gap: 48px;
	}

	.pfh-post__main { grid-area: auto; max-width: none; order: 2; }
	.pfh-post__sidebar { display: contents; }
	.pfh-post__toc { order: 1; }
	.pfh-post__products { order: 3; }
	.pfh-post__promises { order: 4; }
	.pfh-post__cta { order: 5; }
	.pfh-post__search { order: 6; }
	.pfh-post__product-card { flex-basis: min(260px, 74vw); }
	.pfh-post__cta { min-height: min(var(--pfh-po-cta-height), 340px); }
}

@media (max-width: 620px) {
	.pfh-post { --pfh-po-hero: 4 / 3; }
	.pfh-post__crumbs { margin-bottom: 22px; }
	.pfh-post__head { margin-bottom: 32px; padding-bottom: 32px; }
	.pfh-post__search-shortcut { display: none; }
	.pfh-post__promises { padding: 26px 22px 22px; }
	.pfh-post__cta { padding: 26px 24px; }
	.pfh-post__nav { grid-template-columns: minmax(0, 1fr); }
	.pfh-post__nav-link--next { flex-direction: row; text-align: left; }
	.pfh-post__author { grid-template-columns: minmax(0, 1fr); }
	.pfh-post__author img { width: 56px; height: 56px; }
	.pfh-post__related { margin-top: 52px; padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	.pfh-post * { transition: none !important; scroll-behavior: auto !important; }
}
