/*
 * Get MEP Plans theme — case-study.css (R6 "Hybrid")
 * single-project.php — project-led sheet set: label + title + intro,
 * mini titleblock, framed sample-sheet grid, outcome, related.
 */

.mep-case-study {
	padding-top: 56px;
}

.mep-cs-head {
	max-width: 900px;
	margin-bottom: 40px;
}

.mep-cs-head h1 {
	font-size: clamp(32px, 4.4vw, 56px);
	margin: 6px 0 20px;
	line-height: 1.05;
}

.mep-cs-intro {
	font-size: 18px;
	line-height: 1.65;
	color: var(--ink-soft);
	max-width: 68ch;
	margin: 0;
}

.mep-mini-titleblock {
	margin-bottom: 56px;
}

/* Sample-sheet grid of framed viewports */
.mep-cs-sheets {
	margin-bottom: 56px;
}

.mep-sheet-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.mep-sheet-grid .mep-viewport .frame {
	height: 220px;
}

/* Outcome + prose sections */
.mep-cs-section {
	max-width: 760px;
	margin-bottom: 48px;
}

.mep-cs-section p {
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink-soft);
	margin: 0 0 16px;
}

.mep-cs-prose h2 {
	font-size: 28px;
	margin: 32px 0 12px;
}

/* Discipline sub-headings (Mechanical / Electrical / …) within a case study. */
.mep-cs-prose h3 {
	font-size: 20px;
	line-height: 1.3;
	margin: 30px 0 10px;
	letter-spacing: 0.01em;
}
.mep-cs-prose h3:first-child {
	margin-top: 0;
}

.mep-cs-prose ul {
	padding-left: 0;
	list-style: none;
}
.mep-cs-prose ul li {
	padding: 10px 0 10px 28px;
	position: relative;
	font-size: 16px;
	line-height: 1.55;
	color: var(--ink-soft);
	border-bottom: 0.5px solid var(--rule);
}
.mep-cs-prose ul li::before {
	content: "—";
	position: absolute;
	left: 0;
	color: var(--accent);
}

/* Related cross-links */
.mep-cs-cross-links {
	border-top: 0.5px solid var(--ink);
	border-bottom: 0.5px solid var(--ink);
	padding: 28px 0;
	margin: 8px 0 56px;
}

.mep-cs-cross-links .section-label {
	margin-bottom: 16px;
}

.mep-cs-cross-links-list {
	display: flex;
	gap: 14px 28px;
	flex-wrap: wrap;
}

.mep-cs-cross-links-list a {
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: 0.04em;
	color: var(--ink);
	border-bottom: 1px solid var(--ink);
	padding-bottom: 2px;
}
.mep-cs-cross-links-list a:hover {
	color: var(--accent);
	border-bottom-color: var(--accent);
}

@media (max-width: 980px) {
	.mep-sheet-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
	.mep-sheet-grid { grid-template-columns: 1fr; }
	.mep-sheet-grid .mep-viewport .frame { height: 260px; }
}
