/* Side rail of social links, fixed to the right edge of every page.
   Buttons are sized and centred to sit inside the page gutter, so they never cover content. */
.social{position:fixed;right:max(.3rem,calc((var(--gutter,2.5rem) - 1.9rem) / 2));top:50%;z-index:9;transform:translateY(-50%)}
.social ul{display:flex;flex-direction:column;align-items:center;gap:.5rem;margin:0;padding:0;list-style:none}
.social ul::before,.social ul::after{content:"";width:1px;height:clamp(1.5rem,5vh,3rem);background:rgb(0 0 0 / .3)}
.social__link{display:grid;place-items:center;width:1.9rem;height:1.9rem;border:1px solid rgb(0 0 0 / .35);border-radius:50%;color:#000000;background:rgb(255 255 255 / .55);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background-color .3s ease,color .3s ease,border-color .3s ease,transform .3s cubic-bezier(.16,1,.3,1)}
.social__link svg{width:.9rem;height:.9rem;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.social__link:hover,.social__link:focus-visible{background:#000000;color:#ffffff;border-color:#000000;transform:scale(1.1)}
.social__link:focus-visible{outline:2px solid #000000;outline-offset:3px}
.social li{opacity:0;transform:translateX(12px);animation:social-in .7s cubic-bezier(.16,1,.3,1) forwards;animation-delay:calc(.8s + var(--i,0) * .08s)}
@keyframes social-in{to{opacity:1;transform:none}}

/* Tablets and phones: the gutter is too thin for the rail, so only WhatsApp stays, as a corner button */
@media (max-width:60rem){
  .social{top:auto;bottom:1rem;right:1rem;transform:none}
  .social ul::before,.social ul::after,.social li:not(:first-child){display:none}
  .social__link--wa{width:3rem;height:3rem}
  .social__link--wa svg{width:1.4rem;height:1.4rem}
  .close{padding-bottom:5.5rem}
}
@media (prefers-reduced-motion:reduce){
  .social li{animation:none;opacity:1;transform:none}
}
