/* ─────────────────────────────────────────────────────────────────────────
   SHARE LINK — a link to hand out: its name, the address with Copy link,
   and whatever goes with it (Open, a QR code, a next step).

   Graduated from the room editor (it was `.room-share` in
   janus/css/editor.css) when an invitation page's settings screen wanted the
   same box (METIS-pub#705). Used by crm/partials/_share_link_box.html (an
   ask's Share box, an invitation page's sign-up link) and by Coherence's room
   links (coherence/room/_shares.html).

   Anatomy:
     .share-link           the box: a column, left-aligned
     .share-link__name     its heading
     .share-link__row      the address and Copy link, wrapping on a phone
     .share-link__url      the read-only address input
   ───────────────────────────────────────────────────────────────────────── */

@layer components {

.share-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.share-link__name {
  margin: 0;
  font-weight: 500;
}

.share-link__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}

.share-link__url {
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 32rem;
  font-family: var(--font-mono);
  font-size: var(--text-base);
}

}
