/* Social widget: a slim tab on the left edge, middle of the screen. Opens into a glass panel with two tabs, Follow (the business's channels) and Share (this website).
   Motion: a heart that beats now and then, a ring that fills as you scroll, sparks and a spring fan-out on opening, a drawn connector line, a "dock wave" that
   leans the rows towards the pointer, a slow light that circles the panel's border, and ripples on click. Everything is transform and opacity. built by site/social.js. */
@property --sw-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.sw { position: fixed; left: 0; top: 50%; z-index: 65; transform: translateY(-50%); font-family: "Jakarta", system-ui, sans-serif; }
.sw * { box-sizing: border-box; }
.sw button { font: inherit; }
.sw .ic { width: 20px; height: 20px; }
html.menu-open .sw { display: none; }
@media print { .sw { display: none; } }

/* ---------- the tab ---------- */
.sw-tab { position: relative; display: grid; justify-items: center; gap: 10px; width: 42px; padding: 12px 0 14px; border: 1px solid rgba(230, 168, 23, .5); border-left: 0; border-radius: 0 18px 18px 0; background: linear-gradient(180deg, #14357a, #081a3d); color: #fff; cursor: pointer; box-shadow: 0 18px 34px -14px rgba(0, 0, 0, .7); transition: width .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.sw-tab:hover, .sw.peek .sw-tab { width: 50px; box-shadow: 0 22px 40px -12px rgba(0, 0, 0, .75), 0 0 26px -4px rgba(248, 203, 74, .4); }
.sw-tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sw-tab::after { content: ""; position: absolute; left: 3px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; pointer-events: none; animation: sw-ping 7s ease-out 3.5s infinite; }
.sw.open .sw-tab::after { animation: none; }
@keyframes sw-ping { 0% { transform: scale(1); opacity: .75; } 14% { transform: scale(2); opacity: 0; } 100% { transform: scale(2); opacity: 0; } }
.sw-tab.wiggle { animation: sw-wiggle .9s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes sw-wiggle { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(7px); } 45% { transform: translateX(-2px); } 70% { transform: translateX(4px); } }
.sw-orb { position: relative; display: grid; place-items: center; width: 36px; height: 36px; }
.sw-orb svg.ring { position: absolute; inset: 0; width: 36px; height: 36px; transform: rotate(-90deg); }
.sw-orb circle { fill: none; stroke-width: 2.4; }
.sw-track { stroke: rgba(255, 255, 255, .16); }
.sw-prog { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 100.53; stroke-dashoffset: 100.53; transition: stroke-dashoffset .25s linear; }
.sw-heart, .sw-close { position: absolute; display: grid; place-items: center; transition: opacity .25s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.sw-heart .ic { width: 17px; height: 17px; color: var(--gold); fill: rgba(230, 168, 23, .18); animation: sw-beat 6s ease-in-out 2s infinite; }
.sw-close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.sw-close .ic { width: 18px; height: 18px; stroke-width: 2; }
.sw.open .sw-heart { opacity: 0; transform: rotate(90deg) scale(.5); }
.sw.open .sw-close { opacity: 1; transform: none; }
@keyframes sw-beat { 0%, 84%, 100% { transform: scale(1); } 88% { transform: scale(1.32); } 92% { transform: scale(1); } 95% { transform: scale(1.2); } }
.sw-vt { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .72rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; color: rgba(255, 255, 255, .88); }
.sw-spark { position: absolute; left: 19px; top: 30px; z-index: 3; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(248, 203, 74, .9); pointer-events: none; animation: sw-spark .85s cubic-bezier(.15, .8, .3, 1) forwards; }
@keyframes sw-spark { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); } }

/* ---------- the panel ---------- */
.sw-panel { position: absolute; left: 56px; top: 50%; width: 310px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; opacity: 0; pointer-events: none; visibility: hidden; transform: translate(-22px, -50%) scale(.9); transform-origin: left center; transition: opacity .25s ease, transform .5s cubic-bezier(.2, .8, .2, 1), visibility 0s .5s; }
.sw.open .sw-panel { opacity: 1; pointer-events: auto; visibility: visible; transform: translate(0, -50%); transition-delay: 0s; }
.sw-tilt { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 10px; border-radius: 22px; background: linear-gradient(160deg, rgba(16, 44, 98, .95), rgba(5, 15, 38, .97)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.sw-tilt::before { content: ""; position: absolute; inset: 0; padding: 1.5px; border-radius: 22px; pointer-events: none; background: conic-gradient(from var(--sw-a), rgba(230, 168, 23, .35) 0%, rgba(230, 168, 23, .35) 58%, #fff3c4 74%, rgba(230, 168, 23, .35) 88%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask-composite: exclude; animation: sw-turn 8s linear infinite; }
@keyframes sw-turn { to { --sw-a: 360deg; } }
.sw-panel :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.sw-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; margin-bottom: 8px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.sw-seg button { position: relative; z-index: 1; height: 36px; padding: 0; border: 0; border-radius: 11px; background: none; color: rgba(255, 255, 255, .72); font-weight: 800; font-size: .88rem; cursor: pointer; transition: color .25s; }
.sw-seg button[aria-selected="true"] { color: var(--navy-900); }
.sw-seg i { position: absolute; left: 3px; top: 3px; width: calc(50% - 3px); height: 36px; border-radius: 11px; background: linear-gradient(145deg, #f8cb4a, var(--gold)); transition: transform .45s cubic-bezier(.34, 1.4, .64, 1); }
.sw-seg[data-i="1"] i { transform: translateX(100%); }

.sw-scroll { position: relative; min-height: 0; overflow-x: hidden; overflow-y: auto; padding: 2px; scrollbar-width: none; }
.sw-scroll::-webkit-scrollbar { display: none; }
.sw-line { position: absolute; left: 27px; top: 26px; bottom: 26px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, rgba(230, 168, 23, .75), rgba(230, 168, 23, .06)); transform: scaleY(0); transform-origin: top; transition: transform .9s cubic-bezier(.2, .8, .2, 1) .1s; }
.sw.open .sw-line { transform: scaleY(1); }
.sw-list { position: relative; display: grid; gap: 6px; margin: 0; padding: 0 9px 0 0; list-style: none; }
.sw-item { position: relative; display: flex; align-items: center; gap: 4px; opacity: 0; transform: translateX(-34px) scale(.88); transition: opacity .2s, transform .25s; }
.sw-item.in { opacity: 1; transform: none; transition: opacity .35s ease, transform .6s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--i, 0) * 55ms + 90ms); }

/* a row: a brand-coloured disc, the name and the handle; --k (0 to 1) is how close the pointer is, it leans the row and swells the disc */
.sw-row { position: relative; display: flex; flex: 1; min-width: 0; align-items: center; gap: 12px; overflow: hidden; padding: 7px 10px 7px 7px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; background: rgba(255, 255, 255, .05); color: #fff; text-align: left; text-decoration: none; cursor: pointer; transform: translateX(calc(var(--k, 0) * 9px)); transition: background .2s, border-color .2s, box-shadow .3s; }
.sw-row:hover, .sw-row:focus-visible { background: rgba(255, 255, 255, .1); border-color: var(--b); box-shadow: 0 0 0 1px var(--b), 0 14px 30px -14px var(--b); }
.sw-i { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 30% 24%, var(--b), #06112b 92%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22), 0 0 18px -4px var(--b); transform: scale(calc(1 + var(--k, 0) * .2)); }
.sw-i .ic { width: 22px; height: 22px; stroke-width: 1.8; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.sw-t { position: relative; z-index: 1; display: grid; min-width: 0; line-height: 1.25; }
.sw-t b { font-size: .95rem; }
.sw-t small { overflow: hidden; font-size: .76rem; color: rgba(255, 255, 255, .64); white-space: nowrap; text-overflow: ellipsis; }
/* the copy button floats over the end of the row on hover so the text keeps the full width; on touch screens (no hover) it sits beside the row instead */
.sw-cp { position: absolute; right: 7px; top: 50%; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; padding: 0; border: 0; border-radius: 50%; background: #0f2c66; color: rgba(255, 255, 255, .75); cursor: pointer; opacity: 0; transition: opacity .2s, background .2s, color .2s; }
.sw-item:hover .sw-cp, .sw-cp:focus-visible { opacity: 1; }
@media (hover: none) { .sw-cp { position: static; flex: none; margin: 0; background: none; opacity: .8; } }
.sw-cp:hover { background: #1b448f; color: #fff; }
.sw-cp .ic { width: 16px; height: 16px; }
.sw-rip { position: absolute; z-index: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: rgba(255, 255, 255, .34); pointer-events: none; animation: sw-rip .65s ease-out forwards; }
@keyframes sw-rip { from { transform: scale(0); opacity: 1; } to { transform: scale(16); opacity: 0; } }
.sw-foot { margin: 8px 6px 2px; font-size: .72rem; line-height: 1.4; color: rgba(255, 255, 255, .5); }
.sw-toast { position: absolute; left: 12px; right: 12px; bottom: 10px; padding: 9px 12px; border-radius: 12px; background: var(--gold); color: var(--navy-900); font-size: .82rem; font-weight: 800; text-align: center; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .3s cubic-bezier(.2, .8, .2, 1); }
.sw-toast.on { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .sw { top: 48%; }
  /* a slimmer tab, so it hides only a few pixels of the 20px page margin and never the first letters of the text; an invisible strip around it keeps it easy to tap */
  .sw-tab, .sw-tab:hover, .sw.peek .sw-tab { width: 24px; gap: 8px; padding: 9px 0 11px; }
  .sw-tab::before { content: ""; position: absolute; inset: -6px -12px -6px 0; }
  .sw-tab::after { left: 0; top: 9px; width: 24px; height: 24px; }
  .sw-orb, .sw-orb svg.ring { width: 24px; height: 24px; }
  .sw-heart .ic { width: 12px; height: 12px; }
  .sw-close .ic { width: 13px; height: 13px; }
  .sw-vt { font-size: .6rem; letter-spacing: .15em; }
  .sw-spark { left: 12px; top: 21px; }
  .sw-panel { left: 32px; width: min(310px, calc(100vw - 44px)); }
  /* the panel is tall on a phone, so the assistant steps aside while it is open (a tap anywhere outside closes the panel) */
  html.sw-open .gs { opacity: 0; pointer-events: none; transform: translateY(14px); transition: transform .3s, opacity .2s; }
}
