.voter-home {
  --paper: #f6f9f6;
  --line: #cddbd4;
  --ink: #20352f;
  --muted: #435952;
  --navy: #204638;
  --teal: #316655;
}
.voter-home a { color: #225b48; }
.voter-home a:focus-visible { outline-color: #3a745e; }
.voter-home .masthead { background: #f9fbf9; }
.voter-home .brand { letter-spacing: -.05em; }
.voter-home .brand span { color: #568875; }
.voter-hero {
  margin-block: 1.1rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: end;
  justify-content: space-between;
  background: linear-gradient(115deg, #dceee4 0%, #e5eeeb 65%, #e4eced 100%);
  border: 1px solid #c8dcd1;
  border-radius: 1.45rem;
  padding: clamp(1.2rem, 3.8vw, 2.8rem);
}
.voter-hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.1rem);
  letter-spacing: -.045em;
  color: #203e34;
}
.voter-hero p { margin: .55rem 0 0; font-size: 1.15rem; }
.action { display: inline-flex; align-items: center; padding: .55rem .85rem; border: 1px solid #8dac9d; border-radius: .6rem; font-weight: 700; text-decoration: none; }
.action:hover { text-decoration: underline; }
.voter-home .action-primary { background: #325f50; border-color: #325f50; color: white; }
.voter-home section { border-color: var(--line); padding-block: 1.15rem 1.35rem; }
.voting-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-block: .9rem; }
.voting-card { padding: .85rem 1rem; border: 1px solid #cbd9d1; border-radius: .85rem; background: #fff; }
.voting-card:nth-child(2) { background: #eaf5ef; }
.voting-card:nth-child(3) { background: #eef3f3; }
.voting-card h3 { font-size: 1.05rem; }
.voting-date { font: 600 clamp(1.45rem, 3vw, 2.15rem)/1.2 Georgia, serif; color: var(--navy); margin-block: .35rem; }
.station-status { padding: .75rem 1rem; border: 1px solid #c8dbcf; border-radius: .7rem; background: #e9f2ee; margin-block: .8rem; }
.station-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .8rem; margin-block: .8rem; }
.station-card { border: 1px solid var(--line); border-radius: .8rem; padding: 1rem; background: white; }
.station-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.next-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: .8rem; }
.next-pages > a { display: grid; gap: .15rem; text-decoration: none; padding: .8rem .95rem; border-radius: .65rem; border: 1px solid var(--line); background: white; }
.next-pages > a:hover strong { text-decoration: underline; }
.next-pages span { color: var(--muted); font-size: .94rem; }
.hashtags { color: var(--muted); }
.history-nav { margin-block: 1.3rem; }
.history-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-block: .8rem; }
.history-summary > div { background: #e6f0eb; padding: .8rem 1rem; border-radius: .65rem; }
.history-result caption { text-align: left; }
.history-result td:nth-child(2), .history-result td:nth-child(3), .history-result td:nth-child(4) { text-align: right; white-space: nowrap; }
.history-gov { padding-left: 1.4em; }
.history-gov li { margin-bottom: .5rem; }
.history-change { color: #40594e; font-weight: 650; }
.history-secondary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .8rem; }
.history-secondary article { background: #fff; padding: .85rem 1rem; border-radius: .65rem; border: 1px solid var(--line); }
.history-paging { display: flex; gap: .75rem; align-items: center; margin-block: .8rem; }
.profile-top { margin-block: 1.2rem .8rem; padding: 1rem; background: var(--party-wash); border-radius: .9rem; }
.profile-top h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.profile-top .portrait { inline-size: 7rem; block-size: 7.8rem; }
.profile-title { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
@media (max-width: 700px) {
  .voting-grid, .next-pages, .history-summary { grid-template-columns: 1fr; }
  .voting-card { padding: .75rem .85rem; }
  .voter-home nav { gap: .35rem .85rem; }
}

.voter-landing {
  --paper: #fbfdfc;
  --sky: #bce7ff;
  --sky-border: #71bde6;
  --sky-ink: #104967;
  --green: #bceec3;
  --green-border: #75bc89;
  --green-ink: #0b5330;
  --line: #cbd9ce;
  --ink: #172d28;
  --muted: #38524a;
}
.voter-landing .landing-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(12rem, 29vw, 21rem);
  margin-block: .8rem .55rem;
  border: 1px solid var(--sky-border);
  border-radius: 1.15rem;
  background: var(--sky);
}
.landing-landscape {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 68%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  opacity: .73;
  transform: scaleX(-1);
  mask-image: linear-gradient(270deg, transparent 3%, #000 49%);
}
.landing-intro {
  align-self: end;
  padding: 1rem clamp(.85rem, 3vw, 2rem) 0;
}
.election-label {
  margin: 0 0 .25rem;
  font-size: .9rem;
  font-weight: 750;
  color: var(--sky-ink);
}
.landing-hero h1 {
  margin: 0;
  color: var(--sky-ink);
  font: 600 clamp(2.35rem, 5.2vw, 4rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
}
.landing-hero h1 em { color: var(--green-ink); font-weight: inherit; }
.election-day {
  margin: .4rem 0 0;
  color: var(--sky-ink);
  font-size: clamp(1rem, 2.1vw, 1.3rem);
  font-weight: 650;
}
.election-countdown { margin: .2rem 0 0; color: var(--sky-ink); font-size: .92rem; font-weight: 700; }
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: .4rem;
  padding: .6rem clamp(.85rem, 3vw, 2rem) .9rem;
}
.voter-landing .landing-actions .action {
  min-height: 2.75rem;
  border-radius: 100vw;
  padding: .45rem .8rem;
  font-size: .9rem;
  line-height: 1.2;
  justify-content: center;
  text-align: center;
}
.voter-landing .action-primary { color: var(--green-ink); background: var(--green); border-color: var(--green-border); }
.voter-landing .action-primary:hover { background: #daf6dd; }
.voter-landing .schedule-link { color: var(--sky-ink); border-color: var(--sky-border); background: #f0faff; }
.calendar-options { flex: 0 0 100%; min-width: 0; }
.calendar-options > summary { cursor: pointer; list-style: none; width: fit-content; gap: .55rem; }
.calendar-options > summary::-webkit-details-marker { display: none; }
.calendar-options > summary::after {
  content: ""; width: .43rem; height: .43rem; border: solid currentColor;
  border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg);
}
.calendar-options[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.calendar-panel {
  margin-top: .45rem; padding: .65rem .85rem; width: min(100%, 35rem);
  color: var(--sky-ink); background: #f5fbff; border: 1px solid var(--sky-border); border-radius: .7rem;
}
.calendar-panel p { margin: .1rem 0 .55rem; }
.calendar-panel summary { cursor: pointer; padding: .6rem 0; font-weight: 650; }
.calendar-pair > summary { font-size: 1.1rem; }
.calendar-provider, .calendar-single, .calendar-single-event { border-top: 1px solid var(--line); }
.calendar-provider ol, .calendar-files ul, .calendar-single ul { list-style: none; margin: 0; padding: 0; }
.calendar-single-event ul { display: flex; flex-wrap: wrap; gap: 0 .9rem; }
.calendar-single-event a { display: inline-block; padding-block: .55rem; }
.calendar-provider ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr));
  gap: .45rem;
  margin-bottom: .65rem;
}
.calendar-provider a {
  display: grid;
  align-content: center;
  gap: .1rem;
  min-height: 2.75rem;
  height: 100%;
  padding: .5rem .7rem;
  border: 1px solid var(--sky-border);
  border-radius: .45rem;
  background: white;
  line-height: 1.35;
  text-decoration: none;
}
.calendar-provider a strong { text-decoration: underline; text-underline-offset: .15em; }
.calendar-provider a span { color: var(--muted); font-size: .9rem; }
.calendar-files { border-top: 1px solid var(--line); }
.calendar-files summary { font-size: .9rem; }
.calendar-files a { display: block; width: fit-content; padding-block: .5rem; }
.landing-art {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.landing-caption {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0;
  padding: .55rem clamp(.85rem, 3vw, 2rem);
  background: #f3f9fc;
  color: #354d59;
  font-size: .9rem;
  line-height: 1.45;
}
.landing-caption a { display: inline-block; }
.landing-art:focus-visible { outline-offset: -3px; z-index: 1; }
.landing-artwork {
  position: relative;
  width: 100%;
  aspect-ratio: 1.4;
}
.landing-illustration, .casting-illustration, .shrug-illustration, .toss-illustration, .ballot-question, .ballot-flight, .reaction-art {
  position: absolute;
  bottom: 0;
  display: block;
  width: 100%;
  height: auto;
}
.landing-illustration, .casting-illustration, .shrug-illustration, .toss-illustration {
  opacity: 0;
  transition: opacity .55s ease-in-out;
}
.landing-artwork img.is-current { opacity: 1; }
.reaction-art { visibility: hidden; }
.ballot-question {
  fill: #454339;
  font: bold 46px Georgia, serif;
  pointer-events: none;
  transition: opacity .28s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .landing-artwork.is-reacting .reaction-art { visibility: visible; }
  .landing-artwork.is-reacting :is(.landing-illustration, .shrug-illustration) { visibility: hidden; }
}
.thought-bubble {
  position: absolute;
  top: 3%;
  width: 23%;
  fill: var(--party-accent);
  transform-origin: center bottom;
  transition: fill .4s ease-in-out, opacity .28s ease, transform .35s ease-out;
  filter: drop-shadow(0 1px 1px rgb(22 53 64 / .25));
}
.thought-woman { left: 0; }
.landing-artwork:is([data-phase="cast"], [data-phase="arrive"]) :is(.thought-bubble, .ballot-question),
.landing-artwork[data-phase="wonder"] .thought-man { opacity: 0; }
.landing-artwork:is([data-phase="cast"], [data-phase="arrive"]) .thought-bubble,
.landing-artwork[data-phase="wonder"] .thought-man { transform: translateY(3%) scale(.88); }
.landing-artwork[data-phase="wonder"] .thought-woman .bubble-word { font-size: 30px; }
.thought-man { right: 0; }
.thought-man .bubble-shape { transform: translateX(100%) scaleX(-1); }
.thought-bubble:not([data-reaction]) { fill: #fffaf0; }
.bubble-word {
  fill: #163747;
  font: 800 38px Georgia, serif;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.thought-bubble .speech, [data-reaction="consider"] .bubble-word, [data-reaction="reject"] .cloud { display: none; }
[data-reaction="shrug"] .bubble-word { font: italic 800 17px Georgia, serif; }
.landing-artwork[data-ending="toss"] .thought-bubble { top: 4%; width: 19%; fill: #fff8df; }
.landing-artwork[data-ending="toss"] .thought-woman { left: 2%; }
.landing-artwork[data-ending="toss"] .thought-man { right: 2%; }
.landing-artwork:is([data-phase="toss"], [data-phase="pause"]) :is(.ballot-question, .thought-bubble) { opacity: 0; }
.ballot-flight { pointer-events: none; visibility: hidden; overflow: visible; }
.landing-artwork[data-phase="toss"] .ballot-flight { visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .landing-artwork[data-phase="toss"] .loose-ballot { animation: over-shoulder 1.15s linear both; }
}
@keyframes over-shoulder {
  0% { transform: translate(265px, 287px) rotate(8deg); opacity: 0; }
  13% { opacity: 1; }
  30% { transform: translate(77px, 194px) rotate(-32deg); }
  52% { transform: translate(38px, 121px) rotate(-83deg) scale(.86); }
  72% { transform: translate(-2px, 104px) rotate(-142deg) scale(.73); opacity: 1; }
  100% { transform: translate(-73px, 158px) rotate(-216deg) scale(.44); opacity: 0; }
}
[data-reaction="reject"] .speech { display: inline; }
[data-reaction="reject"] .bubble-word {
  font: italic 800 26px Georgia, serif;
  paint-order: stroke fill;
  stroke: #fffaf0;
  stroke-width: 3px;
  stroke-linejoin: round;
}
@media (prefers-reduced-motion: reduce) {
  .thought-bubble, .landing-illustration, .casting-illustration, .shrug-illustration, .toss-illustration, .ballot-question { transition: none; }
}
.landing-poll {
  margin: 0 0 .85rem;
  padding: .6rem clamp(.55rem, 2vw, 1.1rem) .4rem;
  border: 1px solid var(--sky-border);
  border-radius: .65rem;
  background: #f0faff;
}
.poll-heading, .poll-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .1rem .7rem;
}
.voter-landing main .poll-heading h2 {
  margin: 0;
  color: var(--sky-ink);
  font: 750 1.05rem/1.35 system-ui, sans-serif;
  letter-spacing: normal;
}
.poll-heading h2 span, .poll-date, .poll-foot { color: var(--muted); font-size: .85rem; }
.poll-columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: .45rem 0 .3rem;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #c2d8e3;
}
.poll-columns li {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.poll-columns data {
  margin-bottom: 2px;
  color: #173743;
  font: 700 clamp(.75rem, 1.55vw, .95rem)/1.2 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.poll-column { display: block; width: 52%; max-width: 2.8rem; fill: var(--party-accent); }
.poll-short {
  order: 2;
  width: 100%;
  border-top: 1px solid #8da7b5;
  padding: .2rem 0;
  color: #203d4b;
  text-align: center;
  font: 650 clamp(.75rem, 1.5vw, .9rem)/1.3 system-ui, sans-serif;
  text-decoration: none;
}
.poll-short .narrow-name { display: none; }
@media (max-width: 900px) {
  .poll-short .wide-name { display: none; }
  .poll-short .narrow-name { display: inline; }
}
.poll-party {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.poll-foot details { flex: 1; }
.poll-foot summary { cursor: pointer; width: max-content; }
.poll-foot p { margin: .2rem 0; }
.poll-foot a { color: var(--sky-ink); }
.voter-landing .promise-topics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .2rem 1.5rem;
  margin-block: .75rem 1.25rem;
  padding: .55rem clamp(.8rem, 2vw, 1.25rem);
  border-block: 1px solid var(--line);
}
.voter-landing main .promise-topics h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}
.promise-topics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.promise-topics li a, .voter-landing .masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.promise-topics li a { font-size: 1rem; }
@media (max-width: 700px) {
  .voter-landing .promise-topics {
    display: block;
    padding-block: .75rem .25rem;
  }
  .promise-topics ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    margin-top: .25rem;
    column-gap: .75rem;
  }
  .promise-topics li a {
    width: 100%;
    height: 100%;
    line-height: 1.3;
  }
}
@media (max-width: 560px) {
  .poll-short {
    height: 3.3rem;
    writing-mode: vertical-rl;
    padding: .25rem 0;
    text-align: start;
    display: flex;
    align-items: center;
  }
  .poll-columns data span {
    position: absolute;
    clip-path: inset(50%);
  }
}
.voter-landing .voting-times { border: 0; padding-block-start: 0; }
.voter-landing main h2 { font-size: clamp(1.7rem, 3.4vw, 2.55rem); letter-spacing: -.036em; }
.voter-landing .voting-times h2 { font-size: clamp(1.4rem, 2.9vw, 2rem); }
.voter-landing .voting-grid { gap: .6rem; margin-block: .55rem; }
.voter-landing .voting-card {
  min-width: 0;
  padding: .8rem clamp(.75rem, 1.8vw, 1.2rem);
  color: var(--green-ink);
  border-color: var(--green-border);
  border-radius: .85rem;
  background: var(--green);
}
.voter-landing .voting-card:nth-child(even) { color: var(--sky-ink); border-color: var(--sky-border); background: var(--sky); }
.voter-landing .voting-card h3 { margin: 0; color: inherit; font-size: 1rem; }
.voter-landing .voting-date {
  margin: .35rem 0;
  color: inherit;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1;
  letter-spacing: -.048em;
}
.voter-landing .voting-date span { font-size: .7em; }
.voting-hours { margin: .3rem 0; font-weight: 750; }
.voting-details { margin-top: .35rem; }
.voting-details summary { width: fit-content; padding-block: .25rem; cursor: pointer; font-size: .9rem; font-weight: 650; }
.voting-details summary:hover { text-decoration: underline; }
.voting-details summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.voting-details p { color: var(--ink); }
.voting-details a { color: inherit; }
.voter-landing .station-section { margin-block: .8rem 1rem; }
.station-tools, .station-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; margin-block: .65rem; }
.station-tools button { min-height: 2.75rem; }
.station-filters label { display: grid; gap: .2rem; min-width: 0; font-weight: 650; }
.station-filters p { flex-basis: 100%; margin: 0; color: var(--muted); }
.station-feedback { margin-block: .5rem; font-weight: 650; }
.station-feedback:empty { margin: 0; }
.station-map-frame {
  position: relative;
  isolation: isolate;
  height: clamp(18rem, 44vw, 30rem);
  overflow: hidden;
  border: 1px solid var(--sky-border);
  border-radius: .85rem;
  background: #d9edf3;
}
.station-map-static, .station-map {
  width: 100%;
  height: 100%;
}
.station-map-static {
  position: absolute;
  inset: 0;
  z-index: 2;
  object-fit: contain;
  pointer-events: none;
}
.station-map { z-index: 1; background: #d9edf3; }
.station-map .leaflet-geography-pane { z-index: 150; }
.station-map .leaflet-control-zoom a {
  width: 2.75rem;
  height: 2.75rem;
  line-height: 2.75rem;
}
.station-map-note { color: var(--muted); font-size: .94rem; }
.station-map-note:empty { margin: 0; }
.station-popup { font-size: .9rem; }
.station-popup h3 { margin-bottom: .35rem; }
.leaflet-popup-content .station-popup p { margin: .35rem 0; }
.voter-landing .station-status {
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  border-color: var(--sky-border);
  background: var(--sky);
}
.voter-landing .next-pages > a {
  color: var(--sky-ink);
  background: var(--sky);
  border-color: var(--sky-border);
  padding: .95rem 1.1rem;
  border-radius: .9rem;
}
.voter-landing .next-pages > a:nth-child(even) { color: var(--green-ink); background: var(--green); border-color: var(--green-border); }
@media (max-width: 700px) {
  .voter-landing .landing-hero {
    grid-template-columns: minmax(0, 1fr) clamp(6.5rem, 37vw, 11rem);
    margin-block: .55rem .4rem;
  }
  .landing-intro { padding-top: .65rem; padding-inline-end: .25rem; }
  .landing-hero h1 { font-size: clamp(1.95rem, 8.3vw, 3.5rem); }
  .landing-actions { grid-column: 1 / -1; padding-block: .45rem .6rem; }
  .landing-actions .action { flex: 1 1 0; min-width: 0; }
  .landing-art { grid-row: 1; }
  .landing-caption { grid-row: 2; }
  .landing-landscape {
    width: 100%;
    object-position: right center;
    mask-image: linear-gradient(270deg, transparent 27%, #000 85%);
  }
  .voter-landing .voting-grid { gap: .4rem; }
  .voter-landing .voting-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .15rem .65rem;
    padding-block: .55rem;
  }
  .voter-landing .voting-card h3, .voting-details { grid-column: 1 / -1; }
  .voter-landing .voting-date, .voting-hours, .voting-details { margin: 0; }
  .voting-hours { font-size: .9rem; line-height: 1.25; }
}
