.hero-poll-link {
  margin-top: 1.3rem;
  padding: 0.55rem 0.9rem;
  display: inline-flex;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  text-shadow: none;
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 300ms ease, background-color 300ms ease;
}

.hero-poll-link:hover,
.hero-poll-link:focus-visible {
  background: var(--white);
  transform: translateY(-0.2rem);
}

.home-poll-shell {
  width: min(calc(100% - 3rem), 68rem);
  margin: clamp(-3rem, -4vw, -1.5rem) auto clamp(4rem, 6vw, 5.5rem);
  display: flex;
  justify-content: flex-start;
}

.home-poll {
  width: calc(50% - 0.5rem);
  padding: clamp(1.5rem, 3.2vw, 2.3rem);
  background: var(--sage);
  border: 1px solid #cbd8cd;
  border-radius: 0.75rem;
  box-shadow: 0 0.9rem 2rem rgba(23, 63, 52, 0.08);
  scroll-margin-top: 6rem;
}

.home-poll header > p {
  margin-bottom: 0.15rem;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 850;
}

.home-poll h2 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  line-height: 1.2;
}

.home-poll header > span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.home-poll fieldset {
  margin: 1.4rem 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  border: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-poll label {
  position: relative;
  min-height: 3.7rem;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.home-poll input {
  position: absolute;
  opacity: 0;
}

.home-poll label span {
  width: 100%;
  height: 100%;
  padding: 0.8rem 0.85rem;
  display: flex;
  align-items: center;
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid #bdcdbf;
  border-radius: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
  transition: transform 250ms ease, border-color 250ms ease, background-color 250ms ease;
}

.home-poll label:hover span {
  border-color: var(--ink);
  transform: translateY(-0.15rem);
}

.home-poll input:focus-visible + span {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.home-poll input:checked + span {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.home-poll button[type="submit"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0.4rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.home-poll button[type="submit"]:disabled {
  color: #7b8e87;
  background: #edf1eb;
  border-color: #cbd5cc;
  cursor: not-allowed;
}

.home-poll button[type="submit"]:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.poll-status {
  margin: 1.5rem 0 0.6rem;
  padding: 1rem;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.75);
  border-radius: 0.45rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
}

.poll-status.is-error {
  color: #7a3428;
  background: #f7d7ce;
}

.poll-results {
  margin-top: 1.25rem;
  padding: 1.1rem;
  background: rgba(255, 253, 247, 0.78);
  border: 1px solid #bdcdbf;
  border-radius: 0.55rem;
}

.poll-results[hidden] {
  display: none;
}

.poll-results header > p {
  margin-bottom: 0.05rem;
  color: var(--coral);
  font-size: 0.68rem;
  font-weight: 850;
}

.poll-results h3 {
  margin-bottom: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.poll-results header > span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.poll-results ol {
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.78rem;
  list-style: none;
}

.poll-results li > div:first-child {
  margin-bottom: 0.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
}

.poll-results li.is-selected > div:first-child {
  color: var(--ink);
  font-weight: 850;
}

.poll-results li small {
  margin-inline-start: 0.25rem;
  padding: 0.12rem 0.35rem;
  color: #73483d;
  background: #f7d7ce;
  border-radius: 999px;
  font-size: 0.58rem;
  white-space: nowrap;
}

.poll-result-bar {
  height: 0.65rem;
  overflow: hidden;
  background: #dce5dc;
  border-radius: 999px;
}

.poll-result-bar > span {
  height: 100%;
  display: block;
  background: var(--gold);
  border-radius: inherit;
  transition: width 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.poll-results li.is-selected .poll-result-bar > span {
  background: var(--coral);
}

.poll-results-updated {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 0.62rem;
}

.poll-results-error {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.poll-privacy {
  margin: 1.1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .home-poll-shell {
    width: min(calc(100% - 1.5rem), 42rem);
  }

  .home-poll {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-poll-link,
  .home-poll label span,
  .poll-result-bar > span {
    transition: none;
  }
}
