/**
 * MF Post-Header variant: square-split (ported from Round-1 demo "Variante 2").
 * Loaded only when a post's header variant is `square-split`.
 *
 * Two columns: a text column (crumb, title, lead, meta) beside a SQUARE image.
 * This is the one variant that deliberately crops the image to 1:1 — a
 * conscious exception to the suite's crop-free rule. System fonts + base.css
 * colour vars only; no Google Fonts, no remote assets.
 */

.mfph-square-split {

	/* A floating white card (the demo's .mf-frame): capped + centred width like
	   the bento headers, rounded, shadowed. overflow:hidden clips the square
	   image to the card's rounded corners. */
	max-width: 1080px;
	margin: 20px auto;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: stretch;
	background: var(--mf-paper);
	border: 1px solid var(--mf-line);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.35);
}

.mfph-square-split__text {
	padding: clamp(28px, 4vw, 56px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.mfph-square-split__crumb {
	font: 600 12px/1 var(--mf-font);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--mf-magenta);
	margin: 0 0 16px;
}

.mfph-square-split__title {
	font-family: var(--mf-serif);
	font-weight: 900;
	font-size: clamp(26px, 3.2vw, 42px);
	line-height: 1.06;
	margin: 0 0 18px;
}

.mfph-square-split__lead {
	font-size: 17px;
	line-height: 1.55;
	color: #2a2f3a;
	margin: 0 0 22px;
}

.mfph-square-split__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13.5px;
	color: var(--mf-muted);
}

.mfph-square-split__meta b {
	color: var(--mf-ink);
}

.mfph-square-split__avatar {
	width: 38px;
	height: 38px;
}

.mfph-square-split__fig {
	margin: 0;
	aspect-ratio: 1;
	overflow: hidden;
}

/* Deliberate square crop: the higher specificity here (three classes) overrides
   base.css `.mfph-header .mf-uncropped { height:auto }` for THIS variant only,
   so the featured image fills the 1:1 tile via object-fit:cover. */
.mfph-header .mfph-square-split__fig .mf-uncropped {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mfph-square-split__slot {
	grid-column: 1 / -1;
	padding: 0 clamp(28px, 4vw, 56px) 26px;
}

@media (max-width: 760px) {

	.mfph-square-split {
		grid-template-columns: 1fr;
	}

	/* Image on top on narrow screens; still a square tile. */
	.mfph-square-split__fig {
		order: -1;
	}
}
