/* Polling Place Accessibility Survey. The free tools' shared style (COOP Plan Builder's, itself Process Guide
   Maker's and Tally Sheet Maker's), so the suite's tools look alike, with this tool's own parts at the end. */
/* A Latin-only cut of Noto Sans (English, Spanish and other Latin-alphabet languages): 45 KB each
   instead of 630 KB for the whole font (2026-10-18). */
@font-face { font-family: 'Noto Sans'; src: url('/fonts/NotoSans-400Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url('/fonts/NotoSans-700Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root { --navy: #1b2a4a; --red: #b22234; --ink: #1d2433; --muted: #5a6475; --line: #d5dae3; --bg: #f3f5f9; --card: #fff; --warnbg: #fff7e0; --warnline: #c99a1a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #e8ecf3; --muted: #a9b2c2; --line: #3a4458; --bg: #141a26; --card: #1e2636; --warnbg: #3a3218; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: 'Noto Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.45; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.mast { background: var(--navy); color: #fff; }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 12px; } /* task 122: 72px, Fred's 11-05 header rule (was 56px) */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand svg { width: 24px; height: 24px; }
.tool { font-weight: 700; opacity: .9; }
.stripe { height: 8px; background: repeating-linear-gradient(90deg, var(--red) 0 40px, #fff 40px 52px); }
h1 { font-size: 28px; margin: 18px 0 6px; }
.lede { margin: 0 0 18px; color: var(--muted); max-width: 70ch; }
.beta { margin: 16px 0 0; padding: 8px 12px; background: var(--warnbg); border-left: 4px solid var(--warnline); border-radius: 4px; font-size: 14px; }
.layout { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(320px, 520px); gap: 24px; align-items: start; }
@media (max-width: 699px) { .layout { grid-template-columns: 1fr; } .preview { order: -1; } }
fieldset { border: 1px solid var(--line); border-radius: 8px; background: var(--card); padding: 12px 14px 14px; margin: 0 0 14px; min-width: 0; }
/* Box headings sit inside the box, at the top, lined up with the rest of the box (Fred, 2026-11-06:
   "alignment off on desktop"). A plain <legend> is drawn across the box's top border, a few pixels in
   from the corner, so it looked out of line with the labels and fields under it. A floated legend is
   drawn inside the box like any heading; screen readers still read it as the box's name. */
legend { float: left; width: 100%; font-weight: 700; font-size: 17px; padding: 0; margin: 0 0 8px; }
fieldset > :not(legend) { clear: both; }
label { display: block; font-weight: 700; font-size: 14px; margin: 10px 0 4px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); color: var(--ink); min-height: 44px; }
input[type=file] { padding: 8px; }
textarea { resize: vertical; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.warn { font-size: 14px; background: var(--warnbg); border-left: 4px solid var(--warnline); padding: 6px 10px; margin: 10px 0 0; }
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick { display: flex; gap: 6px; }
.pick input[type=color] { width: 52px; padding: 2px; flex: none; }
details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); min-height: 32px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) summary { color: #9fb7ea; } }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
button { font: inherit; font-weight: 700; border-radius: 6px; padding: 10px 16px; min-height: 44px; cursor: pointer; border: 2px solid var(--navy); background: var(--navy); color: #fff; }
button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
button.link { background: none; border: 0; padding: 6px 0; min-height: 32px; color: var(--ink); text-decoration: underline; font-weight: 400; }
.status { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; }
.preview { position: sticky; top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; text-align: center; }
@media (max-width: 699px) { .preview { position: static; } }
canvas { max-width: 100%; height: auto; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); background: #fff; }
.foot { margin-top: 32px; padding: 18px 0 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot a { color: inherit; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.who a { color: #fff; }
button.link.light { color: #fff; }
/* Task 70: the offer to copy sheets saved in this browser into the signed-in office. A card like the
   saved-sheet boxes, with the suite's navy edge so it reads as a question, not a warning. */
.offer { margin: 16px 0 14px; padding: 12px 16px 14px; background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--navy); border-radius: 8px; }
.offer h2 { font-size: 18px; margin: 0 0 6px; }
.offer p { margin: 0 0 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .offer { border-left-color: #8fa6d6; } }

/* Suite page-width standard (task 75, Fred 11-05): the header runs the full screen width with
   24px sides, like Poll Worker Management and the Task Tracker; the tool itself (one form and
   its preview) stays centered but may use up to 1440px. It used to stop at 1180px (curbside
   1040px), which left the header's logo floating mid-screen on a wide monitor. */
.wrap { max-width: 1440px; padding-left: 24px; padding-right: 24px; }
.mast .wrap { max-width: none; }
@media (max-width: 640px) { .wrap { padding-left: 12px; padding-right: 12px; } }

/* Decision 8A (Fred, 7:05 PM ET 11-07): one header order in every suite tool. Left: the suite name (or
   the office's logo, signed in), a thin line, then the tool's name. Right: switcher.js v6 draws save
   status, ? Help, the badge or "Sign in", then the 9 dots. The tool's name used to sit at the far right
   beside the dots until someone signed in; now it's in the same spot signed in or out. */
.lead { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lead .tool { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.3); font-size: 18px; font-weight: 700; opacity: 1; line-height: 1.2; }
.who { margin-left: auto; }
@media (max-width: 640px) { .lead { gap: 10px; } .lead .tool { padding-left: 10px; font-size: 15px; } .brand { font-size: 15px; } }
/* A phone: the star stands for the suite's name, so the tool's name fits on one line. */
@media (max-width: 420px) { .lead .brand:not([data-suite-look]) { font-size: 0; gap: 0; } }
/* "Your saved codes" box (uniform interface Decision 7A, 11-07): the same box, words and button order
   in every suite tool that keeps several things. Delete is the only red button (Decision 4A). */
button.secondary.danger { color: var(--red); border-color: var(--red); }
/* GAP 6 WCAG 2.1 AA check (11-08): in dark mode links kept the browser's default blue (#0000ee),
   1.6:1 on the dark card. Light blue matches the dark-mode summary color (about 7:1). :where()
   keeps this as weak as a plain "a" rule, so header and footer colors still win. */
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) a { color: #9fb7ea; } }
:where(:root[data-theme="dark"]) a { color: #9fb7ea; }
/* GAP 6 WCAG 2.1 AA check (11-08): the red Delete button kept the flag red (#b22234) in dark mode,
   2.3:1 on the dark card. The dark-mode warning pink is about 7:1. The stripe keeps its red. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) button.danger { color: #ff8a95; border-color: #ff8a95; } }
:root[data-theme="dark"] button.danger { color: #ff8a95; border-color: #ff8a95; }

/* Suite task 122 (3A): the page's own question box (ask.js). */
dialog.ask { max-width: min(480px, calc(100vw - 24px)); border: 0; border-radius: 10px; padding: 20px 22px; box-shadow: 0 10px 40px rgba(0,0,0,.35); background: var(--card); color: var(--ink); }
dialog.ask::backdrop { background: rgba(10,16,30,.55); }
dialog.ask h2 { margin: 0 0 6px; font-size: 1.2rem; }
dialog.ask p { margin: 0 0 14px; }
dialog.ask .ask-btns { display: flex; flex-wrap: wrap; gap: 10px; }
button.danger-fill { background: var(--red); border-color: var(--red); color: #fff; }

button:disabled { opacity: .6; cursor: progress; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #4d7bd6; outline-offset: 2px; }
.gate, .loading { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.gate a.btn { display: inline-block; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: none; min-height: 44px; }
.buttons.small button { padding: 8px 12px; min-height: 40px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.last { margin: 10px 0; padding-left: 8px; border-left: 4px solid var(--line); font-size: 14px; }
.last.ok { border-color: #2e7d32; } .last.soon { border-color: var(--warnline); } .last.late { border-color: var(--red); }
.addrow { display: flex; gap: 8px; } .addrow select, .addrow input { flex: 1; }
.pager-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }

/* ---------- this tool (task 164): phone first, in the field, big buttons ---------- */
:root { --ok: #1f7a3d; --okbg: #e4f4e9; --no: #b3261e; --nobg: #fde8e6; --wn: #7a5200; --wnbg: #fff3d6; --na: #5f6673; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ok: #6fd18f; --okbg: #17321f; --no: #ff8a80; --nobg: #3a1c19; --wn: #f0c15a; --wnbg: #38300f; --na: #a3abb8; } }
:root[data-theme="dark"] { --ok: #6fd18f; --okbg: #17321f; --no: #ff8a80; --nobg: #3a1c19; --wn: #f0c15a; --wnbg: #38300f; --na: #a3abb8; --ink: #e8ecf3; --muted: #a9b2c2; --line: #3a4458; --bg: #141a26; --card: #1e2636; --warnbg: #3a3218; }
main { max-width: 960px; }
h2 { font-size: 20px; margin: 18px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.card > h2:first-child { margin-top: 0; }
details.card > summary { font-size: 17px; }
.two, .three { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .two, .three { grid-template-columns: 1fr; } }
fieldset.plain { border: 0; padding: 0; margin: 8px 0 0; background: none; }
legend.small { font-size: 14px; }
.radios label { display: flex; gap: 10px; align-items: center; font-weight: 400; min-height: 44px; margin: 0; }
.radios input { width: 22px; height: 22px; min-height: 0; flex: none; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.row-head h2 { margin: 18px 0 8px; }
.chip { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip.ok { background: var(--okbg); color: var(--ok); } .chip.no { background: var(--nobg); color: var(--no); }
.chip.warn { background: var(--wnbg); color: var(--wn); } .chip.mut { background: var(--line); color: var(--ink); }
.place { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; }
.place h3 { margin: 0; font-size: 17px; }
.place .addr { color: var(--muted); font-size: 14px; }
.place .meta { font-size: 14px; color: var(--muted); }
.place .side { text-align: right; }
.place .buttons { grid-column: 1 / -1; }
.place details { grid-column: 1 / -1; margin: 4px 0 0; }
.place details ul { margin: 6px 0 0; padding-left: 18px; }
.place details li { margin: 4px 0; }
.bar { height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bar i { background: #8fa6d6; } }
.topbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 10px; }
.topbar h1 { margin: 0; font-size: 22px; flex: 1 1 200px; }
.todo ul { margin: 8px 0 0; }
.todo li { margin: 2px 0; }
.todo.done summary { color: var(--ok); }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 10px; position: sticky; top: 0; z-index: 4; background: var(--bg); }
.tabs button { flex: 0 0 auto; min-width: 52px; background: var(--card); color: var(--ink); border: 1px solid var(--line); padding: 8px 10px; }
.tabs button[aria-current="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tabs .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 6px; background: var(--line); vertical-align: middle; }
.tabs .dot.ok { background: var(--ok); } .tabs .dot.no { background: var(--no); } .tabs .dot.off { opacity: .35; }
.sec-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; flex: 1; }
.gateq { background: var(--wnbg); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.gateq p { margin: 0 0 8px; font-weight: 700; }
.item { border-top: 1px solid var(--line); padding: 14px 0; }
.item:first-of-type { border-top: 0; }
.item .q { margin: 0 0 6px; }
.item .q b { color: var(--navy); margin-right: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .item .q b { color: #9fb7ea; } }
.cite { color: var(--muted); font-size: 13px; }
.yn { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
@media (max-width: 400px) { .yn { grid-template-columns: 1fr 1fr; } }
.yn button { background: var(--card); color: var(--ink); border: 2px solid var(--line); padding: 10px 4px; min-height: 48px; }
.yn button[aria-pressed="true"][data-v="Y"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.yn button[aria-pressed="true"][data-v="N"] { background: var(--no); border-color: var(--no); color: #fff; }
.yn button[aria-pressed="true"][data-v="NA"], .yn button[aria-pressed="true"][data-v="U"] { background: var(--na); border-color: var(--na); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .yn button[aria-pressed="true"] { color: #111 !important; } }
.yn2 { grid-template-columns: 1fr 1fr; }
.fail { background: var(--nobg); border-radius: 8px; padding: 6px 10px 10px; margin-top: 6px; }
.fail .choice label { display: flex; gap: 10px; align-items: center; font-weight: 400; margin: 4px 0; min-height: 44px; }
.fail .choice input { width: 22px; height: 22px; min-height: 0; flex: none; }
.need { color: var(--no); font-weight: 700; font-size: 14px; margin: 4px 0 0; }
.sug { font-size: 14px; color: var(--wn); background: var(--wnbg); border-radius: 6px; padding: 6px 8px; margin-top: 8px; }
.mwarn { font-size: 14px; color: var(--wn); font-weight: 700; margin: 4px 0 0; }
.mrow { display: flex; gap: 6px; align-items: stretch; }
.mrow input { flex: 1; }
.mrow button { flex: none; padding: 6px 10px; }
.branch { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.photos { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.photos .th { position: relative; }
.photos img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; background: var(--line); }
.photos .x { position: absolute; top: -10px; right: -10px; min-width: 32px; min-height: 32px; height: 32px; padding: 0 8px; border-radius: 16px; background: var(--no); border-color: var(--no); color: #fff; font-size: 14px; }
.photos label.btn { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); border-radius: 6px; padding: 8px 12px; min-height: 44px; font-weight: 700; margin: 0; cursor: pointer; background: var(--card); }
.photos label.btn:focus-within { outline: 3px solid #4d7bd6; outline-offset: 2px; }
.rep { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 14px 0 0; }
.rep-head { display: flex; gap: 8px; align-items: end; }
.rep-head > div { flex: 1; }
.rep-head label { margin-top: 0; }
.add-repeat { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.scroll { overflow-x: auto; }
table.sum { width: 100%; border-collapse: collapse; font-size: 15px; }
table.sum th, table.sum td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prob { border-top: 1px solid var(--line); padding: 8px 0; font-size: 15px; }
.prob:first-of-type { border-top: 0; }
dialog.slope { max-width: min(460px, calc(100vw - 24px)); border: 0; border-radius: 10px; padding: 18px 20px; background: var(--card); color: var(--ink); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
dialog.slope::backdrop { background: rgba(10,16,30,.55); }
dialog.slope h2 { margin: 0 0 6px; }
#slopeOut { margin: 10px 0; min-height: 3em; }
#slopeOut .big { font-size: 20px; font-weight: 700; }
#slopeOut .chips2 { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
#printArea { display: none; }
@media print {
  body > :not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
  body { background: #fff; color: #000; }
}
.todo ul { list-style: none; padding-left: 0; }
.todo button.link { display: block; text-align: left; min-height: 40px; }
