.polity-newsletter {
  box-sizing: border-box;
  max-width: 1280px;
  margin: clamp(4rem, 7vw, 6.5rem) auto;
  padding: clamp(2.5rem, 5vw, 4rem);
  color: #212334;
  background: #f4ece4;
}

.polity-newsletter *,
.polity-newsletter *::before,
.polity-newsletter *::after {
  box-sizing: border-box;
}

.polity-newsletter__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.polity-newsletter h2 {
  margin: 0 0 1rem;
  color: #212334;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.05;
}

.polity-newsletter__copy > p:last-child {
  max-width: 38ch;
  margin-bottom: 0;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}

.polity-newsletter__form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(33, 35, 52, 0.2);
  background: #fff;
}

.polity-newsletter__form > label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.polity-newsletter__controls {
  display: flex;
  gap: 0.65rem;
}

.polity-newsletter .polity-newsletter__controls input[type='email'] {
  min-width: 0;
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(33, 35, 52, 0.5);
  border-radius: 0;
  background: #fff;
}

.polity-newsletter .polity-newsletter__controls input[type='email']::placeholder {
  color: rgba(33, 35, 52, 0.45);
  opacity: 1;
}

.polity-newsletter .polity-newsletter__controls button {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.8rem 1.55rem;
  border-radius: 999px;
  background: #b36122;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.polity-newsletter .polity-newsletter__controls button:hover,
.polity-newsletter .polity-newsletter__controls button:focus-visible {
  background: #934a12;
}

.polity-newsletter .polity-newsletter__controls button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.polity-newsletter__privacy,
.polity-newsletter__status {
  margin: 0.8rem 0 0;
  font-size: 0.82rem;
}

.polity-newsletter__privacy {
  color: rgba(33, 35, 52, 0.7);
}

.polity-newsletter__status {
  min-height: 1.35em;
  font-weight: 600;
}

.polity-newsletter__status[data-state='success'] {
  color: #47672f;
}

.polity-newsletter__status[data-state='error'] {
  color: #a13131;
}

.polity-newsletter__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.polity-newsletter-link a,
.wp-block-navigation-item.polity-newsletter-link a {
  padding: 0.35rem 0.1rem !important;
  background: transparent;
  color: #b36122 !important;
  font-weight: 600;
  text-decoration: none !important;
}

.polity-newsletter-link a:hover,
.polity-newsletter-link a:focus-visible {
  background: transparent;
  color: #934a12 !important;
}

@media (max-width: 798px) {
  .polity-newsletter {
    margin: 3rem auto;
    padding: 2rem 1.25rem;
  }

  .polity-newsletter__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .polity-newsletter h2 {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .polity-newsletter__controls {
    flex-direction: column;
  }

  .polity-newsletter .polity-newsletter__controls button {
    width: 100%;
  }
}
