footer.wp-block-template-part:has(.cheerer-footer) {
	background-color: var(--wp--preset--color--background-dark);
	margin-block-start: 0;
}

.cheerer-footer {
	--cheerer-footer-rule: rgba(255, 255, 255, 0.16);
	--cheerer-footer-quiet: rgba(255, 255, 255, 0.7);
	padding-top: var(--wp--preset--spacing--3-xl);
	padding-bottom: var(--wp--preset--spacing--l);
}

.cheerer-footer.is-layout-constrained > * + *,
.cheerer-footer__top > * + *,
.cheerer-footer__brand > * + *,
.cheerer-footer__index > * + *,
.cheerer-footer__column > * + * {
	margin-block-start: 0;
}

.cheerer-footer :is(h1, h2, h3, p) {
	font-feature-settings: "palt";
}

/* Brand */

/* The rule belongs to the block so it opens the column whether the mark is
   set in type or replaced by an uploaded logo */
.cheerer-footer__brand::before {
	background-color: var(--wp--preset--color--primary);
	content: "";
	display: block;
	height: 2px;
	margin-bottom: 1rem;
	width: 1.75rem;
}

.cheerer-footer__logo,
.cheerer-footer__mark {
	margin: 0 0 0.65rem;
}

.cheerer-footer__logo a {
	background-image: none;
	display: inline-block;
}

.cheerer-footer__logo-img {
	display: block;
	height: clamp(1.75rem, 3vw, 2.5rem);
	max-width: 100%;
	width: auto;
}

.cheerer-footer__mark a {
	background-image: none;
	color: var(--wp--preset--color--text-on-dark);
	display: inline-block;
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	font-weight: 700;
	letter-spacing: -0.07em;
	line-height: 0.85;
	text-decoration: none;
}

.cheerer-footer__mark a:hover {
	background-size: 0;
	color: var(--wp--preset--color--accent);
}

.cheerer-footer__lockup {
	color: var(--wp--custom--color--text-on-dark-muted);
	font-size: 1rem;
	letter-spacing: -0.01em;
	line-height: 1.4;
	margin: 0;
}

/* Warm Red drops to 2.9:1 on the dark blue, so the lockup uses Soft Orange */
.cheerer-footer__x {
	color: var(--wp--preset--color--soft-orange);
	font-weight: 500;
}

/* Links */

.cheerer-footer a {
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 1px;
	color: var(--wp--custom--color--text-on-dark-muted);
	text-decoration: none;
	transition: background-size var(--wp--custom--transition--duration) var(--wp--custom--transition--easing), color var(--wp--custom--transition--duration) var(--wp--custom--transition--easing);
}

.cheerer-footer a:hover {
	background-size: 100% 1px;
	color: var(--wp--preset--color--text-on-dark);
}

.cheerer-footer a:focus-visible {
	background-size: 0;
	border-radius: 2px;
	color: var(--wp--preset--color--text-on-dark);
	outline: 2px solid rgba(255, 255, 255, 0.75);
	outline-offset: 4px;
}

/* Index */

.cheerer-footer__index {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--l);
}

/* Outranks the block-gap resets, which would otherwise flatten these */
.cheerer-footer > .cheerer-footer__top > .cheerer-footer__index {
	border-top: 1px solid var(--cheerer-footer-rule);
	margin-block-start: var(--wp--preset--spacing--l);
	padding-top: var(--wp--preset--spacing--l);
}

.cheerer-footer.is-layout-constrained > .cheerer-footer__colophon {
	margin-block-start: var(--wp--preset--spacing--l);
}

.cheerer-footer__label {
	color: var(--cheerer-footer-quiet);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.4;
	margin: 0 0 0.75rem;
}

.cheerer-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cheerer-footer__list li {
	margin: 0;
}

.cheerer-footer__list a {
	align-items: center;
	display: inline-flex;
	font-size: 0.9375rem;
	min-height: 40px;
}

.cheerer-footer__list--nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 9rem));
	column-gap: var(--wp--preset--spacing--m);
}

.cheerer-footer__list--nav a {
	font-weight: 500;
}

.cheerer-footer__address {
	color: var(--wp--custom--color--text-on-dark-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0;
	max-width: 18em;
	padding-block: 0.5rem;
}

/* Colophon */

.cheerer-footer__colophon {
	border-top: 1px solid var(--cheerer-footer-rule);
	gap: 0.25rem var(--wp--preset--spacing--m);
	padding-top: var(--wp--preset--spacing--m);
}

.cheerer-footer__legal {
	color: var(--cheerer-footer-quiet);
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	margin: 0;
}

.cheerer-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--wp--preset--spacing--s);
	margin: 0;
}

.cheerer-footer__social a {
	align-items: center;
	color: var(--cheerer-footer-quiet);
	display: inline-flex;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	min-height: 40px;
}

.cheerer-footer__social a:hover {
	color: var(--wp--preset--color--text-on-dark);
}

/* Pages ending with the CTA band already carry the contact details */
body:has(.cheerer-cta) .cheerer-footer__column--contact {
	display: none;
}

@media (min-width: 600px) {
	.cheerer-footer__index {
		align-items: start;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--l);
	}

	.cheerer-footer__list--nav {
		grid-template-columns: minmax(0, 1fr);
	}

	/* With the contact column hidden, the address moves to the last track so
	   the row still spans the grid instead of stopping two thirds across */
	body:has(.cheerer-cta) .cheerer-footer__column--place {
		grid-column: 3;
	}

	.cheerer-footer__list a,
	.cheerer-footer__social a {
		min-height: 0;
		padding-block: 0.375rem;
	}
}

@media (min-width: 782px) {
	.cheerer-footer {
		padding-top: var(--wp--preset--spacing--3-xl);
		padding-bottom: var(--wp--preset--spacing--l);
	}

	.cheerer-footer__lockup {
		font-size: 1.0625rem;
	}

	/* The brand sits beside the index rather than above it, which keeps the
	   footer from taking half the screen */
	.cheerer-footer__top {
		align-items: start;
		display: grid;
		gap: var(--wp--preset--spacing--2-xl);
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
	}

	.cheerer-footer > .cheerer-footer__top > .cheerer-footer__index {
		border-top: 0;
		margin-block-start: 0;
		padding-top: 0;
	}

	.cheerer-footer.is-layout-constrained > .cheerer-footer__colophon {
		margin-block-start: var(--wp--preset--spacing--2-xl);
	}
}

@media (max-width: 599px) {
	.cheerer-footer__colophon.is-layout-flex {
		align-items: flex-start;
		flex-direction: column;
	}
}
