/* Share and Invite on the guild page (#1137), loaded by hub/guild_detail.html when either shows.
   Share is components/share_menu.html (#1223), styled by share-menu.css; only its phone placement
   in the statbar lives here. Invite opens the guild-invite modal, whose body is the composer's Add
   people checklist (.pl-recipient-checklist in hub.css). The invite banner sits under the stat
   chips. Token fallbacks throughout, since the guilds host draws this page on its own light theme too. */

/* With Share, Invite, What's New and the CTA the row can outgrow a phone: let it wrap, right aligned. */
.pl-guild-statbar__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pl-guild-invite-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
/* On a phone the row becomes the offset parent and the Share panel spans it, so the copy field never runs off screen. */
@media (max-width: 480px) {
  .pl-guild-statbar__actions { position: relative; }
  .pl-guild-statbar__actions .pl-share { position: static; }
  .pl-guild-statbar__actions .pl-share__panel { left: 0; right: 0; min-width: 0; }
  .pl-guild-statbar__actions .pl-share__manual { min-width: 0; }
}

/* ── Invite panel (inside the guild-invite modal) ── */
.pl-guild-invite__lead {
  margin: 0 0 1rem;
  color: var(--hub-text-muted, #5b6675);
  font-size: 0.9rem;
  line-height: 1.5;
}
.pl-guild-invite__search {
  margin-bottom: 0.75rem;
}
.pl-guild-invite__search input {
  max-width: 520px;
}
.pl-guild-invite__list {
  max-height: 16rem;
}
.pl-guild-invite__actions {
  margin-top: 1rem;
}
.pl-guild-invite__empty {
  margin-top: 0.75rem;
}

/* ── Invite banner (under the stat chips) ── */
.pl-guild-invite-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0 0 1.5rem;
  border-left: 4px solid var(--color-tuscan-yellow, #eeb44b);
}
.pl-guild-invite-banner__text {
  flex: 1 1 18rem;
  min-width: 0;
}
.pl-guild-invite-banner__title {
  margin: 0;
  font-weight: 700;
  color: var(--hub-text, #1d1e1e);
}
.pl-guild-invite-banner__hint {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--hub-text-muted, #5b6675);
}
.pl-guild-invite-banner__form {
  margin: 0;
}
@media (max-width: 480px) {
  .pl-guild-invite-banner__form,
  .pl-guild-invite-banner__form .pl-btn {
    width: 100%;
  }
}
