.share-bar {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 40;
  transform: translateY(-50%);
  width: 44px;
  font-family: inherit;
  text-align: center;
}

.share-bar__label {
  display: block;
  padding: 8px 0;
  border-radius: 6px 0 0 0;
  background: #fff;
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.share-bar__links {
  box-shadow: 0 3px 12px rgb(0 0 0 / 12%);
}

.share-bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  transition: filter 150ms ease;
}

.share-bar__link--facebook { background: #305ca0; }
.share-bar__link--linkedin { background: #0077a8; }
.share-bar__link--twitter { background: #111; }
.share-bar__link:last-child { border-radius: 0 0 0 6px; }
.share-bar__link:hover { filter: brightness(1.15); }
.share-bar__link:focus-visible {
  position: relative;
  outline: 3px solid #fbbf24;
  outline-offset: -3px;
}
.share-bar__link svg { width: 20px; height: 20px; fill: currentColor; }

/* Keep the controls out of the reading area on smaller screens. */
@media (max-width: 1023px) {
  .share-bar {
    position: static;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    margin: 24px 16px;
    gap: 12px;
  }
  .share-bar__label { padding: 0; }
  .share-bar__links { display: flex; border-radius: 6px; }
  .share-bar__link:first-child { border-radius: 6px 0 0 6px; }
  .share-bar__link:last-child { border-radius: 0 6px 6px 0; }
}

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

@media print {
  .share-bar { display: none; }
}
