/* Ballot deadline banner — shared by every page; stays pinned to the top while scrolling */
.vote-banner {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 900; /* above page content and headers, below the video overlay */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 18px;
  width: 100%;
  margin: 0;
  padding: 7px 16px;
  background: #c8102e;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  box-sizing: border-box;
}

.vote-banner p { margin: 0; padding: 0; }
.vote-banner__msg strong { font-weight: 800; letter-spacing: .01em; }
.vote-banner__msg span { font-weight: 600; opacity: .95; }
.vote-banner__msg span::before { content: "·"; margin: 0 8px; }

.vote-countdown {
  display: flex;
  gap: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.vote-countdown span { padding: 0 9px; border-left: 1px solid rgba(255,255,255,.55); }
.vote-countdown span:first-child { border-left: 0; padding-left: 0; }
.vote-countdown span:last-child { padding-right: 0; }
.vote-countdown b { font-weight: 800; font-size: 15px; }

/* Keep in-page jump links from landing underneath the pinned banner */
html { scroll-padding-top: 56px; }

/* "overflow-x: hidden" on html/body turns body into a scroll box, which stops
   sticky from working; "clip" trims sideways overflow the same way without that */
@supports (overflow: clip) {
  html, body { overflow-x: clip !important; }
}

@media (max-width: 700px) {
  .vote-banner { font-size: 13px; padding: 6px 12px; }
  .vote-banner__msg span { display: block; }
  .vote-banner__msg span::before { content: none; }
  .vote-countdown b { font-size: 14px; }
  html { scroll-padding-top: 76px; }
}
