@layer district {
@keyframes vote-rise {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: none; }
}
.vote-finder { position: relative; display: grid; gap: var(--s3); min-width: 0; padding: clamp(20px, 3vw, 32px); border: 2px solid var(--ink); border-radius: var(--r-md); background: var(--surface); scroll-margin-top: calc(var(--header-bar) + var(--s5)); }
.vote-finder-title { font: 700 clamp(1.75rem, 2.6vw, 2.25rem)/1.12 var(--font-action); }
.vote-finder .address-field { max-width: 36rem; }
.vote-locate-row[hidden] { display: none; }
@media (scripting: none) { .vote-finder [data-vote-enhance] { display: none; } }
@media (scripting: enabled) { .vote-finder .vote-nojs { display: none; } }
.vote-locate { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; border: 2px solid var(--ink); border-radius: var(--r-pill); background: var(--ink); color: var(--yellow); font: 700 1.25rem/1.3 var(--font-action); transition: background-color var(--d-hover) var(--ease-out), color var(--d-hover) var(--ease-out); }
.vote-locate svg { flex: none; width: 22px; height: 22px; }
.vote-locate:hover { background: var(--yellow); color: var(--ink); }
.vote-locate:disabled { cursor: wait; opacity: .7; }
.vote-or { margin-top: var(--s3); text-align: center; font: 500 .9375rem/1.4 var(--font-label); }
.vote-nojs, .vote-status { font-size: .9375rem; }
.vote-status { font-weight: 700; }
.vote-status:empty { display: none; }
.vote-finder[data-vote-state="shown"] .vote-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vote-results { display: grid; gap: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.vote-results[hidden] { display: none; }
.vote-lead { font: 500 1.0625rem/1.45 var(--font-label); }
.vote-lead + .vote-links { margin-top: calc(-1 * var(--s2)); padding-top: 0; }
.vote-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--s5); align-items: start; }
.vote-cards.is-even { align-items: stretch; }
.vote-card { --focus: var(--ink); display: flex; flex-direction: column; gap: var(--s2); min-width: 0; padding: var(--s5); border: 2px solid var(--ink); border-radius: var(--r-md); background: var(--yellow); box-shadow: 6px 6px 0 var(--ink); }
.vote-card.is-election-day { background: var(--orange); }
.vote-card-title { font: 700 1.5rem/1.1 var(--font-action); text-transform: uppercase; letter-spacing: .02em; }
.vote-card-when { font: 500 1rem/1.35 var(--font-label); }
.vote-place { display: grid; gap: 2px; margin-top: var(--s2); padding-top: var(--s3); border-top: 2px solid var(--ink); }
.vote-place-tag { font: 600 .875rem/1.3 var(--font-action); text-transform: uppercase; letter-spacing: .04em; }
.vote-place-name { margin-top: var(--s1); font: 700 clamp(1.5rem, 2.2vw, 1.85rem)/1.12 var(--font-action); overflow-wrap: anywhere; }
.vote-place-address { font-weight: 700; }
.vote-place-detail, .vote-place-note, .vote-note { font-size: .9375rem; }
.vote-place-status { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s2); font: 600 .9375rem/1.3 var(--font-action); text-transform: uppercase; letter-spacing: .02em; }
.vote-place-status::before { content: ""; flex: none; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; }
.vote-place-status:is([data-state="open"], [data-state="closing"])::before { background: var(--ink); }
.vote-hours { margin-top: var(--s2); }
.vote-hours > div { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s3); padding-block: 5px; border-bottom: 1px solid var(--ink); font-size: .9375rem; }
.vote-hours dt { font-weight: 700; }
.vote-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.vote-place-note { margin-top: var(--s2); }
.vote-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s5); margin-top: auto; padding-top: var(--s2); }
.vote-directions { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 20px; border: 2px solid var(--ink); border-radius: var(--r-pill); background: var(--ink); color: var(--yellow); font: 700 1.0625rem/1.2 var(--font-action); text-decoration: none; transition: background-color var(--d-hover) var(--ease-out), color var(--d-hover) var(--ease-out); }
.vote-directions:hover { background: var(--surface); color: var(--ink); }
.vote-link { display: inline-flex; align-items: center; min-height: 44px; font: 500 1rem/1.3 var(--font-label); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.vote-link:hover { text-decoration-thickness: 2px; }
.vote-district { padding-top: var(--s3); border-top: 1px solid var(--line); font: 500 1rem/1.45 var(--font-label); }
.vote-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); font-size: .875rem; }
.vote-foot a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.vote-clear { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; border: 0; background: none; font: 700 1.0625rem/1.3 var(--font-action); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 767px) {
.vote-finder { padding: var(--s4); }
.vote-card { padding: var(--s4); box-shadow: 4px 4px 0 var(--ink); }
.vote-hours > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
.vote-results:not([hidden]) > :not(.vote-cards) { animation: vote-rise 320ms var(--ease-out) both; }
.vote-results:not([hidden]) .vote-card { animation: vote-rise 360ms var(--ease-out) both; }
.vote-results:not([hidden]) .vote-card + .vote-card { animation-delay: 90ms; }
}
@media (prefers-reduced-motion: reduce) {
.vote-locate, .vote-directions { transition: none; }
}
@media (forced-colors: active) {
.vote-finder, .vote-card, .vote-directions, .vote-locate { border: 2px solid CanvasText; }
.vote-place-status::before { border-color: CanvasText; }
}
}
