/*
 * Ad slots.
 *
 * The one job of this file beyond looking tidy: reserve the space an ad will
 * occupy before it loads. An ad that pushes content down when it arrives is
 * the single most common cause of a failing CLS score.
 */

.cam-slot {
	display: block;
	margin: 24px auto;
	text-align: center;
	max-width: 100%;
}

.cam-slot img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
	border-radius: 6px;
}

.cam-slot a { display: inline-block; line-height: 0; }

/*
 * The disclosure. Small, but never hidden — an unlabelled paid placement is a
 * problem with advertising standards, not a design choice.
 */
.cam-label {
	display: block;
	margin-bottom: 6px;
	font-size: 10px;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #8a94a6;
}

/*
 * Minimum heights per slot, matched to the sizes advertised in the admin.
 * They hold the space open so nothing reflows when the creative arrives.
 */
.cam-slot-header,
.cam-slot-above_results,
.cam-slot-results_inline,
.cam-slot-single_after_info { min-height: 106px; }

.cam-slot-sidebar_top,
.cam-slot-sidebar_bottom { min-height: 266px; }

.cam-slot-footer { min-height: 266px; }

@media (max-width: 782px) {
	/* Mobile creatives are shorter; holding desktop height would leave a hole. */
	.cam-slot-header,
	.cam-slot-above_results,
	.cam-slot-results_inline,
	.cam-slot-single_after_info,
	.cam-slot-footer { min-height: 116px; }
}

/* Inside the directory's sidebar the slot should not add its own outer margin. */
.chd-map-sticky .cam-slot { margin: 0 0 12px; }

@media print {
	.cam-slot { display: none; }
}
