/* news.share_counter: the story's share block in ten designs (owner, 29 Nov 2026), drawn by
   news-share-counter::site.buttons in every news theme. One markup, one class per design (.nsd--NAME); each network
   button carries its colour as --c. Fits every screen (44px+ tap targets). Presentation only. */
.nsd { --nsd-accent: var(--na-red, var(--n-brand, #dc2626)); --nsd-ink: #0f172a; --nsd-soft: #64748b; --nsd-line: #e5e7eb;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--nsd-line);
  border-bottom: 1px solid var(--nsd-line); line-height: 1.4; box-sizing: border-box; }
.nsd *, .nsd *::before, .nsd *::after { box-sizing: border-box; }
.nsd [hidden] { display: none !important; }
.nsd__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.nsd__invite { display: none; margin: 0; }
.nsd__label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--nsd-soft); white-space: nowrap; }
.nsd__count { display: inline-flex; align-items: baseline; gap: 4px; font-size: 13px; color: var(--nsd-soft); white-space: nowrap; }
.nsd__count b { font-size: 16px; font-weight: 800; color: var(--nsd-ink); }
.nsd__ico { display: block; width: 18px; height: 18px; flex: none; fill: currentColor; pointer-events: none; }
.nsd__ico--line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nsd__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.nsd__btn { --c: #475569; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px;
  margin: 0; padding: 0; border: 1px solid var(--nsd-line); border-radius: 10px; background: #fff; color: var(--nsd-ink) !important; font: inherit;
  font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none !important; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease; }
.nsd__btn:hover { transform: translateY(-1px); }
.nsd__btn:active { transform: translateY(0); }
.nsd__btn:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.nsd__btn--facebook { --c: #1877f2; }
.nsd__btn--x { --c: #0f1419; }
.nsd__btn--whatsapp { --c: #25d366; }
.nsd__btn--viber { --c: #7360f2; }
.nsd__btn--copy { --c: #475569; }
.nsd__btn--native, .nsd__btn--save { --c: var(--nsd-accent); }
.nsd__name { display: none; }
.nsd .nsd__row .nsd__btn--save { width: auto; padding: 0 16px; border-radius: 999px; }
.nsd__btn--save .nsd__name { display: inline; }
.nsd__btn--save[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff !important; }
.nsd__toast { flex-basis: 100%; font-size: 13px; font-weight: 700; color: #059669; }
.nsd__toast:empty { display: none; }

/* 1. circles — round colour buttons */
.nsd--circles .nsd__btn { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--c); color: #fff !important; box-shadow: 0 8px 16px -10px var(--c); }
.nsd--circles .nsd__btn:hover { box-shadow: 0 12px 20px -10px var(--c); filter: brightness(1.08); }

/* 2. squares — colour tiles */
.nsd--squares .nsd__btn { width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--c); color: #fff !important; }
.nsd--squares .nsd__btn:hover { filter: brightness(1.1); }

/* 3. pills — buttons with names, outlined; fill on hover */
.nsd--pills .nsd__name { display: inline; }
.nsd--pills .nsd__btn { padding: 0 16px 0 13px; border-radius: 999px; }
.nsd--pills .nsd__btn .nsd__ico { color: var(--c); }
.nsd--pills .nsd__btn:hover, .nsd--pills .nsd__btn:focus-visible { background: var(--c); border-color: var(--c); color: #fff !important; }
.nsd--pills .nsd__btn:hover .nsd__ico, .nsd--pills .nsd__btn:focus-visible .nsd__ico { color: #fff; }

/* 4. solid — colour buttons with names */
.nsd--solid .nsd__name { display: inline; }
.nsd--solid .nsd__btn { padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--c); color: #fff !important; }
.nsd--solid .nsd__btn:hover { filter: brightness(1.1); }

/* 5. minimal — plain icons, colour on hover */
.nsd--minimal { gap: 8px 14px; }
.nsd--minimal .nsd__row { gap: 4px; }
.nsd--minimal .nsd__btn { width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--nsd-soft) !important; }
.nsd--minimal .nsd__btn:hover, .nsd--minimal .nsd__btn:focus-visible { color: var(--c) !important; background: color-mix(in srgb, var(--c) 10%, transparent); }
.nsd--minimal .nsd__ico { width: 20px; height: 20px; }

/* 6. soft — soft tinted tiles in each colour */
.nsd--soft .nsd__btn { width: 46px; height: 46px; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c) !important; }
.nsd--soft .nsd__btn:hover, .nsd--soft .nsd__btn:focus-visible { background: var(--c); color: #fff !important; }

/* 7. counter — the number first, large; round outlined buttons */
.nsd--counter .nsd__head { flex-direction: column; align-items: flex-start; gap: 2px; padding-right: 18px; border-right: 1px solid var(--nsd-line); }
.nsd--counter .nsd__count { flex-direction: column; align-items: flex-start; gap: 0; order: -1; }
.nsd--counter .nsd__count b { font-size: 30px; line-height: 1.05; color: var(--nsd-accent); }
.nsd--counter .nsd__head:has(.nsd__count) .nsd__label { display: none; }
.nsd--counter .nsd__btn { width: 44px; height: 44px; border: 1.5px solid color-mix(in srgb, var(--c) 45%, #fff); border-radius: 50%; color: var(--c) !important; }
.nsd--counter .nsd__btn:hover, .nsd--counter .nsd__btn:focus-visible { background: var(--c); border-color: var(--c); color: #fff !important; }

/* 8. grid — equal buttons across the full width, with names */
.nsd--grid { display: grid; gap: 12px; }
.nsd--grid .nsd__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.nsd--grid .nsd__name { display: inline; }
.nsd--grid .nsd__btn, .nsd--grid .nsd__row .nsd__btn--save { width: 100%; padding: 0 12px; border: 0; border-radius: 10px; background: var(--c); color: #fff !important; }
.nsd--grid .nsd__btn:hover { filter: brightness(1.1); }

/* 9. dark — a dark bar with light icons */
.nsd--dark { padding: 14px 18px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #0f172a, #1e293b); }
.nsd--dark .nsd__label { color: #cbd5e1; }
.nsd--dark .nsd__count { color: #94a3b8; }
.nsd--dark .nsd__count b { color: #fff; }
.nsd--dark .nsd__btn { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #f8fafc !important; }
.nsd--dark .nsd__btn:hover, .nsd--dark .nsd__btn:focus-visible { background: var(--c); border-color: var(--c); }
.nsd--dark .nsd__row .nsd__btn--save { color: #f8fafc !important; }
.nsd--dark .nsd__toast { color: #6ee7b7; }

/* 10. card — an invitation card with named buttons */
.nsd--card { display: grid; gap: 12px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--nsd-accent) 22%, #fff); border-radius: 16px;
  background: color-mix(in srgb, var(--nsd-accent) 6%, #fff); }
.nsd--card .nsd__invite { display: block; flex-basis: 100%; font-size: 16px; font-weight: 800; color: var(--nsd-ink); }
.nsd--card .nsd__label { display: none; }
.nsd--card .nsd__name { display: inline; }
.nsd--card .nsd__btn { padding: 0 16px 0 13px; border-color: transparent; border-radius: 999px; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.nsd--card .nsd__btn .nsd__ico { color: var(--c); }
.nsd--card .nsd__btn:hover, .nsd--card .nsd__btn:focus-visible { background: var(--c); color: #fff !important; }
.nsd--card .nsd__btn:hover .nsd__ico, .nsd--card .nsd__btn:focus-visible .nsd__ico { color: #fff; }

/* Inside a theme's own bottom share row the block sits flush. */
.na-article--share .nsd { margin: 0; }

@media (max-width: 560px) {
  .nsd { gap: 10px; }
  .nsd__head { flex-basis: 100%; }
  .nsd--counter .nsd__head { padding-right: 0; border-right: 0; }
  .nsd--grid .nsd__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nsd--card { padding: 16px; }
  .nsd--pills .nsd__btn, .nsd--solid .nsd__btn, .nsd--card .nsd__btn { padding: 0 14px 0 11px; }
}
