/* KASIS AdStack — slot containers. Reserved heights avoid layout shift. */
.kasis-ad-wrap { display: flex; flex-direction: column; align-items: center; width: 100%; }
.kasis-ad-wrap.is-empty { display: none; }
.kasis-ad-label {
	font: 500 11px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
	letter-spacing: .02em;
	color: #6b7280;
	margin-bottom: 4px;
}
.kasis-ad {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: var(--kasis-h-m, 0);
}
@media (min-width: 1024px) {
	.kasis-ad { min-height: var(--kasis-h-d, 0); }
}
.kasis-ad-wrap--mpu_1 .kasis-ad,
.kasis-ad-wrap--mpu_2 .kasis-ad,
.kasis-ad-wrap--inarticle .kasis-ad { max-width: 336px; }
.kasis-ad-wrap--leaderboard .kasis-ad,
.kasis-ad-wrap--footer .kasis-ad { max-width: 970px; }
.kasis-ad-wrap--infeed .kasis-ad { max-width: 728px; }
.kasis-ad-wrap--prose { margin: 2em 0; }

/* Debug frames: visible placement outlines until a creative fills the slot. */
.kasis-ad--debug:not(.is-filled) {
	background:
		repeating-linear-gradient(135deg, rgba(100, 116, 139, .08) 0 10px, transparent 10px 20px),
		#f8fafc;
	outline: 1px dashed #94a3b8;
	outline-offset: -1px;
}
.kasis-ad--debug:not(.is-filled)::after {
	content: attr(data-debug) "\A" attr(data-result);
	white-space: pre-wrap;
	text-align: center;
	padding: 8px 12px;
	font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
	color: #475569;
	max-width: 100%;
	overflow-wrap: anywhere;
}
