/* ========================================================================
 * Gale for Wasaga: online-voting strip (site-wide) + homepage band.
 * Loaded site-wide by functions/_middleware.js; dates/copy driven by
 * /vote-online.js, kept in lockstep with functions/_middleware.js.
 * ====================================================================== */

.vote-strip[hidden],
.vote-band[hidden] {
  display: none;
}

html[data-vote-strip-dismissed="pre"] .vote-strip[data-state="pre"],
html[data-vote-strip-dismissed="open"] .vote-strip[data-state="open"] {
  display: none;
}

/* ---------- Site-wide strip ---------- */
.vote-strip {
  background: var(--navy-deep, #0E2250);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 12px;
  font-family: var(--font-head, "Barlow Condensed", sans-serif);
  font-weight: 600;
  font-size: .95rem;
}

.vote-strip-inner {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  text-align: center;
}

.vote-strip-link {
  color: var(--gold, #F5B71F);
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-weight: 700;
}

.vote-strip-link:hover {
  color: #fff;
}

.vote-strip-close {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.vote-strip-link:focus-visible,
.vote-strip-close:focus-visible {
  outline: 3px solid var(--gold, #F5B71F);
  outline-offset: 2px;
}

/* ---------- Homepage band ---------- */
.vote-band {
  width: 100%;
  background: linear-gradient(135deg, #FFF8E1 0%, #FFE9A8 100%);
  border-top: 2px solid var(--gold, #F5B71F);
  border-bottom: 2px solid var(--gold, #F5B71F);
  padding: 22px 0;
}

.vote-band-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
}

.vote-band-text {
  margin: 0;
  color: var(--navy-deep, #0E2250);
  font-family: var(--font-head, "Barlow Condensed", sans-serif);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.2vw + .7rem, 1.35rem);
  line-height: 1.35;
  max-width: 60ch;
}

.vote-band-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: var(--navy, #16306E);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font: 700 1rem var(--font-head, "Barlow Condensed", sans-serif);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  flex-shrink: 0;
}

.vote-band-cta:hover {
  background: #fff;
  color: var(--navy, #16306E);
  box-shadow: 0 0 0 2px var(--navy, #16306E) inset;
}

.vote-band-cta:focus-visible {
  outline: 3px solid var(--maple-red, #C41E2A);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .vote-band {
    padding: 18px 0;
  }
  .vote-band-row {
    flex-direction: column;
    align-items: stretch;
  }
  .vote-band-cta {
    justify-content: center;
  }
}
