/* Progressive-enhancement controls shared by public theme pages. */
.acg-footer-links {
	margin: 0 auto var(--acg-space-3);
	font-family: var(--acg-font-body);
}

.acg-footer-links__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--acg-space-1) var(--acg-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.acg-footer-links__item {
	margin: 0;
}

.acg-footer-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: var(--acg-space-1);
	border-radius: var(--acg-radius-control);
	color: var(--acg-color-accent-soft);
	font-weight: 600;
	line-height: 1.35;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

.acg-footer-links a:hover {
	color: var(--acg-color-text);
}

.acg-footer-links a:focus-visible {
	outline: 3px solid var(--acg-color-focus);
	outline-offset: 3px;
}

.acg-back-to-top {
	position: fixed;
	right: calc(1rem + env(safe-area-inset-right));
	bottom: calc(1rem + env(safe-area-inset-bottom));
	z-index: 1000;
	display: grid;
	width: 48px;
	height: 48px;
	place-items: center;
	border: 1px solid rgba(255, 202, 225, 0.55);
	border-radius: 50%;
	background: #bd235b;
	box-shadow: 0 10px 24px rgba(34, 0, 29, 0.38);
	color: #fff;
	transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease, background-color 180ms ease;
}

.acg-back-to-top:hover {
	background: #8f184f;
	color: #fff;
	transform: translateY(-3px);
}

.acg-back-to-top:focus-visible {
	outline: 3px solid #f6c94c;
	outline-offset: 3px;
}

.acg-back-to-top svg {
	width: 23px;
	height: 23px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.25;
}

html.acg-site-ui-ready .acg-back-to-top {
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px);
	visibility: hidden;
}

html.acg-site-ui-ready .acg-back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	visibility: visible;
}

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

@media (max-width: 480px) {
	.acg-footer-links__list {
		gap: var(--acg-space-1) var(--acg-space-2);
	}
}
