/* Copyright (c) 2026 Web Upp Limited. Licensed under the GPL-2.0-or-later; see LICENSE. */
/*
 * The four parts of the footer (WebUpp Platform Theme 3.23.0):
 * webupp/facts, webupp/socials, webupp/legal-links and webupp/copyright,
 * drawn by their own blocks and by webupp/footer's sections with the same
 * markup. The style handle webupp-parts, enqueued only where one draws.
 * Every colour is a --wu-* slot or the colour around the part (no colour is
 * written here), but from 3.25.0 the networks' own colours, each the
 * fallback of its --wu-socials-brand-<network> slot, and the black, white
 * and Google's white the owners' guidelines ask for; every rule of the
 * 3.23.0 parts is at no more weight than its class.
 */

.wu-site-facts__heading,
.wu-socials__heading {
	margin: 0 0 12px;
	color: var(--wu-parts-heading, inherit);
	font-family: var(--wu-display, inherit);
	font-size: var(--wu-parts-heading-size, 1rem);
	font-weight: 600;
}

.wu-site-facts__list {
	display: grid;
	gap: var(--wu-facts-gap, 8px);
	margin: 0;
}

.wu-site-facts__item {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
}

.wu-site-facts__label {
	color: var(--wu-facts-label, inherit);
	font-weight: 600;
}

.wu-site-facts__label::after {
	content: ":";
}

.wu-site-facts__value {
	margin: 0;
	overflow-wrap: anywhere;
}

.wu-site-facts--inline .wu-site-facts__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wu-facts-gap, 8px 24px);
}

.wu-site-facts--bare .wu-site-facts__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* From 3.24.0: an icon before each fact (the block's "icons", off by default). */
.wu-site-facts__label--icon {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: var(--wu-facts-icon-gap, 8px);
	min-height: 1lh; /* One line high, so the icon sits on the first line's middle. */
}

/* The colon follows the words, not the gap after them. */
.wu-site-facts__label--icon::after {
	content: none;
}

.wu-site-facts__words::after {
	content: ":";
}

.wu-site-facts__icon {
	display: inline-flex;
	flex: none;
	color: var(--wu-facts-icon, currentColor);
}

.wu-site-facts__icon svg {
	width: var(--wu-facts-icon-size, 1.125em);
	height: var(--wu-facts-icon-size, 1.125em);
}

.wu-site-facts--bare .wu-site-facts__label--icon {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip-path: none;
	white-space: normal;
}

.wu-site-facts--bare .wu-site-facts__label--icon::after {
	content: none;
}

.wu-site-facts--bare .wu-site-facts__words {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.wu-socials__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wu-socials-gap, 8px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wu-socials__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wu-socials-text, inherit);
}

.wu-socials__link svg {
	flex: none;
	width: 20px;
	height: 20px;
}

.wu-socials--icons .wu-socials__link {
	justify-content: center;
	width: var(--wu-socials-size, 40px);
	height: var(--wu-socials-size, 40px);
	border: 1px solid var(--wu-socials-line, currentColor);
	border-radius: var(--wu-socials-radius, 999px);
}

.wu-socials--icons .wu-socials__name {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.wu-socials--words .wu-socials__link svg {
	display: none;
}

/*
 * The social styles (3.25.0; docs/blocks/socials.md). Every rule below is on
 * a class the default (the ring in the site's colour) never draws, so a site
 * that sets nothing draws as 3.24.0 did but for the marks themselves.
 *
 * Shapes: `wu-socials--shape-none` (the mark alone), and the filled shapes
 * `wu-socials--filled` with `--shape-circle`, `--shape-rounded` or
 * `--shape-square`: the face in the site's colour, the mark cut out of it in
 * the ground's colour (--wu-socials-knock, the ground it stands on).
 * Colour `wu-socials--brand`: each network's published colour
 * (--wu-socials-brand-<network>; the sources in assets/icons/README.md), X,
 * TikTok, Threads and Instagram black or white against the ground in each
 * scheme (--wu-socials-mono; Instagram's own colour is a gradient Meta
 * publishes only as a picture), Google's G in its own four colours.
 */
.wu-socials--shape-none .wu-socials__link {
	border-color: transparent;
}

.wu-socials--filled {
	--wu-socials-knock-auto: var(--wu-ground);
}

.wu-ground--alt .wu-socials--filled {
	--wu-socials-knock-auto: var(--wu-ground-alt);
}

.wu-ground--inverse .wu-socials--filled {
	--wu-socials-knock-auto: var(--wu-inverse-ground);
}

.wu-site-footer--alt .wu-socials--filled {
	--wu-socials-knock-auto: var(--wu-footer-ground, var(--wu-ground-alt));
}

.wu-site-footer--base .wu-socials--filled {
	--wu-socials-knock-auto: var(--wu-footer-ground, var(--wu-ground));
}

.wu-site-footer--inverse .wu-socials--filled {
	--wu-socials-knock-auto: var(--wu-footer-ground, var(--wu-inverse-ground));
}

/* The ring's 1px edge kept, transparent, so a filled shape is the ring's
   size (the face paints under the edge) and a change of shape never moves
   the layout. */
.wu-socials--filled .wu-socials__link {
	border-color: transparent;
	background: var(--wu-socials-face, currentColor);
}

.wu-socials--filled .wu-socials__link svg {
	color: var(--wu-socials-knock, var(--wu-socials-knock-auto));
}

.wu-socials--shape-circle .wu-socials__link {
	border-radius: 50%;
}

.wu-socials--shape-rounded .wu-socials__link {
	border-radius: var(--wu-socials-rounded, 25%);
}

.wu-socials--shape-square .wu-socials__link {
	border-radius: 0;
}

.wu-socials--brand {
	--wu-socials-mono: light-dark(#000, #fff);
	--wu-socials-mono-knock: light-dark(#fff, #000);
}

.wu-ground--inverse .wu-socials--brand,
.wu-site-footer--inverse .wu-socials--brand {
	--wu-socials-mono: light-dark(#fff, #000);
	--wu-socials-mono-knock: light-dark(#000, #fff);
}

.wu-socials--brand .wu-socials__link--facebook {
	--wu-socials-brand: var(--wu-socials-brand-facebook, #0866ff);
}

.wu-socials--brand .wu-socials__link--linkedin {
	--wu-socials-brand: var(--wu-socials-brand-linkedin, #0a66c2);
}

.wu-socials--brand .wu-socials__link--youtube {
	--wu-socials-brand: var(--wu-socials-brand-youtube, #ff0033);
}

.wu-socials--brand .wu-socials__link--pinterest {
	--wu-socials-brand: var(--wu-socials-brand-pinterest, #e60023);
}

.wu-socials--brand .wu-socials__link--bluesky {
	--wu-socials-brand: var(--wu-socials-brand-bluesky, #0560ff);
}

.wu-socials--brand .wu-socials__link--whatsapp {
	--wu-socials-brand: var(--wu-socials-brand-whatsapp, #25d366);
}

.wu-socials--brand .wu-socials__link--x,
.wu-socials--brand .wu-socials__link--tiktok,
.wu-socials--brand .wu-socials__link--threads,
.wu-socials--brand .wu-socials__link--instagram {
	--wu-socials-brand: var(--wu-socials-mono);
	--wu-socials-brand-mark: var(--wu-socials-mono-knock);
}

/* The mark (and the ring) in the network's colour. */
.wu-socials--brand:not(.wu-socials--filled) .wu-socials__link {
	color: var(--wu-socials-brand, var(--wu-socials-text, inherit));
}

/* The marks whose inner shape is white in the owner's own logo (Facebook's
   'f', LinkedIn's "in", Pinterest's P, YouTube's triangle) keep it white
   on any ground, not the ground showing through. */
.wu-socials--brand:not(.wu-socials--filled) :is(.wu-socials__link--facebook, .wu-socials__link--pinterest) svg {
	border-radius: 50%;
	background: radial-gradient(closest-side, #fff 86%, transparent 87%);
}

.wu-socials--brand:not(.wu-socials--filled) .wu-socials__link--linkedin svg {
	background: linear-gradient(#fff, #fff) center / 64% 64% no-repeat;
}

.wu-socials--brand:not(.wu-socials--filled) .wu-socials__link--youtube svg {
	background: radial-gradient(closest-side, #fff 40%, transparent 41%);
}

/* On a filled shape the face is the network's colour and the mark white
   (black or white, opposite the face, for X, TikTok, Threads and
   Instagram). */
.wu-socials--brand.wu-socials--filled :is(.wu-socials__link--facebook, .wu-socials__link--linkedin, .wu-socials__link--youtube, .wu-socials__link--pinterest, .wu-socials__link--bluesky, .wu-socials__link--whatsapp, .wu-socials__link--x, .wu-socials__link--tiktok, .wu-socials__link--threads, .wu-socials__link--instagram) {
	background: var(--wu-socials-brand);
}

.wu-socials--brand.wu-socials--filled :is(.wu-socials__link--facebook, .wu-socials__link--linkedin, .wu-socials__link--youtube, .wu-socials__link--pinterest, .wu-socials__link--bluesky, .wu-socials__link--whatsapp, .wu-socials__link--x, .wu-socials__link--tiktok, .wu-socials__link--threads, .wu-socials__link--instagram) svg {
	color: var(--wu-socials-brand-mark, #fff);
}

/* Google's G stands on white, as Google asks, edged so a white face shows
   on a white ground. */
.wu-socials--brand.wu-socials--filled .wu-socials__link--google_business {
	box-shadow: inset 0 0 0 1px var(--wu-socials-line, var(--wu-line, currentColor));
	background: #fff;
}

.wu-legal-links__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wu-legal-gap, 8px 20px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.wu-copyright {
	margin: 0;
}
