/* Sima görgetés JS nélkül is (kikapcsolva: html.wpss-no-smooth), mozgáscsökkentésnél nincs; a horgonycél ne kerüljön a fejléc alá. */
html:not(.wpss-no-smooth) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:not(.wpss-no-smooth) { scroll-behavior: auto; } }
[id] { scroll-margin-top: var(--wpss-anchor-offset, 0px); }

/* Ragadós fejléc: a teljes fejléc sablonrész ragad (nem csak a belső csoport). */
.wp-site-blocks > .wp-block-template-part:has(.wpss-sticky-row) {
	position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 90;
}
/* Felső sáv elrejtése görgetéskor: a fejléc a felső sáv magasságával feljebb ragad, így az felcsúszik. */
.wp-site-blocks > .wp-block-template-part:has(.wpss-sticky--hide-topbar) {
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--wpss-topbar-h, 0px));
}
@media (max-width: 600px) {
	/* Itt az admin sáv nem ragad, így nincs eltolás. */
	.wp-site-blocks > .wp-block-template-part:has(.wpss-sticky-row) { top: 0; }
	.wp-site-blocks > .wp-block-template-part:has(.wpss-sticky--hide-topbar) { top: calc(0px - var(--wpss-topbar-h, 0px)); }
}
@media (max-width: 781px) {
	.wp-site-blocks > .wp-block-template-part:has(.wpss-sticky--no-mobile) { position: static; }
}
.wpss-sticky-row { transition: box-shadow .2s ease; }
.is-wpss-stuck .wpss-sticky--shadow { box-shadow: 0 6px 20px rgba(0, 0, 0, .07); }
@media (prefers-reduced-motion: reduce) { .wpss-sticky-row { transition: none; } }

/* Áttetsző, elmosott fejléc-háttér (wpssBlur). Támogatás nélkül tömör háttér. */
.wpss-blur.wpss-blur { background-color: var(--wpss-blur-bg) !important; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) and (background-color: color-mix(in srgb, red 50%, transparent)) {
	.wpss-blur.wpss-blur {
		background-color: color-mix(in srgb, var(--wpss-blur-bg) var(--wpss-blur-o, 80%), transparent) !important;
		-webkit-backdrop-filter: blur(var(--wpss-blur, 12px));
		backdrop-filter: blur(var(--wpss-blur, 12px));
	}
}
