/*
 * One soft change for everything that reacts to the pointer. Only colours, shadow, opacity and transform
 * move: nothing that makes the page lay itself out again. Components with their own transition keep it
 * (any selector more specific than these wins). People who ask for less motion get none.
 */
@media (prefers-reduced-motion: no-preference) {
	.site :where(a, button, summary, input, select, textarea, label[for], [role="button"], [role="tab"]),
	.site :where(summary)::after,
	.trp-language-switcher :where(a, [role="button"]) {
		transition-property: color, background-color, border-color, text-decoration-color, outline-color, box-shadow, opacity, transform, filter;
		transition-duration: 0.18s;
		transition-timing-function: ease-out;
	}
	/* What a link or button holds changes with it: icons and labels with colours of their own. */
	.site :where(a, button, summary) :where(svg, svg *, span) {
		transition-property: color, background-color, border-color, fill, stroke, opacity;
		transition-duration: 0.18s;
		transition-timing-function: ease-out;
	}
}

/* The few that did not react at all. */
.site summary:hover { color: var(--btext); }
/* The sun or moon turns a little: it says the button switches something. */
.site [data-theme-toggle] svg { transition: transform 0.25s ease-out; }
.site [data-theme-toggle]:hover svg, .site [data-theme-toggle]:focus-visible svg { transform: rotate(-20deg); }
@media (prefers-reduced-motion: reduce) { .site [data-theme-toggle]:hover svg, .site [data-theme-toggle]:focus-visible svg { transform: none; } }
.site .doc .show-password-input { opacity: 0.7; }
.site .doc .show-password-input:hover, .site .doc .show-password-input:focus-visible { opacity: 1; }
/* A press is felt. */
.site :where(a.btn-p, a.btn-s, button):active { transform: translateY(1px); }

/*
 * Every button answers the pointer in the brand colour, in two kinds. !important because many buttons
 * carry their base look in a style attribute, which no selector can beat.
 * A new button goes in one of these two lists.
 */
/* Filled: darker orange, one pixel up. */
.site :is(a.btn-p, .st-copy button, a.soon-btn, .reviews #respond .form-submit input#submit, .doc .woocommerce form button[type="submit"].button, .doc .woocommerce .woocommerce-MyAccount-content > a.button, .doc .woocommerce a.woocommerce-MyAccount-downloads-file.button.alt, .doc .woocommerce #place_order, .doc .woocommerce .wc-proceed-to-checkout a.button, .doc .wc-block-components-button.contained, .doc .wc-block-cart__submit-button, .doc .wc-block-components-checkout-place-order-button):hover {
	background: #9a3412 !important;
	border-color: #9a3412 !important;
	color: #fff !important;
	transform: translateY(-1px);
}
/* Outlined and quiet: orange border, a solid orange tint (some float over the page) and brand text. */
.site :is(.acts button, a.btn-s, a.nav[style*="border"], .guides a, .guide-more a, button.areas-toggle, a.reviews-free-btn, button.req, button.auto-card, a.skip, .doc .key-btn):hover {
	border-color: var(--brand) !important;
	background: color-mix(in srgb, var(--brand) 10%, var(--card)) !important;
	color: var(--btext) !important;
}
/* The words inside these follow; icons, the avatar letter and small labels with a meaning of their own keep their colour. */
.site :is(a.btn-s, a.nav[style*="border"], .guides a, .guide-more a):hover :is(span, strong):not(.avatar) { color: inherit !important; }
/* Lists of sections and the language: same colours, no border. */
/* The ring also shows on the item already selected, which has the tint. */
.site :is(.docs-toc a, .zi a, .foot-lang a):hover { background: var(--bsoft); color: var(--btext); box-shadow: inset 0 0 0 1px var(--brand); }
.site .doc .show-password-input:hover { color: var(--brand); }
