@charset "UTF-8";

/**
 * icons.css 1.5.0
 * Author: hybrid.
 * Type: core
 *
 * SVG sprite icons (base, size variants) and CSS animated icons
 * (expand, close/more, play/pause).
 * Animated icons use ::before/::after pseudo-elements with box-shadow
 * to reproduce glyphs without SVG or images.
 *
 * Animated icons
 * .icon-expand  — hamburger → cross (toggle .expanded on parent)
 * .icon-close   — fixed cross
 * .icon-more    — fixed plus
 * .icon-play    — play → pause (toggle .is-playing/.is-paused on parent)
 *
 * Tokens
 * --icon-size              glyph box of every icon (default: 1em)
 * --icon-aspect-ratio      ratio of mask icons (default: 1/1)
 * --icon-transition-property / -duration / -timing   animated glyphs
 * --icon-stroke-width  stroke width for animated icons (default: var(--stroke-width))
 * --icon-svg-stroke-width  stroke width for inline SVG icons, a real length (default: var(--icon-size) / 12)
 * --icon-fill-color    fill of stroke-based inline SVG icons, inherited through <use> (default: none)
 * --icon-play-offset   optical offset of the play triangle (default: 12.5%)
 * --icon-pause-offset  optical offset of the pause glyph (default: 0%)
 * --icon-play-clip-left/right, --icon-pause-clip-left/right  glyph shapes, reusable elsewhere
 *
 * Internal state tokens (set by the component, do not override)
 * --icon-bar-gap       vertical gap between expand bars
 * --icon-bar-width     bar length (expand, close, more)
 * --icon-offset        current play/pause optical offset
 * --icon-clip-left/right  current play/pause glyph clip-path
 *
 * Hover
 * Hover states live in the HOVER section, split by @media (hover: hover)
 * with :hover and (hover: none) with .hover (class toggled by JS).
 *
 * Dependencies
 * --stroke-width   defined in reset.css
 * --duration-fast  defined in animations.css
 * --elastic        defined in animations.css
 */



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


:root {
	--icon-size: 1em; /* glyph box, every animated glyph is built from it */
	--icon-aspect-ratio: 1/1; /* mask icons (.icon-*::before) */
	--icon-transition-property: transform, right, margin, clip-path, height, width;
	--icon-transition-duration: var(--duration-fast);
	--icon-transition-timing: var(--elastic);
	--icon-stroke-width: var(--stroke-width, .125rem);
	--icon-svg-stroke-width: calc(var(--icon-size) / 12); /* proportional to the icon, 2 on a 24 grid */
	--icon-fill-color: none; /* read by stroke symbols in the sprite, set it on a parent to fill the icon */
	--icon-play-offset: 12.5%;
	--icon-pause-offset: 0%;
	--icon-play-clip-left:  polygon(0% 0%, 50% 25%, 50% 75%, 0% 100%);
	--icon-play-clip-right: polygon(50% 25%, 100% 50%, 100% 50%, 50% 75%);
	--icon-pause-clip-left:  polygon(0% 0%, 33% 0, 33% 100%, 0% 100%);
	--icon-pause-clip-right: polygon(66% 0, 100% 0, 100% 100%, 66% 100%);
}



/* ================================================================================================ */
/* ============================================= CORE ============================================= */
/* ================================================================================================ */


/* ============================== MASK ============================== */

/* Mask-image base (selectors generated in theme-icons.css) */

:where([class^="icon-"], [class*=" icon-"]) { display: inline-flex; }

/* Transparent mask by default: unknown icons render nothing instead of a black square */

:where([class^="icon-"], [class*=" icon-"])::before {
	content: "";
	display: inline-block;
	height: var(--icon-size);
	aspect-ratio: var(--icon-aspect-ratio);
	background: currentColor;
	-webkit-mask: linear-gradient(transparent, transparent) center / contain no-repeat;
	mask: linear-gradient(transparent, transparent) center / contain no-repeat;
}


/* ============================== INLINE SVG ============================== */

/* Inline SVG base (get_icon() / the_icon()) */

svg:is([class^="icon-"], [class*=" icon-"]) {
	display: block;
	width: var(--icon-size);
	height: var(--icon-size);
	fill: none;
	stroke: currentColor;
	stroke-width: var(--icon-svg-stroke-width);
	stroke-linecap: round;
	stroke-linejoin: round;
}

svg:is([class^="icon-"], [class*=" icon-"]).filled {
	fill: currentColor;
	stroke: none;
}


/* ============================== ANCHORS ============================== */

a svg:is([class^="icon-"], [class*=" icon-"]) + * { margin-top: 0; }



/* ==================================================================================================== */
/* ============================================= ANIMATED ============================================= */
/* ==================================================================================================== */


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

/* Shared base: SVG hidden, strokes drawn by label + pseudo-elements */

:where([class^="icon-"].animated) {
	position: relative;
	display: inline-flex;
	align-items: center;
	height: var(--icon-size);
	width: var(--icon-size);
	color: inherit;
	text-shadow: inherit;
	transform-origin: center;
	background: transparent;
	fill: none;
	stroke: none;
}

:where([class^="icon-"].animated)::before,
:where([class^="icon-"].animated) use { display: none; }

:where([class^="icon-"].animated) .label,
:where([class^="icon-"].animated .label)::before,
:where([class^="icon-"].animated .label)::after {
	position: absolute;
	display: block;
	font-size: inherit !important;
	line-height: inherit;
	color: inherit;
	text-shadow: inherit;
	box-shadow: inset 0 0 0 calc(var(--icon-stroke-width) * 2);
}

[class^="icon-"].animated .label,
:where([class^="icon-"].animated .label)::before,
:where([class^="icon-"].animated .label)::after { height: var(--icon-stroke-width); }


:where([class^="icon-"].animated .label)::before,
:where([class^="icon-"].animated .label)::after {
	content: '';
	transform-origin: center;
}

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

/* Same :where() specificity as the base: override by the --icon-transition-* tokens, or redeclare the rule in styles.css */

:where([class^="icon-"].animated) .label,
:where([class^="icon-"].animated .label)::before,
:where([class^="icon-"].animated .label)::after {
	transition-property: var(--icon-transition-property);
	transition-duration: var(--icon-transition-duration);
	transition-timing-function: var(--icon-transition-timing);
}

/* No transitions on page load */

body.onload .icon-expand.animated .label,
body.onload .icon-expand.animated .label::before,
body.onload .icon-expand.animated .label::after { transition: none; }


/* ============================== EXPAND ============================== */

/* 3 strokes → cross. Toggle .expanded on a parent. */

.icon-expand.animated { --icon-bar-gap: calc(var(--icon-size) * .375); --icon-bar-width: var(--icon-size); }
.expanded .icon-expand.animated { --icon-bar-width: calc(var(--icon-size) * 1.289); }

.icon-expand.animated .label {
	left: 0;
	width: var(--icon-size);
	margin: auto;
	overflow: visible;
}

.icon-expand.animated .label::before,
.icon-expand.animated .label::after {
	left: 0;
	width: var(--icon-bar-width);
}

.icon-expand.animated .label::before { transform: translate(0, calc(var(--icon-bar-gap) * -1)); }
.icon-expand.animated .label::after { transform: translate(0, var(--icon-bar-gap)); }

.expanded .icon-expand.animated .label {
	width: 0;
	transform: translate(calc(var(--icon-size) / 2), 0);
}

.expanded .icon-expand.animated .label::before { transform: translate3d(-50%, 0, 0) rotate(-45deg); }
.expanded .icon-expand.animated .label::after { transform: translate3d(-50%, 0, 0) rotate(45deg); }


/* ============================== CLOSE / MORE ============================== */

.icon-more.animated { --icon-bar-width: var(--icon-size); }
.icon-close.animated { --icon-bar-width: calc(var(--icon-size) * 1.289); }

:is(.icon-close, .icon-more).animated .label {
	left: 0;
	height: var(--icon-size);
	width: var(--icon-size);
	box-shadow: none !important;
}

:is(.icon-close, .icon-more).animated .label::before,
:is(.icon-close, .icon-more).animated .label::after {
	top: 50%;
	left: 50%;
	width: var(--icon-bar-width);
}

.icon-close.animated .label::before { transform: translate(-50%, -50%) rotate(-45deg); }
.icon-close.animated .label::after { transform: translate(-50%, -50%) rotate(45deg); }
.icon-more.animated .label::before { transform: translate(-50%, -50%) rotate(0deg); }
.icon-more.animated .label::after { transform: translate(-50%, -50%) rotate(90deg); }


/* ============================== PLAY / PAUSE ============================== */

/**
 * Toggle .is-playing / .is-paused on the parent <a>.
 * --icon-play-offset: optical offset of the triangle, override per context.
 * --icon-play/pause-clip-left/right: reusable elsewhere.
 */

.icon-play.animated .label {
	height: var(--icon-size);
	width: var(--icon-size);
	box-shadow: none;
	margin-left: var(--icon-offset, var(--icon-play-offset));
}

.icon-play.animated .label::before,
.icon-play.animated .label::after {
	height: var(--icon-size);
	width: var(--icon-size);
	box-shadow: inset 0 0 0 var(--icon-size);
}

.icon-play.animated .label::before { clip-path: var(--icon-clip-left, var(--icon-play-clip-left)); }
.icon-play.animated .label::after { clip-path: var(--icon-clip-right, var(--icon-play-clip-right)); }

/* Idle: paused shows the pause glyph, playing shows the play glyph */

:where(a.is-paused) {
	--icon-offset: 0;
	--icon-clip-left: var(--icon-pause-clip-left);
	--icon-clip-right: var(--icon-pause-clip-right);
}



/* ================================================================================================== */
/* ============================================= HOVER ============================================== */
/* ================================================================================================== */


@media (hover: hover) {

	/* expand, more, close */

	a:hover:not(.expanded) .icon-expand.animated { --icon-bar-gap: .25em; }
	a:hover.expanded .icon-expand.animated { --icon-bar-width: 1em; }
	a:hover .icon-more.animated { --icon-bar-width: .75em; }
	a:hover .icon-close.animated { --icon-bar-width: 1em; }

	/* play / pause: glyph swaps on hover */

	a.is-paused:hover {
		--icon-offset: initial;
		--icon-clip-left: initial;
		--icon-clip-right: initial;
	}

	a.is-playing:hover {
		--icon-offset: 0;
		--icon-clip-left: var(--icon-pause-clip-left);
		--icon-clip-right: var(--icon-pause-clip-right);
	}
}

@media (hover: none) {

	/* expand, more, close */

	a.hover:not(.expanded) .icon-expand.animated { --icon-bar-gap: .25em; }
	a.hover.expanded .icon-expand.animated { --icon-bar-width: 1em; }
	a.hover .icon-more.animated { --icon-bar-width: .75em; }
	a.hover .icon-close.animated { --icon-bar-width: 1em; }

	/* play / pause: glyph swaps on hover */

	a.is-paused.hover {
		--icon-offset: initial;
		--icon-clip-left: initial;
		--icon-clip-right: initial;
	}

	a.is-playing.hover {
		--icon-offset: 0;
		--icon-clip-left: var(--icon-pause-clip-left);
		--icon-clip-right: var(--icon-pause-clip-right);
	}
}