/* Case study detail page — no site contact block */
main.pi-work-case-page {
	padding: clamp(100px, 12vw, 140px) 20px 80px;
	background: #fff;
	color: #111;
	min-height: 60vh;
}

.pi-work-case-inner {
	max-width: 820px;
	margin: 0 auto;
}

.pi-work-case-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 32px;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ce2027;
	text-decoration: none;
}

.pi-work-case-back:hover {
	text-decoration: underline;
}

.pi-work-case-kicker {
	display: block;
	margin-bottom: 12px;
	font-family: "Poppins", sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #ce2027;
}

.pi-work-case-title {
	margin: 0 0 20px;
	font-family: "Libre Baskerville", serif;
	font-size: clamp(32px, 5vw, 48px);
	line-height: 1.15;
	font-weight: 400;
	color: #111;
}

.pi-work-case-lead {
	margin: 0 0 48px;
	font-family: "Poppins", sans-serif;
	font-size: 18px;
	line-height: 1.75;
	color: #4a4a4a;
}

.pi-work-case-body section {
	margin-bottom: 40px;
}

.pi-work-case-body h2 {
	margin: 0 0 16px;
	font-family: "Libre Baskerville", serif;
	font-size: 26px;
	line-height: 1.3;
	font-weight: 400;
	color: #111;
}

.pi-work-case-body h3 {
	margin: 28px 0 12px;
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #222;
}

.pi-work-case-body p {
	margin: 0 0 16px;
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	line-height: 1.82;
	color: #4a4a4a;
}

.pi-work-case-body ul {
	margin: 0 0 16px;
	padding-left: 1.25em;
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	line-height: 1.75;
	color: #4a4a4a;
}

.pi-work-case-body li {
	margin-bottom: 8px;
}

.pi-work-case-projects {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pi-work-case-projects li {
	padding: 14px 18px;
	background: #f7f7f7;
	border-radius: 8px;
	border-left: 3px solid #ce2027;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
}

.pi-work-case-projects strong {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	color: #111;
}

.pi-work-case-page--pdf .pi-work-case-inner {
	max-width: 1100px;
}

.pi-work-case-pdf-viewer {
	width: 100%;
	max-height: min(82vh, 1200px);
	min-height: 480px;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	overflow-x: hidden;
	overflow-y: auto;
	background: #fff;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
	-webkit-overflow-scrolling: touch;
}

.pi-work-case-pdf-viewer.is-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f7f7f7;
}

.pi-work-case-pdf-viewer.is-loading::after {
	content: "";
	width: 32px;
	height: 32px;
	border: 3px solid #e5e5e5;
	border-top-color: #ce2027;
	border-radius: 50%;
	animation: pi-pdf-spin 0.8s linear infinite;
}

@keyframes pi-pdf-spin {
	to {
		transform: rotate(360deg);
	}
}

.pi-work-case-pdf-page {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.pi-work-case-pdf-page + .pi-work-case-pdf-page {
	margin-top: 8px;
}

.pi-work-case-pdf-error {
	margin: 0;
	padding: 48px 24px;
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	text-align: center;
	color: #666;
}

@media (max-width: 767px) {
	main.pi-work-case-page {
		padding-top: 88px;
	}

	.pi-work-case-lead {
		font-size: 16px;
	}

	.pi-work-case-pdf-viewer {
		max-height: 70vh;
		min-height: 360px;
	}
}
