/* The floating share button. Every colour comes from a variable the
   settings screen sets, with SecDev's navy and gold as the defaults. */
:root{
	--sd-share-bg:#0E1B33;
	--sd-share-icon:#D9A32B;
	--sd-share-target-bg:#EEF2F9;
	--sd-share-target-icon:#0E1B33;
	--sd-share-close-bg:#D9A32B;
	--sd-share-close-icon:#0E1B33;
}
.sd-share{position:fixed;top:50%;transform:translateY(-50%);z-index:9980;display:flex;flex-direction:column;align-items:center;gap:8px}
.sd-share--left{left:22px;right:auto}
.sd-share--right{right:22px;left:auto}
.sd-sh-list{display:flex;flex-direction:column;gap:8px}
.sd-sh-list[hidden]{display:none}
.sd-sh-open svg:last-child{display:none}
.sd-share.on .sd-sh-open svg:first-child{display:none}
.sd-share.on .sd-sh-open svg:last-child{display:block}
.sd-sh-toast{position:absolute;top:0;background:#12161F;color:#fff;font-size:13px;border-radius:999px;padding:6px 12px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .2s;font-family:inherit}
.sd-sh-toast.on{opacity:1}
.sd-share--left .sd-sh-toast{left:56px}
.sd-share--right .sd-sh-toast{right:56px}

/* Themes restyle every button and link, so these carry the weight they need. */
html body .sd-share .sd-sh-b,
html body .sd-share a.sd-sh-b,
html body .sd-share button.sd-sh-b,
html body .sd-share .sd-sh-b:visited{background-color:var(--sd-share-bg);color:var(--sd-share-icon);border:0;border-radius:50%;padding:0;margin:0;width:44px;height:44px;min-width:44px;min-height:0;max-width:none;flex:none;display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:0;text-decoration:none;text-transform:none;outline:0;box-shadow:none;transform:none;transition:background-color .15s,color .15s}
html body .sd-share .sd-sh-b svg{width:20px;height:20px;color:inherit}
html body .sd-share .sd-sh-open,
html body .sd-share .sd-sh-open:hover,
html body .sd-share .sd-sh-open:focus{box-shadow:0 6px 14px rgba(0,0,0,.35)}
html body .sd-share .sd-sh-open:hover,
html body .sd-share .sd-sh-open:focus{background-color:var(--sd-share-bg);color:var(--sd-share-icon);filter:brightness(1.15)}

html body .sd-share .sd-sh-list .sd-sh-b,
html body .sd-share .sd-sh-list .sd-sh-b:visited{background-color:var(--sd-share-target-bg);color:var(--sd-share-target-icon)}
html body .sd-share .sd-sh-list .sd-sh-b:hover,
html body .sd-share .sd-sh-list .sd-sh-b:focus{background-color:var(--sd-share-target-bg);color:var(--sd-share-target-icon);filter:brightness(.94)}

html body .sd-share.on .sd-sh-open,
html body .sd-share.on .sd-sh-open:hover,
html body .sd-share.on .sd-sh-open:focus{background-color:var(--sd-share-close-bg);color:var(--sd-share-close-icon);filter:none}
html body .sd-share .sd-sh-b:focus-visible{outline:2px solid var(--sd-share-close-bg);outline-offset:3px}

@media (max-width:700px){
	.sd-share{top:auto;bottom:calc(16px + env(safe-area-inset-bottom));transform:none;flex-direction:column-reverse}
	.sd-share--left{left:16px}
	.sd-share--right{right:16px}
	html body .sd-share .sd-sh-b{width:46px;height:46px;min-width:46px}
}
