/**
 * Rodos Report ads: structure of a zone only (label badge and reserved size).
 * Placement around the zones (rows, sidebar stacks, the slide-in anchor) belongs to the theme.
 * Sizes follow the mockup, main.css section 10.
 */

.ad-slot {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 100%;
	margin-inline: auto;
}

.ad-slot[hidden] {
	display: none;
}

/* The «ΔΙΑΦΗΜΙΣΗ» badge sits centred on the top edge of the creative. */
.ad-label {
	position: absolute;
	top: 0;
	left: 50%;
	z-index: 2;
	transform: translateX(-50%);
	padding: 3px 12px;
	background: #1c2838cc;
	color: #fff;
	border-radius: 0 0 var(--rr-radius, 4px) var(--rr-radius, 4px);
	box-shadow: 0 0 0 1px #ffffff29;
	font: 700 10px/1.5 var(--wp--preset--font-family--sans, sans-serif);
	letter-spacing: 1.6px;
	text-transform: uppercase;
	pointer-events: none;
}

/* Every creative reserves its height, so a late banner never shifts the text. */
.ad-creative {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	overflow: hidden;
}

.ad-creative > *,
.ad-creative figure {
	margin: 0;
}

.ad-creative img,
.ad-creative iframe {
	display: block;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
}

/* A · leaderboard and masthead header: 970×90 */
.ad--leaderboard .ad-creative,
.ad--header .ad-creative {
	max-width: 970px;
	height: 90px;
}

/* Anchor: billboard 970×250 on desktop */
.ad--anchor .ad-creative {
	max-width: 970px;
	height: 250px;
}

/* B · rectangle in content 336×280, mpu in the sidebar 300×250 */
.ad--rectangle .ad-creative {
	max-width: 336px;
	height: 280px;
}

.ad--mpu .ad-creative {
	max-width: 300px;
	height: 250px;
}

/* The masthead unit steps down first, as it shares the row with the logo. */
@media (max-width: 1240px) {
	.ad--header .ad-creative {
		max-width: 728px;
	}
}

@media (max-width: 1100px) {
	.ad--leaderboard .ad-creative {
		max-width: 728px;
	}

	.ad--anchor .ad-creative {
		max-width: 728px;
		height: 90px;
	}
}

@media (max-width: 1000px) {
	.ad--header .ad-creative {
		max-width: 320px;
		height: 100px;
	}
}

@media (max-width: 640px) {
	.ad--leaderboard .ad-creative,
	.ad--anchor .ad-creative {
		max-width: 320px;
		height: 100px;
	}

	.ad--rectangle .ad-creative {
		max-width: 300px;
		height: 250px;
	}
}

/* content-1 inserted automatically in the article body */
.rr-ad--auto {
	margin-block: var(--wp--preset--spacing--50, 2rem);
}
