/* Case study detail page. Custom properties are scoped to .cs-single (not :root). */
.cs-single {
	--cs-ink: #14201a;
	--cs-muted: #52605a;
	--cs-paper: #f4f7f2;
	--cs-line: rgba(20, 32, 26, .14);
	--cs-accent: var(--bs-primary, #c9f26b);
	background: var(--cs-paper);
	color: var(--cs-ink);
}
.cs-single h1, .cs-single h2, .cs-single h3 { color: var(--cs-ink); }

/* Hero */
.cs-hero { background: var(--cs-ink); color: #fff; padding: 150px 0 150px; }
.cs-hero .cs-hero-title { color: #fff; max-width: 22ch; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.1; margin: 18px 0 20px; }
.cs-hero-intro { max-width: 62ch; font-size: 1.15rem; line-height: 1.7; color: rgba(255, 255, 255, .78); margin: 0; }
.cs-back { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .75); text-decoration: none; font-size: 14px; margin-bottom: 28px; }
.cs-back:hover { color: #fff; }
.cs-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cs-chip { padding: 5px 12px; border-radius: 999px; background: var(--cs-accent); color: #101612; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.cs-hero-industry { font-size: 14px; color: rgba(255, 255, 255, .7); }

/* Banner overlaps the hero */
.cs-banner-wrap { margin-top: -90px; position: relative; z-index: 2; }
.cs-banner { border-radius: 24px; overflow: hidden; background: #dfe6df; box-shadow: 0 30px 60px -30px rgba(20, 32, 26, .45); }
.cs-banner img { display: block; width: 100%; height: auto; }

/* Blocks */
.cs-block { padding: 72px 0 0; }
.cs-single .cs-overview-wrap { padding-top: 56px; }
.cs-h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.2; margin: 0 0 22px; }
.cs-prose { font-size: 1.05rem; line-height: 1.8; color: var(--cs-muted); max-width: 64ch; }
.cs-prose p:last-child { margin-bottom: 0; }
.cs-figure { border-radius: 20px; overflow: hidden; background: #e1e8e1; }
.cs-figure img { display: block; width: 100%; height: auto; }

/* Overview */
.cs-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 0; border-block: 1px solid var(--cs-line); }
.cs-overview > div { padding: 22px 24px 22px 0; }
.cs-overview dt { font-size: 13px; font-weight: 600; color: var(--cs-muted); margin-bottom: 6px; }
.cs-overview dd { margin: 0; font-size: 1.05rem; font-weight: 600; word-break: break-word; }
.cs-overview a { color: var(--cs-ink); text-underline-offset: 4px; }

/* Solution */
.cs-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--cs-line); }
.cs-points li { padding: 22px 0; border-bottom: 1px solid var(--cs-line); }
.cs-points h3 { font-size: 1.15rem; margin: 0 0 6px; }
.cs-points p { margin: 0; color: var(--cs-muted); line-height: 1.7; max-width: 60ch; }

/* Results */
.cs-results .cs-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.cs-stats li { background: var(--cs-ink); color: #fff; border-radius: 20px; padding: 30px 28px; display: flex; flex-direction: column; gap: 8px; }
.cs-stats strong { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--cs-accent); }
.cs-stats span { color: rgba(255, 255, 255, .8); line-height: 1.5; }

/* Gallery */
.cs-gallery { columns: 2; column-gap: 20px; }
.cs-gallery figure { margin: 0 0 20px; break-inside: avoid; border-radius: 18px; overflow: hidden; background: #e1e8e1; }
.cs-gallery img { display: block; width: 100%; height: auto; }

/* Testimonial */
.cs-quote { margin: 0; padding: 44px; border-radius: 24px; background: #fff; border: 1px solid var(--cs-line); }
.cs-quote blockquote { margin: 0 0 22px; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.5; max-width: 52ch; }
.cs-quote figcaption { display: flex; flex-direction: column; gap: 2px; }
.cs-quote figcaption span { color: var(--cs-muted); font-size: 14px; }

/* Tech (reuses pill style from the card CSS) */
.cs-tech { margin: 0; padding: 0; }
.cs-tech li { background: #fff; }

/* FAQ */
.cs-faq { max-width: 820px; border-top: 1px solid var(--cs-line); }
.cs-faq details { border-bottom: 1px solid var(--cs-line); padding: 18px 0; }
.cs-faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.cs-faq summary::-webkit-details-marker { display: none; }
.cs-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.cs-faq details[open] summary::after { content: "\2212"; }
.cs-faq details p { margin: 12px 0 0; color: var(--cs-muted); line-height: 1.75; max-width: 70ch; }

/* CTA */
.cs-cta { margin-top: 96px; background: var(--cs-ink); color: #fff; padding: 80px 0; text-align: left; }
.cs-cta h2 { color: #fff; max-width: 20ch; font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: 0 0 14px; }
.cs-cta p { color: rgba(255, 255, 255, .75); max-width: 54ch; margin: 0 0 28px; font-size: 1.05rem; }
.cs-cta-btn { display: inline-block; padding: 15px 30px; border-radius: 999px; background: var(--cs-accent); color: #101612; font-weight: 700; text-decoration: none; }
.cs-cta-btn:hover { filter: brightness(.95); color: #101612; }

.cs-back:focus-visible, .cs-cta-btn:focus-visible, .cs-faq summary:focus-visible, .cs-overview a:focus-visible { outline: 2px solid var(--cs-accent); outline-offset: 3px; }

@media (max-width: 991.98px) {
	.cs-hero { padding: 120px 0 110px; }
	.cs-banner-wrap { margin-top: -64px; }
	.cs-block { padding-top: 56px; }
	.cs-gallery { columns: 1; }
	.cs-quote { padding: 28px 22px; }
}
