/*
  Designer: Pritam Sonone
  Website:  https://www.digitalpritam.in
  Email:    contact@digitalpritam.in
  Project:  Digital Pritam Share Buttons
  Created:  2026-11-12
  Designs: pills, brand, outline, compact, spotlight, rail. Markup in inc/share.php.
*/
.dpsh{--dpsh-n:#1f3a93;--dpsh-n2:#14256b;--dpsh-a:#ff6b00;--dpsh-ink:#1a202c;--dpsh-mu:#4a5568;--dpsh-bd:#dce3ef;--dpsh-so:#f1f4fa;--c:var(--dpsh-n);position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0;padding:0;font-family:inherit;color:var(--dpsh-ink)}
.dpsh-h{font-size:14.5px;font-weight:700;line-height:1.2;color:var(--dpsh-n2);letter-spacing:0;text-transform:none;margin:0}
.dpsh-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:0}
.dpsh .dpsh-i{box-sizing:border-box;position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;height:44px;margin:0;padding:0;border:0;border-radius:999px;background:none;box-shadow:none;color:var(--dpsh-ink);font:600 14.5px/1 inherit;letter-spacing:0;text-transform:none;text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .18s,border-color .18s,color .18s,box-shadow .18s,transform .18s,filter .18s}
.dpsh .dpsh-i:focus{outline:none}
.dpsh .dpsh-i:focus-visible{outline:3px solid var(--dpsh-a);outline-offset:2px;z-index:2}
.dpsh-svg{display:block;flex:none;width:20px;height:20px}
.dpsh-t{display:inline-grid}
.dpsh-t1,.dpsh-t2{grid-area:1/1}
.dpsh-t2,.dpsh-ico .dpsh-svg+.dpsh-svg{visibility:hidden}
.dpsh-ico{display:grid}.dpsh-ico .dpsh-svg{grid-area:1/1}
.dpsh-copy.is-done .dpsh-t1,.dpsh-copy.is-done .dpsh-ico .dpsh-svg:first-child{visibility:hidden}
.dpsh-copy.is-done .dpsh-t2,.dpsh-copy.is-done .dpsh-ico .dpsh-svg+.dpsh-svg{visibility:visible}
.dpsh-live,.dpsh--brand .dpsh-row>.dpsh-i .dpsh-t,.dpsh--outline .dpsh-row>.dpsh-i .dpsh-t,.dpsh--compact .dpsh-row>.dpsh-i .dpsh-t,.dpsh--spotlight .dpsh-row>.dpsh-i:not(.dpsh-whatsapp) .dpsh-t,.dpsh-more>.dpsh-i .dpsh-t{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.dpsh--pills .dpsh-more>.dpsh-i .dpsh-t,.dpsh--rail .dpsh-more>.dpsh-i .dpsh-t{position:static!important;width:auto;height:auto;overflow:visible;clip:auto;clip-path:none}

/* Brand colours (Simple Icons hex). Utility buttons stay navy. */
.dpsh-whatsapp{--c:#25d366}.dpsh-telegram{--c:#26a5e4}.dpsh-x{--c:#000}.dpsh-linkedin{--c:#0a66c2}.dpsh-facebook{--c:#0866ff}.dpsh-reddit{--c:#ff4500}.dpsh-threads{--c:#000}.dpsh-bluesky{--c:#0285ff}.dpsh-pinterest{--c:#bd081c}.dpsh-hackernews{--c:#f0652f}
.dpsh-copy.is-done{--c:#15803d}

/* Native share shows only where the browser supports it (class set in <head>, so nothing shifts). */
.dpsh .dpsh-native{display:none}
html.dpsh-ns .dpsh .dpsh-native{display:inline-flex}

/* More menu */
.dpsh-more{position:relative;display:inline-flex;margin:0}
.dpsh-more>summary{list-style:none}
.dpsh-more:not([open]) .dpsh-pop{display:none}
.dpsh-more>summary::-webkit-details-marker,.dpsh-more>summary::marker{display:none;content:""}
.dpsh-pop{position:absolute;top:calc(100% + 8px);left:0;z-index:40;display:grid;gap:2px;min-width:210px;padding:6px;background:#fff;border:1px solid var(--dpsh-bd);border-radius:14px;box-shadow:0 18px 44px rgba(20,37,107,.18)}
.dpsh .dpsh-pop .dpsh-i{justify-content:flex-start;gap:12px;width:100%;height:44px;padding:0 12px;border:0;border-radius:10px;background:none;color:var(--dpsh-ink);font-size:14.5px;box-shadow:none;transform:none;filter:none}
.dpsh .dpsh-pop .dpsh-i .dpsh-t{position:static;width:auto;height:auto;clip:auto;clip-path:none}
.dpsh-pop .dpsh-svg{color:var(--c)}
.dpsh .dpsh-pop .dpsh-i:hover{background:var(--dpsh-so)}
.dpsh-more[open]>.dpsh-i{box-shadow:0 0 0 3px rgba(31,58,147,.16)}
.dpsh-pop .dpsh-mo,.dpsh-more.is-mo{display:none}

/* Tooltips on icon-only buttons, mouse and keyboard only */
@media (hover:hover){
	.dpsh--brand .dpsh-row>.dpsh-i:hover::after,.dpsh--outline .dpsh-row>.dpsh-i:hover::after,.dpsh--compact .dpsh-row>.dpsh-i:hover::after,.dpsh--spotlight .dpsh-row>.dpsh-i:not(.dpsh-whatsapp):hover::after,.dpsh--rail .dpsh-row>.dpsh-i:hover::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);padding:6px 9px;border-radius:7px;background:var(--dpsh-n2);color:#fff;font:600 12px/1 inherit;white-space:nowrap;pointer-events:none;z-index:45}
	.dpsh-copy.is-done:hover::after{content:"Copied"!important}
}
.dpsh .dpsh-row>.dpsh-i:focus-visible::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);padding:6px 9px;border-radius:7px;background:var(--dpsh-n2);color:#fff;font:600 12px/1 inherit;white-space:nowrap;pointer-events:none;z-index:45}
.dpsh--pills .dpsh-row>.dpsh-i:focus-visible::after,.dpsh--spotlight .dpsh-row>.dpsh-whatsapp:focus-visible::after{display:none}

/* 1. Pills with labels */
.dpsh--pills .dpsh-i{padding:0 16px 0 13px;background:#fff;border:1px solid var(--dpsh-bd);box-shadow:0 1px 2px rgba(20,37,107,.06)}
.dpsh--pills .dpsh-i .dpsh-svg{color:var(--c)}
.dpsh--pills .dpsh-i:hover,.dpsh--pills .dpsh-more[open]>.dpsh-i{border-color:var(--c);background:color-mix(in srgb,var(--c) 7%,#fff);box-shadow:0 6px 16px rgba(20,37,107,.1);transform:translateY(-1px)}
.dpsh--pills .dpsh-copy.is-done{border-color:#15803d;color:#15803d}

/* 2. Brand colour circles */
.dpsh--brand .dpsh-row>.dpsh-i,.dpsh--brand .dpsh-more>.dpsh-i{width:44px;background:var(--c);color:#fff}
.dpsh--brand .dpsh-row>.dpsh-i:hover,.dpsh--brand .dpsh-more>.dpsh-i:hover{filter:brightness(.9);transform:translateY(-2px);box-shadow:0 8px 18px color-mix(in srgb,var(--c) 35%,transparent)}

/* 3. Minimal outline */
.dpsh--outline .dpsh-row>.dpsh-i,.dpsh--outline .dpsh-more>.dpsh-i,.dpsh--spotlight .dpsh-row>.dpsh-i:not(.dpsh-whatsapp),.dpsh--spotlight .dpsh-more>.dpsh-i{width:44px;background:#fff;border:1.5px solid #c9d3e6;color:var(--dpsh-n)}
.dpsh--outline .dpsh-row>.dpsh-i:hover,.dpsh--outline .dpsh-more>.dpsh-i:hover,.dpsh--outline .dpsh-more[open]>.dpsh-i,.dpsh--spotlight .dpsh-row>.dpsh-i:not(.dpsh-whatsapp):hover,.dpsh--spotlight .dpsh-more>.dpsh-i:hover{color:var(--c);border-color:var(--c);background:color-mix(in srgb,var(--c) 6%,#fff)}
.dpsh--outline .dpsh-copy.is-done,.dpsh--spotlight .dpsh-copy.is-done{color:#15803d;border-color:#15803d}

/* 4. Compact segmented bar */
.dpsh--compact{gap:10px}
.dpsh--compact .dpsh-h{font-size:14px}
.dpsh--compact .dpsh-row{flex-wrap:nowrap;gap:0;background:#fff;border:1px solid var(--dpsh-bd);border-radius:12px;box-shadow:0 1px 2px rgba(20,37,107,.05)}
.dpsh--compact .dpsh-row>*{border-left:1px solid #edf1f7}
.dpsh--compact .dpsh-row>:first-child{border-left:0}
.dpsh--compact .dpsh-row>.dpsh-i,.dpsh--compact .dpsh-more>.dpsh-i{width:44px;border-radius:0;color:var(--dpsh-mu)}
.dpsh--compact .dpsh-svg{width:18px;height:18px}
.dpsh--compact .dpsh-row>:first-child,.dpsh--compact .dpsh-row>:first-child>.dpsh-i{border-radius:11px 0 0 11px}
.dpsh--compact .dpsh-row>:last-child,.dpsh--compact .dpsh-row>:last-child>.dpsh-i{border-radius:0 11px 11px 0}
.dpsh--compact .dpsh-row>.dpsh-i:hover,.dpsh--compact .dpsh-more>.dpsh-i:hover{color:var(--c);background:color-mix(in srgb,var(--c) 7%,#fff)}
.dpsh--compact .dpsh-copy.is-done{color:#15803d}
html:not(.dpsh-ns) .dpsh--compact .dpsh-row>.dpsh-copy:nth-last-child(2){border-radius:0 11px 11px 0}

/* 5. WhatsApp spotlight */
.dpsh--spotlight .dpsh-row{gap:8px}
.dpsh--spotlight .dpsh-row>.dpsh-whatsapp{height:48px;padding:0 22px 0 18px;border-radius:12px;background:#25d366;color:#052e16;font-size:15.5px;font-weight:700;gap:10px;box-shadow:0 6px 16px rgba(37,211,102,.28)}
.dpsh--spotlight .dpsh-row>.dpsh-whatsapp .dpsh-svg{width:22px;height:22px}
.dpsh--spotlight .dpsh-row>.dpsh-whatsapp .dpsh-t{display:inline}
.dpsh--spotlight .dpsh-row>.dpsh-whatsapp .dpsh-t::before{content:"Share on "}
.dpsh--spotlight .dpsh-row>.dpsh-whatsapp:hover{filter:brightness(.95);transform:translateY(-1px);box-shadow:0 10px 22px rgba(37,211,102,.34)}

/* 6. Rail: sticky side rail on wide screens, labelled bottom bar below that */
.dpsh--rail{position:fixed;z-index:60;flex-wrap:nowrap;background:#fff;border:1px solid var(--dpsh-bd)}
.dpsh--rail .dpsh-row>.dpsh-i .dpsh-svg,.dpsh--rail .dpsh-more>.dpsh-i .dpsh-svg{color:var(--c)}
.dpsh--rail .dpsh-copy.is-done .dpsh-svg{color:#15803d}
@media (min-width:1360px){
	.dpsh--rail{left:max(12px,calc(50vw - 600px - 80px));top:50%;transform:translateY(-50%);flex-direction:column;gap:6px;padding:10px 6px;border-radius:18px;box-shadow:0 14px 36px rgba(20,37,107,.12)}
	.dpsh--rail .dpsh-h{font-size:11.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--dpsh-n2)}
	.dpsh--rail .dpsh-row{flex-direction:column;flex-wrap:nowrap;gap:4px}
	.dpsh--rail .dpsh-row>.dpsh-i,.dpsh--rail .dpsh-more>.dpsh-i{width:44px;border-radius:12px}
	.dpsh--rail .dpsh-row>.dpsh-i .dpsh-t,.dpsh--rail .dpsh-more>.dpsh-i .dpsh-t{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%)}
	.dpsh--rail .dpsh-row>.dpsh-i:hover,.dpsh--rail .dpsh-more>.dpsh-i:hover,.dpsh--rail .dpsh-more[open]>.dpsh-i{background:color-mix(in srgb,var(--c) 9%,#fff)}
	.dpsh--rail .dpsh-row>.dpsh-i:hover::after,.dpsh--rail .dpsh-row>.dpsh-i:focus-visible::after{bottom:auto;top:50%;left:calc(100% + 10px);transform:translateY(-50%)}
	.dpsh--rail .dpsh-pop{top:auto;bottom:0;left:calc(100% + 10px)}
}
@media (max-width:1359.98px){
	body.dpsh-has-rail{padding-bottom:calc(62px + env(safe-area-inset-bottom))}
	.dpsh--rail{left:0;right:0;bottom:0;justify-content:center;padding:4px 6px calc(4px + env(safe-area-inset-bottom));border-width:1px 0 0;box-shadow:0 -8px 24px rgba(20,37,107,.08)}
	.dpsh--rail .dpsh-h{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%)}
	.dpsh--rail .dpsh-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px;width:100%;max-width:640px}
	.dpsh--rail .dpsh-more{display:flex}
	.dpsh--rail .dpsh-more.is-mo{display:none}
	.dpsh--rail .dpsh-row>.dpsh-i,.dpsh--rail .dpsh-more>.dpsh-i{flex-direction:column;gap:4px;width:100%;height:54px;border-radius:10px;font-size:11.5px;font-weight:600;color:var(--dpsh-mu)}
	.dpsh--rail .dpsh-row>.dpsh-i:hover,.dpsh--rail .dpsh-more>.dpsh-i:hover{background:var(--dpsh-so)}
	.dpsh--rail .dpsh-row>.dpsh-i:hover::after,.dpsh--rail .dpsh-row>.dpsh-i:focus-visible::after{display:none}
	.dpsh--rail .dpsh-svg{width:22px;height:22px}
	.dpsh--rail .dpsh-pop{top:auto;bottom:calc(100% + 10px);left:auto;right:0}
}

/* Phones: 3 networks up front, the rest under More */
@media (max-width:600px){
	.dpsh .dpsh-dk{display:none!important}
	.dpsh-pop .dpsh-mo,.dpsh .dpsh-more.is-mo{display:flex}
	.dpsh .dpsh-pop .dpsh-mo{display:inline-flex}
	.dpsh--rail .dpsh-more.is-mo{display:flex}
	.dpsh:not(.dpsh--rail){width:100%}
	.dpsh:not(.dpsh--rail) .dpsh-h{flex-basis:100%}
	.dpsh--compact .dpsh-h{flex-basis:auto}
	.dpsh--pills .dpsh-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
	.dpsh--pills .dpsh-row>.dpsh-i,.dpsh--pills .dpsh-more,.dpsh--pills .dpsh-more>.dpsh-i{width:100%;min-width:0}
	.dpsh--pills .dpsh-i{gap:6px;padding:0 6px;font-size:13.5px}
	.dpsh--pills .dpsh-svg{width:18px;height:18px}
	.dpsh--spotlight .dpsh-row>.dpsh-whatsapp{flex-basis:100%}
	.dpsh:not(.dpsh--rail) .dpsh-row{position:relative}
	.dpsh:not(.dpsh--rail) .dpsh-more{position:static}
	.dpsh:not(.dpsh--rail) .dpsh-pop{left:0;right:0;min-width:0}
}
@media (max-width:400px){.dpsh--compact .dpsh-h{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%)}}
@media (prefers-reduced-motion:reduce){.dpsh .dpsh-i{transition:none}.dpsh .dpsh-i:hover{transform:none!important}}
@media print{.dpsh{display:none!important}body.dpsh-has-rail{padding-bottom:0}}
