/* GenHub guide share bar — local styles only, no third-party widgets */
.share-bar {
  --share-teal: #2c7da0;
  --share-teal-soft: rgba(44, 125, 160, 0.1);
  --share-teal-hover: rgba(44, 125, 160, 0.16);
  --share-border: rgba(44, 125, 160, 0.22);
  --share-text: #475569;
  font-family: inherit;
}

.share-bar--compact {
  margin-top: 1.25rem;
}

.share-bar--full {
  margin: 2rem 0 1.5rem;
  padding: 1rem 0 0;
  border-top: 1px solid #e2e8f0;
}

.share-bar__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.625rem;
}

.share-bar--compact .share-bar__label {
  text-align: center;
}

.share-bar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.share-bar--compact .share-bar__row {
  justify-content: center;
}

.share-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 2.25rem;
  min-width: 2.25rem;
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--share-border);
  border-radius: 9999px;
  background: #fff;
  color: var(--share-teal);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.share-bar__btn:hover,
.share-bar__btn:focus-visible {
  background: var(--share-teal-soft);
  border-color: var(--share-teal);
  color: #1e5f7a;
  outline: none;
}

.share-bar__btn:focus-visible {
  box-shadow: 0 0 0 3px var(--share-teal-hover);
}

.share-bar__btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  fill: currentColor;
}

.share-bar__btn-text {
  display: none;
}

.share-bar--full .share-bar__btn-text {
  display: inline;
}

@media (min-width: 480px) {
  .share-bar--compact .share-bar__btn-text {
    display: inline;
  }
}

.share-bar__btn--native {
  background: var(--share-teal-soft);
  border-color: var(--share-teal);
}

.share-bar__btn--copied {
  background: #ecfdf5;
  border-color: #34d399;
  color: #047857;
}

.share-bar__status {
  font-size: 0.75rem;
  color: #047857;
  min-height: 1rem;
  margin-top: 0.375rem;
}

.share-bar--compact .share-bar__status {
  text-align: center;
}

.share-bar[hidden] {
  display: none !important;
}
