.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--background);
	transition: box-shadow 250ms ease;
}

.site-header__top,
.site-header__bottom {
	align-items: center;
}

.site-header .wp-block-button__link {
	padding-top: 8px;
	padding-bottom: 8px;
}

.site-header.is-scrolled {
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.site-header__top {
	min-height: 88px;
	padding-top: 14px;
	padding-bottom: 14px;
	overflow: hidden;
	transition: min-height 250ms ease, opacity 250ms ease, padding 250ms ease;
}

.site-header__bottom {
	min-height: 56px;
	padding-top: 8px;
	padding-bottom: 8px;
}

.site-header.is-scrolled .site-header__top {
	min-height: 0;
	padding-top: 0;
	padding-bottom: 0;
	opacity: 0;
	pointer-events: none;
}

/* Sponsor area — same visual language as the "Our sponsors" marquee on the
   homepage (fixed box, grayscale-to-color logos, white placeholder card),
   just scaled down to fit the header row. */
.header-sponsors__area {
	width: 700px;
	height: 80px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-sponsors__area--empty {
	gap: 16px;
	border: 1px dashed #9a9a9a;
	border-radius: 10px;
	padding: 0 18px;
	box-sizing: border-box;
}

.header-sponsors {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	flex-shrink: 0;
	gap: 14px;
}

.header-sponsors__logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 160px;
	height: 80px;
}

.header-sponsors__logo--main {
	flex: 0 0 auto;
	width: 160px;
	height: 80px;
}

.header-sponsors__logo img {
	max-height: 56px;
	max-width: 130px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	filter: grayscale(1);
	opacity: 0.65;
	transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.header-sponsors__logo--main img {
	max-height: 56px;
	max-width: 130px;
}

.header-sponsors__logo:hover img {
	filter: grayscale(0);
	opacity: 1;
	transform: scale(1.05);
}

.header-sponsors__logo--text {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	color: var(--wp--preset--color--acorn);
	font-weight: 600;
	font-size: 0.72rem;
	text-align: center;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.header-sponsors__logo--text:hover {
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.header-sponsors__area--empty p {
	margin: 0;
	font-size: 0.9rem;
	color: #9a9a9a;
	text-align: left;
	line-height: 1.3;
}

.header-sponsors__area--empty a {
	flex-shrink: 0;
	font-size: 0.75rem;
	font-weight: 600;
	color: #9a9a9a;
	border: 1px dashed #9a9a9a;
	border-radius: 6px;
	padding: 5px 12px;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.header-sponsors__area--empty a:hover {
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}

@media (max-width: 1024px) {
	.header-sponsors {
		gap: 10px;
	}
}

@media (max-width: 781px) {
	.site-header__top {
		height: auto;
		padding-top: 14px;
		padding-bottom: 14px;
	}

	.site-header__top .header-sponsors__area {
		display: none;
	}

	.site-header.is-scrolled .site-header__top {
		height: auto;
		opacity: 1;
		pointer-events: auto;
	}
}
