/* Ad slots — see inc/ads.php */

.ad-slot {
	--ad-h: 150px;      /* placeholder height, desktop */
	--ad-h-m: 120px;    /* placeholder height, mobile */
	--ad-max: 1110px;
}

.ad-slot .ad-inner {
	max-width: var(--ad-max);
	margin: 0 auto;
}

.ad-label {
	display: block;
	direction: ltr;
	text-align: center;
	font-family: 'Roboto', sans-serif;
	font-size: 10px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #9a9a9a;
	line-height: 1;
	margin-bottom: 6px;
}

.ad-slot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.ad-slot iframe,
.ad-slot ins {
	display: block;
	margin: 0 auto;
	max-width: 100%;
}

/* Placeholder for empty slots */
.ad-placeholder {
	height: var(--ad-h);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px dashed #cfcfcf;
	border-radius: 4px;
	background: repeating-linear-gradient(135deg, #f7f7f7 0 12px, #f1f1f1 12px 24px);
	color: #8a8a8a;
	text-align: center;
}

.ad-placeholder-text {
	font-family: 'mv faseyha', sans-serif;
	font-size: 16px;
}

.ad-size {
	direction: ltr;
	font-family: 'Roboto', sans-serif;
	font-size: 12px;
	color: #a5a5a5;
}

.ad-size-mobile {
	display: none;
}

/* Full-width grey band (header leaderboard, billboards, bottom banner) */
.ad-band {
	background: #f2f2f2;
	padding: 18px 0;
	margin: 0;
}

.ad-band + .container,
.container + .ad-band,
.ad-band + .grey-back {
	margin-top: 30px;
}

.ad-slot--header_leaderboard {
	--ad-h: 140px;
	--ad-h-m: 90px;
}

.ad-slot--home_billboard_1,
.ad-slot--home_billboard_2 {
	--ad-h: 250px;
	--ad-h-m: 170px;
	--ad-max: 970px;
	margin: 30px 0;
}

.ad-slot--home_bottom {
	margin-top: 30px;
}

/* Wide banner inside the content column */
.ad-wide {
	margin: 10px 0 30px;
}

/* Card in the news grid — matches the height of the story cards */
.ad-card .ad-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.ad-card .ad-placeholder {
	height: auto;
	flex: 1;
	min-height: 250px;
}

.ad-card a,
.ad-card picture {
	display: block;
}

.ad-card img {
	aspect-ratio: 6 / 5;
	object-fit: cover;
}

/* Article sidebar */
.ad-side {
	margin: 1.4rem 0;
}

.ad-side .ad-placeholder {
	--ad-h: 250px;
}

.ad-slot--article_sidebar_tall {
	position: sticky;
	top: 20px;
}

.ad-slot--article_sidebar_tall .ad-placeholder {
	--ad-h: 600px;
}

/* Inside / below the story */
.ad-inline {
	--ad-max: 728px;
	--ad-h: 90px;
	--ad-h-m: 250px;
	margin: 28px auto;
	clear: both;
}

.ad-inline .ad-inner {
	max-width: var(--ad-max);
}

@media (max-width: 767px) {
	.ad-placeholder,
	.ad-side .ad-placeholder {
		height: var(--ad-h-m);
	}

	.ad-size-desktop {
		display: none;
	}

	.ad-size-mobile {
		display: inline;
	}

	.ad-band {
		padding: 12px 15px;
	}

	.ad-slot--home_billboard_1,
	.ad-slot--home_billboard_2 {
		margin: 20px 0;
	}

	.ad-slot--article_sidebar_tall {
		display: none;
	}

	.ad-inline .ad-inner {
		max-width: 300px;
	}
}
