#wasdf-voting-app {
	max-width: 640px;
	margin: 0 auto;
	font-size: 16px;
}
#wasdf-voting-app .wasdf-step,
#wasdf-voting-app .wasdf-ballot {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
#wasdf-voting-app fieldset {
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 12px 16px;
	margin: 0;
}
#wasdf-voting-app legend {
	font-weight: 600;
	padding: 0 6px;
}
#wasdf-voting-app .wasdf-choice {
	display: block;
	padding: 6px 0;
}
#wasdf-voting-app .wasdf-race-image {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin-bottom: 10px;
}
#wasdf-voting-app .wasdf-race-description {
	margin-bottom: 10px;
	color: #333;
}
#wasdf-voting-app .wasdf-choice-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
#wasdf-voting-app .wasdf-choice-image {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 50%;
	flex-shrink: 0;
}
#wasdf-voting-app .wasdf-choice-image-large {
	width: 120px;
	height: 120px;
	object-fit: contain;
	flex-shrink: 0;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
}
#wasdf-voting-app .wasdf-progress {
	font-size: 0.85em;
	color: #666;
	margin: -6px 0 4px;
}
#wasdf-voting-app .wasdf-nav {
	display: flex;
	gap: 10px;
}
#wasdf-voting-app .wasdf-btn-secondary {
	background: #e5e7eb;
	color: #111;
}
#wasdf-voting-app .wasdf-choice-text {
	flex: 1;
}
#wasdf-voting-app .wasdf-choice-bio {
	font-size: 0.9em;
	color: #555;
	margin-top: 4px;
	margin-left: 22px;
}
#wasdf-voting-app .wasdf-trust-info {
	background: #f0f6ff;
	border: 1px solid #c7dbff;
	border-radius: 6px;
	padding: 16px 20px;
	margin-bottom: 20px;
}
#wasdf-voting-app .wasdf-trust-info ul {
	padding-left: 20px;
}
.wasdf-turnout-public {
	font-weight: 600;
}
#wasdf-voting-app input[type="email"],
#wasdf-voting-app input[type="text"] {
	padding: 8px;
	font-size: 16px;
	border: 1px solid #999;
	border-radius: 4px;
}
#wasdf-voting-app button {
	padding: 10px 18px;
	font-size: 16px;
	background: #1d4ed8;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	align-self: flex-start;
}
#wasdf-voting-app button:disabled {
	opacity: 0.6;
	cursor: default;
}
#wasdf-voting-app .wasdf-error,
#wasdf-voting-app .wasdf-status {
	color: #b91c1c;
}

/* Anonymity notice - shown when entering an email and again on the receipt,
   because those are the two moments a voter is deciding whether to trust
   this with a real choice. */
.wasdf-privacy-note {
	margin: 20px 0 0;
	padding: 14px 16px;
	border-left: 4px solid #2c6e49;
	background: #f2f8f5;
	border-radius: 0 4px 4px 0;
}

.wasdf-privacy-note strong {
	display: block;
	margin-bottom: 6px;
	color: #1d4d33;
}

.wasdf-privacy-note p {
	margin: 0 0 8px;
	font-size: 0.93em;
	line-height: 1.5;
	color: #33403a;
}

.wasdf-privacy-note p:last-child {
	margin-bottom: 0;
}

/* Preview banner - deliberately loud, so a manager can never mistake a
   preview for a real ballot, or wonder why their selections vanished. */
.wasdf-preview-banner {
	margin: 0 0 20px;
	padding: 12px 16px;
	border: 2px dashed #b8860b;
	background: #fffbea;
	border-radius: 4px;
}

.wasdf-preview-banner strong {
	display: block;
	margin-bottom: 4px;
	color: #7a5901;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.85em;
}

.wasdf-preview-banner p {
	margin: 0;
	font-size: 0.9em;
	line-height: 1.45;
	color: #5c4708;
}

/* Voting window under the ballot title - a voter should never have to guess
   whether they still have time, or come back to find it closed. */
.wasdf-window {
	margin: -6px 0 10px;
	font-size: 0.92em;
	color: #444;
}

/* Logo contest page (nominate.js). Mirrors the voting page's look so both
   read as one site, and gives the submit form its rules box. */
#wasdf-nominate-app {
	max-width: 640px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.5;
}
#wasdf-nominate-app h2 {
	margin: 0 0 8px;
}
#wasdf-nominate-app .wasdf-ballot,
#wasdf-nominate-app .wasdf-step {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
#wasdf-nominate-app .wasdf-step label {
	font-weight: 600;
	margin-top: 8px;
}
#wasdf-nominate-app input[type="email"],
#wasdf-nominate-app input[type="text"],
#wasdf-nominate-app textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px;
	font-size: 16px;
	font-family: inherit;
	border: 1px solid #9ca3af;
	border-radius: 6px;
}
#wasdf-nominate-app input[type="file"] {
	padding: 8px 0;
}
#wasdf-nominate-app button {
	padding: 10px 18px;
	font-size: 16px;
	background: #1d4ed8;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	align-self: flex-start;
	margin-top: 8px;
}
#wasdf-nominate-app button:disabled {
	opacity: 0.6;
	cursor: default;
}
#wasdf-nominate-app .wasdf-rules {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-left: 4px solid #1d4ed8;
	border-radius: 6px;
	padding: 12px 16px;
	margin: 0 0 8px;
}
#wasdf-nominate-app .wasdf-rules ul {
	margin: 6px 0 0 18px;
	padding: 0;
}
#wasdf-nominate-app .wasdf-rules li {
	margin: 4px 0;
}
#wasdf-nominate-app .wasdf-error,
#wasdf-nominate-app .wasdf-status {
	color: #b91c1c;
	margin: 4px 0 0;
}

/* One block per logo on the contest submit page. */
#wasdf-nominate-app fieldset {
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 12px 16px 16px;
	margin: 12px 0 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
#wasdf-nominate-app legend {
	font-weight: 700;
	padding: 0 6px;
}

/* Logo grid on the contest submit page: side by side, stacking on narrow screens. */
#wasdf-nominate-app .wasdf-logo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	margin-top: 12px;
}
#wasdf-nominate-app .wasdf-logo-grid fieldset {
	margin: 0;
	min-width: 0;
}
#wasdf-nominate-app .wasdf-logo-preview {
	width: 100%;
	height: 180px;
	object-fit: contain;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
}
