/* Share rail (partials/share.php, loaded by the cmc/share block). Prototype article.html: a 54px charcoal rail, radius
   10, fixed 30px from the right edge and centred on the screen; "Share" over a column of 20px white line icons, 20px
   apart, that lift 2px on hover. Hidden below 1280px, where there is no gutter to put it in (as the prototype). */
.cmc-share {
	display: none;
}

@media (width >= 1280px) {
	.cmc-share {
		position: fixed;
		z-index: 50;
		top: 50%;
		right: 30px;
		display: flex;
		width: 54px;
		flex-direction: column;
		align-items: center;
		gap: 20px;
		padding-block: 15px;
		border-radius: var(--wp--custom--radius--card);
		background-color: var(--wp--preset--color--charcoal);
		color: var(--wp--preset--color--white);
		transform: translateY(-50%);
	}
}

.cmc-share__label {
	margin: 0;
	font-size: var(--wp--preset--font-size--text-11);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: var(--wp--custom--letter-spacing--caption);
	text-transform: uppercase;
}

.cmc-share__list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cmc-share__list li {
	position: relative;
	margin: 0;
	padding: 0;
}

.cmc-share__list :is(a, button) {
	display: flex;
	width: 20px;
	height: 20px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	transition: transform 300ms var(--wp--custom--ease);
}

.cmc-share__list :is(a, button):is(:hover, :focus-visible) {
	transform: translateY(-2px);
}

.cmc-share__list svg {
	width: 20px;
	height: 20px;
}

.cmc-share__status:not(:empty) {
	position: absolute;
	top: 50%;
	right: calc(100% + 16px);
	padding: 2px 10px;
	border-radius: var(--wp--custom--radius--btn);
	background-color: var(--wp--preset--color--charcoal);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--text-11);
	white-space: nowrap;
	transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
	.cmc-share__list :is(a, button) {
		transition: none;
	}
}
