/* Quiet Ad Slots: fixed, labelled, space-reserving ad slots. Nothing sticky. */
.qas-slot {
	--qas-muted: #6b7280;
	--qas-line: rgba(127, 127, 127, .22);
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	margin: 2em auto;
	overflow: hidden;
	clear: both;
	text-align: center;
}

/* Reserve the space before the ad loads so the text never jumps. */
.qas-slot--top,
.qas-slot--footer { min-height: 116px; max-width: 1200px; padding: 0 16px; margin: 1.25em auto; }
.qas-slot--inline1,
.qas-slot--inline2,
.qas-slot--after { min-height: 280px; }
.qas-slot--grid { min-height: 250px; height: 100%; margin: 0; }

@media (max-width: 600px) {
	.qas-slot--top,
	.qas-slot--footer { min-height: 120px; }
}

.qas-ins { display: block; width: 100%; }
.qas-ins[data-ad-status="unfilled"] { display: none !important; }

/* "Advertisement" label: only once an ad has actually loaded. */
.qas-label {
	display: none;
	margin: 0 0 6px;
	font-size: 11px;
	line-height: 1.2;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--qas-muted);
}
.qas-slot.qas-filled .qas-label,
.qas-slot:has(.qas-ins[data-ad-status="filled"]) .qas-label { display: block; }

/* Quiet note when Google has no ad to show. */
.qas-fallback {
	display: none;
	margin: 0;
	font-size: 13px;
	font-style: italic;
	color: var(--qas-muted);
}
.qas-slot.qas-unfilled .qas-fallback,
.qas-slot:has(.qas-ins[data-ad-status="unfilled"]) .qas-fallback { display: block; }

/* An empty footer slot disappears (like lesterchan.net). */
.qas-slot--footer.qas-unfilled,
.qas-slot--footer:has(.qas-ins[data-ad-status="unfilled"]) { display: none; }

/* Staff-only placeholders. */
.qas-slot--placeholder {
	border: 2px dashed var(--qas-line);
	border-radius: 8px;
	background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(127, 127, 127, .06) 10px 20px);
}
.qas-slot--placeholder .qas-label { display: block; }
.qas-placeholder { margin: 0; padding: 8px; font-size: 13px; color: var(--qas-muted); }

/* Archive grid card (block themes put it in an <li>; Cardline in its grid). */
.qas-grid-item { list-style: none; }
.qas-slot--grid {
	border: 1px solid var(--qas-line);
	border-radius: 12px;
	padding: 12px;
}

.qas-slot.qas-blocked { display: none; }

@media print {
	.qas-slot { display: none !important; }
}
