/* BrandCustodian Ads — front-end.
   Deliberately unstyled beyond structure: a creative should sit in the page's
   own rhythm, and the disclosure label must always be legible. */

.bcads {
	display: block;
	margin-block: 32px;
	text-align: center;
}

.bcads__label {
	display: block;
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: 9.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ink-faint, #6b7280);
	margin-bottom: 8px;
}

.bcads__link {
	display: inline-block;
	max-width: 100%;
}

.bcads__img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
}

.bcads--header,
.bcads--footer {
	margin-block: 0;
	padding-block: 24px;
	border-bottom: 1px solid var(--line, #262b34);
}

.bcads--sidebar {
	margin-block: 0;
}

/* Device targeting is done in CSS so the markup can still be cached. */
@media (max-width: 780px) {
	.bcads--desktop {
		display: none;
	}
}

@media (min-width: 781px) {
	.bcads--mobile {
		display: none;
	}
}

/* Sticky bar */
.bcads-sticky {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 70;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 10px 48px 10px 16px;
	background: var(--bg-1, #12151b);
	border-top: 1px solid var(--line, #262b34);
}

.bcads-sticky .bcads {
	margin: 0;
}

.bcads-sticky__close {
	position: absolute;
	right: 10px;
	top: 50%;
	translate: 0 -50%;
	width: 30px;
	height: 30px;
	border: 1px solid var(--line, #262b34);
	background: none;
	color: var(--ink-dim, #9a9fa8);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.bcads-sticky__close:hover {
	color: var(--gold-bright, #f0c363);
	border-color: var(--gold, #d9a544);
}

@media print {
	.bcads,
	.bcads-sticky {
		display: none !important;
	}
}
