/*!
 * SmartSchool Core 0.8.1: one button hover for the whole site, in the school colour (--ss-hv).
 * Filled buttons turn white with the school colour; white and outline buttons fill with it.
 * ss-buttons.js marks the buttons (ss-hv-fill / ss-hv-plain). The :not(#ss-hv) only lifts priority.
 */
.ss-hv { transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease !important; }
@media (hover: hover) {
	html body .ss-hv-fill:hover:not(#ss-hv) {
		background-color: var(--ss-hv-on) !important; background-image: none !important;
		color: var(--ss-hv) !important; border-color: var(--ss-hv) !important;
		box-shadow: inset 0 0 0 1px var(--ss-hv) !important; -webkit-text-fill-color: var(--ss-hv) !important;
	}
	html body .ss-hv-plain:hover:not(#ss-hv) {
		background-color: var(--ss-hv) !important; background-image: none !important;
		color: var(--ss-hv-on) !important; border-color: var(--ss-hv) !important; -webkit-text-fill-color: var(--ss-hv-on) !important;
	}
	html body .ss-hv-fill:hover:not(#ss-hv) *, html body .ss-hv-plain:hover:not(#ss-hv) * { color: inherit !important; -webkit-text-fill-color: inherit !important; }
}
html body .ss-hv-fill:active:not(#ss-hv), html body .ss-hv-fill:focus-visible:not(#ss-hv) {
	background-color: var(--ss-hv-on) !important; background-image: none !important;
	color: var(--ss-hv) !important; border-color: var(--ss-hv) !important; box-shadow: inset 0 0 0 1px var(--ss-hv) !important;
}
html body .ss-hv-plain:active:not(#ss-hv), html body .ss-hv-plain:focus-visible:not(#ss-hv) {
	background-color: var(--ss-hv) !important; background-image: none !important;
	color: var(--ss-hv-on) !important; border-color: var(--ss-hv) !important;
}
html body .ss-hv-fill:active:not(#ss-hv) *, html body .ss-hv-plain:active:not(#ss-hv) * { color: inherit !important; }
/* 0.8.2: text links. Dark words take the school colour; links already in it go a lighter shade; light words on
   dark backgrounds take a pale tint of it. 0.8.4: no line under them (Ian, 14 November 2026), only the colour. */
.ss-hv-link { transition: color .2s ease, text-decoration-color .2s ease !important; }
@media (hover: hover) {
	html body a.ss-hv-a:hover:not(#ss-hv), html body a.ss-hv-a:hover:not(#ss-hv) * { color: var(--ss-hv) !important; }
	html body a.ss-hv-a-same:hover:not(#ss-hv), html body a.ss-hv-a-same:hover:not(#ss-hv) * { color: var(--ss-hv-2) !important; }
	html body a.ss-hv-a-light:hover:not(#ss-hv), html body a.ss-hv-a-light:hover:not(#ss-hv) * { color: var(--ss-hv-3) !important; }
}
html body a.ss-hv-link:focus-visible:not(#ss-hv) { outline: 2px solid var(--ss-hv); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ss-hv, .ss-hv-link { transition: none !important; } }
