/* Social Tooltip: a port of ravikatiyar162's "Social Media" on 21st.dev. Values are the original's Tailwind ones:
   a 48px circle, a 28px icon, gap 1rem, 300ms ease-in-out, the tooltip from bottom -40px to -50px. */
.fx-social { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.fx-social__item { position: relative; }
.fx-social__link {
  position: relative; display: flex; align-items: center; justify-content: center; inline-size: 3rem; block-size: 3rem;
  border-radius: 999px; overflow: hidden; background: var(--color-canvas, #fff); color: var(--color-text, #171717);
  box-shadow: inset 0 0 0 1px var(--color-border, #e5e5e5);
  transition: box-shadow .3s ease-in-out, transform .3s ease-in-out;
}
.fx-social__fill { position: absolute; inset-inline: 0; inset-block-end: 0; block-size: 0; background: var(--st-color); transition: block-size .3s ease-in-out; }
.fx-social__icon:not([fill]) { fill: currentColor; }
.fx-social__icon { position: relative; z-index: 1; inline-size: 1.75rem; block-size: 1.75rem; transition: color .3s ease-in-out, fill .3s ease-in-out; }
.fx-social__tip {
  position: absolute; inset-block-end: -40px; inset-inline-start: 50%; translate: -50% 0; z-index: 2;
  padding: .375rem .625rem; border-radius: .375rem; background: var(--st-color); color: #fff;
  font: 500 .875rem / 1.25rem var(--type-body-family, inherit); white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none; transition: all .3s ease-in-out;
}
[dir="rtl"] .fx-social__tip { translate: 50% 0; }
.fx-social__item:hover .fx-social__link, .fx-social__link:focus-visible { box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1); }
.fx-social__item:hover .fx-social__fill, .fx-social__link:focus-visible .fx-social__fill { block-size: 100%; }
.fx-social__item:hover .fx-social__icon, .fx-social__link:focus-visible .fx-social__icon,
.fx-social__item:hover .fx-social__icon *, .fx-social__link:focus-visible .fx-social__icon * { color: #fff; fill: #fff; }
.fx-social__item:hover .fx-social__tip, .fx-social__item:focus-within .fx-social__tip { opacity: 1; visibility: visible; inset-block-end: -50px; }
.fx-social__link:focus-visible { outline: 2px solid var(--color-focus-ring, #3040D9); outline-offset: 2px; }
/* Black brands on a dark page: a white ring keeps the filled circle visible. */
:root[data-theme="dark"] .fx-social__item:hover .fx-social__link { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25), 0 10px 15px -3px rgb(0 0 0 / .4); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fx-social__item:hover .fx-social__link { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25), 0 10px 15px -3px rgb(0 0 0 / .4); }
}
@media (prefers-reduced-motion: reduce) { .fx-social__fill, .fx-social__tip, .fx-social__link, .fx-social__icon { transition: none; } }
