/**
 * Announcement bar
 *
 * Design ref: design-preferences/css-exports/Home Page/announcement-bar.css
 */

.site-header .announcement-bar {
	width: 100%;
	height: var(--announcement-height);
	background: var(--color-white);
	border-top: 1px solid var(--color-border-light);
	border-bottom: 1px solid var(--color-border-light);
	box-sizing: border-box;
	overflow: hidden;
}

.site-header .announcement-bar__inner {
	position: relative;
	width: 100%;
	max-width: var(--header-content-max);
	height: 100%;
	margin: 0 auto;
	padding: 0 32px;
	box-sizing: border-box;
}

/* Centered message, offset 23px left to balance the right cluster */
.site-header .announcement-bar__message {
	position: absolute;
	left: calc(50% - 23px);
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	margin: 0;
	padding: 0;
	width: max-content;
	max-width: min(332px, calc(100% - 220px));
	text-align: center;
	font-family: var(--font-body);
	font-style: normal;
	font-weight: var(--announcement-text-weight);
	font-size: var(--announcement-text);
	line-height: var(--announcement-text-lh);
	color: var(--color-accent);
	white-space: nowrap;
}

.site-header .announcement-bar__message p {
	margin: 0;
	display: inline;
	font: inherit;
	color: inherit;
}

.site-header .announcement-bar__message a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.site-header .announcement-bar__message a:hover,
.site-header .announcement-bar__message a:focus {
	opacity: 0.85;
}

/* Right cluster: language + socials — Figma right: ~32px */
.site-header .announcement-bar__actions {
	position: absolute;
	right: 32px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
}

.site-header .announcement-bar__language {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-shrink: 0;
}

.site-header .announcement-bar__language-toggle {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	line-height: 1;
	cursor: pointer;
	color: var(--color-heading);
	font-size: inherit;
}

.site-header .announcement-bar__language-toggle:hover,
.site-header .announcement-bar__language-toggle:focus,
.site-header .announcement-bar__language-toggle:active {
	border: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
}

.site-header .announcement-bar__language-text {
	font-family: var(--font-lang);
	font-style: normal;
	font-weight: var(--lang-text-weight);
	font-size: var(--lang-text);
	line-height: var(--lang-text-lh);
	color: var(--color-heading);
	text-transform: uppercase;
}

/* Figma chevron: 4.47×7.73, fill #483E27, rotate 90deg → points down */
.site-header .announcement-bar__language-icon {
	display: block;
	width: 4.47px;
	height: 7.73px;
	flex-shrink: 0;
	background: var(--color-lang-chevron);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
	transform: rotate(90deg);
}

.site-header .announcement-bar__social {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--header-social-gap);
	flex-shrink: 0;
}

.site-header .announcement-bar__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.site-header .announcement-bar__social-link:hover,
.site-header .announcement-bar__social-link:focus {
	opacity: 0.75;
	outline: none;
}

.site-header .announcement-bar__social svg {
	display: block;
	width: 16px;
	height: 16px;
}

.site-header .announcement-bar__social-link--instagram svg {
	width: 17px;
	height: 17px;
}

@media screen and (max-width: 782px) {
	.site-header .announcement-bar {
		height: auto;
		min-height: var(--announcement-height);
		overflow: visible;
	}

	.site-header .announcement-bar__inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 6px 16px;
	}

	.site-header .announcement-bar__message {
		position: static;
		transform: none;
		max-width: none;
		white-space: normal;
		flex: 1 1 auto;
		text-align: left;
		font-size: 10px;
		line-height: 12px;
	}

	.site-header .announcement-bar__actions {
		position: static;
		transform: none;
		flex-shrink: 0;
	}
}

@media screen and (max-width: 480px) {
	.site-header .announcement-bar__social {
		gap: 10px;
	}

	.site-header .announcement-bar__social svg {
		width: 14px;
		height: 14px;
	}

	.site-header .announcement-bar__social-link--instagram svg {
		width: 15px;
		height: 15px;
	}

	.site-header .announcement-bar__language-text {
		font-size: 12px;
		line-height: 15px;
	}
}
