/* Shared contact controls for both website themes. */
[data-theme=dark] .social-rail.has-social-menu{top:50%;bottom:auto;transform:translateY(-50%);height:46px;min-height:46px;max-height:none;overflow:visible;gap:0}
[data-theme=dark] .social-rail .social-phone-label{display:none}
.social-rail .social-toggle{position:absolute;right:0;bottom:calc(100% + 10px);width:42px;height:42px;display:grid;place-items:center;padding:9px;border:1px solid #ffc48b;border-radius:50%;background:#fff;color:#ed740b;box-shadow:0 5px 18px #35281428;cursor:pointer;pointer-events:auto}
.social-toggle svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.social-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.social-rail .social-extra-links{position:absolute;right:0;bottom:calc(100% + 64px);display:flex;flex-direction:column;align-items:flex-end;gap:12px;pointer-events:none}
.social-rail .social-extra-links[hidden]{display:none}
.social-rail .social-extra-links a{display:flex;align-items:center;justify-content:center;pointer-events:auto;flex-shrink:0;box-shadow:0 5px 18px #17243630,0 2px 6px #17243620}
.social-toggle:focus-visible{outline:3px solid #ff9e45;outline-offset:4px}
/* Separate back-to-top from the contact menu on narrow screens. */
@media(max-width:780px){
 html[data-theme] body .motion-back-top{left:16px;right:auto;bottom:calc(96px + env(safe-area-inset-bottom,0px))}
 html[data-theme=light] body.detail-view .motion-back-top{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
}
@media(prefers-reduced-motion:reduce){.social-toggle svg{transition:none}}
