/* Top bar: "~/ lenasori.com" on the left; language, theme, QR and share on the right.
   The first three buttons are added by custom-body-end, the share button is LinkStack's. */

.sharediv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  max-width: 30rem;
  margin: 0 auto;
  padding: 1rem 1.25rem .25rem;
}

.sharediv::before {
  content: "~/ lenasori.com";
  font-family: var(--mono);
  font-size: .8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}

.ls-ctls { display: flex; align-items: center; gap: .375rem; }

.ls-ctl,
.sharebutton {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid hsl(var(--border) / .7);
  border-radius: 10px;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font: 500 .6875rem/1 var(--mono);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease-out, border-color .18s ease-out;
}

.ls-ctl:hover,
.sharebutton:hover { background: hsl(var(--primary) / .08); border-color: hsl(var(--primary) / .45); }

.ls-ctl > *,
.sharebutton > * { pointer-events: none; }

.ls-ctl i,
.sharebutton-img,
.share-icon { color: hsl(var(--primary)) !important; font-size: .8125rem; padding: 0; width: auto; height: auto; filter: none; }

/* Icon only, the label stays available to screen readers through aria-label */
.sharebutton-mb { display: none; }

@media (max-width: 26rem) { .sharediv { padding: .75rem 1rem .25rem; } }
