/* Voterinfonet.com — site styles (2026 redesign) */
:root{
  --paper:#f6f7f9;
  --surface:#ffffff;
  --ink:#16213a;
  --muted:#556078;
  --rule:#d7dce5;
  --blue:#1c4f8c;
  --blue-dark:#123a6a;
  --blue-tint:#e7eef7;
  --check:#c8102e;
  --radius:6px;
  --wrap:72rem;
  --font:"Public Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:1.0625rem;line-height:1.6}
img{max-width:100%;height:auto}
a{color:var(--blue);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{color:var(--blue-dark);text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:2px}
h1,h2,h3{line-height:1.15;margin:0 0 .5em;letter-spacing:-.015em}
h1{font-size:clamp(2rem,1.4rem + 2.6vw,3.25rem);font-weight:800}
h2{font-size:clamp(1.375rem,1.2rem + .8vw,1.75rem);font-weight:750}
h3{font-size:1.125rem;font-weight:700}
p{margin:0 0 1em}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1rem}
@media (min-width:768px){.wrap{padding:0 2rem}}
.skip{position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;padding:.5rem 1rem;z-index:10}
.skip:focus{left:1rem}

/* Header */
.site-head{background:var(--surface);border-bottom:1px solid var(--rule)}
.site-head .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4rem}
.brand{display:flex;align-items:center;gap:.6rem;color:var(--ink);text-decoration:none;font-weight:800;font-size:1.2rem;letter-spacing:-.02em}
.brand:hover{color:var(--ink)}
.brand img{width:36px;height:35px}
.brand small{display:block;font-weight:400;font-size:.8rem;color:var(--muted);letter-spacing:0}
.site-nav{display:flex;gap:.25rem}
.site-nav a{color:var(--ink);text-decoration:none;font-weight:600;font-size:.95rem;padding:.5rem .75rem;border-radius:var(--radius)}
.site-nav a:hover{background:var(--blue-tint);color:var(--blue-dark)}
@media (max-width:420px){.brand small{display:none}.brand{font-size:1.05rem}.site-nav a{padding:.5rem .5rem}}

/* Public records search band */
.records{background:var(--ink);color:#fff}
.records .wrap{padding-top:1.1rem;padding-bottom:1.25rem}
.rs-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem 1rem;margin-bottom:.75rem}
.rs-head h2{font-size:1.125rem;margin:0;letter-spacing:0}
.rs-head p{margin:0;color:#c5cddc;font-size:.95rem}
.rs-fields{display:grid;gap:.6rem;grid-template-columns:1fr 1fr}
.rs-fields label{display:block;font-size:.8rem;font-weight:600;color:#c5cddc;margin-bottom:.2rem}
.rs-fields input,.rs-fields select{width:100%;font:inherit;font-size:1rem;padding:.6rem .7rem;border:1px solid #3b4866;border-radius:var(--radius);background:#fff;color:var(--ink);min-height:2.75rem}
.rs-fields button{grid-column:1/-1;align-self:end}
@media (min-width:900px){.rs-fields{grid-template-columns:1fr 1fr 1fr 11rem auto}.rs-fields button{grid-column:auto}}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font:inherit;font-weight:700;font-size:1rem;min-height:2.75rem;padding:.6rem 1.2rem;border-radius:var(--radius);border:2px solid var(--blue);background:var(--blue);color:#fff;text-decoration:none;cursor:pointer}
.btn:hover{background:var(--blue-dark);border-color:var(--blue-dark);color:#fff}
.records .btn{background:#fff;color:var(--ink);border-color:#fff}
.records .btn:hover{background:var(--blue-tint);border-color:var(--blue-tint);color:var(--ink)}
.btn.ghost{background:transparent;color:var(--blue)}
.btn.ghost:hover{background:var(--blue-tint);color:var(--blue-dark)}

main{display:block;padding:2.5rem 0 3.5rem}

/* Home */
.hero{max-width:54rem;margin-bottom:2rem}
.hero p{max-width:44rem}
.hero p{font-size:1.15rem;color:var(--muted)}
.finder{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;margin:0 0 1.25rem}
.finder label{font-weight:700}
.finder input{font:inherit;font-size:1rem;padding:.6rem .8rem;border:2px solid var(--rule);border-radius:var(--radius);min-height:2.75rem;width:min(100%,18rem);background:#fff;color:var(--ink)}
.finder input:focus{border-color:var(--blue);outline:none;box-shadow:0 0 0 3px var(--blue-tint)}
.finder output{color:var(--muted);font-size:.95rem}

/* The ballot: state list styled as ballot choices */
.ballot{list-style:none;margin:0;padding:0;background:var(--surface);border:1px solid var(--rule);border-top:4px solid var(--ink);border-radius:var(--radius);columns:1;column-gap:0}
@media (min-width:360px){.ballot{columns:2}}
@media (max-width:559px){.ballot .ab{display:none}.ballot a{padding:.7rem .75rem;gap:.6rem;font-size:.98rem}}
@media (min-width:900px){.ballot{columns:3}}
@media (min-width:1150px){.ballot{columns:4}}
.ballot li{break-inside:avoid;border-bottom:1px solid #eceff4}
.ballot a{display:flex;align-items:center;gap:.85rem;padding:.7rem 1rem;color:var(--ink);text-decoration:none;font-weight:600}
.ballot .box{flex:none;width:1.4rem;height:1.4rem;border:2px solid var(--ink);border-radius:2px;background:#fff;position:relative}
.ballot .box::after{content:"";position:absolute;left:-.1rem;top:-.45rem;width:1.75rem;height:1.75rem;background:var(--check);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13.2 9 19 21.5 3.5' fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13.2 9 19 21.5 3.5' fill='none' stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  clip-path:inset(0 100% 0 0);transition:clip-path .22s ease-out}
.ballot a:hover .box::after,.ballot a:focus-visible .box::after{clip-path:inset(0 0 0 0)}
.ballot a:hover,.ballot a:focus-visible{background:var(--blue-tint)}
.ballot .ab{margin-left:auto;color:var(--muted);font-weight:500;font-size:.85rem;font-variant-numeric:tabular-nums}
.ballot li[hidden]{display:none}
.empty{padding:1rem;color:var(--muted);margin:0}

.about{display:grid;gap:2rem;margin-top:3rem;padding-top:2rem;border-top:1px solid var(--rule)}
@media (min-width:900px){.about{grid-template-columns:1fr 1fr}}
.about p{color:var(--muted);max-width:38rem}

/* State pages */
.crumbs{font-size:.9rem;margin-bottom:1rem;color:var(--muted)}
.crumbs a{color:var(--muted)}
.state-head p{color:var(--muted);margin:0}
.actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.5rem 0 2.5rem}
.layout{display:grid;gap:2.5rem}
@media (min-width:1000px){.layout{grid-template-columns:minmax(0,1fr) 20rem;grid-template-rows:auto 1fr;gap:1.25rem 3.5rem;align-items:start}.layout>.content{grid-column:1;grid-row:1 / span 2}.layout>.glance-panel{grid-column:2;grid-row:1}.layout>.side{grid-column:2;grid-row:2}}
.steps{list-style:none;margin:0;padding:0;counter-reset:step}
.steps>li{counter-increment:step;position:relative;padding:0 0 2rem 3.25rem;max-width:42rem}
.steps>li::before{content:counter(step);position:absolute;left:0;top:-.1rem;width:2.1rem;height:2.1rem;display:grid;place-items:center;border:2px solid var(--ink);border-radius:2px;font-weight:800;background:#fff}
.steps>li:not(:last-child)::after{content:"";position:absolute;left:1rem;top:2.3rem;bottom:.4rem;border-left:2px solid var(--rule)}
.steps h2{font-size:1.4rem;margin-bottom:.4rem}
.steps h3{margin:1.25rem 0 .25rem}
.links{list-style:none;padding:0;margin:.5rem 0 0}
.links li{margin:.35rem 0}
.links a{font-weight:600}
.ext::after{content:"";display:inline-block;width:.7em;height:.7em;margin-left:.3em;background:currentColor;vertical-align:-.02em;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 1.5h6v6M10.5 1.5 4 8M8.5 7.5v3h-7v-7h3' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 1.5h6v6M10.5 1.5 4 8M8.5 7.5v3h-7v-7h3' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat}
.note h2{font-size:1.25rem}
.records-box{max-width:42rem;margin:.5rem 0 1.25rem}
.records-box h2{font-size:1.25rem}
.records-box p{margin-bottom:.6rem}
.note{background:var(--surface);border:1px solid var(--rule);border-left:4px solid var(--blue);border-radius:var(--radius);padding:1rem 1.25rem;max-width:42rem;margin-top:.5rem}
.note p:last-child{margin:0}

.side{display:grid;gap:1.25rem}
.panel{background:var(--surface);border:1px solid var(--rule);border-radius:var(--radius);padding:1.25rem}
.panel h2{font-size:1.1rem;margin-bottom:.75rem}
.glance{margin:0;display:grid;gap:0}
.glance div{display:flex;justify-content:space-between;gap:1rem;padding:.55rem 0;border-top:1px solid #eceff4}
.glance div:first-child{border-top:0;padding-top:0}
.glance dt{color:var(--muted);font-size:.95rem}
.glance dd{margin:0;font-weight:700;text-align:right}
.jump label{display:block;font-weight:700;margin-bottom:.4rem}
.jump select{width:100%;font:inherit;padding:.6rem .7rem;min-height:2.75rem;border:2px solid var(--rule);border-radius:var(--radius);background:#fff;color:var(--ink)}

/* 2024 results panel */
.results{--rep:#b3263a;--dem:#2a5aa8;--oth:#9aa3b2}
.res-total{margin:0 0 .8rem;font-size:.98rem}
.res-total strong{font-size:1.35rem;font-weight:800;font-variant-numeric:tabular-nums}
.res-bar{display:flex;height:.7rem;border-radius:2px;overflow:hidden;background:#eceff4;margin-bottom:.9rem}
.res-bar .rep{background:var(--rep)}.res-bar .dem{background:var(--dem)}.res-bar .oth{background:var(--oth)}
.res{margin:0}
.res-row{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding:.65rem 0;border-top:1px solid #eceff4}
.res dt{font-weight:600}
.res-party,.res-pct,.res-sub{display:block}
.res-party{white-space:nowrap}
.res-sub{font-weight:400;color:var(--muted);font-size:.82rem;line-height:1.35;margin-top:.15rem}
.res dt .res-sub{padding-left:1.1rem}
.res-pct{font-size:1.05rem;line-height:1.3}
.res dd{margin:0;text-align:right;white-space:nowrap;font-weight:700;font-variant-numeric:tabular-nums}
.sw{display:inline-block;width:.7rem;height:.7rem;border-radius:2px;margin-right:.4rem;vertical-align:.05em}
.sw.rep{background:var(--rep)}.sw.dem{background:var(--dem)}.sw.oth{background:var(--oth)}
.res-src{margin:.75rem 0 0;font-size:.82rem;color:var(--muted)}
.res-src a{color:var(--muted)}

/* Plain content pages */
.prose{max-width:42rem}
.prose h2{margin-top:2rem}
.form{display:grid;gap:1rem;max-width:32rem;margin-top:1.5rem}
.form label{display:block;font-weight:700;margin-bottom:.3rem}
.form input,.form textarea{width:100%;font:inherit;padding:.65rem .75rem;border:2px solid var(--rule);border-radius:var(--radius);background:#fff;color:var(--ink);min-height:2.75rem}
.form input:focus,.form textarea:focus{border-color:var(--blue);outline:none;box-shadow:0 0 0 3px var(--blue-tint)}
.form textarea{min-height:10rem;resize:vertical}
.form .btn{justify-self:start}
.hint{color:var(--muted);font-weight:400;font-size:.9rem}

/* Footer */
.site-foot{background:var(--surface);border-top:1px solid var(--rule);font-size:.92rem;color:var(--muted)}
.site-foot .wrap{padding-top:1.75rem;padding-bottom:2rem;display:grid;gap:1rem}
@media (min-width:768px){.site-foot .wrap{grid-template-columns:1fr auto;align-items:start}}
.site-foot p{margin:0;max-width:40rem}
.site-foot nav{display:flex;gap:1.25rem}
.site-foot a{color:var(--ink);font-weight:600}

@media print{.records,.site-nav,.jump,.actions{display:none}body{background:#fff}}

/* Contact page */
.ct-vote{padding-top:2.5rem;padding-bottom:3.5rem;max-width:46rem}
.ct-vote .ct-lede{font-size:1.15rem;color:var(--muted);margin:0 0 1.75rem}
.ct-ballot{background:var(--surface);border:1px solid var(--rule);border-top:6px solid var(--ink);border-radius:var(--radius);padding:0 1.25rem 1.5rem;margin-bottom:1.5rem}
.ct-bh{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.25rem 1rem;margin:0 -1.25rem 1rem;padding:.6rem 1.25rem;background:var(--blue-tint);border-bottom:1px solid var(--rule);font-size:.8rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.ct-bh span+span{color:var(--muted);font-weight:600;letter-spacing:.04em}
.ct-opts{list-style:none;margin:0;padding:0}
.ct-opts li{display:flex;gap:.9rem;padding:.85rem 0;border-bottom:1px dashed var(--rule)}
.ct-opts .box{flex:none;width:1.4rem;height:1.4rem;margin-top:.15rem;border:2px solid var(--ink);border-radius:2px;background:#fff}
.ct-opts p{margin:.15rem 0 0;color:var(--muted);font-size:.97rem}
.ct-act{margin:1.4rem 0 0}
.mail-link{cursor:pointer}
.mail-reveal{display:block;margin:.85rem 0 0;font-size:.95em;overflow-wrap:anywhere}
.mail-reveal[hidden]{display:none}
