
/* Custom CSS for Sphinx documentation */
/* Reduce heading sizes */
h1 { font-size: 2.0em !important; }
h2 { font-size: 1.6em !important; }
h3 { font-size: 1.4em !important; }
h4 { font-size: 1.2em !important; }
h5 { font-size: 1.0em !important; }
h6 { font-size: 0.9em !important; }

/* Gradient animation keyframes */
@keyframes shine-slide {
	0% { background-position: -200% center; }
	100% { background-position: 200% center; }
}

/* Adjustments to abmonition */
.admonition {
	text-decoration: none;
	padding: 1rem;
	display: block;
}

/* On hover animation for various elements */
a, h1, h2, h3, h4, h5, h6, .admonition {
	transition: transform 0.3s;
}

a:hover, h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover, .admonition:hover {
	transform: scale(1.05);
}
a:hover, a:hover span {
	background: linear-gradient(
		110deg,
		currentColor 0%,
		currentColor 40%,
		white 50%,
		currentColor 60%,
		currentColor 100%
	);
	background-size: 200% 100%;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: shine-slide 3.5s linear infinite;
}

/* The light palette leaves doctest prompts and outputs uncoloured, so a doctest reads as one flat block. */
/* The dark palette defines both, and its html[data-theme="dark"] prefix outranks these rules untouched. */
.highlight .gp { color: #6a737d; user-select: none; }
.highlight .go { color: #444d56; font-style: italic; }
