/* DTP V3 reusable native-share control and fallback; shared across content types. */
.dtp-share-trigger{display:inline-flex;gap:6px;align-items:center;justify-content:center;appearance:none;border:0;background:transparent;color:var(--accent);padding:0;font:inherit;font-weight:400;cursor:pointer;line-height:inherit}
.dtp-share-trigger svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9}
.dtp-share-trigger:hover{color:var(--cyan)}
.dtp-share-trigger:focus-visible{outline:var(--focus);outline-offset:3px;border-radius:var(--radius-control)}
.dtp-share-dialog{position:fixed;inset:0;margin:auto;width:min(92vw,540px);max-height:min(90vh,760px);overflow-y:auto;padding:22px;background:var(--surface);color:var(--text);border:1px solid var(--border-active);border-radius:var(--radius-section);box-shadow:0 24px 80px #000b}
.dtp-share-dialog::backdrop{background:rgba(0,0,0,.76)}
.dtp-share-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.dtp-share-dialog-header h2{font-size:22px;margin:0}
.dtp-share-close{width:42px;height:42px;flex:none;background:var(--surface-raised);color:var(--text);border:1px solid var(--border);border-radius:var(--radius-control);font-size:28px;line-height:1;cursor:pointer}
.dtp-share-close:hover{border-color:var(--border-active)}
.dtp-share-preview{display:flex;gap:14px;align-items:center;padding:12px;background:var(--surface-raised);border:1px solid var(--border);border-radius:var(--radius-card);min-width:0}
.dtp-share-preview-image{width:120px;aspect-ratio:16/9;height:auto;object-fit:cover;border-radius:var(--radius-control);flex:none}
.dtp-share-preview-image[hidden]{display:none}
.dtp-share-preview-copy{display:grid;gap:5px;min-width:0}
.dtp-share-preview-title{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.dtp-share-preview-url{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;display:block;color:var(--accent-soft)}
.dtp-share-actions,.dtp-share-networks{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}
.dtp-share-actions>* ,.dtp-share-networks>*{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;background:var(--surface-raised);border:1px solid var(--border-active);border-radius:var(--radius-control);color:var(--text);font:inherit;font-size:14px;text-decoration:none;cursor:pointer}
.dtp-share-actions>*:hover,.dtp-share-networks>*:hover{border-color:var(--accent);color:var(--accent-soft)}
.dtp-share-subheading{margin:20px 0 -7px;font-size:14px;font-weight:650;color:var(--text-muted)}
.dtp-share-feedback{font-size:13px;margin:12px 0 0;min-height:1.4em;color:var(--accent-soft)}
@media(max-width:480px){.dtp-share-dialog{padding:16px}.dtp-share-preview-image{width:90px}.dtp-share-actions>*{flex:1}}

/* Share buttons and network choices are framed controls, not ordinary text links. */
.dtp-share-actions a:is(:hover, :focus-visible),
.dtp-share-networks a:is(:hover, :focus-visible) { text-decoration: none; }
