/* Per-story Share on the home page's channel panel (static/share.js).
   Every element here is a <button>: Pico remaps --pico-color inside buttons, so text is
   var(--tv-ink) (DESIGN_GUIDELINES rule 7), and pico.classless's button skin is reset by hand. */

/* The small share icon at the end of a story's meta line. */
.share-btn {
  margin: 0 0 0 auto;
  padding: 0.15rem 0.25rem;
  width: auto;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--pico-border-radius);
  color: var(--tv-ink);
  opacity: 0.6;
  line-height: 0;
  cursor: pointer;
  box-shadow: none;
}

.share-btn:hover,
.share-btn[aria-expanded="true"] {
  opacity: 1;
  background: var(--tv-hover);
  border-color: var(--pico-muted-border-color);
}

/* The two choices, shown inline under the story. */
.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.share-opt {
  margin: 0;
  padding: 0.2rem 0.65rem;
  width: auto;
  font-size: 0.75rem;
  line-height: 1.3;
  background: transparent;
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 999px;
  color: var(--tv-ink);
  cursor: pointer;
  box-shadow: none;
}

.share-opt:hover {
  background: var(--tv-hover);
  border-color: var(--tv-coral-text);
}

.share-note {
  font-size: 0.75rem;
  color: var(--pico-muted-color);
}

/* The story a visitor arrived at through a shared TVNAIA link. Tint + a coral bar, so the
   state reads by more than colour alone (rule 6). */
.story-item.shared {
  background: var(--tv-coral-tint);
  box-shadow: inset 3px 0 0 var(--tv-coral);
  padding-left: 0.6rem;
  padding-right: 0.4rem;
}
