/* Footer layouts and the back-to-top link. */

.site-footer {
	padding-top: clamp(2rem, 5vw, 4rem);
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--sp-space);
}

.sp-footer-compact .site-footer {
	padding: 1.25rem 0;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.17);
	padding-top: 1.25rem;
}

.footer-widgets + .footer-bottom {
	margin-top: 1rem;
}

.sp-back-to-top {
	position: fixed;
	bottom: 1.25rem;
	right: 1.25rem;
	z-index: 40;
	border-radius: 0;
	background: var(--sp-brand);
	color: #fff !important;
	text-decoration: none;
	box-shadow: var(--sp-shadow);
	width: 2.7rem;
	height: 2.7rem;
	display: grid;
	place-items: center;
	font-size: 1.4rem;
}

@media (max-width: 900px) {
	.footer-widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.footer-widgets {
		grid-template-columns: 1fr;
	}

	.sp-back-to-top {
		bottom: 0.75rem;
		right: 0.75rem;
	}
}
