/**
 * Blog styles — article typography + pagination for the Cardiosense blog.
 *
 * Loaded only on blog views (see inc/blog/setup.php). cardiosense.css already
 * provides the design tokens + fonts + utility classes the templates use; this
 * file adds the two things Tailwind utilities can't cleanly express:
 *
 *   1. `.cs-prose` — typographic rhythm for the_content() output (headings,
 *      paragraphs, lists, links, blockquotes, images). `.cs-prose` is used
 *      site-wide as a semantic hook but had no rules until now.
 *   2. `.page-numbers` — WordPress's paginate_links() markup, styled to match.
 *
 * BRAND ANCHOR RULE (locked 2026-05-12): never hard-code the palette hex.
 * Reference the CSS custom properties --cs-brand-navy / --cs-brand-red /
 * --cs-brand-frost defined in cardiosense.css (same pattern as careers.css).
 */

/* ── Article body typography ─────────────────────────────────────────────── */

.cs-blog-single .cs-prose > * + * {
	margin-top: 1.15em;
}

.cs-blog-single .cs-prose h2 {
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.3;
	color: var(--cs-brand-navy);
	margin-top: 2em;
	margin-bottom: 0.5em;
}

.cs-blog-single .cs-prose h3 {
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 600;
	font-size: 1.2rem;
	line-height: 1.35;
	color: var(--cs-brand-navy);
	margin-top: 1.6em;
	margin-bottom: 0.4em;
}

.cs-blog-single .cs-prose p,
.cs-blog-single .cs-prose li {
	font-size: 1.0625rem;
	line-height: 1.75;
}

.cs-blog-single .cs-prose ul,
.cs-blog-single .cs-prose ol {
	padding-left: 1.4em;
}

.cs-blog-single .cs-prose ul {
	list-style: disc;
}

.cs-blog-single .cs-prose ol {
	list-style: decimal;
}

.cs-blog-single .cs-prose li + li {
	margin-top: 0.4em;
}

.cs-blog-single .cs-prose a {
	color: var(--cs-brand-red);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cs-blog-single .cs-prose a:hover,
.cs-blog-single .cs-prose a:focus-visible {
	text-decoration: none;
}

.cs-blog-single .cs-prose blockquote {
	border-left: 3px solid var(--cs-brand-red);
	padding-left: 1.25rem;
	font-style: italic;
	color: #334155; /* slate-700 — neutral, not a brand color */
}

.cs-blog-single .cs-prose img,
.cs-blog-single .cs-prose figure {
	border-radius: 0.75rem;
	max-width: 100%;
	height: auto;
}

.cs-blog-single .cs-prose :where(code, pre) {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
}

/* ── Checklist: brand status-ok green checkmarks ──────────────────────────── */

/*
 * --cs-status-ok is the semantic "in-range / success" green (#16a34a,
 * Tailwind green-600) specified in
 * docs/design-review/2026-06-11-semantic-status-ramp-green.md for status
 * indicators. It's scoped here (rather than hard-coded per rule, and rather
 * than added to the locked 3-color design system) until that proposal is
 * ratified. Add `class="cs-check-list"` to a <ul> to render green ✓ markers
 * instead of the generic ✅ emoji, which renders in a fixed non-brand green.
 */
.cs-blog-single .cs-prose ul.cs-check-list {
	--cs-status-ok: #16a34a;

	list-style: none;
	padding-left: 0;
}

.cs-blog-single .cs-prose ul.cs-check-list > li {
	position: relative;
	padding-left: 1.9rem;
}

.cs-blog-single .cs-prose ul.cs-check-list > li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
	color: var(--cs-status-ok);
}

/* ── Pagination (WordPress paginate_links / the_posts_pagination) ─────────── */

.cs-blog-pagination .nav-links,
.cs-blog-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
}

.cs-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid #e2e8f0; /* slate-200 */
	border-radius: 0.5rem;
	font-family: Inter, system-ui, sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--cs-brand-navy);
	text-decoration: none;
	transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.cs-blog-pagination a.page-numbers:hover,
.cs-blog-pagination a.page-numbers:focus-visible {
	border-color: var(--cs-brand-red);
	color: var(--cs-brand-red);
	outline: none;
}

.cs-blog-pagination .page-numbers.current {
	background-color: var(--cs-brand-navy);
	border-color: var(--cs-brand-navy);
	color: #fff;
}

.cs-blog-pagination .page-numbers.dots {
	border-color: transparent;
}

/* ── Prev / next post links ──────────────────────────────────────────────── */

.cs-blog-prevnext a {
	color: var(--cs-brand-navy);
	text-decoration: none;
	font-weight: 600;
}

.cs-blog-prevnext a:hover,
.cs-blog-prevnext a:focus-visible {
	color: var(--cs-brand-red);
}

/* ── Design-preview switch (review-only; global, shows on /blog/ AND /blog2/) ── */

.cs-blog-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
	font-family: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, monospace;
	font-size: 0.75rem;
}

.cs-blog-switch__label {
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #5b6b86;
}

.cs-blog-switch__opt {
	padding: 5px 13px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	color: var(--cs-brand-navy);
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.cs-blog-switch__opt:hover,
.cs-blog-switch__opt:focus-visible {
	border-color: var(--cs-brand-red);
	color: var(--cs-brand-red);
	outline: none;
}

.cs-blog-switch__opt--active,
.cs-blog-switch__opt--active:hover {
	background: var(--cs-brand-navy);
	border-color: var(--cs-brand-navy);
	color: #fff;
}

/* ═══ Redesign prototype — SCOPED to /blog2/ (.cs-blog--v2) ══════════════════ */
/*
 * A/B review: /blog/ stays flat (original), /blog2/ (page-templates/
 * cardiosense-blog2.php) gets this elevated "art of the possible" treatment.
 * EVERY selector is scoped under .cs-blog--v2 so nothing here can touch
 * /blog/. Some on-navy tints are derived (not the 3 locked brand tokens) — to
 * be tokenized if the direction is approved. All motion honors
 * prefers-reduced-motion (bottom).
 */

/* Monospace metadata — a clinical "data readout" feel. */
.cs-blog--v2 .cs-blog-meta {
	font-family: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, monospace;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: #5b6b86;
}

/* ── Cards: border, depth, growing accent, visual header, hover zoom ──────── */

.cs-blog--v2 .cs-blog-card {
	position: relative;
	border: 1px solid #e6ebf2;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cs-blog--v2 .cs-blog-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	z-index: 3;
	height: 3px;
	width: 0;
	background: var(--cs-brand-red);
	transition: width 0.28s ease;
}

.cs-blog--v2 .cs-blog-card:hover,
.cs-blog--v2 .cs-blog-card:focus-within {
	transform: translateY(-5px);
	border-color: #cdd8e8;
	box-shadow: 0 18px 40px -22px rgb(2 6 23 / 0.6);
}

.cs-blog--v2 .cs-blog-card:hover::before,
.cs-blog--v2 .cs-blog-card:focus-within::before {
	width: 100%;
}

/* ── Compact tiles — dense grid, ~quarter footprint (grid only; hero unchanged) ── */
.cs-blog--v2 .cs-blog-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

@media (min-width: 768px) {
	.cs-blog--v2 .cs-blog-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.cs-blog--v2 .cs-blog-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.cs-blog--v2 .cs-blog-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.cs-blog--v2 .cs-blog-card__body {
	padding: 0.85rem;
}

.cs-blog--v2 .cs-blog-card__body h2 {
	font-size: 0.82rem;
	line-height: 1.3;
	margin-bottom: 0.35rem;
}

.cs-blog--v2 .cs-blog-card__excerpt {
	font-size: 0.72rem;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.cs-blog--v2 .cs-blog-meta,
.cs-blog--v2 .cs-blog-card__attr {
	font-size: 0.62rem;
}

.cs-blog--v2 .cs-blog-card__media {
	position: relative;
}

.cs-blog--v2 .cs-blog-card__media img {
	transition: transform 0.4s ease;
}

.cs-blog--v2 .cs-blog-card:hover .cs-blog-card__media img {
	transform: scale(1.05);
}

/* Imageless posts get a branded visual: navy gradient + ghost kicker + ECG. */
.cs-blog--v2 .cs-blog-card__media--fallback {
	display: block;
	overflow: hidden;
	/* ~25% deeper: brighter top stop, darker bottom stop for a richer gradient. */
	background: linear-gradient(150deg, #1c468a, #08152f);
}

.cs-blog--v2 .cs-blog-card__ghost {
	position: absolute;
	left: 16px;
	bottom: 10px;
	z-index: 1;
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 800;
	font-size: 1.2rem;
	line-height: 1;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	color: rgb(255 255 255 / 0.13);
}

/* Outlet logo on the navy fallback — a white plate so any logo colour reads. */
.cs-blog--v2 .cs-blog-card__outlet {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14%;
}

.cs-blog--v2 .cs-blog-card__outlet-img {
	max-width: 100%;
	max-height: 46px;
	object-fit: contain;
	background: #fff;
	padding: 9px 13px;
	border-radius: 8px;
	box-shadow: 0 6px 18px -8px rgb(2 6 23 / 0.55);
}

.cs-blog--v2 .cs-blog-card__ecg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	color: var(--cs-brand-red);
	opacity: 0.08;
	transition: opacity 0.3s ease;
}

.cs-blog--v2 .cs-blog-card__ecg path {
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cs-blog--v2 .cs-blog-card:hover .cs-blog-card__ecg {
	opacity: 0.14;
}

/* ── Section tags — color-coded per category slug, with a dot ─────────────── */

.cs-blog--v2 .cs-cat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, monospace;
	font-size: 0.66rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 5px;
	background: #eef2f7;
	color: #334155;
}

.cs-blog--v2 .cs-cat__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentcolor;
	opacity: 0.75;
}

.cs-blog--v2 .cs-cat--news,
.cs-blog--v2 .cs-cat--company {
	background: #e7eefb;
	color: #0e244f;
}

.cs-blog--v2 .cs-cat--clinical-evidence {
	background: #e0f2f1;
	color: #0f6e56;
}

.cs-blog--v2 .cs-cat--regulatory,
.cs-blog--v2 .cs-cat--thought-leadership,
.cs-blog--v2 .cs-cat--media-coverage {
	background: #fdeaeb;
	color: #b90f18;
}

.cs-blog--v2 .cs-cat--press-releases {
	background: #e7eefb;
	color: #0e244f;
}

/* Card attribution — author + publication source. */
.cs-blog--v2 .cs-blog-card__attr {
	margin: 12px 0 0;
	font-family: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, monospace;
	font-size: 0.7rem;
	line-height: 1.4;
	color: #64748b;
}

.cs-blog--v2 .cs-blog-card__author {
	font-weight: 600;
	color: #475569;
}

.cs-blog--v2 .cs-blog-card__dot {
	margin: 0 6px;
	color: #cbd5e1;
}

.cs-blog--v2 .cs-blog-card__source {
	color: var(--cs-brand-blue, #0e244f);
	font-weight: 600;
}

/* External-link cue on press-coverage cards + the article link-out button. */
.cs-blog--v2 .cs-blog-card__ext {
	font-size: 0.8em;
	color: #94a3b8;
}

.cs-blog-single--v2 .cs-article-linkout {
	margin: 0 0 28px;
}

.cs-blog-single--v2 .cs-article-linkout__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--cs-brand-red);
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 700;
	color: #fff;
	transition: background-color 0.2s ease;
}

.cs-blog-single--v2 .cs-article-linkout__btn:hover,
.cs-blog-single--v2 .cs-article-linkout__btn:focus-visible {
	background: #d81620;
}

.cs-blog-single--v2 .cs-article-linkout__arrow {
	transition: transform 0.25s ease;
}

.cs-blog-single--v2 .cs-article-linkout__btn:hover .cs-article-linkout__arrow {
	transform: translate(2px, -2px);
}

/* ── "Latest" section heading with an ECG accent ─────────────────────────── */

.cs-blog--v2 .cs-blog-latest {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 4px 0 24px;
}

.cs-blog--v2 .cs-blog-latest__title {
	margin: 0;
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 800;
	font-size: 1.4rem;
	letter-spacing: -0.02em;
	color: var(--cs-brand-navy);
}

.cs-blog--v2 .cs-blog-latest__ecg {
	flex: 1;
	max-width: 200px;
	height: 16px;
	color: var(--cs-brand-red);
	opacity: 0.28;
}

.cs-blog--v2 .cs-blog-latest__ecg path,
.cs-blog--v2 .cs-ecg-divider path {
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cs-blog--v2 .cs-ecg-divider {
	display: block;
	width: 100%;
	height: 22px;
	margin: 4px 0 28px;
	color: var(--cs-brand-red);
	opacity: 0.28;
}

/* ── Featured hero — layered, living heartbeat lead story ─────────────────── */

.cs-blog--v2 .cs-blog-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	margin-bottom: 20px;
	padding: 56px 48px 64px;
	border-radius: 18px;
	color: var(--cs-brand-frost);
	background:
		radial-gradient(120% 150% at 88% -20%, #1d477f 0%, rgb(29 71 127 / 0) 55%),
		linear-gradient(158deg, #16386e 0%, #0e244f 58%, #091a3b 100%);
}

.cs-blog--v2 .cs-blog-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.04;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60'%3E%3Cpath d='M0 34 H92 L102 14 L112 50 L122 34 H240' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E");
	background-size: 240px 60px;
}

.cs-blog--v2 .cs-blog-hero__glow {
	position: absolute;
	right: -70px;
	bottom: -90px;
	z-index: 0;
	width: 340px;
	height: 340px;
	background: radial-gradient(circle, rgb(185 15 24 / 0.32) 0%, rgb(185 15 24 / 0) 68%);
	animation: cs-hero-breathe 6s ease-in-out infinite;
}

.cs-blog--v2 .cs-blog-hero__ecg {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	height: 96px;
	color: var(--cs-brand-red);
	opacity: 0.2;
	pointer-events: none;
}

.cs-blog--v2 .cs-blog-hero__ecg path {
	fill: none;
	stroke: currentcolor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1600;
	stroke-dashoffset: 1600;
	animation: cs-ecg-sweep 3s ease-out forwards;
}

.cs-blog--v2 .cs-blog-hero__inner {
	position: relative;
	z-index: 2;
	max-width: none; /* span the tile so the headline fills the width, not a narrow left column */
}

.cs-blog--v2 .cs-blog-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	font-family: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, monospace;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ff8a90;
}

.cs-blog--v2 .cs-blog-hero__pulse {
	width: 8px;
	height: 8px;
	margin-right: 9px;
	border-radius: 50%;
	background: #ff5a63;
	animation: cs-pulse 1.9s ease-out infinite;
}

.cs-blog--v2 .cs-blog-hero__title {
	margin: 0.6rem 0 0.85rem;
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(2.3rem, 5.4vw, 3.9rem);
	line-height: 1.06;
	letter-spacing: -0.025em;
	text-wrap: balance;
	color: #fff;
}

.cs-blog--v2 .cs-blog-hero__title a {
	color: inherit;
}

.cs-blog--v2 .cs-blog-hero__excerpt {
	margin: 0 0 1rem;
	max-width: 60ch; /* headline spans the tile; keep the sub-copy at a readable measure */
	font-size: 1.125rem;
	line-height: 1.6;
	color: #c3d0e6;
}

.cs-blog--v2 .cs-blog-hero__meta {
	font-family: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, monospace;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: #9fb2d4;
}

.cs-blog--v2 .cs-blog-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 1.35rem;
	padding: 11px 22px;
	border-radius: 999px;
	background: var(--cs-brand-red);
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 700;
	color: #fff;
	transition: background-color 0.2s ease;
}

.cs-blog--v2 .cs-blog-hero__cta:hover {
	background: #d81620;
}

.cs-blog--v2 .cs-blog-hero__arrow {
	transition: transform 0.25s ease;
}

.cs-blog--v2 .cs-blog-hero__cta:hover .cs-blog-hero__arrow {
	transform: translateX(6px);
}

/* ── Scroll reveal (only armed once JS adds .cs-reveal-on) ────────────────── */

.cs-blog--v2.cs-reveal-on [data-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.cs-blog--v2.cs-reveal-on [data-reveal].cs-revealed {
	opacity: 1;
	transform: none;
}

.cs-blog--v2.cs-reveal-on .cs-blog-grid > li:nth-child(2) {
	transition-delay: 0.07s;
}

.cs-blog--v2.cs-reveal-on .cs-blog-grid > li:nth-child(3) {
	transition-delay: 0.14s;
}

.cs-blog--v2.cs-reveal-on .cs-blog-grid > li:nth-child(4) {
	transition-delay: 0.07s;
}

.cs-blog--v2.cs-reveal-on .cs-blog-grid > li:nth-child(5) {
	transition-delay: 0.14s;
}

.cs-blog--v2.cs-reveal-on .cs-blog-grid > li:nth-child(6) {
	transition-delay: 0.21s;
}

@media (max-width: 640px) {
	.cs-blog--v2 .cs-blog-hero {
		padding: 36px 24px 48px;
	}
}

@keyframes cs-ecg-sweep {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes cs-hero-breathe {
	0%,
	100% {
		opacity: 0.28;
		transform: scale(1);
	}

	50% {
		opacity: 0.46;
		transform: scale(1.04);
	}
}

@keyframes cs-pulse {
	0% {
		box-shadow: 0 0 0 0 rgb(255 90 99 / 0.6);
	}

	70% {
		box-shadow: 0 0 0 10px rgb(255 90 99 / 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgb(255 90 99 / 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cs-blog--v2 .cs-blog-hero__ecg path {
		animation: none;
		stroke-dashoffset: 0;
	}

	.cs-blog--v2 .cs-blog-hero__glow,
	.cs-blog--v2 .cs-blog-hero__pulse {
		animation: none;
	}

	.cs-blog--v2 .cs-blog-card,
	.cs-blog--v2 .cs-blog-card__media img,
	.cs-blog--v2 .cs-blog-hero__arrow {
		transition: none;
	}

	.cs-blog--v2.cs-reveal-on [data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ═══ v2 single-post (immersive article) — SCOPED to .cs-blog-single--v2 ══════ */
/*
 * Served at ?exp=v2 (see inc/blog/setup.php). Reuses the .cs-blog-hero__bg/
 * __glow/__ecg/__eyebrow/__pulse rules above (the wrapper carries .cs-blog--v2).
 * Review-only; derived on-navy tints to be tokenized if approved.
 */

.cs-blog-single--v2 .cs-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	height: 3px;
	background: rgb(14 36 79 / 0.12);
}

.cs-blog-single--v2 .cs-reading-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--cs-brand-red);
}

.cs-blog-single--v2 .cs-article-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: 68px 24px 76px;
	color: var(--cs-brand-frost);
	background:
		radial-gradient(120% 150% at 88% -20%, #1d477f 0%, rgb(29 71 127 / 0) 55%),
		linear-gradient(158deg, #16386e 0%, #0e244f 58%, #091a3b 100%);
}

.cs-blog-single--v2 .cs-article-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 760px;
	margin: 0 auto;
}

.cs-blog-single--v2 .cs-article-hero__title {
	margin: 0.6rem 0 1.4rem;
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 800;
	font-size: clamp(2rem, 4.6vw, 3.2rem);
	line-height: 1.08;
	letter-spacing: -0.025em;
	text-wrap: balance;
	color: #fff;
}

/* Byline — the human-credibility signal in the hero. */
.cs-blog-single--v2 .cs-byline {
	display: flex;
	align-items: center;
	gap: 13px;
}

.cs-blog-single--v2 .cs-byline__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid rgb(255 255 255 / 0.25);
	background: rgb(255 255 255 / 0.1);
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	color: #fff;
}

.cs-blog-single--v2 .cs-byline__text {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.cs-blog-single--v2 .cs-byline__name {
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	color: #fff;
}

.cs-blog-single--v2 .cs-byline__meta {
	font-family: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, monospace;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	color: #9fb2d4;
}

/* Reading column. */
.cs-blog-single--v2 .cs-article-wrap {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 24px 72px;
}

.cs-blog-single--v2 .cs-article-figure {
	margin: -44px 0 36px;
	border-radius: 14px;
	overflow: hidden;
	background: #f1f5f9;
	box-shadow: 0 24px 50px -28px rgb(2 6 23 / 0.5);
	aspect-ratio: 16 / 9;
}

.cs-blog-single--v2 .cs-prose {
	padding-top: 8px;
	max-width: 68ch;
}

/* Lede + drop cap — pulls the reader into the first line. */
.cs-blog-single--v2 .cs-prose--lede > p:first-of-type {
	font-size: 1.2rem;
	line-height: 1.7;
	color: #0b1a33;
}

.cs-blog-single--v2 .cs-prose--lede > p:first-of-type::first-letter {
	float: left;
	margin: 0.08em 0.12em 0 0;
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 800;
	font-size: 3.1em;
	line-height: 0.78;
	color: var(--cs-brand-red);
}

/* Author bio card — the human behind the words. */
.cs-blog-single--v2 .cs-author-bio {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-top: 40px;
	padding: 22px 24px;
	border: 1px solid #e6ebf2;
	border-left: 3px solid var(--cs-brand-red);
	border-radius: 12px;
	background: #f8fafc;
}

.cs-blog-single--v2 .cs-author-bio__avatar {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--cs-brand-navy);
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 700;
	color: #fff;
}

.cs-blog-single--v2 .cs-author-bio__name {
	margin: 0 0 4px;
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 700;
	color: var(--cs-brand-navy);
}

.cs-blog-single--v2 .cs-author-bio__blurb {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #5b6b86;
}

/* Related strip. */
.cs-blog-single--v2 .cs-article-related {
	margin-top: 48px;
}

.cs-blog-single--v2 .cs-article-related__item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid #e6ebf2;
	text-decoration: none;
}

.cs-blog-single--v2 .cs-article-related__title {
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 600;
	color: var(--cs-brand-navy);
	transition: color 0.15s ease;
}

.cs-blog-single--v2 .cs-article-related__item:hover .cs-article-related__title {
	color: var(--cs-brand-red);
}

.cs-blog-single--v2 .cs-article-related__date {
	flex: none;
	font-family: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, monospace;
	font-size: 0.72rem;
	color: #8a97ab;
}

@media (prefers-reduced-motion: reduce) {
	.cs-blog-single--v2 .cs-article-related__title {
		transition: none;
	}
}

/* Team-member author byline/bio — photo, role, link. */
.cs-blog-single--v2 .cs-byline__photo {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid rgb(255 255 255 / 0.25);
}

.cs-blog-single--v2 .cs-author-bio__photo {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}

.cs-blog-single--v2 .cs-author-bio__role {
	display: block;
	margin-top: 2px;
	font-family: ui-monospace, "SF Mono", "IBM Plex Mono", Menlo, monospace;
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	color: #5b6b86;
}

.cs-blog-single--v2 .cs-author-bio__link {
	display: inline-block;
	margin-top: 10px;
	font-family: Manrope, system-ui, sans-serif;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--cs-brand-red);
	text-decoration: none;
}

.cs-blog-single--v2 .cs-author-bio__link:hover,
.cs-blog-single--v2 .cs-author-bio__link:focus-visible {
	text-decoration: underline;
}
