/**
 * MyReapMoney Ads — frontend slot styling.
 *
 * The reserved box keeps its size whether or not an ad is filled, so the
 * layout doesn't shift when ad markup arrives.
 */

.mrm-ad-slot {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: var(--mrm-ad-w, 728px);
	min-height: var(--mrm-ad-h, 90px);
	margin: 1.75rem auto;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	text-align: center;
}

.mrm-ad-slot img {
	max-width: 100%;
	height: auto;
}

.mrm-ad-slot.is-empty {
	color: #5b6760;
	background: repeating-linear-gradient(135deg, #f2f7f3 0 10px, #eaf2ec 10px 20px);
	border: 1px dashed #b7c8bc;
}

.mrm-ad-slot__link {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	width: 100%;
	padding: 0.5rem;
	color: inherit;
	text-decoration: none;
}

.mrm-ad-slot__link:hover .mrm-ad-slot__cta {
	text-decoration: underline;
}

.mrm-ad-slot__label {
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #6b7670;
}

.mrm-ad-slot.has-ad .mrm-ad-slot__label {
	margin-bottom: 0.25rem;
}

.mrm-ad-slot.has-ad > :not(.mrm-ad-slot__label) {
	max-width: 100%;
	line-height: 0;
}

.mrm-ad-slot__cta {
	font-size: 13px;
	font-weight: 600;
	color: #123524;
}

.mrm-ad-slot__size {
	font-size: 11px;
	color: #6b7670;
}

/* ------------------------------------------------ Masthead billboard */

/* Full-width band above the header. The slot keeps its height whether or not
   an image has loaded, so the page never shifts underneath the reader. */
.mrm-masthead {
	background: #f2f7f3;
	border-bottom: 1px solid #dfe6e1;
}

.mrm-ad-slot--masthead_billboard {
	margin: 0 auto;
	padding-block: 0.6rem;
}

.mrm-ad-slot--masthead_billboard img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
}

/* A phone gets the 320x100 creative, so the reserved height drops with it. */
@media (max-width: 767px) {
	.mrm-ad-slot--masthead_billboard {
		min-height: 100px;
		max-width: 320px;
	}
}

/* Leaderboards don't fit on a phone; fall back to the 320-wide box. */
@media (max-width: 767px) {
	.mrm-ad-slot--homepage_leaderboard,
	.mrm-ad-slot--category_leaderboard {
		max-width: 320px;
	}
}
