/* Festive seasons (includes/seasons.php): border under the announcement bar, ornaments in the
   hero's top corners, gentle effect over the hero. */
.clayknit-season-border { height: 9px; background-color: var(--wp--preset--color--contrast, #121212); background-repeat: repeat-x; background-position: center; }

.clayknit-hero .clayknit-season-ornament { position: absolute; top: 0; z-index: 2; width: clamp(92px, 13vw, 200px); pointer-events: none; transform-origin: 50% 0; animation: clayknit-sway 7s ease-in-out infinite alternate; }
.clayknit-hero .clayknit-season-ornament.is-left { left: clamp(6px, 2.5vw, 40px); }
.clayknit-hero .clayknit-season-ornament.is-right { right: clamp(6px, 2.5vw, 40px); animation-delay: -3s; }
.clayknit-hero .clayknit-season-ornament svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)); }
.clayknit-hero .wp-block-cover__inner-container { position: relative; z-index: 3; } /* Text above the decoration; decoration above the tint. */
@keyframes clayknit-sway { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }

.clayknit-season-effect { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.clayknit-particle { position: absolute; top: 0; left: 0; will-change: transform; animation-timing-function: linear; animation-iteration-count: infinite; }
.clayknit-particle.is-fall { animation-name: clayknit-fall; }
.clayknit-particle.is-rise { animation-name: clayknit-rise; }
.clayknit-particle.is-twinkle { animation-name: clayknit-twinkle; animation-timing-function: ease-in-out; }
.clayknit-particle.is-snow { border-radius: 50%; background: #fff; opacity: 0.85; }
.clayknit-particle.is-confetti { border-radius: 1px; }
.clayknit-particle.is-leaves { border-radius: 0 70% 0 70%; }
.clayknit-particle.is-petals { border-radius: 70% 0 70% 0; opacity: 0.9; }
.clayknit-particle.is-stars { clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.clayknit-particle svg { display: block; width: 100%; height: 100%; }
@keyframes clayknit-fall { from { transform: translate3d(var(--x), -24px, 0) rotate(0deg); } to { transform: translate3d(calc(var(--x) + var(--drift)), var(--fall), 0) rotate(var(--spin)); } }
@keyframes clayknit-rise { from { transform: translate3d(var(--x), var(--fall), 0) scale(0.8); opacity: 0; } 15% { opacity: 0.9; } to { transform: translate3d(calc(var(--x) + var(--drift)), -30px, 0) scale(1.05); opacity: 0; } }
@keyframes clayknit-twinkle { 0%, 100% { opacity: 0.15; transform: translate3d(var(--x), var(--y), 0) scale(0.6); } 50% { opacity: 1; transform: translate3d(var(--x), var(--y), 0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
	.clayknit-hero .clayknit-season-ornament { animation: none; }
	.clayknit-season-effect { display: none; }
}
