/* NutrientLabel — newsletter component
   Uses the site's existing tokens from app.css; safe standalone because the
   fallbacks below match those values. */

.nl-wrap {
  margin: 56px 0 8px;
  padding: 28px 26px;
  background: var(--paper-2, #F4EDE1);
  border: 1px solid var(--line, #E7DBC9);
  border-radius: var(--r-lg, 16px);
}

.nl-form { margin: 0; }

.nl-kicker {
  margin: 0 0 6px;
  font: 600 11px/1.4 Inter, system-ui, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--clay, #A8402A);
}

.nl-h {
  margin: 0 0 8px;
  font: 600 22px/1.28 Inter, system-ui, sans-serif;
  color: var(--ink, #17130E);
}

.nl-sub {
  margin: 0 0 18px;
  font: 400 15px/1.6 Inter, system-ui, sans-serif;
  color: var(--ink-2, #4E453B);
  max-width: 58ch;
}

.nl-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.nl-row input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 13px 14px;
  font: 400 15px/1.2 Inter, system-ui, sans-serif;
  color: var(--ink, #17130E);
  background: var(--card, #FFFFFF);
  border: 1px solid var(--line, #E7DBC9);
  border-radius: var(--r-sm, 8px);
}

.nl-row input[type="email"]:focus {
  outline: none;
  border-color: var(--forest, #1E4D3B);
  box-shadow: 0 0 0 3px rgba(30, 77, 59, .12);
}

.nl-row button {
  flex: 0 0 auto;
  padding: 13px 22px;
  font: 600 15px/1.2 Inter, system-ui, sans-serif;
  color: #fff;
  background: var(--forest, #1E4D3B);
  border: 0;
  border-radius: var(--r-sm, 8px);
  cursor: pointer;
}

.nl-row button:hover { background: var(--forest-2, #2C6A51); }

.nl-consent {
  display: block;
  margin: 12px 0 0;
  font: 400 12.5px/1.5 Inter, system-ui, sans-serif;
  color: var(--ink-3, #6D6256);
}

.nl-consent input { margin-right: 6px; vertical-align: -1px; }

.nl-fine {
  margin: 8px 0 0;
  font: 400 12px/1.5 Inter, system-ui, sans-serif;
  color: var(--ink-3, #6D6256);
}

/* honeypot: present in the DOM, invisible to people, filled by bots */
.nl-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

/* post-submit state, toggled by the optional JS in the snippet */
.nl-form.is-sent .nl-row,
.nl-form.is-sent .nl-consent { display: none; }

.nl-done {
  display: none;
  padding: 14px 16px;
  font: 500 15px/1.5 Inter, system-ui, sans-serif;
  color: var(--forest, #1E4D3B);
  background: var(--forest-tint, #EAF1EC);
  border: 1px solid #CFE0D4;
  border-radius: var(--r-sm, 8px);
}

.nl-form.is-sent .nl-done { display: block; }

@media (max-width: 560px) {
  .nl-wrap { padding: 22px 18px; margin-top: 40px; }
  .nl-h { font-size: 19px; }
  .nl-row button { width: 100%; }
}

/* inline error state (native /api/subscribe returns 429 or 5xx) */
.nl-form.is-error .nl-done {
  display: block;
  color: #A4442E;
  background: #FBEDE8;
  border-color: #EFC8BC;
}
