/* Invite links and People you may know (js/invite.js, from mock-invite). The dialogs are the sign-in
   dialog's (css/account.css .si); these are the parts of their own, and the home page's card. */

/* a member's circle at the sizes used here (js/account.js avatar: their photo or initials) */
.acct-av.inv-av { width: 40px; height: 40px; font-size: 14px; }
.acct-av.inv-av.is-md { width: 56px; height: 56px; font-size: 18px; }
.acct-av.inv-av.is-lg { width: 84px; height: 84px; font-size: 28px; box-shadow: 0 0 0 4px #efe9ff; }

/* the invite card: the link, Copy, Share…, the QR code, who joined */
.inv-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 16px; background: #f1eefe; }
.inv-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #150e5e; font: 700 15px var(--font-read); user-select: all; }
.inv .inv-link .si-go { flex: none; width: auto; min-width: 90px; padding: 10px 14px; }
.inv-copy.is-done { background: #0a7d4f; }
.inv-share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.inv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 10px; border: 0; border-radius: 14px; background: #efe9ff; color: #21167c;
  font: 700 14px var(--font-read); cursor: pointer; }
@media (hover: hover) { .inv-btn:hover { background: #e2d9ff; } }
.inv-qr { display: grid; justify-items: center; gap: 8px; margin-top: 14px; text-align: center; }
.inv-qr[hidden] { display: none; }
.inv-qr-code { width: 190px; max-width: 70vw; aspect-ratio: 1; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 2px #e6e3fb; display: grid; place-items: center; color: #6b6890; font-size: 13px; }
.inv-qr-code svg { display: block; width: 100%; height: 100%; }
.inv-qr small { color: #6b6890; font-size: 12px; }
.inv-joined { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 16px 0 0; padding: 10px 12px; border-radius: 14px; background: #f5f3ff; color: #3d3a6b; font-size: 13px; }
.inv-joined[hidden] { display: none; }
.inv-faces { display: inline-flex; }
.inv-faces .acct-av.inv-av { width: 28px; height: 28px; margin-left: -6px; font-size: 10px; box-shadow: 0 0 0 2px #f5f3ff; }
.inv-faces .acct-av.inv-av:first-child { margin-left: 0; }

/* where an invite link lands: who it's from */
.inv-from { position: relative; display: flex; justify-content: center; margin: 4px 0 4px; }
.inv-wave { position: absolute; left: calc(50% + 24px); bottom: -6px; font-size: 32px; transform-origin: 70% 80%; animation: inv-wave 1.6s ease-in-out 3; }
@keyframes inv-wave { 0%, 60%, 100% { rotate: 0deg; } 15%, 45% { rotate: 18deg; } 30% { rotate: -10deg; } }
.inv .si-go { width: 100%; }
.inv-later { display: block; margin: 10px auto 0; }

/* Find your people */
.inv-people { display: grid; margin: -6px 0 16px; }
.inv-group { margin: 14px 2px 2px; color: #6b6890; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.inv-person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 2px; border-top: 1px solid #f0eefb; }
.inv-person > a { min-width: 0; color: inherit; text-decoration: none; }
.inv-person b { display: block; font-size: 15px; }
.inv-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6b6890; font-size: 12.5px; }
.inv-person small b { display: inline; font-size: inherit; }
.inv-follow { min-width: 92px; padding: 8px 12px; border: 0; border-radius: 14px; background: #efe9ff; color: #21167c; font: 700 13.5px var(--font-read); cursor: pointer; }
@media (hover: hover) { .inv-follow:hover { background: #e2d9ff; } }
.inv-follow.is-go { background: #21167c; color: #fff; }
@media (hover: hover) { .inv-follow.is-go:hover { background: #3424b8; } }
.inv-follow.is-on { background: #e3f5ec; color: #0a7d4f; }
@media (hover: hover) { .inv-follow.is-on:hover { background: #e3f5ec; color: #0a7d4f; } }

/* the home page's card: People you may know (or, with no one to suggest, a nudge to invite friends) */
.inv-home { display: grid; gap: 10px; }
.inv-home[hidden] { display: none; }
.inv-home-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inv-home-head .hm-kicker { margin: 0; }
.inv-more { padding: 6px 10px; border: 0; border-radius: 999px; background: #efe9ff; color: #21167c; font: 700 12.5px var(--font-read); cursor: pointer; white-space: nowrap; }
@media (hover: hover) { .inv-more:hover { background: #e2d9ff; } }
.inv-all { display: inline-block; margin-top: 8px; color: #4232d4; font-weight: 700; font-size: 13.5px; text-decoration: none; }
@media (hover: hover) { .inv-all:hover { text-decoration: underline; } }
.inv-match { margin-top: 6px; padding: 2px 9px; border-radius: 999px; background: #efe6ff; color: #4b33c9; font-size: 12px; font-weight: 800; }
.inv-match.is-lo { background: #dff5ef; color: #0f6e5c; }
.inv-nudge { margin: 0; color: #4a4675; font-size: 14px; line-height: 1.45; }
.inv-home .si-go { justify-self: start; padding: 10px 16px; }
.inv-row { display: grid; grid-auto-flow: column; grid-auto-columns: 148px; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.inv-sug { position: relative; display: grid; justify-items: center; align-content: start; padding: 16px 10px 12px; border-radius: 20px; background: #f7f5ff; text-align: center; scroll-snap-align: start;
  transition: opacity .25s, transform .25s; }
.inv-sug.is-going { opacity: 0; transform: scale(.9); }
.inv-sug > a { display: grid; justify-items: center; gap: 2px; color: #150e5e; text-decoration: none; min-width: 0; max-width: 100%; }
.inv-sug > a b { margin-top: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.inv-sug > a small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6b6890; font-size: 12px; }
@media (hover: hover) { .inv-sug > a:hover b { text-decoration: underline; } }
.inv-sug p { min-height: 34px; margin: 6px 0 8px; color: #4a4675; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.inv-sug .inv-follow { width: 100%; min-width: 0; }
.inv-x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: #8b88ad; font-size: 18px; line-height: 1; cursor: pointer; }
.inv-sug .inv-x { position: absolute; top: 6px; right: 6px; }
@media (hover: hover) { .inv-x:hover { background: #ece8ff; color: #150e5e; } }

@media (prefers-reduced-motion: reduce) { .inv-wave { animation: none; } .inv-sug { transition: none; } }

/* the invite card's thank-you: the Connector badge at 3 friends, Organizer at 10 (the owner's pick of mock-join) */
.inv-goal { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: #fbf3ff; box-shadow: inset 0 0 0 2px #f0b4f1; color: #150e5e; }
.inv-goal[hidden] { display: none; }
.inv-goal-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.inv-goal-top span { color: #6b6890; font-weight: 700; }
.inv-goal-bar { display: block; height: 8px; border-radius: 999px; background: #efedfd; overflow: hidden; }
.inv-goal-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #967dfc, #f0b4f1); }
.inv-goal small { display: block; margin-top: 6px; color: #4a4675; font-size: 12.5px; line-height: 1.4; }
