/* Share rail (partials/share.php, enqueued there): a navy row after the post on mobile; fixed to the right edge on
   desktop. Figma: Event Structures Article › share 7026:27789 */
.fews-share {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.25rem;
	padding: 0.9375rem 0.5rem;
	color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--contrast);
}

.fews-share__label {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--text-13);
	line-height: 2;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}

.fews-share__list {
	display: flex;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fews-share__list li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fews-share__list :is(a, button) {
	display: grid;
	place-items: center;
	inline-size: 1.25rem;
	block-size: 1.25rem;
	padding: 0;
	border: 0;
	color: inherit;
	background: none;
	cursor: pointer;
	transition: color 0.2s;
}

.fews-share__list :is(a, button):is(:hover, :focus-visible) {
	color: var(--wp--preset--color--primary);
}

.fews-share__list svg {
	max-inline-size: 100%;
	max-block-size: 100%;
}

.fews-share__status:not(:empty) {
	position: absolute;
	right: 50%;
	bottom: calc(100% + 0.75rem);
	padding: 0.125rem 0.625rem;
	font-size: var(--wp--preset--font-size--text-12);
	white-space: nowrap;
	color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--contrast);
	transform: translateX(50%);
}

/* desktop: floats on the right edge, vertically centred (Figma); mobile keeps the row so it never covers the text */
@media (width > 782px) {
	.fews-share {
		position: fixed;
		z-index: 50;
		top: 50%;
		right: 0;
		box-sizing: border-box;
		inline-size: 4.5rem;
		flex-direction: column;
		transform: translateY(-50%);
	}

	.fews-share__list {
		flex-direction: column;
	}

	.fews-share__status:not(:empty) {
		top: 50%;
		right: calc(100% + 1rem);
		bottom: auto;
		transform: translateY(-50%);
	}
}
