/* Spike interaction affordance: quiet, contextual and layout-stable. */
.tgs-hotspot {
	--tgs-hotspot-accent: var(--wawi-accent, var(--ts-accent, var(--wp--preset--color--primary, #7ccf7c)));
	position: relative;
	transition: box-shadow 160ms cubic-bezier(.2, .8, .2, 1), outline-color 160ms ease-out, transform 160ms cubic-bezier(.2, .8, .2, 1);
}

/* Hover is limited to true hover devices, avoiding sticky highlights on touch. */
@media (hover: hover) and (pointer: fine) {
	.tgs-hotspot { cursor: pointer; }

	/* Fallback for browsers without color-mix(). */
	.tgs-hotspot:hover {
		box-shadow: 0 0 0 1px var(--tgs-hotspot-accent);
		transform: translateY(-1px);
	}

	@supports (color: color-mix(in srgb, black, white)) {
		.tgs-hotspot:hover {
			box-shadow:
				0 0 0 1px color-mix(in srgb, var(--tgs-hotspot-accent) 34%, transparent),
				0 8px 24px -14px color-mix(in srgb, var(--tgs-hotspot-accent) 42%, transparent);
		}
	}
}

.tgs-hotspot:focus-visible {
	outline: 3px solid var(--tgs-hotspot-accent);
	outline-offset: 3px;
	box-shadow: 0 0 0 2px Canvas, 0 0 0 5px var(--tgs-hotspot-accent);
}

.tgs-hotspot:active { transform: translateY(0) scale(.995); }

@media (forced-colors: active) {
	.tgs-hotspot:hover { outline: 1px solid Highlight; }
	.tgs-hotspot:focus-visible {
		outline: 3px solid Highlight;
		outline-offset: 3px;
		box-shadow: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tgs-hotspot { transition: none; transform: none; }
}
