/* The share row every Learn page and test page carries under its byline
   (partials/share-row.html, placed by scripts/sync-share-row.mjs). The
   buttons share the page's own address only, never a result or a score.
   The icons and brand colours follow the Inferior Se guide's row. Every size
   here stays at or above the 16px text floor. */
.lbl-share {
  --lbl-share-size: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
  border: 0;
  background: none;
}
.lbl-share--center { justify-content: center; }
/* A row that stands between full-width sections (the test pages) keeps to
   the reading width and centres itself. */
.lbl-share--band {
  justify-content: center;
  width: min(100% - 32px, 1100px);
  margin: 24px auto;
}
.lbl-share .lbl-share__btn {
  position: relative;
  box-sizing: border-box;
  width: var(--lbl-share-size);
  height: var(--lbl-share-size);
  min-width: 0;
  flex: 0 0 var(--lbl-share-size);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: 400 16px/1 'Plus Jakarta Sans', system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}
.lbl-share .lbl-share__btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
.lbl-share .lbl-share__btn:active { transform: translateY(-1px); }
.lbl-share .lbl-share__btn:focus-visible {
  outline: 3px solid #5ec4c9;
  outline-offset: 3px;
}
.lbl-share .lbl-share__btn svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  fill: currentColor;
  stroke: none;
}
/* The X circle keeps a light ring so it shows on the dark pages too. */
.lbl-share .lbl-share__btn[data-platform="x"] { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.lbl-share .lbl-share__btn[data-platform="linkedin"] { background: #0a66c2; }
.lbl-share .lbl-share__btn[data-platform="facebook"] { background: #1877f2; }
.lbl-share .lbl-share__btn[data-platform="reddit"] { background: #d93a00; }
.lbl-share .lbl-share__btn[data-platform="whatsapp"] { background: #128c4b; }
.lbl-share .lbl-share__btn[data-platform="copy"] { background: #0e6f75; }
.lbl-share .lbl-share__btn[data-platform="copy"].is-copied { background: #2f7d43; }
.lbl-share .lbl-share__tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: #1a1e28;
  color: #f4f2ed;
  font: 500 16px/1.4 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
  z-index: 2;
}
.lbl-share .lbl-share__btn:hover .lbl-share__tip,
.lbl-share .lbl-share__btn:focus-visible .lbl-share__tip { opacity: 1; }
.lbl-share-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 300;
  max-width: calc(100% - 32px);
  box-sizing: border-box;
  padding: 14px 22px;
  border: 1px solid #5ec4c9;
  border-radius: 12px;
  background: #10131a;
  color: #f4f2ed;
  font: 600 16px/1.5 'Plus Jakarta Sans', system-ui, sans-serif;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateX(-50%) translateY(100px);
  transition: opacity 250ms ease, transform 250ms ease;
  pointer-events: none;
}
.lbl-share-toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 400px) {
  .lbl-share { --lbl-share-size: 42px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .lbl-share .lbl-share__btn,
  .lbl-share .lbl-share__tip,
  .lbl-share-toast { transition: none; }
  .lbl-share .lbl-share__btn:hover,
  .lbl-share .lbl-share__btn:active { transform: none; }
}
@media print {
  .lbl-share, .lbl-share-toast { display: none !important; }
}
