/* ==========================================================================
   BharatpediaNeo — AdSense units
   Reserved height prevents CLS. Label is required for policy clarity.
   Parent overflow must stay visible so responsive units are not clipped.
   ========================================================================== */

.bpneo-ad {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 20px 0;
	padding: 0;
	clear: both;
	overflow: visible;
	box-sizing: border-box;
}

.bpneo-ad-label {
	font-size: 11px;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8a8a8a;
	margin: 0 0 8px;
	user-select: none;
}

.bpneo-ad-frame {
	width: 100%;
	min-height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border-radius: 8px;
	overflow: visible;
}

.bpneo-ad .adsbygoogle {
	display: block;
	width: 100%;
}

/* Placement tweaks ------------------------------------------------------- */

.bpneo-ad--after_title {
	margin: 8px 0 22px;
}

.bpneo-ad--in_article {
	margin: 28px 0;
}

.bpneo-ad--after_content {
	margin: 28px 0 8px;
}

.bpneo-ad--related {
	margin: 16px 0 8px;
	grid-column: 1 / -1;
}

.bpneo-ad--pre_footer {
	margin: 8px 0 24px;
}

/* Keep ads out of collapsed / overlay chrome */
.bpneo-sidebar .bpneo-ad,
.bpneo-action-menu .bpneo-ad,
.bpneo-user-menu .bpneo-ad,
.bpneo-mobile-panel .bpneo-ad,
#bpneo-search-modal .bpneo-ad {
	display: none !important;
}

/* Dark mode: label only — never restyle the ad iframe itself */
body.bpneo-dark .bpneo-ad-label {
	color: #9a9a9a;
}

/* Mobile: full-bleed inside the article column, never overlapping the
   fixed header / accordion chevron. */
@media (max-width: 768px) {
	.bpneo-ad {
		margin-left: 0;
		margin-right: 0;
	}

	.bpneo-ad--after_title {
		margin-top: 4px;
		margin-bottom: 16px;
	}

	/* Do not pin an extra sticky unit — Auto ads already offers anchor ads.
	   A second sticky bar would cover content and risk invalid clicks. */
}

/* Desktop: cap ultra-wide leaderboards so they stay inside the column */
@media (min-width: 1100px) {
	.bpneo-ad--after_title,
	.bpneo-ad--pre_footer,
	.bpneo-ad--after_content {
		max-width: 100%;
	}
}

/* Hide empty reserved boxes if Google returns no fill */
.bpneo-ad.is-empty {
	display: none;
}

.bpneo-ad:not(:has(iframe)) .bpneo-ad-frame {
	min-height: 0;
}
.bpneo-ad:not(:has(iframe)) {
	margin: 0;
}
.bpneo-ad:not(:has(iframe)) .bpneo-ad-label {
	display: none;
}