Elections are a foundation of democracy. They also are human exercises that, despite all the laws and rules governing how they should run, can sometimes appear to be messy. They’re conducted by election officials and volunteers in thousands of jurisdictions across the United States, from tiny townships to sprawling urban counties with more voters than some states have people.