/* FCT site-wide utilities */
button.fct-site-back-to-top {
	box-sizing: border-box;
	min-width: 0;
	min-height: 0;
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
	position: fixed;
	right: max(18px, env(safe-area-inset-right));
	bottom: max(18px, env(safe-area-inset-bottom));
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(166, 197, 231, .38);
	border-radius: 999px;
	background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .22), transparent 38%), linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 64, 175, .92));
	box-shadow: 0 16px 35px rgba(0, 0, 0, .34), 0 0 0 1px rgba(255, 255, 255, .06) inset;
	color: #eaf2ff;
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity .22s ease, transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

button.fct-site-back-to-top span {
	display: block;
	line-height: 1;
	transform: translateY(-1px);
}

button.fct-site-back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

button.fct-site-back-to-top:hover,
button.fct-site-back-to-top:focus-visible {
	border-color: rgba(255, 214, 102, .65);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .42), 0 0 0 3px rgba(255, 214, 102, .18);
	outline: none;
}

button.fct-site-back-to-top:active {
	transform: translateY(1px) scale(.98);
}

@media (max-width: 640px) {
	button.fct-site-back-to-top {
		right: max(14px, env(safe-area-inset-right));
		bottom: max(14px, env(safe-area-inset-bottom));
		width: 42px;
		height: 42px;
		font-size: 21px;
	}
}

@media (prefers-reduced-motion: reduce) {
	button.fct-site-back-to-top {
		transition: none;
	}
}

@media print {
	button.fct-site-back-to-top {
		display: none !important;
	}
}
