/* One geometry for the toggle and every social tile on all public pages. */
body .share-rail{--share-size:48px;--share-gap:6px;position:fixed;right:12px;top:min(300px,max(64px,calc(100dvh - 240px)));z-index:950;display:flex;flex-direction:column;gap:var(--share-gap);width:var(--share-size)}
body .share-rail .share-button,body .share-rail .share-panel button{position:relative;inset:auto;display:grid;place-items:center;box-sizing:border-box;flex:none;width:var(--share-size);height:var(--share-size);min-height:var(--share-size);margin:0;padding:0;border:0;border-radius:10px;color:#fff;line-height:1;cursor:pointer;box-shadow:none;transition:filter .15s ease}
body .share-rail .share-button{background:#ce0730}
body .share-rail .share-panel{position:static;inset:auto;display:flex;flex-direction:column;gap:var(--share-gap);width:var(--share-size);margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body .share-rail .share-panel[hidden]{display:none}
body .share-rail .share-panel button:nth-child(1){background:#087eae}
body .share-rail .share-panel button:nth-child(2){background:#4267b2}
body .share-rail .share-panel button:nth-child(3){background:#20c965}
body .share-rail .share-button::before,body .share-rail .share-button::after,body .share-rail .share-panel button::after{display:none;content:none}
body .share-rail .share-button-icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
body .share-rail .share-panel button::before{font-size:24px;line-height:1;margin:0;transform:none}
body .share-rail .share-panel button:nth-child(1)::before,body .share-rail .share-panel button:nth-child(2)::before{display:grid;place-items:center;box-sizing:border-box;width:24px;height:24px;border:2px solid currentColor;font-size:16px}
body .share-rail .share-panel button:nth-child(1)::before{border-radius:2px}
body .share-rail .share-panel button:nth-child(2)::before{border-radius:50%}
body .share-rail button:hover{filter:brightness(.92)}
body .share-rail button:focus-visible{outline:2px solid #26384c;outline-offset:3px}
body .share-rail .share-panel button[aria-label="WeChat"]{background:#07b75b}
body .share-rail .share-panel button[aria-label="WeChat"]::before{content:"\f1d7";font-family:var(--fa-brands);font-weight:400;font-size:26px}
/* Keep the expanded list within short viewports and away from the phone tile. */
body .share-rail #share-panel{max-height:calc(50dvh - 48px);overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
.wechat-share-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #dfe5ec;border-radius:12px;color:#172131;background:#fff;font:15px/1.7 Arial,"Microsoft YaHei",sans-serif}
.wechat-share-dialog::backdrop{background:#14233466}
.wechat-share-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}
.wechat-share-dialog .wechat-share-heading h2{font-size:22px;margin:0}
.wechat-share-dialog [data-wechat-close]{width:36px;height:36px;padding:0;border:0;background:transparent;color:#68788c;font-size:26px;cursor:pointer}
.wechat-share-dialog p{color:#68788c;margin:14px 0}
.wechat-share-dialog label{display:block;font-weight:700;margin-bottom:6px}
.wechat-share-dialog input{box-sizing:border-box;width:100%;height:44px;border:1px solid #dfe5ec;border-radius:5px;padding:0 10px;color:#344154;background:#f5f7f9;font:inherit}
.wechat-share-dialog [data-wechat-copy]{width:100%;min-height:44px;margin-top:16px;border:0;border-radius:5px;background:#07a953;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.wechat-share-dialog [data-wechat-status]:empty{display:none}
.wechat-share-dialog :focus-visible{outline:2px solid #d00032;outline-offset:3px}
@media(max-width:760px){body .share-rail #share-panel{right:64px;top:auto;bottom:0;max-height:calc(100dvh - 48px)}}
@media(min-width:761px) and (max-height:650px){body .share-rail #share-panel{right:64px;top:0;bottom:auto;max-height:calc(50dvh + 10px)}}
@media(max-width:820px){body .share-rail{--share-size:44px;right:6px;top:min(180px,max(56px,calc(100dvh - 216px)))}}
