/**
 * Single blog post — premium article layout (single-post.php).
 *
 * Loaded only on single posts, on top of blogs.css (shared cards + sidebar
 * widgets). Consumes the theme tokens from style.css.
 *
 * @package HPF_Trickle_Up
 */

/* The generic .single rule pins .hpf-main to the ~820px text measure — the
   article + sidebar layout needs more room. */
.single .hpf-main.hpf-spost { max-width: 1160px; }

/* =====================  BREADCRUMB  ===================== */
.hpf-spost-crumbs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	color: var(--hpf-muted);
	margin: 4px 0 18px;
}
.hpf-spost-crumbs a { color: var(--hpf-teal-dark); font-weight: 600; text-decoration: none; }
.hpf-spost-crumbs a:hover { color: var(--hpf-teal); text-decoration: none; }
.hpf-spost-crumbs .is-current {
	max-width: 46ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* =====================  TITLE + META  ===================== */
.hpf-spost-head { margin: 0 0 22px; }
.hpf-spost-title {
	font-family: var(--hpf-font-head);
	font-size: clamp(27px, 4.2vw, 40px);
	font-weight: 800;
	line-height: 1.15;
	color: var(--hpf-ink);
	margin: 0 0 16px;
	max-width: 820px;
}
.hpf-spost-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.hpf-spost-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	background: var(--hpf-white);
	border: 1px solid var(--hpf-border);
	border-radius: 999px;
	font-size: 13px;
	color: var(--hpf-muted);
}
.hpf-spost-chip svg { color: var(--hpf-teal-dark); flex: 0 0 auto; }
.hpf-spost-chip b { color: var(--hpf-ink); font-weight: 700; }
.hpf-spost-chip__avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

/* --- Share chip + popover --- */
.hpf-spost-share { position: relative; display: inline-flex; }
.hpf-spost-share__btn {
	font-family: var(--hpf-font);
	font-size: 13px;
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.hpf-spost-share__btn:hover,
.hpf-spost-share.is-open .hpf-spost-share__btn {
	border-color: var(--hpf-teal);
	color: var(--hpf-teal-dark);
	background: var(--hpf-bg-soft);
}
.hpf-spost-share__menu {
	/* Sits BESIDE the chip (vertically centred) so it never drops onto the
	   hero image; JS flips it above the chip when the row runs out of room.
	   Hidden by default, sliding open left → right when Share is clicked. */
	position: absolute;
	left: calc(100% + 8px);
	top: 50%;
	transform: translateY(-50%) translateX(-12px);
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px;
	background: var(--hpf-white);
	border: 1px solid var(--hpf-border);
	border-radius: 999px;
	box-shadow: 0 14px 34px rgba(13, 95, 89, .16);
	white-space: nowrap;
	max-width: 0;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: max-width .38s var(--hpf-ease, ease), transform .38s var(--hpf-ease, ease), opacity .26s ease, visibility .38s;
}
.hpf-spost-share__menu.is-open {
	max-width: 320px;
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}
.hpf-spost-share__item {
	flex: 0 0 auto; /* keep true size while the menu is collapsed (JS measures scrollWidth) */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--hpf-bg-soft);
	color: var(--hpf-teal-dark);
	cursor: pointer;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, transform .15s ease;
}
.hpf-spost-share__item:hover {
	background: var(--hpf-teal-dark);
	color: #fff;
	transform: translateY(-2px);
	text-decoration: none;
}
.hpf-spost-share__copied {
	font-family: var(--hpf-font-head);
	font-size: 12px;
	font-weight: 700;
	color: var(--hpf-teal-dark);
	padding: 0 6px 0 2px;
}
/* Not enough room on the right → open above the chip instead (still clear of
   the hero image below); same left → right slide. */
.hpf-spost-share__menu.is-flipped {
	left: auto;
	right: 0;
	top: auto;
	bottom: calc(100% + 8px);
	transform: translateX(-12px);
}
.hpf-spost-share__menu.is-flipped.is-open { transform: translateX(0); }

/* =====================  HERO + CHAPTER PILLS  ===================== */
.hpf-spost-hero {
	margin: 0 0 18px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 14px 36px rgba(13, 95, 89, .12);
}
.hpf-spost-hero__img { display: block; width: 100%; height: auto; max-height: 480px; object-fit: cover; }

.hpf-spost-chapters {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 10px 10px 20px;
	margin: 0 0 30px;
	background: var(--hpf-teal-dark);
	border-radius: 999px;
}
/* "On this page" label pinned at the start; only the pills row scrolls. */
.hpf-spost-chapters__label {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding-right: 14px;
	border-right: 1px solid rgba(255, 255, 255, .25);
	font-family: var(--hpf-font-head);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
	white-space: nowrap;
}
/* Arrows + scrolling pills share one row (the label sits beside/above it). */
.hpf-spost-chapters__row {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}
.hpf-spost-chapters__scroll {
	flex: 1 1 auto;
	display: flex;
	gap: 8px;
	min-width: 0;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;                 /* pills row scrolls but stays clean */
	-webkit-overflow-scrolling: touch;
}
.hpf-spost-chapters__scroll::-webkit-scrollbar { display: none; }
.hpf-spost-chapters__arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.hpf-spost-chapters__arrow:hover:not(:disabled) { background: var(--hpf-white); color: var(--hpf-teal-dark); }
.hpf-spost-chapters__arrow:disabled { opacity: .35; cursor: default; }
/* Hidden by JS when the pills don't overflow. */
.hpf-spost-chapters__arrow[hidden] { display: none; }
.hpf-spost-chapters__pill {
	flex: 0 0 auto;
	padding: 8px 16px;
	border-radius: 999px;
	font-family: var(--hpf-font-head);
	font-size: 12.5px;
	font-weight: 700;
	color: rgba(255, 255, 255, .88);
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s ease, color .2s ease;
}
.hpf-spost-chapters__pill:hover { background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none; }
.hpf-spost-chapters__pill.is-active { background: var(--hpf-white); color: var(--hpf-teal-dark); }

/* =====================  LAYOUT  ===================== */
.hpf-spost-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 30px;
	align-items: start;
	padding-bottom: 10px;
}
.hpf-spost-article { min-width: 0; }
.hpf-spost-aside { position: sticky; top: 90px; }

/* =====================  INTRO CALLOUT  ===================== */
.hpf-spost-intro {
	background: var(--hpf-bg-soft);
	border-left: 4px solid var(--hpf-teal);
	border-radius: 12px;
	padding: 18px 22px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--hpf-ink);
	margin: 0 0 26px;
}

/* =====================  ARTICLE PROSE  ===================== */
.hpf-spost-body {
	font-size: 15.5px;
	line-height: 1.75;
	color: var(--hpf-ink);
	/* Arbitrary embeds (e.g. WooCommerce product blocks) and unbroken URLs
	   must never widen the page — clip strays, wrap long words. The table
	   scroller (.hpf-spost-tablewrap) scrolls internally so it's unaffected. */
	overflow-x: clip;
	overflow-wrap: break-word;
}
.hpf-spost-body > * { margin: 0 0 18px; }
.hpf-spost-body h2 {
	font-family: var(--hpf-font-head);
	font-size: clamp(21px, 2.6vw, 26px);
	font-weight: 800;
	line-height: 1.25;
	color: var(--hpf-ink);
	margin: 36px 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--hpf-border);
	scroll-margin-top: 120px; /* anchors clear the sticky header */
}
.hpf-spost-body h3 {
	font-family: var(--hpf-font-head);
	font-size: 19px;
	font-weight: 800;
	color: var(--hpf-ink);
	margin: 28px 0 10px;
	scroll-margin-top: 120px;
}
.hpf-spost-body h4 { font-family: var(--hpf-font-head); font-size: 16.5px; font-weight: 800; margin: 22px 0 8px; }
.hpf-spost-body a { color: var(--hpf-teal-dark); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(97, 186, 193, .5); text-underline-offset: 2px; }
.hpf-spost-body a:hover { color: var(--hpf-teal); }
.hpf-spost-body ul,
.hpf-spost-body ol { padding-left: 24px; }
.hpf-spost-body li { margin: 0 0 9px; }
.hpf-spost-body ul li::marker { color: var(--hpf-teal); }
.hpf-spost-body ol li::marker { color: var(--hpf-teal-dark); font-weight: 700; }
.hpf-spost-body img { max-width: 100%; height: auto; border-radius: 12px; }
.hpf-spost-body blockquote {
	border-left: 4px solid var(--hpf-teal);
	background: var(--hpf-bg-soft);
	border-radius: 0 12px 12px 0;
	margin: 0 0 18px;
	padding: 14px 20px;
	color: var(--hpf-muted);
	font-style: italic;
}

/* Tables ("Key Differences at a Glance" style). Wide tables live inside a
   .hpf-spost-tablewrap scroller (added in hpf_spost_prepare) so on small
   screens they scroll sideways instead of crushing their columns. */
.hpf-spost-tablewrap {
	margin: 0 0 18px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	border-radius: 12px;
	scrollbar-width: thin;                                    /* Firefox */
	scrollbar-color: var(--hpf-teal) rgba(97, 186, 193, .14);
}
.hpf-spost-tablewrap::-webkit-scrollbar { height: 6px; }
.hpf-spost-tablewrap::-webkit-scrollbar-track { background: rgba(97, 186, 193, .14); border-radius: 999px; }
.hpf-spost-tablewrap::-webkit-scrollbar-thumb {
	background: linear-gradient(90deg, var(--hpf-teal), var(--hpf-teal-dark));
	border-radius: 999px;
}
.hpf-spost-tablewrap table { margin: 0; min-width: 560px; }
.hpf-spost-body table {
	width: 100%;
	max-width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--hpf-border);
	border-radius: 12px;
	overflow: hidden;
	font-size: 14px;
}
.hpf-spost-body th,
.hpf-spost-body td { border: 0; border-bottom: 1px solid var(--hpf-border); padding: 11px 14px; text-align: left; vertical-align: top; }
.hpf-spost-body th {
	background: var(--hpf-bg-soft);
	font-family: var(--hpf-font-head);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--hpf-teal-dark);
}
.hpf-spost-body tr:last-child td { border-bottom: 0; }
.hpf-spost-body tbody tr:nth-child(even) td { background: rgba(242, 248, 247, .55); }

/* =====================  TL;DR QUICK ANSWER  =====================
   A details/summary block with the `tldr-quick-answer` class at the top of a
   post: tinted callout, "TL;DR" chip as the toggle, chevron rotates on open. */
.hpf-spost-body .tldr-quick-answer {
	background: linear-gradient(135deg, #eaf5f4 0%, #f4faf9 60%, #fdf6f8 100%);
	border: 1px solid rgba(97, 186, 193, .45);
	border-left: 4px solid var(--hpf-teal);
	border-radius: 14px;
	padding: 4px 20px;
	margin: 0 0 26px;
}
.hpf-spost-body .tldr-quick-answer summary {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 0;
	cursor: pointer;
	list-style: none;
	-webkit-user-select: none;
	user-select: none;
}
.hpf-spost-body .tldr-quick-answer summary::-webkit-details-marker { display: none; }
.hpf-spost-body .tldr-quick-answer summary::before {
	content: "⚡";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--hpf-teal-dark);
	font-size: 13px;
	line-height: 1;
	flex: 0 0 auto;
}
/* The summary text itself renders as the "TL;DR" chip. */
.hpf-spost-body .tldr-quick-answer summary {
	font-family: var(--hpf-font-head);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--hpf-teal-dark);
}
/* Chevron pushed to the far right; rotates while open. */
.hpf-spost-body .tldr-quick-answer summary::after {
	content: "";
	margin-left: auto;
	width: 9px;
	height: 9px;
	border-right: 2.5px solid var(--hpf-teal-dark);
	border-bottom: 2.5px solid var(--hpf-teal-dark);
	transform: rotate(45deg);
	transition: transform .25s var(--hpf-ease, ease);
	flex: 0 0 auto;
}
.hpf-spost-body .tldr-quick-answer[open] summary::after { transform: rotate(-135deg); }
.hpf-spost-body .tldr-quick-answer[open] summary { border-bottom: 1px solid rgba(97, 186, 193, .3); }
.hpf-spost-body .tldr-quick-answer p {
	font-size: 15.5px;
	line-height: 1.7;
	color: var(--hpf-ink);
	margin: 12px 0 14px;
}

/* =====================  FAQ ACCORDION  =====================
   Yoast FAQ block with the `blogs_page_faqs` class. single-post.js turns each
   question into a toggle and wraps the answer in .hpf-faq-body so the
   0fr → 1fr grid transition can animate open/closed. */
.blogs_page_faqs .schema-faq-section {
	background: var(--hpf-white);
	border: 1px solid var(--hpf-border);
	border-radius: 14px;
	margin: 0 0 12px;
	overflow: hidden;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.blogs_page_faqs .schema-faq-section:hover { border-color: rgba(97, 186, 193, .6); }
.blogs_page_faqs .schema-faq-section.is-open {
	border-color: rgba(97, 186, 193, .6);
	box-shadow: 0 10px 26px rgba(13, 95, 89, .08);
}
.blogs_page_faqs .schema-faq-question {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 18px;
	margin: 0;
	cursor: pointer;
	font-family: var(--hpf-font-head);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--hpf-ink);
	-webkit-user-select: none;
	user-select: none;
	transition: color .2s ease, background .2s ease;
}
.blogs_page_faqs .schema-faq-question:hover { color: var(--hpf-teal-dark); }
.blogs_page_faqs .schema-faq-section.is-open .schema-faq-question {
	color: var(--hpf-teal-dark);
	background: var(--hpf-bg-soft);
}
/* Plus → minus indicator pinned to the right. */
.blogs_page_faqs .schema-faq-question::after {
	content: "";
	flex: 0 0 auto;
	margin-left: auto;
	width: 9px;
	height: 9px;
	border-right: 2.5px solid var(--hpf-teal-dark);
	border-bottom: 2.5px solid var(--hpf-teal-dark);
	transform: rotate(45deg);
	transition: transform .25s var(--hpf-ease, ease);
}
.blogs_page_faqs .schema-faq-section.is-open .schema-faq-question::after { transform: rotate(-135deg); }

/* Collapsible body (JS-built wrapper). */
.blogs_page_faqs .hpf-faq-body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .35s var(--hpf-ease, ease);
}
.blogs_page_faqs .schema-faq-section.is-open .hpf-faq-body { grid-template-rows: 1fr; }
.blogs_page_faqs .hpf-faq-body__in { overflow: hidden; min-height: 0; }
.blogs_page_faqs .schema-faq-answer {
	display: block;
	padding: 14px 18px 16px;
	margin: 0;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--hpf-muted);
	border-top: 1px solid var(--hpf-border);
}

/* =====================  IN-ARTICLE PRODUCT CARD  =====================
   A media-text block with the `blogs_product_card` class dropped into post
   content (image | title, note, "View Product" button). */
.hpf-spost-body .blogs_product_card {
	display: grid;
	align-items: center;
	gap: 26px;
	background: var(--hpf-white);
	border: 1px solid var(--hpf-border);
	border-radius: 16px;
	padding: 22px 26px;
	margin: 26px 0;
	box-shadow: 0 6px 20px rgba(29, 35, 39, .05);
	transition: transform .3s var(--hpf-ease, ease), box-shadow .3s var(--hpf-ease, ease);
}
.hpf-spost-body .blogs_product_card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(13, 95, 89, .13); }
.hpf-spost-body .blogs_product_card .wp-block-media-text__media {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
}
.hpf-spost-body .blogs_product_card .wp-block-media-text__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}
.hpf-spost-body .blogs_product_card .wp-block-media-text__content { padding: 0; }
.hpf-spost-body .blogs_product_card h3 {
	font-family: var(--hpf-font-head);
	font-size: 20px;
	font-weight: 800;
	color: var(--hpf-ink);
	margin: 0 0 8px;
}
.hpf-spost-body .blogs_product_card p {
	font-size: 15px;
	color: var(--hpf-muted);
	margin: 0 0 16px;
}
.hpf-spost-body .blogs_product_card .wp-block-buttons { margin: 0; }
.hpf-spost-body .blogs_product_card .wp-block-button__link {
	display: inline-block;
	background: var(--hpf-teal);
	color: var(--hpf-white);
	font-family: var(--hpf-font-head);
	font-size: 15px;
	font-weight: 700;
	padding: 11px 26px;
	border: 0;
	border-radius: 999px;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.hpf-spost-body .blogs_product_card .wp-block-button__link:hover {
	background: var(--hpf-teal-dark);
	color: var(--hpf-white);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(13, 95, 89, .25);
	text-decoration: none;
}
/* Stack on small screens (mirrors core's is-stacked-on-mobile, made robust). */
@media (max-width: 600px) {
	.hpf-spost-body .blogs_product_card { grid-template-columns: 100% !important; gap: 16px; padding: 18px; }
	.hpf-spost-body .blogs_product_card .wp-block-media-text__media { max-width: 220px; margin: 0 auto; }
	.hpf-spost-body .blogs_product_card .wp-block-media-text__content { text-align: center; }
	.hpf-spost-body .blogs_product_card .wp-block-buttons { justify-content: center; }
}

/* =====================  PREV / NEXT POST  ===================== */
.hpf-spost-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 26px 0 0;
}
.hpf-spost-nav__card {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 18px 20px;
	background: var(--hpf-white);
	border: 1px solid var(--hpf-border);
	border-radius: 14px;
	text-decoration: none;
	transition: transform .3s var(--hpf-ease, ease), box-shadow .3s var(--hpf-ease, ease), border-color .3s ease;
}
.hpf-spost-nav__card:hover {
	transform: translateY(-3px);
	border-color: var(--hpf-teal);
	box-shadow: 0 14px 32px rgba(13, 95, 89, .12);
	text-decoration: none;
}
.hpf-spost-nav__card--next { text-align: right; align-items: flex-end; }
.hpf-spost-nav__label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--hpf-font-head);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--hpf-teal-dark);
}
.hpf-spost-nav__label svg { transition: transform .2s ease; }
.hpf-spost-nav__card--prev:hover .hpf-spost-nav__label svg { transform: translateX(-3px); }
.hpf-spost-nav__card--next:hover .hpf-spost-nav__label svg { transform: translateX(3px); }
.hpf-spost-nav__title {
	font-family: var(--hpf-font-head);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--hpf-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hpf-spost-nav__card:hover .hpf-spost-nav__title { color: var(--hpf-teal-dark); }

/* =====================  AUTHOR BOX  ===================== */
.hpf-spost-author {
	display: flex;
	align-items: center;
	gap: 20px;
	background: var(--hpf-teal-dark);
	border-radius: 18px;
	padding: 24px 26px;
	margin: 34px 0 0;
}
.hpf-spost-author__avatar {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .35);
}
.hpf-spost-author__body { min-width: 0; }
.hpf-spost-author__eyebrow {
	display: block;
	font-family: var(--hpf-font-head);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .7);
	margin-bottom: 2px;
}
.hpf-spost-author__name {
	display: block;
	font-family: var(--hpf-font-head);
	font-size: 18px;
	font-weight: 800;
	color: #fff;
}
.hpf-spost-author__bio { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .82); margin: 6px 0 0; }

/* =====================  COMMENTS (kept subtle)  ===================== */
.hpf-spost-comments { margin-top: 34px; }

/* =====================  RELATED READING  ===================== */
.hpf-spost-related { margin: 44px 0 20px; }
.hpf-spost-related__head {
	margin: 0 0 22px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--hpf-border);
}
.hpf-spost-related__title {
	font-family: var(--hpf-font-head);
	font-size: clamp(20px, 2.6vw, 26px);
	font-weight: 800;
	color: var(--hpf-ink);
	margin: 0;
}
.hpf-spost-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* =====================  RESPONSIVE  ===================== */
@media (max-width: 1024px) {
	.hpf-spost-layout { grid-template-columns: minmax(0, 1fr); }
	.hpf-spost-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hpf-spost-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	/* Label stacks above the pills so the row keeps its full scroll width. */
	.hpf-spost-chapters { border-radius: 16px; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px; }
	.hpf-spost-chapters__label { border-right: 0; padding-right: 0; }
	.hpf-spost-chapters__arrow { width: 30px; height: 30px; }
	.hpf-spost-hero { border-radius: 14px; }
	.hpf-spost-aside { grid-template-columns: minmax(0, 1fr); }
	.hpf-spost-related__grid { grid-template-columns: minmax(0, 1fr); }
	.hpf-spost-author { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
	.hpf-spost-nav { grid-template-columns: minmax(0, 1fr); }
	.hpf-spost-nav__spacer { display: none; }
	.hpf-spost-intro { padding: 15px 16px; font-size: 15px; }
	.hpf-spost-body { font-size: 15px; }
}
