/* JRS newsletter popup (Bricks template 15992). Loaded by mu-plugins/jrs-newsletter-popup.php.
   Scoped to .brxe-popup-15992 and .jrs-nl so nothing else on the site is touched. */

.brxe-popup-15992 .brx-popup-content {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  max-width: calc(100vw - 32px);
}

.jrs-nl {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  width: 100%;
}

.jrs-nl__side {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grey);
  padding: 28px 20px;
}
.jrs-nl__cover { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.jrs-nl__cover-link { display: block; line-height: 0; }
.jrs-nl__cover-img {
  display: block;
  width: 140px;
  height: auto;
  border: 1px solid var(--neutral-200, #E0E0E0);
}
.jrs-nl__cover-cap { font-size: var(--text-micro); color: var(--text-mute); text-align: center; }

/* Bricks blocks are flex columns that shrink their children; stretch them instead. */
.jrs-nl__body { padding: 40px 32px 28px; align-items: stretch; }
.jrs-nl__form, .jrs-nl__form form { width: 100%; }
.jrs-nl__label {
  margin: 0 0 8px;
  font-size: var(--text-micro);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.jrs-nl__title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 1.35rem + 0.6vw, 1.75rem);
  line-height: 1.15;
  color: var(--brand-deep);
}
.jrs-nl__lead { margin: 0 0 18px; font-size: var(--text-body); line-height: 1.55; color: var(--text); }
.jrs-nl__small { margin: 10px 0 0; font-size: var(--text-micro); color: var(--text-mute); }

/* The close cross is styled for the black login panel; restate it for white. */
.brxe-popup-15992 .jrs-popup-close { top: 10px; right: 10px; color: var(--text-mute); z-index: 2; }
.brxe-popup-15992 .jrs-popup-close:hover { color: var(--brand-deep); }

/* Form: label kept for screen readers, hidden visually; full-width field and button. */
.jrs-nl__form .jet-form-builder__label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.jrs-nl__form .jet-form-builder-row { margin: 0 0 8px; padding: 0; width: 100%; }
.jrs-nl__form .jet-form-builder__field-wrap { display: block; width: 100%; }
.jrs-nl__form input[type="email"] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #B0B0B0;
  border-radius: 6px;
  background: var(--white);
  font-size: 1rem;
}
.jrs-nl__form .jet-form-builder__action-button-wrapper { display: block; width: 100%; padding: 0; }
.jrs-nl__form .jet-form-builder__action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 16px;
  line-height: 1;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #1F2D20;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.jrs-nl__form .jet-form-builder__action-button:hover { background: var(--brand-mid); color: var(--white); }
.jrs-nl__form .jet-form-builder-messages-wrap { margin-top: 10px; font-size: var(--text-meta); }
.jrs-nl__form .jet-form-builder-message--success { color: var(--brand-deep); font-weight: 600; }

/* Phones: a sheet rising from the bottom, cover as a small thumbnail. */
@media (max-width: 640px) {
  .brxe-popup-15992 { justify-content: flex-end; align-items: stretch; }
  .brxe-popup-15992 .brx-popup-content {
    width: 100%;
    max-width: 100%;
    border-radius: 14px 14px 0 0;
    animation: jrs-sheet-up .25s ease-out;
  }
  .jrs-nl { grid-template-columns: 1fr; }
  .jrs-nl__side { justify-content: flex-start; padding: 22px 56px 0 18px; background: transparent; }
  .jrs-nl__cover { flex-direction: row; justify-content: flex-start; gap: 12px; width: 100%; }
  .jrs-nl__cover-img { width: 64px; }
  .jrs-nl__cover-cap { text-align: left; }
  .jrs-nl__body { padding: 14px 18px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .brxe-popup-15992 .brx-popup-content { animation: none; }
}
