/* Website Settings elements. Low specificity, so styles set in Elementor win, apart from the policy's spacing and the footer bar's link colours. */
:where(.mojo-social) {
	--mojo-icon-size: 1em;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: calc(var(--mojo-icon-size) * 0.75);
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(.mojo-social--vertical) {
	flex-direction: column;
	align-items: flex-start;
}

:where(.mojo-social__item) {
	margin: 0;
	padding: 0;
}

:where(.mojo-social__link) {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

:where(.mojo-social__link:hover) {
	opacity: 0.75;
}

:where(.mojo-social__icon) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: var(--mojo-icon-size);
	height: var(--mojo-icon-size);
	line-height: 1;
}

:where(.mojo-social__icon svg) {
	display: block;
	width: 100%;
	height: 100%;
}

/* Stacked and bordered icons sit in the middle of a circle twice their size. */
:where(.mojo-social--stacked, .mojo-social--bordered) :where(.mojo-social__icon) {
	box-sizing: border-box;
	width: calc(var(--mojo-icon-size) * 2);
	height: calc(var(--mojo-icon-size) * 2);
	border-radius: 50%;
}

:where(.mojo-social--stacked, .mojo-social--bordered) :where(.mojo-social__icon svg) {
	width: 50%;
	height: 50%;
}

:where(.mojo-social--stacked .mojo-social__icon) {
	background: var(--mojo-circle, #000000);
	color: var(--mojo-circle-ink, #ffffff);
}

/* A ring in the icon's colour, a twelfth of the icon's size and never under 1px. */
:where(.mojo-social--bordered .mojo-social__icon) {
	border: max(1px, calc(var(--mojo-icon-size) / 12)) solid currentColor;
	color: var(--mojo-ring, #000000);
}

/*
 * Privacy & Terms headings take the site's own heading styles (see
 * Default_Styles). The space around them scales with each heading, and
 * wins over the theme's and a style's own margins, so sections stay apart.
 */
.elementor .mojo-policy :is(h1, h2, h3, h4, h5, h6) {
	margin-block: 1.5em 0.5em;
}

.elementor .mojo-policy > :first-child {
	margin-block-start: 0;
}

.elementor .mojo-policy > :last-child {
	margin-block-end: 0;
}

/*
 * Footer Bar: two ends. The site's small print on the left (the copyright,
 * then the links, which move under the copyright when they don't fit beside
 * it) and the credit on the right. When the bar is narrower than about 60em
 * (on phones, or in a narrow footer) everything stacks, centred, with the
 * credit at the bottom. The bar is the container it measures, so it fills
 * its footer's width. It takes the footer's font and colour, its text a size
 * smaller than the footer's (a font size set on it in Elementor wins). Its
 * links do too, over the theme's and kit's link styles, so they need a
 * class's weight.
 */
:where(.mojo-footer-bar) {
	--mojo-credit: currentColor;
	width: 100%;
	font-size: 0.875em;
	container-type: inline-size;
}

:where(.mojo-footer-bar__inner) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.75em var(--space-m, 2em);
}

:where(.mojo-footer-bar__legal) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em var(--space-m, 2em);
}

:where(.mojo-footer-bar__rights) {
	white-space: nowrap;
}

:where(.mojo-footer-bar__links) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em var(--space-s, 1.5em);
}

:where(.mojo-footer-bar__credit) {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	white-space: nowrap;
}

@container (max-width: 60em) {
	:where(.mojo-footer-bar__inner) {
		grid-template-columns: minmax(0, 1fr);
		justify-items: center;
		text-align: center;
	}

	:where(.mojo-footer-bar__legal) {
		flex-direction: column;
		row-gap: 0.75em;
	}

	:where(.mojo-footer-bar__links) {
		justify-content: center;
	}

	:where(.mojo-footer-bar__credit) {
		white-space: normal;
	}
}

:where(.mojo-footer-bar__heart) {
	--mojo-heart: 0.9em;
	display: inline-flex;
	flex: none;
	width: var(--mojo-heart);
	height: var(--mojo-heart);
	color: var(--mojo-credit);
}

:where(.mojo-footer-bar__heart svg) {
	display: block;
	width: 100%;
	height: 100%;
}

/*
 * The heart's middle meets the middle of the capitals in "Made by people",
 * in any font: its bottom sits on the words' baseline, then it moves down by
 * half its height less half the font's own capital height. It takes up no
 * more height than the capitals, so it never makes the line taller. Browsers
 * without the cap unit centre it on the line instead.
 */
@supports (top: 1cap) {
	:where(.mojo-footer-bar__credit) {
		align-items: baseline;
	}

	:where(.mojo-footer-bar__heart) {
		position: relative;
		top: calc(var(--mojo-heart) / 2 - 0.5cap);
		margin-block-start: calc(1cap - var(--mojo-heart));
	}
}

.mojo-footer-bar .mojo-footer-bar__link,
.mojo-footer-bar .mojo-footer-bar__mojo {
	color: inherit;
	font-weight: inherit;
	text-decoration: none;
}

.mojo-footer-bar .mojo-footer-bar__link:is(:hover, :focus-visible),
.mojo-footer-bar .mojo-footer-bar__mojo:is(:hover, :focus-visible) {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.mojo-footer-bar .mojo-footer-bar__mojo,
.mojo-footer-bar .mojo-footer-bar__mojo:is(:hover, :focus-visible) {
	color: var(--mojo-credit);
	font-weight: 700;
}

:where(.mojo-empty) {
	padding: 12px 16px;
	border: 1px dashed currentColor;
	border-radius: 6px;
	font-size: 14px;
	opacity: 0.7;
}
