body { font-family: system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.5; margin: 0; color: #111; background: #fff; }
a { color: #0b4a9e; text-decoration: underline; }
main, footer { max-width: 40rem; margin: 0 auto; padding: 1rem; }
/* Style guide (Style_Guide.md): primary, secondary, danger. A bare button looks secondary. */
button, a.button { font: inherit; font-size: 1.1rem; padding: 0.6rem 1.2rem; min-height: 44px; box-sizing: border-box; border: 2px solid #1f3a5f; border-radius: 4px; background: #e3ebf6; color: #111; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; margin: 0.2rem 0.4rem 0.2rem 0; }
button:hover, a.button:hover { background: #d3dff0; }
button.primary, a.button.primary { background: #0b4a9e; border-color: #0b4a9e; color: #fff; }
button.primary:hover, a.button.primary:hover { background: #093a7c; border-color: #093a7c; }
button:focus, a:focus, input:focus { outline: 3px solid #005fcc; outline-offset: 2px; }
p.no { background: #fde8ea; border: 2px solid #b00020; border-left: 12px solid #b00020; padding: 0.8rem 1rem; color: #4a0010; }
input[type=text] { font-size: 1.1rem; padding: 0.4rem; width: 100%; box-sizing: border-box; }
.candidates { list-style: none; padding: 0; }
.candidates li { padding: 0.5rem 0; }
footer { border-top: 1px solid #ccc; margin-top: 2rem; color: #333; }
header.site-header { background: #f2f2f2; border-bottom: 1px solid #ccc; padding: 0.8rem 1rem 0.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
header .brand { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.25rem 1rem; flex: 0 1 auto; max-width: 100%; }
header .logo { display: block; flex: none; height: 64px; width: auto; }
header .system-name { font-size: 1.25rem; font-weight: bold; line-height: 1.2; padding-bottom: 0.35rem; }
header .header-right { flex: 1 1 18rem; }
header .header-right p { margin: 0; }
header .session-line { margin-bottom: 0.6rem; font-size: 0.95rem; }
.election-banner { margin: 0 0 1rem 0; }
.election-banner .election-title { font-size: 1.4rem; font-weight: bold; margin: 0.25rem 0; }
.election-banner .subtitle { margin: 0; color: #333; }
.instructions { margin-bottom: 1rem; }
.rule { border: 0; border-top: 1px solid #888; margin: 1rem 0; }
.warning-line { font-weight: bold; text-decoration: underline; }
.session-note { color: #333; }
.leave { margin-top: 2rem; border-top: 1px solid #ccc; padding-top: 0.5rem; }
.leave-note { color: #333; }
/* Release_Results_6e: the public results page */
h1.poll-title { font-size: 1.4rem; margin: 1rem 0 0.3rem; }
h2.election-name { font-size: 1.15rem; margin: 0.2rem 0 0.6rem; }
table.res { border-collapse: collapse; margin: 0.5rem 0 1rem; min-width: 22rem; max-width: 100%; }
table.res th, table.res td { border: 1px solid #bbb; padding: 0.35rem 0.7rem; text-align: left; }
table.res th { background: #eee; }
table.res td.n, table.res th.n { text-align: right; }
table.res tr.total td { border: 0; text-align: right; font-weight: bold; }
.facts { margin: 0.6rem 0 1rem; }
.facts p { margin: 0.1rem 0; }
.scroll { overflow-x: auto; }
/* the results page content starts at the left edge, in line with the logo (header padding is 1rem too) */
main:has(h1.poll-title) { margin: 0; max-width: none; }
/* Release_Closeout_7: the red or notice message box of the results pages is as wide as the table, not the whole window */
main:has(h1.poll-title) p.no { max-width: 40rem; box-sizing: border-box; }
