/* ─────────────────────────────────────────────────────────────────────────
   FEED FOLD — records folded into one line with faces (METIS-pub#837).

   The markup is crm/chat/partials/_feed_fold.html: a feed record
   (.feed-record, chat.css) that says "moved 27 people to To invite" or
   "added 14 camps", then the faces of up to eight of them and "+N" (the
   shared .person-faces, person-face.css) as the summary of a <details> whose
   body lists every name.

     .feed-fold            the line; wraps, so the faces sit under the sentence
     .feed-fold__who       the faces and the names, under the sentence
     .feed-fold__faces     the summary: the faces, which open the names
     .feed-fold__names     every name, each opening its side panel
     .since-feed__line     Home's "Since you were here" in words: a first
                           visit, or nothing new

   Here rather than in chat.css, which is over the module-size line. A later
   layer than chat.css's feed rules (base), so the line may wrap. Tokens only.
   ───────────────────────────────────────────────────────────────────────── */

@layer components {
  .feed-fold {
    flex-wrap: wrap;
    row-gap: var(--space-1);
  }

  .feed-fold > .feed-fold__who {
    flex-basis: 100%;
    min-width: 0;
    padding-left: var(--space-6);
  }

  .feed-fold__faces {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    cursor: pointer;
    list-style: none;
  }

  .feed-fold__faces::-webkit-details-marker { display: none; }

  /* At a phone's width the faces wrap rather than push the page sideways. */
  .feed-fold__faces .person-faces {
    flex-wrap: wrap;
    row-gap: var(--space-1);
  }

  .feed-fold__names {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-3);
    margin: var(--space-2) 0 0;
    padding: 0;
    list-style: none;
    font-size: var(--text-sm);
  }

  .since-feed__line {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
  }
}
