/* Share controls inside the article meta line (author · date · reading time). */

.article-meta > span:has(+ .mv-share-inline) {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mv-share-inline {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.mv-share-inline__label {
  margin-right: 4px;
  color: #36594f;
  font-size: 12px;
  font-weight: 600;
}

.mv-share-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0;
  border: 1px solid rgba(0, 95, 83, 0.24);
  border-radius: 999px;
  background: transparent;
  color: #005f53;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.article-meta a.mv-share-icon {
  text-decoration: none;
}

.mv-share-icon svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.mv-share-icon--copy {
  width: auto;
  padding: 0 13px 0 11px;
}

.mv-share-icon--copy b {
  font-weight: 600;
}

.mv-share-icon:hover {
  border-color: #005f53;
  background: #005f53;
  color: #fffdf6;
}

.mv-share-icon:focus-visible {
  outline: 3px solid #a8ff78;
  outline-offset: 2px;
}

.mv-share-status {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  max-width: min(320px, 90vw);
  padding: 8px 12px;
  border-radius: 10px;
  background: #005f53;
  color: #fffdf6;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.mv-share-status:not(:empty) {
  opacity: 1;
}

@media (max-width: 700px) {
  .mv-share-inline {
    width: 100%;
    margin-left: 0;
  }

  .mv-share-inline__label {
    width: 100%;
    margin: 0 0 2px;
  }

  .mv-share-icon {
    width: 40px;
    height: 40px;
  }

  .mv-share-icon--copy {
    width: auto;
  }

  .mv-share-status {
    right: auto;
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mv-share-icon,
  .mv-share-status {
    transition: none;
  }
}

