/*
 * Announcement bar (a theme part, loaded on every page by inc/assets.php).
 * Source: the builder's ".ann" CSS. Both looks use the "sun" colour.
 *
 * Variables: --ann-bg --ann-ink (default sun / ink; override on body if a look needs to).
 */

.ann {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 10px;
	padding: 9px 46px 9px 16px;
	background: var(--ann-bg, var(--sun));
	color: var(--ann-ink, var(--ink));
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
}

/* display:flex above would otherwise beat the hidden attribute. */
.ann[hidden] { display: none; }

.ann a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ann__close {
	position: absolute;
	top: 50%;
	right: 6px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font-size: 20px;
	line-height: 1;
	transform: translateY(-50%);
	cursor: pointer;
}

.ann__close:focus-visible { outline: 2px solid currentcolor; }
