/* Share bar: a labelled pill per destination (template-parts/share-bar.php, modules/share.js).

   Labels, not logos: the glyphs in inc/icons.php are neutral, so the word is what identifies the destination. That
   also makes every button a comfortable tap target, which five bare icons in a row were not. */

.share {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.6rem .8rem;
  margin-block:1.6rem;
}
.share h2 {
  font-size:1.3rem;
  margin:0;
  flex:0 0 100%;
}
.share-row {
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  min-width:0;
}
.sh {
  --sh:var(--slate-700);
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  min-height:2.5rem;
  padding:0 .85rem;
  border:1px solid var(--line-2);
  border-radius:999px;
  background:var(--card);
  color:var(--slate-700);
  font:inherit;
  font-size:.9rem;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  transition:border-color .15s,color .15s,background-color .15s;
}
.sh svg {
  width:1.15rem;
  height:1.15rem;
  flex:none;
  color:var(--sh);
}
.sh:hover,
.sh:focus-visible {
  border-color:var(--sh);
  color:var(--sh);
  background:#fff;
}
.sh:focus-visible {
  outline:2px solid var(--sh);
  outline-offset:2px;
}
.sh[hidden] {
  display:none;
}

/* A hint of each destination's own colour on the glyph, so the row is scannable without carrying any logo. */
.sh-wa  { --sh:#128c7e; }
.sh-tg  { --sh:#2481cc; }
.sh-fb  { --sh:#2d5fa8; }
.sh-x   { --sh:#15202b; }
.sh-pin { --sh:#b3123a; }

.share-status {
  font-size:.85rem;
  color:var(--primary-dark);
  min-height:1.2em;
}

/* Phones: the labels are what make these tappable, so they stay — the row just wraps. */
@media (max-width:30rem) {
  .sh {
    padding:0 .7rem;
    font-size:.85rem;
  }
  .sh svg {
    width:1.05rem;
    height:1.05rem;
  }
}
