/**
 * MF Post-Header variant: square-bento (ported from Round-1 demo "Variante 9").
 * Loaded only when a post's header variant is `square-bento`.
 *
 * A bento grid inside a capped, centred grey panel (bento width, not full page):
 * a white text card + a SQUARE image tile on the top row, a dark author card +
 * the ad card below. Deliberately crops the image to 1:1 like square-split.
 * System fonts + base.css colour vars only; no Google Fonts, no remote assets.
 */

.mfph-square-bento {
	/* Capped + centred bento width — not full page width. */
	max-width: 1080px;
	margin: 20px auto;
	background: #eef0f3;
	padding: clamp(16px, 2.4vw, 24px);
	border-radius: 18px;
}

.mfph-square-bento__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 16px;
}

.mfph-square-bento__main {
	background: var(--mf-paper);
	border-radius: 18px;
	padding: clamp(24px, 3vw, 40px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.mfph-square-bento__cat {
	font: 700 11px/1 var(--mf-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mf-magenta);
	margin: 0 0 14px;
}

.mfph-square-bento__title {
	font-family: var(--mf-serif);
	font-weight: 900;
	font-size: clamp(24px, 3vw, 40px);
	line-height: 1.06;
	margin: 0 0 16px;
}

.mfph-square-bento__lead {
	font-size: 16px;
	line-height: 1.55;
	color: #39404c;
	margin: 0;
}

.mfph-square-bento__fig {
	margin: 0;
	align-self: start;
	aspect-ratio: 1;
	border-radius: 18px;
	overflow: hidden;
}

/* Deliberate square crop: higher specificity overrides base.css
   `.mfph-header .mf-uncropped { height:auto }` for this variant only. */
.mfph-header .mfph-square-bento__fig .mf-uncropped {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mfph-square-bento__author {
	background: var(--mf-ink);
	color: #fff;
	border-radius: 18px;
	padding: 22px;
	display: flex;
	gap: 14px;
	align-items: center;
}

.mfph-square-bento__avatar {
	width: 52px;
	height: 52px;
}

.mfph-square-bento__who {
	font-weight: 700;
}

.mfph-square-bento__role {
	font-size: 12.5px;
	opacity: 0.75;
	margin-top: 3px;
}

.mfph-square-bento__metaline {
	font-size: 12px;
	opacity: 0.6;
	margin-top: 8px;
}

.mfph-square-bento__slot {
	background: var(--mf-paper);
	border-radius: 18px;
	overflow: hidden;
	padding: 18px 20px;
}

@media (max-width: 760px) {
	.mfph-square-bento__grid {
		grid-template-columns: 1fr;
	}
}
