/**
 * Kubota Europe share row (WPBakery element `vc_kbeu_share`).
 *
 * Figma news post, nodes 3727-8461 / 3727-8523 / 3727-8521: the "Share the
 * article on:" label (24px / Roman, #202024, 1.3 line height) followed by round
 * outlined buttons — 57.7px wide with a 1.41px ring of black at 25% — holding
 * the Facebook, LinkedIn and X glyphs, 20.7px between buttons and ~27px between
 * the label and the first one. Everything is vertically centred on one line.
 *
 * Sizes are `clamp()`s whose maximum is the Figma value (the artboard is 2560px
 * wide, so vw = px / 25.6). The row fills the width its WPBakery row/column
 * gives it (no breakout, no own max width) and only aligns its content —
 * `--left` (default), `--center`, `--right`; on a narrow column it wraps, the
 * buttons dropping under the label.
 *
 * The ring is drawn here, not in the icon: the design has it as a separate
 * rectangle over which each glyph sits, so the `<svg>` only carries the glyph
 * (in `currentColor`) sized by its own `width` / `height` percentage of the
 * button. The design has no hover state; the ring darkening to the ink colour
 * is ours, gentle enough to keep under `prefers-reduced-motion`.
 *
 * Font "Inter" comes from the plugin's fonts stylesheet (this
 * handle depends on `kbeu-fonts`), referenced through `--kbeu-font-principal`.
 * The bundled family ships the 300 / 400 / 500 / 700 weights, so the design's 400
 * (Roman) label matches exactly.
 */

.kbeu-share {
	--kbeu-share-ink: var( --kbeu-color-ink-alt );
	--kbeu-share-glyph: #000;
	--kbeu-share-ring: rgba( 0, 0, 0, 0.25 );
	--kbeu-share-ring-hover: rgba( 0, 0, 0, 0.7 );
	/* Design @2560: 57.67px buttons, 1.41px ring, 20.7px between buttons,
	   27px from the label to the first button. */
	--kbeu-share-size: clamp( 40px, 2.25vw, 57.67px );
	--kbeu-share-ring-width: 1.41px;
	--kbeu-share-gap: clamp( 12px, 0.81vw, 20.7px );
	--kbeu-share-label-gap: clamp( 16px, 1.05vw, 27px );

	/* Fills whatever width its WPBakery row/column gives it (no breakout, no
	   own max width): the row decides between site width and full width. */
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: var( --kbeu-share-gap ) var( --kbeu-share-label-gap );
	width: 100%;
	box-sizing: border-box;
	font-family: var( --kbeu-font-principal );
	color: var( --kbeu-share-ink );
}

.kbeu-share--center {
	justify-content: center;
}

.kbeu-share--right {
	justify-content: flex-end;
}

.kbeu-share__label {
	margin: 0;
	font-weight: 400;
	line-height: 1.3;
	font-size: clamp( 16px, 0.94vw, 24px );
	color: var( --kbeu-share-ink );
}

/* The theme styles lists; this one is a plain row of buttons. */
.kbeu-share__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var( --kbeu-share-gap );
	margin: 0;
	padding: 0;
	list-style: none;
}

.kbeu-share__item {
	margin: 0;
	padding: 0;
	line-height: 0;
}

.kbeu-share__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var( --kbeu-share-size );
	height: var( --kbeu-share-size );
	box-sizing: border-box;
	border: var( --kbeu-share-ring-width ) solid var( --kbeu-share-ring );
	border-radius: 50%;
	color: var( --kbeu-share-glyph );
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.kbeu-share__link:hover,
.kbeu-share__link:focus-visible {
	border-color: var( --kbeu-share-ring-hover );
	color: var( --kbeu-share-glyph );
}

.kbeu-share__link:focus-visible {
	outline: 2px solid var( --kbeu-color-teal );
	outline-offset: 3px;
}

/* The glyph: sized by its own width/height percentage of the button (set per
   network in the markup), centred by the flex link. */
.kbeu-share__icon {
	display: block;
	flex: none;
}

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