.social-dock {
  position: fixed;
  z-index: 4;
  inset: 50% max(8px, env(safe-area-inset-right)) auto auto;
  transform: translateY(-50%);
}
.social-panel, .social-toggle {
  border: 1px solid #91cae0;
  border-radius: 18px;
  background: #f1fbfff2;
  box-shadow: 0 5px 16px #123d5630;
  backdrop-filter: blur(12px);
}
.social-panel { display: grid; gap: 3px; padding: 4px; }
.social-link, .social-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.social-dock .social-link {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffffb0;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.social-dock .social-link:hover { background: #fff; transform: translateX(-2px); }
.social-facebook { --social-ink: #0866ff; }
.social-instagram { --social-ink: #b82178; }
.social-tiktok { --social-ink: #161823; }
.social-dock .social-link { color: var(--social-ink); }
.social-link svg { width: 20px; height: 20px; }
.social-label { line-height: 1.25; }
.social-dock .social-label {
  position: absolute;
  inset-inline-end: calc(100% + 10px);
  display: none;
  padding: .36rem .6rem;
  border-radius: 8px;
  color: #fff;
  background: #194b70;
  font-size: .8rem;
  white-space: nowrap;
  pointer-events: none;
}
.social-dock .social-link:hover .social-label,
.social-dock .social-link:focus-visible .social-label { display: block; }
.social-toggle { display: none; }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .85rem; }
.footer-social:empty { display: none; }
.footer-social .social-link { min-height: 24px; }
.footer-social .social-link:hover { color: #defbff; }
.footer-social svg { width: 16px; height: 16px; }
body:has(dialog[open]) .social-dock { visibility: hidden; }

@media (max-width: 1023px) {
  .social-dock {
    inset: auto max(8px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) auto;
    transform: none;
  }
  .social-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    color: #194b70;
    background: #f1fbfff5;
  }
  .social-panel { position: absolute; inset: auto 0 calc(100% + 8px) auto; }
  .social-dock .social-link {
    width: auto;
    justify-content: flex-start;
    padding-inline: .6rem;
  }
  .social-dock .social-link .social-label {
    display: block;
    position: static;
    padding: 0;
    color: #194b70;
    background: transparent;
  }
  body:has(.header nav.is-open) .social-dock,
  .social-dock-obstructing { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .social-dock .social-link { transition: none; }
  .social-dock .social-link:hover { transform: none; }
}
