/*
 * The site footer (parts/site-footer.php) and the scroll-to-top button.
 * The footer's background image or colour is set in sites/<site>/site.css.
 */

.st-footer__above,
.st-footer__below {
	min-height: 60px;
	padding: 20px 0;
}

.st-footer__above {
	background-color: #fff;
}

.st-footer__inner {
	margin-left: auto;
	margin-right: auto;
	max-width: calc(var(--st-content-width) + 2 * var(--st-gutter));
	padding-left: var(--st-gutter);
	padding-right: var(--st-gutter);
}

.st-footer__columns {
	align-items: start;
	column-gap: 50px;
	display: grid;
	grid-template-columns: repeat(var(--st-footer-columns, 1), minmax(0, 1fr));
}

/* Below 922px the columns stack, 10px apart. */
@media (max-width: 921px) {
	.st-footer__columns {
		grid-template-columns: minmax(0, 1fr);
	}

	.st-footer__column,
	.st-copyright {
		margin-bottom: 10px;
	}
}

.st-footer-piece {
	margin-bottom: 20px;
}

.st-footer-heading {
	border-bottom: 1px solid var(--ast-border-color);
	width: 100%;
}

.st-footer-heading strong {
	font-size: 120%;
}

.st-footer-menu {
	list-style: none;
	margin: 0;
}

.st-footer-menu .sub-menu {
	list-style: none;
	margin: 0 0 0 1em;
}

.st-footer-menu .st-submenu-toggle {
	display: none;
}

.st-footer__below .st-footer__inner {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 60px;
}

.st-copyright {
	color: var(--ast-global-color-3);
	text-align: center;
	width: 100%;
}

.st-copyright p {
	margin-bottom: 0;
}

/* ---------- Scroll-to-top button ---------- */

.st-scroll-top,
.st-scroll-top:hover,
.st-scroll-top:focus {
	background-color: var(--ast-global-color-0);
	border: 0;
	border-radius: 2px;
	bottom: 30px;
	box-shadow: none;
	color: #fff;
	display: none;
	font-size: 15px;
	height: 2.1em;
	line-height: 2.1;
	padding: 0;
	position: fixed;
	right: 30px;
	text-align: center;
	width: 2.1em;
	z-index: 99;
}

.st-scroll-top.is-visible {
	display: block;
}

.st-scroll-top svg {
	transform: translate(0, -20%) rotate(180deg);
	vertical-align: middle;
	width: 1.6em;
}

@media (max-width: 921px) {
	.st-scroll-top svg {
		width: 1em;
	}
}
