/*
 * TPX site-wide footer band (v0.6.81, spec 14.98) -- printed by
 * TPX_Site_Footer in wp_footer as a direct child of <body>, so width: 100%
 * is the full viewport without any 100vw breakout (see that class's
 * docblock for why). position: static and no z-index on purpose: every
 * full-screen TPX overlay (Together walkthrough z-index 9999, Step 3
 * overlay 10000, Report panels) paints above it.
 *
 * Colors: white text on --tpx-primary-dark (#6b0f3f) is about 12:1; the
 * pale pink secondary line (#f7c6de) on the same background is about 8:1 --
 * both comfortably past WCAG AA. Same 6px brand-gradient top bar as the
 * TPX cards. Selectors are scoped under .tpx-site-footer and reset the few
 * properties themes most often restyle (link color, list bullets, p margins)
 * so a theme's own footer styles don't leak in.
 */

.tpx-site-footer {
	--tpx-sf-primary: var(--tpx-primary, #ad1a66);
	--tpx-sf-primary-dark: var(--tpx-primary-dark, #6b0f3f);
	--tpx-sf-accent: #f420ce;
	--tpx-sf-text: #ffffff;
	--tpx-sf-text-soft: #f7c6de;
	--tpx-sf-font: var(--tpx-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);

	position: static;
	display: block;
	clear: both;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	background: var(--tpx-sf-primary-dark);
	border-top: 6px solid transparent;
	border-image: linear-gradient(90deg, var(--tpx-sf-primary), var(--tpx-sf-accent)) 1;
	font-family: var(--tpx-sf-font);
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--tpx-sf-text);
	text-align: left;
}

.tpx-site-footer *,
.tpx-site-footer *::before,
.tpx-site-footer *::after {
	box-sizing: border-box;
}

.tpx-site-footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 1.75rem 1.25rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
}

.tpx-site-footer-brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-width: 0;
}

.tpx-site-footer-spark {
	flex: 0 0 auto;
	width: 40px;
	height: 31px;
}

.tpx-site-footer-text {
	min-width: 0;
}

.tpx-site-footer p {
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}

.tpx-site-footer-name {
	font-weight: 700;
	font-size: 1.02rem;
}

.tpx-site-footer-entity {
	color: var(--tpx-sf-text-soft) !important;
	font-size: 0.86rem !important;
}

.tpx-site-footer a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	border-radius: 2px;
}

.tpx-site-footer a:hover {
	text-decoration-thickness: 2px;
	color: #ffffff;
}

.tpx-site-footer a:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}

.tpx-site-footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tpx-site-footer-nav li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tpx-site-footer-nav li::before {
	content: none;
}

.tpx-site-footer-nav a {
	display: inline-block;
	padding: 0.35rem 0.1rem;
	font-weight: 600;
}

/* Screen-reader-only "(opens in a new tab)" -- own class rather than a
   theme's .screen-reader-text, which not every theme defines. */
.tpx-site-footer-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 600px) {
	.tpx-site-footer-inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 1.5rem 1rem;
	}
}
