/* Newsletter — signup band/card (site-wide footer + inline placements) and the
 * standalone confirm/manage/unsubscribe pages. Desktop-first; mobile overrides
 * at the bottom (@media max-width:600px), per the project's CSS convention. */

.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;
}

/* honeypot — kept in the layout flow but invisible to humans */
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Signup band ─────────────────────────────────────────────────────────── */
.newsletter { box-sizing: border-box; }
.newsletter-inner { max-width: 720px; margin: 0 auto; padding: 0 20px; }

.newsletter--footer {
  background: #141414;
  border-top: 1px solid #2a2a2a;
  padding: 40px 0;
  color: #eee;
}
.newsletter--inline {
  background: #faf7f4;
  border: 1px solid #ece5df;
  border-radius: 10px;
  padding: 28px 8px;
  margin: 32px 0;
}
/* Inside the newsletter modal: no card chrome (the modal supplies it) and no
   duplicate title (the modal header already shows it). */
.newsletter--modal { background: none; border: none; padding: 0; margin: 0; }
.newsletter--modal .newsletter-inner { padding: 0; max-width: none; }
.newsletter--modal .newsletter-title { display: none; }
.newsletter--modal .newsletter-sub { margin-top: 0; }

.newsletter-title { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.newsletter-sub { margin: 0 0 18px; font-size: 14px; opacity: .8; }

.newsletter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-email {
  flex: 1 1 220px; min-width: 0; height: 44px; padding: 0 14px;
  border: 1px solid #cfcfcf; border-radius: 6px; font-size: 15px; background: #fff; color: #111;
}
.newsletter-lang-wrap { display: inline-flex; }
.newsletter-lang {
  height: 44px; padding: 0 10px; border: 1px solid #cfcfcf; border-radius: 6px;
  font-size: 14px; background: #fff; color: #111; max-width: 160px;
}
.newsletter-submit {
  height: 44px; padding: 0 22px; border: none; border-radius: 6px; cursor: pointer;
  background: #c94f00; color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap;
  -webkit-appearance: none; appearance: none;
}
.newsletter-submit:hover { background: #b04600; }
.newsletter-submit:disabled { opacity: .6; cursor: default; }

.newsletter-cats {
  border: 0; margin: 14px 0 0; padding: 0;
  display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px;
}
.newsletter-cats label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }

.newsletter-consent {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 12px;
  font-size: 13px; opacity: .85; cursor: pointer;
}
.newsletter-consent input { margin-top: 2px; }

.newsletter-status { margin: 12px 0 0; font-size: 14px; }
.newsletter-status.is-ok { color: #2e7d32; }
.newsletter-status.is-error { color: #c62828; }
.newsletter--footer .newsletter-status.is-ok { color: #7fd48a; }
.newsletter--footer .newsletter-status.is-error { color: #ef9a9a; }
.newsletter--footer .newsletter-email,
.newsletter--footer .newsletter-lang { background: #1e1e1e; border-color: #3a3a3a; color: #eee; }

/* ── Standalone pages (confirm / manage / unsubscribe) ───────────────────── */
.nl-page { max-width: 560px; margin: 48px auto; padding: 0 20px; }
.nl-card {
  background: #fff; border: 1px solid #eadfd6; border-radius: 12px; padding: 32px;
}
.nl-card h1 { margin: 0 0 12px; font-size: 24px; }
.nl-card p { margin: 0 0 16px; line-height: 1.6; color: #333; }
.nl-manage-cats { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.nl-manage-cats label { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.nl-manage-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.nl-btn {
  height: 44px; padding: 0 22px; border: none; border-radius: 6px; cursor: pointer;
  background: #c94f00; color: #fff; font-size: 15px; font-weight: 600;
  -webkit-appearance: none; appearance: none; text-decoration: none;
  display: inline-flex; align-items: center;
}
.nl-btn:hover { background: #b04600; }
.nl-btn--ghost { background: transparent; color: #c94f00; border: 1px solid #c94f00; }
.nl-flash { background: #e8f5e9; color: #2e7d32; padding: 10px 14px; border-radius: 6px; margin-bottom: 18px; }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .newsletter--footer { padding: 30px 0; }
  .newsletter--inline { padding: 22px 6px; }
  .newsletter-row { flex-direction: column; }
  .newsletter-email, .newsletter-lang, .newsletter-lang-wrap, .newsletter-submit { width: 100%; max-width: none; }
  /* In a column flex the desktop `flex: 1 1 220px` would treat 220px as the
     field HEIGHT and then stretch it — reset so the 44px height applies. */
  .newsletter-email { flex: none; height: 44px; }
  .newsletter-cats { gap: 12px; }
  .nl-page { margin: 28px auto; }
  .nl-card { padding: 22px; }
}
