/* White paper single: only what differs from the case study layout.
   Everything is under .wp-single, so case studies are unaffected. */
.cs-page.wp-single .wp-layout {
	grid-template-columns: minmax(0, 1fr) clamp(300px, 28vw, 400px);
}
@media (max-width: 940px) {
	.cs-page.wp-single .wp-layout { grid-template-columns: minmax(0, 1fr); }
	.cs-page.wp-single .wp-rail { order: -1; border-bottom: 0; padding-bottom: 0; }
}
.cs-page.wp-single .wp-rail__card {
	background: #fff; border: 1px solid rgba(18, 18, 18, .14); border-radius: 16px;
	padding: clamp(20px, 2vw, 28px); box-shadow: 0 14px 34px rgba(42, 44, 91, .10);
}
.cs-page.wp-single .wp-rail__card h3 { margin: 0 0 16px; color: #2a2c5b; }
.cs-page.wp-single .wp-rail__form { font-size: 15px; }
.cs-page.wp-single .wp-cta-wrap { padding-bottom: clamp(36px, 4.5vw, 64px); }

/* Body copy. The post content was written for the old blog layout and carries
   its own colours, sizes and &nbsp; spacer paragraphs, so it is normalised
   here to the case study body type. !important only where the editor's
   inline styles would otherwise win. */
.cs-page.wp-single .wp-prose {
	font-size: clamp(16px, 1.1vw, 18px); line-height: 1.75; color: var(--cs-body);
}
.cs-page.wp-single .wp-prose * {
	font-family: inherit !important; color: inherit !important; background: none !important;
	font-size: inherit !important; line-height: inherit !important; letter-spacing: normal !important;
}
.cs-page.wp-single .wp-prose p { margin: 0 0 1.1em; font-weight: 400; }
.cs-page.wp-single .wp-prose strong,
.cs-page.wp-single .wp-prose b { color: var(--cs-navy) !important; font-weight: 700; }
.cs-page.wp-single .wp-prose ul,
.cs-page.wp-single .wp-prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.cs-page.wp-single .wp-prose ul { list-style: disc; }
.cs-page.wp-single .wp-prose li { margin: 0 0 .5em; padding-left: .25em; }
.cs-page.wp-single .wp-prose li::marker { color: var(--cs-red); }
.cs-page.wp-single .wp-prose h2,
.cs-page.wp-single .wp-prose h3,
.cs-page.wp-single .wp-prose h4 {
	color: var(--cs-navy) !important; font-weight: 600; margin: 1.6em 0 .6em; line-height: 1.25 !important;
}
.cs-page.wp-single .wp-prose h2 { font-size: clamp(21px, 1.7vw, 30px) !important; }
.cs-page.wp-single .wp-prose h3,
.cs-page.wp-single .wp-prose h4 { font-size: clamp(18px, 1.35vw, 23px) !important; }
.cs-page.wp-single .wp-prose a { color: var(--cs-red) !important; }
.cs-page.wp-single .wp-prose img { border-radius: 12px; margin: 1.2em 0; }
.cs-page.wp-single .wp-rail__card h3 { font-size: clamp(17px, 1.3vw, 21px); line-height: 1.3; }
.cs-page.wp-single .wp-rail__form label { font-size: 14px; color: var(--cs-body); }

/* Closing image: show the whole illustration (some carry lettering) rather
   than the case study's 16:7 crop. */
.cs-page.wp-single .wp-figure { margin-top: clamp(32px, 4vw, 56px); }
.cs-page.wp-single .wp-figure img { aspect-ratio: auto; max-height: none; height: auto; }

/* Shorter closing image: wide 21:9 crop, capped in height, anchored a little
   above centre so the lettering on the illustrations survives the crop. */
.cs-page.wp-single .wp-figure img {
	aspect-ratio: 21 / 9; max-height: clamp(200px, 24vw, 340px);
	width: 100%; object-fit: cover; object-position: center 30%;
}
@media (max-width: 640px) {
	.cs-page.wp-single .wp-figure img { aspect-ratio: 16 / 9; max-height: none; }
}

/* Hero: matches the webinar page. Label line above the heading, heading at
   the webinar size (.fs-72 = 3.05vw), short red rule beneath. Scoped to
   .wp-single so case studies keep their sizes. */
.cs-page.wp-single .cs-hero__meta {
	margin: 0 0 clamp(8px, .9vw, 16px); font-weight: 700; color: #fff;
	font-size: clamp(15px, 1.15vw, 22px);
}
.cs-page.wp-single .cs-h1 {
	margin-top: 0; font-size: clamp(30px, 3.05vw, 72px); line-height: 1.2; max-width: 19ch;
}
.cs-page.wp-single .cs-h1 + .cs-rule {
	width: clamp(110px, 7.8vw, 150px); height: 5px; border-radius: 3px;
	margin-top: clamp(22px, 2.2vw, 40px);
}
@media (max-width: 880px) {
	.cs-page.wp-single .cs-h1 { max-width: none; }
}

/* Hero spacing lives on its own class (wp-hero__inner) so it can be tuned
   without touching the shared case study hero. Top padding is 28px, down
   from up to 72px, which moves the label closer to the breadcrumb. */
.cs-page.wp-single .wp-hero__inner { padding-top: 28px; }
