/**
 * PPB Core — announcement bar.
 * Block: ppb-announcement-bar
 * Sits flush above the site header on all PPB themes.
 */

.ppb-announcement-bar {
	position: relative;
	z-index: 50;
	background-color: var(--color-primary);
	color: #fff;
	padding-block: 0.75rem;
	padding-inline: 1.5rem;
	text-align: center;
	font-family: var(--font-body, inherit);
	font-size: clamp(0.875rem, 1.4vw, 0.9375rem);
	line-height: 1.4;
}

.ppb-announcement-bar__inner {
	max-width: 72rem;
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	column-gap: 0.6em;
	row-gap: 0.25em;
}

.ppb-announcement-bar__message {
	margin: 0;
}

/*
 * Text link pattern matches site chrome footer (see `site-shell.css` — `.ppb-site-footer a:not(.ppb-button)…`):
 * currentColor for the label, underline strength on hover; no text colour change (primary bar is ACF-driven).
 */
.ppb-announcement-bar__link,
.ppb-announcement-bar__link:visited {
	color: inherit;
	font-weight: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
	text-underline-offset: 0.2em;
	transition:
		color var(--ppb-transition-base),
		text-decoration-color var(--ppb-transition-base);
}

.ppb-announcement-bar__link:hover,
.ppb-announcement-bar__link:focus-visible {
	color: inherit;
	text-decoration-color: currentColor;
}
