/*
 * Block: core/social-links. Loads only where the block renders. Icons take the
 * palette instead of the services' brand colours and get 44px targets. A
 * colour chosen in the block's own settings (has-icon-color,
 * has-icon-background-color) still wins.
 */

.wp-block-social-links .wp-social-link .wp-block-social-link-anchor {
	padding: 10px;
}

/* Logos only: tighter gap, first icon flush with the text edge. */
.wp-block-social-links.is-style-logos-only {
	gap: 0.25rem;
}

.wp-block-social-links.is-style-logos-only:not(.aligncenter):not(.alignright) {
	margin-inline-start: -10px;
}

.wp-block-social-links.is-style-logos-only:not(.has-icon-color) .wp-social-link {
	color: currentColor;
}

.wp-block-social-links.is-style-logos-only:not(.has-icon-color) .wp-social-link:hover,
.wp-block-social-links.is-style-logos-only:not(.has-icon-color) .wp-social-link:focus-within {
	color: var(--wp--preset--color--primary);
}

.is-style-section-dark .wp-block-social-links.is-style-logos-only:not(.has-icon-color) .wp-social-link:hover,
.is-style-section-dark .wp-block-social-links.is-style-logos-only:not(.has-icon-color) .wp-social-link:focus-within {
	color: var(--wp--preset--color--accent);
}

/* Default and pill styles: muted discs, primary on hover. */
.wp-block-social-links:not(.is-style-logos-only):not(.has-icon-color):not(.has-icon-background-color) .wp-social-link {
	background-color: var(--wp--preset--color--base-3);
	color: var(--wp--preset--color--contrast);
}

.wp-block-social-links:not(.is-style-logos-only):not(.has-icon-color):not(.has-icon-background-color) .wp-social-link:hover,
.wp-block-social-links:not(.is-style-logos-only):not(.has-icon-color):not(.has-icon-background-color) .wp-social-link:focus-within {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary-contrast);
}
