/**
 * Revive Animations: edge decorations (herbs and flowers at the side of the page).
 * Screen-size rules are added inline from Animations → Decoration screen sizes.
 */
.rha-deco-layer {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	overflow-x: clip;          /* nothing hangs off the side and causes sideways scrolling */
	overflow-y: visible;
	z-index: var(--rha-deco-z, 50);
	pointer-events: none;      /* never gets in the way of clicks */
}
.rha-deco {
	--rha-deco-scale: 1;
	--rha-deco-tuck-extra: 0;
	position: absolute;
	top: 0;
	left: 0;
	width: calc(var(--rha-deco-w, 240px) * var(--rha-deco-scale));
	visibility: hidden;        /* until it has been placed */
	pointer-events: none;
}
.rha-deco.is-placed { visibility: visible; }
.rha-deco .rh-anim { display: block; margin: 0; padding: 0; }
.rha-deco .rh-anim__svg { width: 100%; }
.rha-deco--mirror .rh-anim { transform: scaleX(-1); }  /* flipped left-to-right */

.rha-deco__drift { will-change: transform; }

/* Gentle sway, pivoting from the screen edge like a stem in a breeze */
@media (prefers-reduced-motion: no-preference) {
	.rha-deco--float .rha-deco__sway {
		animation: rha-deco-sway 11s ease-in-out infinite alternate;
		transform-origin: 0% 60%;
	}
	.rha-deco--float.rha-deco--right .rha-deco__sway { transform-origin: 100% 60%; animation-delay: -4s; }
}
@keyframes rha-deco-sway {
	0%   { transform: rotate(-1.2deg) translateY(0); }
	50%  { transform: rotate(0.6deg) translateY(-4px); }
	100% { transform: rotate(1.4deg) translateY(2px); }
}
