/*
 * Site footer — "minimal with phone accordions" (owner's choice of 2026-10-03), loaded after main.css and overriding its
 * footer rules: a thin top line, tighter padding (40 / 32 px on desktop; 16 / 28 on phones, where the groups collapse),
 * 14 px from a heading to its links, 34 px link rows (44 px on touch screens), small consistent icons, a colour +
 * underline hover and a 2 px light-blue focus ring. Under 768 px assets/js/footer.js turns each heading into a button.
 * Contrast on #0a0a0a: headings #fff 19.8:1 · links #d4d4d4 13.4:1 · icons #8fa8ff 8.7:1.
 */

.c2t-footer {
	padding-block: 40px 32px;
	border-top: 1px solid #262626;
}

.c2t-footer .c2t-footer__heading {
	margin: 0 0 14px;
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.005em;
	line-height: 1.3;
}

.c2t-footer .c2t-footer__menu li + li {
	margin-top: 0;
}

.c2t-footer .c2t-footer__menu a {
	padding-block: 5px;
}

.c2t-footer .c2t-footer__contact-list li {
	gap: 10px;
	padding-block: 5px;
}

/* Phone and email: a taller tap area without changing the line spacing. */
.c2t-footer .c2t-footer__contact-list a {
	display: inline-block;
	margin-block: -5px;
	padding-block: 5px;
}

.c2t-footer .c2t-footer__contact-list .c2t-icon {
	width: 18px;
	height: 18px;
	margin-top: 2px;
}

.c2t-footer a {
	text-decoration: underline;
	text-decoration-color: transparent;
	text-underline-offset: 0.22em;
	transition: color 160ms ease, text-decoration-color 160ms ease;
}

.c2t-footer a:hover {
	color: #fff;
	text-decoration-color: currentColor;
}

.c2t-footer a:focus-visible {
	border-radius: 2px;
	outline: 2px solid #8fa8ff;
	outline-offset: 3px;
	color: #fff;
}

.c2t-footer .c2t-footer__bottom {
	margin-top: 32px;
	padding-top: 20px;
}

.c2t-footer .c2t-back-to-top {
	min-height: 40px;
	text-decoration: none;
}

/* The copyright line (longer since 1.2.1) breaks evenly when it wraps on phones. */
.c2t-footer .c2t-footer__copyright {
	text-wrap: balance;
}

/* Wide screens: copyright left, payment badge centred, Back to top right. */
@media (min-width: 1024px) {
	.c2t-footer .c2t-footer__bottom {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
	}

	.c2t-footer .c2t-footer__bottom > .c2t-back-to-top {
		grid-column: 3;
		justify-self: end;
	}
}

@media (min-width: 1024px) {
	.c2t-footer .c2t-footer__grid {
		gap: 48px;
	}
}

/* Phones: one row per group; a tap opens it. */
@media (max-width: 767px) {
	.c2t-footer {
		padding-block: 16px 28px;
	}

	.c2t-footer .c2t-footer__grid {
		gap: 0;
	}

	.c2t-footer .c2t-footer__col {
		border-bottom: 1px solid #262626;
	}

	.c2t-footer .c2t-footer__heading {
		margin: 0;
	}

	.c2t-footer .c2t-footer__body:not([hidden]) {
		padding-bottom: 14px;
	}

	.c2t-footer .c2t-footer__bottom {
		margin-top: 8px;
		border-top: 0;
	}
}

/* Without the script (or before it runs) the headings are plain text and every group shows. */
@media (max-width: 767px) and (scripting: none) {
	.c2t-footer .c2t-footer__heading {
		padding-top: 14px;
		margin-bottom: 8px;
	}
}

.c2t-footer .c2t-footer__toggle,
.c2t-footer .c2t-footer__toggle:hover,
.c2t-footer .c2t-footer__toggle:focus {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
	transition: none;
}

.c2t-footer .c2t-footer__toggle:focus-visible {
	outline: 2px solid #8fa8ff;
	outline-offset: 2px;
}

.c2t-footer__sign {
	position: relative;
	flex: none;
	width: 14px;
	height: 14px;
}

.c2t-footer__sign::before,
.c2t-footer__sign::after {
	position: absolute;
	top: 50%;
	left: 0;
	width: 14px;
	height: 1.5px;
	background: #d4d4d4;
	content: "";
	transition: transform 160ms ease;
}

.c2t-footer__sign::after {
	transform: rotate(90deg);
}

.c2t-footer__toggle[aria-expanded="true"] .c2t-footer__sign::after {
	transform: rotate(0deg);
}

@media (pointer: coarse) {
	.c2t-footer .c2t-footer__menu a {
		padding-block: 10px;
	}

	.c2t-footer .c2t-footer__contact-list a {
		margin-block: -10px;
		padding-block: 10px;
	}

	.c2t-footer .c2t-back-to-top {
		min-height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.c2t-footer a,
	.c2t-footer__sign::before,
	.c2t-footer__sign::after {
		transition: none;
	}
}
