/**
 * Xyod Heading — title + optional right-side icon, one shared link.
 */

.xyod-heading {
	margin: 0;
	padding: 0;
	width: 100%;
	--xyod-heading-transition: color 0.45s ease, fill 0.45s ease;
	color: inherit;
	transition: var(--xyod-heading-transition);
}

.xyod-heading__link,
.xyod-heading__link:visited,
.xyod-heading a.xyod-heading__link,
.xyod-heading a.xyod-heading__link:visited {
	display: flex;
	align-items: center;
	gap: var(--xyod-heading-gap, 16px);
	width: 100%;
	max-width: 100%;
	color: inherit;
	text-decoration: none;
	box-sizing: border-box;
	transition: var(--xyod-heading-transition);
}

.xyod-heading__link:hover,
.xyod-heading__link:focus,
.xyod-heading__link:focus-visible,
.xyod-heading a.xyod-heading__link:hover,
.xyod-heading a.xyod-heading__link:focus,
.xyod-heading a.xyod-heading__link:focus-visible {
	color: inherit;
	text-decoration: none;
}

.xyod-heading--arrow-end .xyod-heading__link {
	justify-content: space-between;
}

.xyod-heading--arrow-after .xyod-heading__link {
	justify-content: flex-start;
	width: auto;
	max-width: 100%;
}

.xyod-heading__text {
	min-width: 0;
	flex: 0 1 auto;
	transition: var(--xyod-heading-transition);
}

.xyod-heading--arrow-end .xyod-heading__text {
	flex: 1 1 auto;
}

.xyod-heading__arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	color: inherit;
	transition: color 0.45s ease, fill 0.45s ease, transform 0.45s ease;
}

.xyod-heading__arrow i,
.xyod-heading__arrow svg {
	width: 1em;
	height: 1em;
	display: block;
}

.xyod-heading__arrow svg {
	fill: currentColor;
	transition: fill 0.45s ease;
}

@media (prefers-reduced-motion: reduce) {
	.xyod-heading,
	.xyod-heading__link,
	.xyod-heading__text,
	.xyod-heading__arrow,
	.xyod-heading__arrow svg {
		transition: none;
	}
}

.xyod-heading:hover .xyod-heading__arrow,
.xyod-heading__link:hover .xyod-heading__arrow,
.xyod-heading__link:focus-visible .xyod-heading__arrow {
	transform: translateX(0.2em);
}
