/* BN Nyhedsreklamer – BN-DESIGN.DK */

.bnr {
	box-sizing: border-box;
	margin: 24px auto;
	text-align: center;
	clear: both;
	/* Fylder hele rækken hvis temaet viser nyheder i et grid */
	grid-column: 1 / -1;
	flex-basis: 100%;
}

.bnr-label {
	display: block;
	font: 600 10px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #8a8f98;
	margin: 0 0 6px;
}

.bnr-indhold {
	display: inline-block;
	max-width: 100%;
	line-height: 0;
}

.bnr-indhold a { display: inline-block; line-height: 0; }

.bnr-indhold img,
.bnr-indhold picture {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

.bnr-indhold iframe { max-width: 100%; }

/* Mellem nyheder og i artiklen: grå "annonce-boks" som på TV2 */
.bnr-feed,
.bnr-artikel,
.bnr-efter_artikel {
	background: #f3f4f6;
	border-top: 1px solid #e3e5e8;
	border-bottom: 1px solid #e3e5e8;
	padding: 10px 12px 16px;
}

.bnr-artikel { margin: 28px 0; }

/* Topbanner */
.bnr-top-wrap {
	background: #f3f4f6;
	border-bottom: 1px solid #e3e5e8;
	padding: 8px 12px 14px;
	position: relative;
	z-index: 1;
}
.bnr-top { margin: 0 auto; max-width: var(--bnr-indhold, 1200px); }

/* Sidebannere – skjult indtil skærmen er bred nok (se inline-CSS) */
.bnr-side {
	display: none;
	position: fixed;
	top: var(--bnr-top, 120px);
	width: var(--bnr-side, 160px);
	z-index: 50;
}
.bnr-side .bnr { margin: 0; }
.bnr-side-venstre {
	left: calc(50% - (var(--bnr-indhold, 1200px) / 2) - var(--bnr-afstand, 20px) - var(--bnr-side, 160px));
}
.bnr-side-hoejre {
	left: calc(50% + (var(--bnr-indhold, 1200px) / 2) + var(--bnr-afstand, 20px));
}
.bnr-side .bnr-label { text-align: left; }

/* AdSense: skjul hele feltet (også "Annonce") når Google ikke har en reklame */
.bnr:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none !important; }
.bnr-adsense .bnr-indhold { display: block; line-height: normal; }
.bnr-side .bnr-adsense .bnr-indhold { display: inline-block; }

/* Kun computer / kun mobil */
@media (max-width: 767px) {
	.bnr-enhed-desktop { display: none !important; }
	.bnr-feed, .bnr-artikel, .bnr-efter_artikel { margin-left: -12px; margin-right: -12px; }
}
@media (min-width: 768px) {
	.bnr-enhed-mobil { display: none !important; }
}

@media print {
	.bnr, .bnr-side, .bnr-top-wrap { display: none !important; }
}
