/**
 * @file plugins/generic/amhShare/styles/share.css
 *
 * The share row.
 *
 * Neutral by default and branded only on hover: six saturated brand colours in
 * a row under an article pull harder than the article does. The colours are the
 * official ones, so the mark is recognisable the moment a reader reaches for it.
 */

.amhShare__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.amhShare__item {
	margin: 0;
	padding: 0;
}

.amhShare__button {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.4rem 0.85rem;
	border: 1px solid #d7dce5;
	border-radius: 2rem;
	background: #fff;
	color: #3d4757;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.amhShare__icon {
	flex: none;
	font-size: 1rem;
}

.amhShare__button:hover,
.amhShare__button:focus-visible {
	border-color: currentColor;
	text-decoration: none;
}

.amhShare__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.amhShare__button--copy:hover,
.amhShare__button--copy:focus-visible {
	color: #10172a;
}

.amhShare__button--email:hover,
.amhShare__button--email:focus-visible {
	color: #5b6577;
}

.amhShare__button--linkedin:hover,
.amhShare__button--linkedin:focus-visible {
	color: #0a66c2;
}

.amhShare__button--x:hover,
.amhShare__button--x:focus-visible {
	color: #000;
}

.amhShare__button--facebook:hover,
.amhShare__button--facebook:focus-visible {
	color: #1877f2;
}

.amhShare__button--whatsapp:hover,
.amhShare__button--whatsapp:focus-visible {
	color: #128c7e;
}

.amhShare__button--telegram:hover,
.amhShare__button--telegram:focus-visible {
	color: #229ed9;
}

/* Held until the label has been read, not flashed and taken away. */
.amhShare__button--done,
.amhShare__button--done:hover {
	border-color: #0f7b4f;
	background: #f1faf5;
	color: #0f7b4f;
}

@media (max-width: 480px) {
	.amhShare__list {
		gap: 0.4rem;
	}

	.amhShare__button {
		padding: 0.4rem 0.7rem;
	}
}
