@charset "UTF-8";

/**
 * animations.css 1.1.0
 * Author: hybrid.
 * Type: core
 *
 * Global animation tokens, loading states, keyframes, loader components
 * and the reduced motion preference.
 *
 * Tokens
 * --duration-fast / -normal / -slow   .25s / .5s / 1s
 * --ease, --ease-fast, --elastic
 * --easeInQuint, --easeOutQuint, --easeInOutQuint, --easeInOutQuint-fast
 * --loading-*   .is-loading rendering (content, size, background, border, radius, animation)
 * --loader-*    .loader / .loading spinner
 * --reduced-motion-duration   duration forced when the user asks for less motion
 *
 * Reduced motion
 * prefers-reduced-motion cuts every animation and transition, scroll-behavior included.
 * It is the one place using !important: it must win over any rule of any module.
 * Loaders (.is-loading, .loader, .loading) are exempt: a frozen spinner reads as a hung page.
 * A module with its own motion-heavy decoration (parallax, autoplay) handles it in its own file.
 *
 * Classes
 * .is-loading         — loader on any element (dot, border spinner or fx, depending on tokens)
 * body.is-loading     — full-page loading state (fixed, centered)
 * .loader             — spinner icon only (1em)
 * .loading            — spinner inline with text (.75em)
 * .instant-transition — disables all transitions
 *
 * Project (styles.css)
 * --loading-animation-fx   fx image for .is-loading, set --loading-content / --loading-size to use it
 */



/* ================================================================================================== */
/* ============================================= CONFIG ============================================= */
/* ================================================================================================== */

/* ============================== DURATION ============================== */

:root {
	--duration-fast: .25s;
	--duration-normal: .5s;
	--duration-slow: 1s;
}


/* ============================== EASING ============================== */

:root {
	--ease: ease;
	--ease-fast: cubic-bezier(0, .5, .5, 1);
	--elastic: cubic-bezier(1, 0.01, 0, 1.22);
	--easeInQuint: cubic-bezier(0.64, 0, 0.78, 0);
	--easeOutQuint: cubic-bezier(0.22, 1, 0.36, 1);
	--easeInOutQuint: cubic-bezier(0.75, 0, 0.25, 1);
	--easeInOutQuint-fast: cubic-bezier(0.95, 0, 0.15, 1);
}


/* ============================== LOADING ============================== */

/* Default render: pulsing dot. Override these tokens for fx or border spinner. */

/*
Two ways to show an image (fx) instead of the dot, set in styles.css:
- as content:    --loading-content: var(--loading-animation-fx); --loading-background: none; --loading-animation: none;
- as background: --loading-content: ""; --loading-background: var(--loading-animation-fx) center / contain no-repeat; --loading-animation: none;
Size with --loading-size and --loading-aspect-ratio (fx of styles-temp.css: 60 x 30, ratio 2/1).
*/

:root {
	--loading-content: "";
	--loading-size: 2rem;
	--loading-aspect-ratio: 1/1;
	--loading-background: var(--theme-color, var(--text-color));
	--loading-radius: 50%;
	--loading-border-width: 0;
	--loading-border-color: currentColor;
	--loading-border-gap-color: var(--loading-border-color);
	--loading-animation: pulse var(--duration-slow) infinite linear;

	/* Full page */
	--loading-page-z-index: 100;
	--loading-page-wrapper-opacity: .33;
}


/* ============================== LOADER ============================== */

:root {
	--loader-size: 1em;
	--loader-size-inline: .75em;
	--loader-border-width: var(--stroke-width);
	--loader-color: currentColor;
	--loader-gap-color: transparent;
	--loader-animation: spinner var(--duration-slow) infinite linear;
}


/* ============================== REDUCED MOTION ============================== */

:root {
	--reduced-motion-duration: .01ms; /* not 0: animationend / transitionend events still fire */
}


/* ============================== ANIMATIONS ============================== */

@keyframes spinner {
	0%, 50%, 100% { animation-timing-function: cubic-bezier(0.5, 0.5, 0.5, 0.5); }
	0%   { transform: rotate(0); }
	50%  { transform: rotate(180deg); }
	100% { transform: rotate(360deg); }
}

@keyframes pulse {
	0%   { transform: scale(1); }
	50%  { transform: scale(2); }
	100% { transform: scale(1); }
}


/* ============================== INSTANT ============================== */

.instant-transition { transition: none; }


/* ============================== REDUCED MOTION ============================== */

@media (prefers-reduced-motion: reduce) {
	*:not(.is-loading, .loader, .loading),
	*:not(.is-loading, .loader, .loading)::before,
	*:not(.is-loading, .loader, .loading)::after {
		animation-duration: var(--reduced-motion-duration) !important;
		animation-iteration-count: 1 !important;
		transition-duration: var(--reduced-motion-duration) !important;
		scroll-behavior: auto !important;
	}
}



/* =================================================================================================== */
/* ============================================= LOADING ============================================= */
/* =================================================================================================== */


/* ============================== DEFAULT ============================== */

:where(.is-loading)::before {
	content: var(--loading-content);
	display: inline-block;
	width: var(--loading-size);
	aspect-ratio: var(--loading-aspect-ratio);
	background: var(--loading-background);
	border-style: solid;
	border-width: var(--loading-border-width);
	border-color: var(--loading-border-color) var(--loading-border-color) var(--loading-border-color) var(--loading-border-gap-color);
	border-radius: var(--loading-radius);
	animation: var(--loading-animation);
}


/* ============================== REFRESH ============================== */

/* "translate" (not "transform") so centering never conflicts with the animation */
:where(body.is-loading)::before {
	position: fixed;
	z-index: var(--loading-page-z-index);
	top: 50%;
	left: 50%;
	translate: -50% -50%;
}
:where(body.is-loading > *) { opacity: var(--loading-page-wrapper-opacity); }


/* ============================== LOADER ============================== */

/*
.loader == for icons only
.loading == for inline text
*/

:where(.loader, .loading)::before {
	content: "";
	display: inline-block;
	vertical-align: middle;
	width: var(--loader-size);
	aspect-ratio: 1/1;
	margin-top: calc(-.5em + var(--loader-border-width) * 2);
	border-radius: 50%;
	border-style: solid;
	border-width: var(--loader-border-width);
	border-color: var(--loader-color) var(--loader-color) var(--loader-color) var(--loader-gap-color);
	animation: var(--loader-animation);
}

/* Inline with text */

:where(.loading)::before { width: var(--loader-size-inline); }