/*
 * Shared frontend components. The existing per-site Additional CSS remains the
 * source of the back-to-top layout; the duplicate inline footer copy is gone.
 */

/* Override the preserved Additional CSS's white !important symbol colour. */
body a.back-to-top {
	color: #2e4050 !important;
}

body a.back-to-top:focus-visible,
.rd-table-scroll:focus-visible {
	outline: 2px solid #2e4050;
	outline-offset: 3px;
}

/* Keyboard focus must never remain inside an offscreen fixed header. */
.site-header:focus-within {
	top: 0 !important;
}

/* Opt-in only: the unwrapped table layout stays unchanged on larger screens. */
.rd-table-scroll {
	display: contents;
}

@media screen and (max-width: 47.9375em) {
	.rd-table-scroll {
		display: block;
		max-width: 100%;
		overflow-x: auto;
	}

	.rd-table-scroll > table {
		min-width: 34rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html:root {
		scroll-behavior: auto !important;
	}

	.site-header,
	.back-to-top,
	.neuseeland-cta-button {
		transition: none !important;
	}
}
