/*
/////////////////////////////////////////////////////////////
# social-icons.css - base styles for social_icons()         #
#                                                           #
# Version 1.01.0  (27/11/2026)                              #
#                                                           #
# Served to each site by /styles/social-icons.php; a skin   #
# copy (skins/<skin>/styles/social-icons.css) is used       #
# instead when there is one.                                #
#                                                           #
# Every selector is inside :where(), so it has no weight:   #
# any skin rule wins. Colours and sizes come from the       #
# variables social_icons() prints for each place:           #
#   --si-color, --si-hover        icon colour / on hover    #
#   --si-bg, --si-bg-hover        shape background          #
#   --si-size                     the link box (px)         #
#   --si-icon                     the icon inside it (px)   #
#   --si-gap                      space between icons       #
# A colour that isn't set takes the text colour around the  #
# icons (currentColor).                                     #
#                                                           #
# Lists printed with the skin's own icons (.os-si-skin)     #
# only lose their bullets: the skin's CSS styles them.      #
#                                                           #
# ChangeLog:                                                #
# 1.01.0 27/11/2026 - no "fill: currentColor" on the icon   #
#   (each icon's own fill says it): it filled in outline    #
#   icons (Social Media stage 4).                           #
# 1.00.0 26/11/2026 - new (Social Media stage 1)            #
/////////////////////////////////////////////////////////////
*/

:where(ul.os-socials) {
	list-style: none;
	margin: 0;
	padding: 0;
}

:where(ul.os-socials > li) {
	list-style: none;
	display: inline-block;
	vertical-align: middle;
	margin: 0;
	padding: 0;
}

:where(ul.os-socials:not(.os-si-skin) > li) {
	margin: calc(var(--si-gap, 12px) / 4) calc(var(--si-gap, 12px) / 2);
}

:where(ul.os-socials:not(.os-si-skin)) :where(a) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4em;
	min-width: var(--si-size, 24px);
	height: var(--si-size, 24px);
	color: var(--si-color, currentColor);
	background: var(--si-bg, transparent);
	text-decoration: none;
	line-height: 1;
	transition: color .2s, background-color .2s;
}

:where(ul.os-socials:not(.os-si-skin)) :where(a:hover, a:focus-visible) {
	color: var(--si-hover, var(--si-color, currentColor));
	background: var(--si-bg-hover, var(--si-bg, transparent));
}

:where(ul.os-socials) :where(.os-si-svg) {
	display: block;
	width: var(--si-icon, 24px);
	height: var(--si-icon, 24px);
	flex: none;
}

/* Shapes */
:where(.os-si-circle, .os-si-rounded, .os-si-square) :where(a) {
	width: var(--si-size, 24px);
}
:where(.os-si-circle) :where(a) {
	border-radius: 50%;
}
:where(.os-si-rounded) :where(a) {
	border-radius: 22%;
}
:where(.os-si-square) :where(a) {
	border-radius: 0;
}

/* Icon + name (labels => true): the box grows with the text */
:where(.os-si-labels) :where(a) {
	width: auto;
	padding: 0 .6em;
}
:where(.os-si-labels.os-si-none) :where(a) {
	padding: 0;
}
:where(.os-si-label) {
	white-space: nowrap;
}
