/*
 * The notification bar from Radar (SDB_OF_Radar_Banners), first inside the
 * site's header. Colors come from the site's AutomaticCSS palette, so each
 * brand's bar is in its own colors; the fallbacks are for a site without it.
 */
.sdb-of-banner {
	--sdb-of-banner-bg: var(--primary-ultra-light, #e6f1fb);
	--sdb-of-banner-border: var(--primary-light, #9cc7ef);
	--sdb-of-banner-accent: var(--primary, #0b6ccf);
	--sdb-of-banner-text: var(--text-dark, #1d2733);
	/* Laid out as the template's top bar is: the site's section padding at
	   the sides, then its content width, centered — so the bar's icon and
	   text line up with the logo and the social icons below. */
	padding-inline: var(--section-padding-x, var(--gutter, 1.5rem));
	background: var(--sdb-of-banner-bg);
	border-bottom: 1px solid var(--sdb-of-banner-border);
	color: var(--sdb-of-banner-text);
}

.sdb-of-banner--alert {
	--sdb-of-banner-bg: var(--warning-ultra-light, #fff7e0);
	--sdb-of-banner-border: var(--warning-light, #f5d27a);
	--sdb-of-banner-accent: var(--warning-dark, #8a5a00);
}

.sdb-of-banner--critical {
	--sdb-of-banner-bg: var(--danger, #c62828);
	--sdb-of-banner-border: var(--danger-dark, #9f1f1f);
	--sdb-of-banner-accent: var(--white, #fff);
	--sdb-of-banner-text: var(--white, #fff);
}

.sdb-of-banner[hidden] {
	display: none;
}

.sdb-of-banner__inner {
	display: flex;
	align-items: center;
	gap: 0.75em;
	width: 100%;
	max-width: var(--content-width, 1280px);
	margin-inline: auto;
	padding-block: 0.75em;
}

.sdb-of-banner__icon {
	flex: none;
	display: inline-flex;
	width: 1.5em;
	height: 1.5em;
	color: var(--sdb-of-banner-accent);
	object-fit: contain;
}

.sdb-of-banner__icon svg {
	width: 100%;
	height: 100%;
}

.sdb-of-banner__text {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: var(--text-s, 0.95rem);
	line-height: 1.4;
}

.sdb-of-banner__link {
	display: inline-flex;
	align-items: center;
	gap: 0.25em;
	margin-inline-start: 0.75em;
	color: var(--sdb-of-banner-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	white-space: nowrap;
}

.sdb-of-banner__link:hover,
.sdb-of-banner__link:focus-visible {
	text-decoration-thickness: 2px;
}

.sdb-of-banner__close {
	flex: none;
	display: inline-flex;
	padding: 0.25em;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	opacity: 0.75;
}

.sdb-of-banner__close:hover,
.sdb-of-banner__close:focus-visible {
	opacity: 1;
}

.sdb-of-banner__close:focus-visible,
.sdb-of-banner__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.sdb-of-banner__inner {
		align-items: flex-start;
		padding-block: 0.6em;
	}

	.sdb-of-banner__link {
		margin-inline-start: 0;
		display: flex;
		margin-top: 0.25em;
	}
}
