/* [tsai_newsletter] — the newsletter signup under the sponsor note.
   Colors come from the theme palette so it follows light and dark styles. */

.tsai-newsletter {
  margin: 1.5rem auto 0;
  padding: 1.25rem;
  border: 1px solid var(--wp--preset--color--accent-6, currentColor);
  border-radius: 0.75rem;
  text-align: center;
}

.tsai-newsletter__pitch {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--wp--preset--color--contrast, inherit);
}

.tsai-newsletter__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tsai-newsletter__email {
  flex: 1 1 14rem;
  max-width: 22rem;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--wp--preset--color--accent-6, currentColor);
  border-radius: 0.4rem;
  background: var(--wp--preset--color--base, #fff);
  color: var(--wp--preset--color--contrast, inherit);
  font: inherit;
}

.tsai-newsletter__button {
  flex: none;
  cursor: pointer;
}

.tsai-newsletter__more {
  margin: 0.75rem 0 0;
  font-size: var(--wp--preset--font-size--small, 0.9rem);
  color: var(--wp--preset--color--accent-4, inherit);
}

.tsai-newsletter__more a {
  color: var(--wp--preset--color--contrast, inherit);
}

.tsai-newsletter .screen-reader-text,
.tsai-newsletter__hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
