/* Article sharing stays independent of reading and consultation actions. */
.article-share-entry{display:flex;justify-content:flex-end;margin:16px 0 24px;clear:both}
.article-share-entry--end{justify-content:flex-start;border-top:1px solid #d9e2e8;padding-top:24px;margin-top:32px}
.article-share-trigger{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:9px 16px;border:1px solid #c7d4dd;border-radius:6px;background:#fff;color:#17364c;font:600 14px/1.4 system-ui,sans-serif;cursor:pointer}
.article-share-trigger svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
.article-share-trigger:hover{border-color:#187e83;background:#f2f8f8}
.article-share-trigger:focus-visible,.article-share-dialog :is(button,a,input):focus-visible{outline:3px solid #187e83;outline-offset:3px}
.article-share-dialog{box-sizing:border-box;width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:28px;border:1px solid #d9e2e8;border-radius:12px;background:#fff;color:#17364c;overflow:auto;overscroll-behavior:contain;font:16px/1.7 system-ui,-apple-system,"PingFang SC",sans-serif}
.article-share-dialog::backdrop{background:rgba(13,34,50,.52)}
.article-share-dialog[open]{display:block}
.article-share-dialog [hidden]{display:none!important}
.article-share-dialog h2{margin:0 48px 8px 0;font-size:23px;line-height:1.4}
.article-share-dialog .share-article-title{margin:0 0 22px;color:#526b7a;font-size:14px;line-height:1.7}
.article-share-close{position:sticky;top:0;float:right;z-index:2;margin:-10px -6px 0 0;width:44px;height:44px;border:0;border-radius:6px;background:#fff;color:#17364c;font-size:28px;cursor:pointer}
.share-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 20px}
.share-option{display:flex;align-items:center;gap:10px;min-height:52px;padding:12px;border:1px solid #d9e2e8;border-radius:6px;background:#f7fafb;color:#17364c;font:600 14px/1.5 system-ui,sans-serif;cursor:pointer;text-align:left}
.share-option:hover{border-color:#187e83;background:#f0f8f7}
.share-option:disabled{opacity:.6;cursor:wait}
.share-option svg{width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6}
.share-url-label{display:block;font-size:12px;color:#60717e;margin-bottom:5px}
.share-url{box-sizing:border-box;width:100%;min-height:44px;padding:10px;border:1px solid #d9e2e8;border-radius:5px;background:#fff;color:#526b7a;font:13px/1.5 system-ui,sans-serif}
.share-status{margin:10px 0 0;color:#187e83;font-size:13px;min-height:1.7em}
.share-wechat{margin-top:18px;padding-top:18px;border-top:1px solid #d9e2e8}
.share-wechat p{margin:0 0 14px;font-size:14px}
.share-qr{display:block;width:176px;height:176px;margin:0 auto;background:#fff}
.share-poster{margin:20px 0 0;padding-top:20px;border-top:1px solid #d9e2e8}
.share-poster img{display:block;width:100%;max-width:340px;height:auto;margin:0 auto 14px;border:1px solid #d9e2e8}
.share-poster p{margin:10px 0;color:#526b7a;font-size:13px}
.share-save{display:inline-block;min-height:44px;box-sizing:border-box;padding:10px 20px;background:#17364c;border:0;border-radius:5px;color:#fff;font:600 14px/1.6 system-ui,sans-serif;text-decoration:none;cursor:pointer}
@media(max-width:600px){.article-share-dialog{padding:22px 18px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.article-share-dialog h2{font-size:21px}.article-share-entry{margin:12px 0 20px}.share-options{gap:8px}.share-option{padding:10px;font-size:13px}.share-option svg{width:20px;height:20px}}
@media print{.article-share-entry,.article-share-dialog{display:none!important}}

.article-share-entry[hidden]{display:none!important}
@media(max-width:360px){.share-options{grid-template-columns:1fr}.share-option{font-size:14px;min-height:48px}}
