/* A separate article-action row, never part of the narration player. */
.ei-share:empty { display: none; }
.ei-share { flex: 0 0 auto; }
.ei-share [hidden] { display: none !important; }
.ei-share .ei-share__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: 46px;
  min-height: 46px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--like-edge, #c5d9e5);
  border-radius: 999px;
  background: linear-gradient(120deg, #fff, var(--like-surface, #f4fafc));
  color: var(--like-ink, #214c68);
  box-shadow: 0 2px 5px rgb(26 67 92 / 5%);
  font: 700 14px/1.5 "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ei-share__icon { display: inline-flex; flex: 0 0 20px; width: 20px; height: 20px; align-items: center; justify-content: center; }
.ei-share__icon svg { display: block; width: 20px; height: 20px; }
.ei-share__toggle[aria-expanded="true"] { border-color: #6f9fb9; background: #eaf4fa; }
.ei-share .ei-share__panel {
  position: fixed;
  z-index: 110;
  box-sizing: border-box;
  width: min(336px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--like-edge, #c5d9e5);
  border-radius: 16px;
  background: #fff;
  color: var(--like-ink, #214c68);
  box-shadow: 0 14px 45px rgb(16 48 68 / 20%), 0 2px 8px rgb(16 48 68 / 8%);
  font: 14px/1.5 "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  text-align: left;
}
.ei-share .ei-share__heading { margin: 0; color: inherit; font: 700 16px/1.4 "Manrope", system-ui, sans-serif; }
.ei-share .ei-share__description { margin: 4px 0 12px; color: var(--like-muted, #50697a); font: inherit; font-size: 12px; }
.ei-share .ei-share__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.ei-share .ei-share__options li { min-width: 0; margin: 0; padding: 0; list-style: none; }
.ei-share .ei-share__option {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f3f8fb;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.ei-share .ei-share__option:hover { border-color: #a7c7d8; background: #e8f2f7; text-decoration: none; }
.ei-share :is(button, a, input):focus-visible { outline: 3px solid #1769aa; outline-offset: 3px; }
.ei-share .ei-share__option[aria-disabled="true"] { opacity: .7; cursor: wait; }
.ei-share .ei-share__status { margin: 10px 0 0; color: var(--like-muted, #50697a); font: inherit; font-size: 12px; }
.ei-share .ei-share__status:empty { margin: 0; }
.ei-share .ei-share__fallback { margin-top: 10px; }
.ei-share .ei-share__url-label { display: block; margin-bottom: 5px; color: inherit; font: inherit; font-size: 12px; }
.ei-share .ei-share__url {
  display: block; box-sizing: border-box; width: 100%; min-height: 44px;
  margin: 0; padding: 9px; border: 1px solid var(--like-edge, #c5d9e5);
  border-radius: 7px; background: #fff; color: #214c68; font: 14px/1.5 system-ui, sans-serif;
}
.ei-share__sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Preserve the existing Like pill. Only Share becomes icon-only on narrow phones. */
@media (max-width: 360px) {
  .ei-share .ei-share__toggle { width: 46px; padding: 0; }
  .ei-share__toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (hover: hover) {
  .ei-share .ei-share__toggle:hover { border-color: #6f9fb9; box-shadow: 0 3px 11px rgb(26 67 92 / 12%); }
}
/* Sharing remains independent of the optional likes service/configuration. */
.ei-post-actions--share-only { display: none; }
.ei-post-actions--share-only.ei-post-actions--share-ready {
  display: flow-root; box-sizing: border-box; clear: both; width: 100%;
  color: #214c68; font: 14px/1.5 "Manrope", system-ui, sans-serif;
}
.ei-post-actions--share-only.ei-likes--top { margin: .9rem 0 1.15rem; }
.ei-post-actions--share-only .ei-likes__action { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; }
.ei-post-actions--share-only.ei-likes--bottom { margin: 2rem 0 1.25rem; padding: 1.2rem 1.3rem; border: 1px solid #c5d9e5; border-radius: 12px; background: linear-gradient(115deg, #f4f9fd, #f0faf7); }
.ei-post-actions--share-only .ei-likes__eyebrow { color: #397489; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.ei-post-actions--share-only .ei-likes__intro p { margin: .3rem 0 .85rem; font: 700 18px/1.4 "Manrope", system-ui, sans-serif; }
.ei-post-actions--share-only .ei-likes__hint { color: #50697a; font-size: 12px; }
[data-theme="dark"] .ei-share .ei-share__toggle,
[data-theme="dark"] .ei-share .ei-share__panel { color: #d9edf6; background: #1b3544; border-color: #436172; color-scheme: dark; }
[data-theme="dark"] .ei-share .ei-share__option { background: #254655; }
[data-theme="dark"] .ei-share .ei-share__option:hover { background: #31586a; border-color: #789eaf; }
[data-theme="dark"] .ei-share .ei-share__description,
[data-theme="dark"] .ei-share .ei-share__status { color: #adc5d5; }
[data-theme="dark"] .ei-share .ei-share__url { color: #d9edf6; background: #193440; border-color: #436172; }
[data-theme="dark"] .ei-post-actions--share-only { color: #d9edf6; }
[data-theme="dark"] .ei-post-actions--share-only.ei-likes--bottom { background: #193440; border-color: #436172; }
[data-theme="dark"] .ei-post-actions--share-only .ei-likes__eyebrow,
[data-theme="dark"] .ei-post-actions--share-only .ei-likes__hint { color: #adc5d5; }
@media print { .ei-post-actions { display: none !important; } }
