/* Zark News — Social Share
 * Lightweight, privacy-respecting article sharing. No third-party SDKs.
 * Icon buttons with accessible labels; no layout shift; RTL-safe.
 */

.zark-share {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 1.25rem 0;
	max-width: 100%;
}

/* Clearly visible section after the article. */
.zark-share--end {
	border-bottom: 1px solid #d9e0e8;
	border-top: 1px solid #d9e0e8;
	padding: 1rem 0;
}

.zark-share__heading {
	color: #071a33;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.3;
	margin: 0;
	margin-inline-end: 0.4rem;
}

/* Compact control near the byline (inserted after .entry-meta). */
.zark-share--lead {
	border: 0;
	margin: 0.35rem 0 0.9rem;
	padding: 0;
}

.zark-share__label {
	color: #071a33;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin-inline-end: 0.15rem;
	text-transform: uppercase;
}

html[lang="ur"] .zark-share__label {
	letter-spacing: 0;
	text-transform: none;
	font-size: 0.85rem;
}

.zark-share__buttons {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.zark-share__link,
.zark-share__button {
	align-items: center;
	appearance: none;
	background: #f4f7fa;
	border: 1px solid #cbd5df;
	border-radius: 999px;
	color: #071a33;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	height: 42px;
	justify-content: center;
	line-height: 1;
	min-width: 42px;
	padding: 0;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	width: 42px;
}

.zark-share--lead .zark-share__link,
.zark-share--lead .zark-share__button {
	height: 36px;
	min-width: 36px;
	width: 36px;
}

.zark-share__link:hover,
.zark-share__button:hover {
	background: #e8eef4;
	border-color: #9fb0c2;
	color: #071a33;
}

.zark-share__link:focus-visible,
.zark-share__button:focus-visible {
	background: #071a33;
	border-color: #071a33;
	color: #fff;
	outline: 2px solid #087d94;
	outline-offset: 2px;
}

.zark-share__link svg,
.zark-share__button svg {
	fill: currentColor;
	height: 18px;
	width: 18px;
}

.zark-share--lead .zark-share__link svg,
.zark-share--lead .zark-share__button svg {
	height: 16px;
	width: 16px;
}

.zark-share__button.is-copied {
	background: #087d94;
	border-color: #087d94;
	color: #fff;
}

.zark-share__native[hidden] {
	display: none;
}

/* Visually hidden but announced live-region text. */
.zark-share .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

/* Mobile: comfortable tap targets, wrap instead of scrolling, WhatsApp first. */
@media (max-width: 620px) {
	.zark-share {
		gap: 0.6rem;
	}

	.zark-share__link,
	.zark-share__button {
		height: 46px;
		min-width: 46px;
		width: 46px;
	}

	.zark-share--lead .zark-share__link,
	.zark-share--lead .zark-share__button {
		height: 42px;
		min-width: 42px;
		width: 42px;
	}

	.zark-share__link--whatsapp {
		order: -1;
	}

	/* Native share is the preferred sharing method on mobile: it leads
	 * the row so iPhone/Android readers reach the OS share sheet first. */
	.zark-share__native {
		order: -2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zark-share__link,
	.zark-share__button {
		transition: none;
	}
}
