/* Social share — tiny monochrome icon row (also inlined in pages as fallback) */
:root,
[data-theme="forest"] {
  --social-icon: #ffffff;
  --social-icon-hover: rgba(255, 255, 255, 0.65);
  --social-toast-bg: rgba(26, 46, 31, 0.94);
  --social-toast-text: #e8f5e9;
}

[data-theme="lemonade"] {
  --social-icon: #111111;
  --social-icon-hover: rgba(17, 17, 17, 0.55);
  --social-toast-bg: rgba(255, 255, 255, 0.96);
  --social-toast-text: #1a2e1f;
}

.social-share {
  padding: 0.75rem 1rem 0.25rem;
  margin-inline: auto;
  text-align: center;
}

.social-share__label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--social-icon) 50%, transparent);
}

.social-share__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.25rem;
}

.social-share__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2rem !important;
  height: 2rem !important;
  min-width: 2rem !important;
  max-width: 2rem !important;
  min-height: 2rem !important;
  padding: 0 !important;
  margin: 0;
  border: none;
  border-radius: 0.375rem;
  background: transparent !important;
  color: var(--social-icon) !important;
  cursor: pointer;
  text-decoration: none;
  line-height: 0;
  flex: 0 0 2rem;
  transition: transform 0.15s ease, opacity 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.social-share__btn svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  fill: currentColor !important;
  display: block !important;
  flex-shrink: 0;
}

.social-share__btn:hover,
.social-share__btn:focus-visible {
  color: var(--social-icon-hover) !important;
  transform: scale(1.15);
  outline: none;
}

.social-share__btn:active {
  transform: scale(1.05);
}

.social-share__toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 50;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background: var(--social-toast-bg);
  color: var(--social-toast-text);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 0.75rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-share__toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
