/* Back-to-top button — soft square, bottom-right. Self-contained: carries its
   own colour fallbacks since it renders outside the plugin's scoped markup. */

.tsd-backtotop.tsd-backtotop {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9990;

	width: 52px;
	height: 52px;
	padding: 0 !important;
	margin: 0 !important;

	display: flex;
	align-items: center;
	justify-content: center;

	border: 1px solid var(--tsd-line, #1E3247) !important;
	border-radius: 14px !important;
	background: var(--tsd-paper-2, #12283F) !important;
	color: var(--tsd-ink, #EAF0F7) !important;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .35) !important;
	text-shadow: none !important;

	/* hidden until scrolled */
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease,
		background-color .15s ease, border-color .15s ease, color .15s ease;

	-webkit-appearance: none !important;
	appearance: none !important;
}

.tsd-backtotop.tsd-backtotop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tsd-backtotop.tsd-backtotop:hover,
.tsd-backtotop.tsd-backtotop:focus,
.tsd-backtotop.tsd-backtotop:active {
	background: var(--tsd-green, #0173FD) !important;
	border-color: var(--tsd-green, #0173FD) !important;
	color: #fff !important;
	transform: translateY(-3px);
}

.tsd-backtotop.tsd-backtotop:focus { outline: none; }
.tsd-backtotop.tsd-backtotop:focus-visible {
	outline: 2px solid var(--tsd-green, #0173FD) !important;
	outline-offset: 2px;
}

.tsd-backtotop.tsd-backtotop svg {
	width: 22px !important;
	height: 22px !important;
	display: block;
	fill: none !important;
	stroke: currentColor !important;
}

@media (max-width: 640px) {
	.tsd-backtotop.tsd-backtotop {
		right: 16px;
		bottom: 16px;
		width: 46px;
		height: 46px;
	}
	.tsd-backtotop.tsd-backtotop svg { width: 20px !important; height: 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.tsd-backtotop.tsd-backtotop { transition: opacity .2s ease, visibility .2s ease; transform: none; }
	.tsd-backtotop.tsd-backtotop.is-visible { transform: none; }
	.tsd-backtotop.tsd-backtotop:hover { transform: none; }
}
