/* =========================================================================
   AFFINITY FORMATIONS — SOCIAL SHARING
   Loaded wherever share.js might run. References theme tokens directly;
   CSS custom properties resolve at paint time regardless of stylesheet
   load order, so no theme-dependency declaration is required.
   ========================================================================= */

.af-share {
	position: relative;
	display: inline-block;
}

.af-share__popover {
	position: absolute;
	z-index: 40;
	top: calc(100% + 8px);
	left: 0;
	display: flex;
	flex-direction: column;
	min-width: 12rem;
	padding: 8px;
	background-color: var(--af-surface, #fff);
	border: 1px solid var(--af-line, #ddd);
	border-radius: var(--af-r-md, 12px);
	box-shadow: var(--af-shadow-3, 0 12px 32px rgba(0, 0, 0, 0.16));
}

/* Author styles override the browser's built-in [hidden] rule unless the
   hidden state is repeated explicitly. Keep the menu closed until JS opens it. */
.af-share__popover[hidden] {
	display: none;
}

.af-share__link {
	display: block;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	background: none;
	border-radius: var(--af-r-sm, 6px);
	font-size: var(--af-t-small, 0.9375rem);
	color: var(--af-ink, #111);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.af-share__link:hover,
.af-share__link:focus-visible {
	background-color: var(--af-surface-alt, #f3f3f3);
}
