/* Auramani Announcement Bar — the dark strip above the header.
   Messages are managed in wp-admin -> Announcement bar; this file only draws what
   auramani-announcement.php renders on the theme's `au_announcement_bar` action. */

.au-announcement {
	background: var(--ink);
	color: var(--inverse);
	text-align: center;
	font-size: var(--text-md);
	min-height: 42px;
	line-height: 42px;
	text-transform: uppercase;
}

.au-announcement-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
}

/* Long text on a narrow screen ellipsizes instead of wrapping — the bar's height is fixed. */
.au-announcement-slide {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	transition: opacity var(--duration);
}
.au-announcement-slide.au-announcement-fading {
	opacity: 0;
}
.au-announcement-slide a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Arrows sit at the two ends of the strip; .au-icon-btn's default 44px circle is
   too tall for a 42px bar, so both the button and the icon inside it are scaled down. */
.au-announcement .au-icon-btn {
	width: 26px;
	height: 26px;
	min-width: 26px;
	flex-shrink: 0;
	color: var(--inverse);
}
.au-announcement .au-icon-btn:hover,
.au-announcement .au-icon-btn:focus-visible {
	background: rgb(255 255 255 / 14%);
}
.au-announcement .au-icon {
	width: 16px;
	height: 16px;
}
.au-announcement-prev .au-icon {
	transform: rotate(180deg);
}

@media (max-width: 767px) {
	.au-announcement .au-icon-btn {
		width: 24px;
		height: 24px;
		min-width: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.au-announcement-slide {
		transition: none;
	}
}
