/*
 * Kininusa News — ad slot base + inline styles (Phase 13).
 *
 * Loaded only when at least ONE ad slot has content (AdsManager::assets()).
 * Floating-family styles live in ads-floating.css (loaded only when a
 * closable slot has content). Slot wrappers render only when they have
 * content — disabled/empty slots produce no HTML at all.
 *
 * Z-index: floating overlays use --kn-z-float (10), which stays BELOW
 * dropdown (50), header (100), backdrop (150), drawer (200) and overlay
 * (1000) — ads never cover the navigation drawer, search overlay or modal
 * layers. Decision documented in the Phase 13 report.
 *
 * Dimension support (§23): media inside a slot is capped to the container
 * width (height auto); fixed-size vendor banners keep their own dimensions.
 */
.kn-ad-slot {
	margin: var(--kn-space-5) 0;
	text-align: center;
}

.kn-ad-slot:empty {
	display: none;
}

.kn-ad-slot img,
.kn-ad-slot iframe {
	max-width: 100%;
}

.kn-ad-slot img {
	height: auto;
}

/* Header-family placements keep tighter rhythm. */
.kn-ad-slot--header,
.kn-ad-slot--after-header {
	margin: var(--kn-space-4) 0;
}

/* Inline ads keep the article rhythm. */
.kn-entry .kn-ad-slot {
	margin: var(--kn-space-5) 0;
}
