/* Icons are CSS masks, so they take the text color. Each page gets the
   `.sv-glyph-<name>` rules for only the icons it uses (Sitevari\Domain\Icons). */
.sv-icon {
	color: var(--sv-accent, var(--sv-color-primary));
	line-height: 0;
}

/* In a row of a column arranged side by side, an icon fits its size (ADR 0028). */
:where(.sv-icon) {
	--sv-row-grow: 0;
	--sv-row-basis: auto;
	--sv-row-min: 0px;
}

.sv-icon__glyph {
	display: inline-block;
	inline-size: 2rem;
	block-size: 2rem;
	background-color: currentColor;
	-webkit-mask: var(--sv-glyph) center / contain no-repeat;
	mask: var(--sv-glyph) center / contain no-repeat;
}

.sv-icon--size-sm .sv-icon__glyph {
	inline-size: 1.5rem;
	block-size: 1.5rem;
}

.sv-icon--size-lg .sv-icon__glyph {
	inline-size: 3rem;
	block-size: 3rem;
}

.sv-icon--size-xl .sv-icon__glyph {
	inline-size: 4rem;
	block-size: 4rem;
}

/* In a circle: a soft circle of the icon's color behind it, 1.75 times the icon's size. */
.sv-icon__circle {
	display: inline-grid;
	place-items: center;
	inline-size: 3.5rem;
	block-size: 3.5rem;
	border-radius: 50%;
	background: color-mix(in srgb, currentColor 12%, transparent);
}

.sv-icon--size-sm .sv-icon__circle {
	inline-size: 2.625rem;
	block-size: 2.625rem;
}

.sv-icon--size-lg .sv-icon__circle {
	inline-size: 5.25rem;
	block-size: 5.25rem;
}

.sv-icon--size-xl .sv-icon__circle {
	inline-size: 7rem;
	block-size: 7rem;
}
