/*
 * Falling Moravian stars behind the header logo (js/falling-stars.js).
 * Same star shape as the slider dots (.flex-control-nav in dark-mode.css).
 */

.site-header {
	position: relative;
}

.site-header > .wrap {
	position: relative;
	z-index: 1;
}

.bcs-star-fall {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.bcs-star {
	position: absolute;
	top: -16px;
	display: block;
	background: #cfa94a; /* antique gold, deep enough to read on white */
	clip-path: polygon(50% 0, 56% 34%, 84% 15%, 66% 42%, 100% 50%, 66% 56%, 82% 79%, 56% 65%, 50% 100%, 44% 65%, 18% 79%, 34% 56%, 0 50%, 34% 42%, 16% 15%, 44% 34%);
	opacity: 0;
	will-change: transform, opacity;
}

/* Dark mode: warm gold stars, no glow */
html[data-theme="dark"] .bcs-star {
	background: #f0d488;
}

@media (prefers-reduced-motion: reduce) {
	.bcs-star-fall {
		display: none;
	}
}

@media print {
	.bcs-star-fall {
		display: none;
	}
}
