/* ============================================================================
   LWW Newsletter: the "Stay Updated" band shown above the footer on every
   page, and the confirm/unsubscribe message page. Loaded site-wide.
   ========================================================================== */

:root {
  --lnw-navy: #162b51;
  --lnw-blue: #1e73be;
  --lnw-blue-hover: #1560a0;
  --lnw-cyan: #8fd9fb;
}

/* ---- Honeypot: visually gone, still in the DOM for bots ------------------ */
.lnw-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Accessible-only labels (the theme has no .screen-reader-text rule) -- */
.lnw-form .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ============================================================================
   Band: text left, pill form right; sits directly above the footer
   ========================================================================== */
/* Flat light blue with an even dot grid across the whole band. */
.lnw-band {
  padding: 52px 0;
  margin: 48px 0 0;
  background-color: #c9dff3;
  background-image: radial-gradient(rgba(30, 115, 190, 0.15) 1.2px, transparent 1.6px);
  background-size: 18px 18px;
}
/* Stick the band to the footer: the theme gives .lww-footer a 48px top
   margin and #page-wrapper a viewport min-height, and either one opens a
   gap between the band (last thing in #page-wrapper) and the footer. */
body:has(.lnw-band) .lww-footer {
  margin-top: 0;
}
body:has(.lnw-band) #page-wrapper {
  min-height: 0;
}
.lnw-band {
  margin-bottom: 0;
}
.lnw-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.lnw-band__text {
  flex: 1 1 auto;
  min-width: 0;
}
.lnw-band__title {
  color: var(--lnw-navy);
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
}
.lnw-band__sub {
  color: #41546e;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}
.lnw-band__form {
  flex: 0 1 460px;
  min-width: 320px;
}
.lnw-band__privacy {
  color: #4a5f78;
  font-size: 12px;
  margin: 10px 0 0; /* starts at the left edge of the email field (1.6.3) */
}
.lnw-band__privacy a {
  color: var(--lnw-blue);
  text-decoration: underline;
}

/* ---- Pill form -------------------------------------------------------------
   A fully rounded pill: email field inside, circular arrow button on the
   right edge. */
.lnw-form__row {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d6e6f5;
  border-radius: 6px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 10px 30px rgba(22, 43, 81, 0.12);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.lnw-form__email {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 10px 12px 0;
  font-size: 15px;
  font-weight: 400;
  font-family: inherit;
  color: var(--lnw-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Semi-bold gray renders with uneven stroke weights on Windows; regular
   weight stays even. */
.lnw-form__email::placeholder {
  color: #6b7f96;
  font-weight: 400;
  opacity: 1;
}
.lnw-form__submit {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lnw-blue);
  color: #fff;
  transition: background 0.2s, transform 0.15s;
}
.lnw-form__submit:hover {
  background: var(--lnw-blue-hover);
  transform: translateX(2px);
}
.lnw-form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}
.lnw-form__row:focus-within {
  border-color: rgba(30, 115, 190, 0.45);
  box-shadow: 0 10px 30px rgba(22, 43, 81, 0.12), 0 0 0 4px rgba(30, 115, 190, 0.15);
}

.lnw-form__msg {
  font-size: 14px;
  font-weight: 600;
  margin: 12px 0 0; /* same left edge as the field and the privacy note */
}
.lnw-form__msg:empty { display: none; }
.lnw-form__msg.is-ok { color: #1a7a36; }
.lnw-form__msg.is-error { color: #c62828; }

/* ============================================================================
   Mobile band
   ========================================================================== */
@media (max-width: 860px) {
  .lnw-band__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
  .lnw-band__form {
    flex: 1 1 auto;
    min-width: 0;
  }
}
@media (max-width: 560px) {
  .lnw-band { padding: 36px 0; }
  /* Wider side gutter than the theme's 16px .container: the band is edge to edge. */
  .lnw-band .lnw-band__inner { padding-left: 24px; padding-right: 24px; }
  .lnw-band__title { font-size: 26px; }
  .lnw-band__sub { font-size: 14px; }
  .lnw-form__row { padding-left: 16px; }
}

/* ============================================================================
   Confirm / unsubscribe message page
   ========================================================================== */
.lnw-message-page {
  display: flex;
  justify-content: center;
  padding: 64px 0 32px;
}
.lnw-message-card {
  max-width: 480px;
  width: 100%;
  background: #fff;
  border: 1px solid #e3eaf2;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(22, 43, 81, 0.08);
  padding: 40px 32px;
  text-align: center;
}
.lnw-message-card__icon { color: #2eaf5f; margin-bottom: 12px; }
.lnw-message-card--error .lnw-message-card__icon { color: #d64545; }
.lnw-message-card__title {
  font-size: 24px;
  color: var(--lnw-navy);
  margin: 0 0 10px;
}
.lnw-message-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: #41546e;
  margin: 0 0 24px;
}
.lnw-message-card__btn {
  display: inline-block;
  background: var(--lnw-blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 6px;
  transition: background 0.2s;
}
.lnw-message-card__btn:hover {
  background: var(--lnw-blue-hover);
  color: #fff;
}
