/* =========================================================================
   Single post — single.php (Figma "Page Blog detail", 40000363:40819).

   Same conventions as main.css: one banner-comment block per section, tokens
   and container measures from main.css's :root, BEM names.

   Rebuilt for the reworked design: the hero sits on the shared gradient wash
   and drops the date, a "Results at a glance" band sits between hero and body,
   and the body is a two-column grid with a sticky facts column. The article
   prose itself lives in prose.css, shared with Privacy and Terms.

   ponytail: a separate file only because main.css is being written
   concurrently by another agent; fold it in once that lands.
   ========================================================================= */

/* ---- Post hero (Figma 40000371:44533) ----------------------------------- */
/* 224px top / 80px bottom, as on every page whose header floats over it. The
   wash is the same 1728x694 component the solution heroes use. */
.post-hero {
	position: relative;
	isolation: isolate;
	padding-block: clamp(7rem, 12.96vw, 14rem) var(--s-80);
	background: var(--c-white);
}

.post-hero__bg {
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 694px;
	overflow: hidden;
	pointer-events: none;
	z-index: -1;
}

.post-hero__bg img {
	position: absolute;
	top: 0; left: 50%;
	transform: translateX(-50%);
	width: 100%;
	min-width: 1728px;
	max-width: none;
	height: auto;
}

.post-hero__text {
	max-width: 800px;
	margin-inline: auto;
	text-align: center;
}

/* Figma replaced the tinted category pill + date row with one flat kicker:
   uppercase, accent blue on a pale periwinkle block, no icon and no date. */
.post-hero__kicker {
	display: inline-block;
	margin: 0;
	padding: 8px 16px;
	border-radius: var(--radius-2);
	background: #e7e8fc;
	font-size: clamp(1rem, 1.157vw, 1.25rem);        /* 20px @1728 */
	line-height: 1.6;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--c-accent);
}

.post-hero__title {
	/* Figma pads 8px above the heading's own line box, under a 30px gap. */
	margin: 38px 0 0;
	font-size: clamp(1.875rem, 3.009vw, 3.25rem);    /* 52px @1728 */
	line-height: 1.16;                                /* 60.32px @52px */
	font-weight: 700;
	letter-spacing: -0.02em;                          /* -1.04px @52px */
	color: var(--c-ink);
}

/* Figma insets the cover 20px inside the 1320 measure, the same way the
   solution heroes inset their photo pair. */
.post-hero__cover {
	margin: 60px 20px 0;
	border-radius: 20px;
	overflow: hidden;
}

.post-hero__cover img {
	width: 100%;
	height: auto;
	aspect-ratio: 1280 / 639;
	object-fit: cover;
}

/* ---- Results at a glance (Figma 40000371:44222) -------------------------- */
/* Ice band, centred heading, then five 420x180 cards on a 50px gutter: three
   across, then two centred under them. The grid is 3 columns of 420 with the
   second row starting in the middle of column 1 — `grid-column: span 2` on a
   6-column track does that without magic offsets. */
.cstats {
	padding-block: var(--s-80) var(--s-120);
	background: var(--c-ice);
}

.cstats__title {
	margin: 0;
	font-size: clamp(1.5rem, 1.852vw, 2rem);         /* 32px @1728 */
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-align: center;
	color: var(--c-ink);
}

.cstats__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 50px;
	margin: 70px 0 0;
	padding: 0;
	list-style: none;
}

.cstats__card {
	grid-column: span 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 180px;
	padding: 30px 70px;   /* Figma: 280px of text inside a 420px card */
	border-radius: 20px;
	background: var(--c-white);
	text-align: center;
}

/* Cards 4 and 5 centre under the three above: start half a column in. */
.cstats__card:nth-child(4) { grid-column: 2 / span 2; }
.cstats__card:nth-child(5) { grid-column: 4 / span 2; }

.cstats__value {
	margin: 0;
	font-size: clamp(2rem, 2.778vw, 3rem);           /* 48px @1728 */
	line-height: 1;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--c-car-3);
	font-variant-numeric: tabular-nums;
}

.cstats__label {
	margin: 0;
	font-size: clamp(1rem, 1.042vw, 1.125rem);       /* 18px @1728 */
	line-height: 1.56;
	font-weight: 400;
	color: var(--c-muted);
}

.cstats__note {
	max-width: 700px;
	margin: 70px auto 0;
	font-size: clamp(1rem, 1.042vw, 1.125rem);       /* 18px @1728 */
	line-height: 1.56;
	font-weight: 400;
	text-align: center;
	color: var(--c-muted);
}

/* ---- Article body + case sidebar (Figma 40000371:44753) ------------------ */
.post-body { padding-block: var(--s-80) var(--s-120); }

/* Figma: a 700px reading measure and a 420px facts column, 200px apart inside
   the 1320 measure. Without facts the article keeps prose.css's own centring. */
.post-body--aside .post-body__grid {
	display: grid;
	grid-template-columns: minmax(0, 700px) 420px;
	justify-content: space-between;
	gap: var(--s-48);
}

.post-body--aside .prose { margin-inline: 0; }

.post-facts__sticky {
	position: sticky;
	top: var(--s-80);
}

.post-facts__title {
	margin: 0;
	font-size: clamp(1.125rem, 1.157vw, 1.25rem);    /* 20px @1728 */
	line-height: 1.45;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--c-ink);
}

.post-facts__list { margin: 0; padding: 30px 0 0; }

.post-facts__item + .post-facts__item { margin-top: var(--s-24); }

.post-facts__label {
	margin: 0;
	font-size: 0.875rem;                              /* 14px */
	line-height: 1.6;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.post-facts__value {
	margin: 6px 0 0;
	font-size: clamp(1rem, 1.042vw, 1.125rem);       /* 18px @1728 */
	line-height: 1.56;
	font-weight: 700;
	color: var(--c-ink);
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1200px) {
	.post-body--aside .post-body__grid {
		grid-template-columns: minmax(0, 1fr) 340px;
	}
}

@media (max-width: 900px) {
	/* Same as the other over-header pages: clear the floating pill (~92px). */
	.post-hero { padding-block: 120px var(--s-48); }
	.post-hero__bg { height: 480px; }
	.post-hero__title { margin-top: var(--s-24); }
	.post-hero__cover { margin-inline: 0; }
	.post-hero__cover img { aspect-ratio: 3 / 2; }

	.cstats { padding-block: var(--s-64); }
	.cstats__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-16); margin-top: var(--s-32); }
	.cstats__card,
	.cstats__card:nth-child(4),
	.cstats__card:nth-child(5) { grid-column: 1 / -1; min-height: 0; padding: var(--s-24); }
	.cstats__note { margin-top: var(--s-32); }

	.post-body { padding-block: var(--s-48) var(--s-80); }
	/* The facts read as a footer to the article once the columns collapse. */
	.post-body--aside .post-body__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-48); }
	.post-facts__sticky { position: static; }
}
