/* Newsletter popup (shared with home styling) */
.newsletter .sib-form { text-align: left; background: transparent !important; padding: 0 !important; }
.newsletter .sib-form-container,
.newsletter #sib-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  max-width: none !important;
  padding: 0 !important;
}
.newsletter .sib-form-block { padding: 0 !important; }
.newsletter .sib-input,
.newsletter .sib-optin,
.newsletter .sib-form-block:has(.sib-form-block__button) { margin: 0 0 0.75rem; }
.newsletter .sib-input .form__label-row {
  display: flex; flex-direction: column; align-items: stretch; gap: 0.35rem;
}
.newsletter .sib-input .form__label-row > label[for="EMAIL"] {
  margin: 0; font-weight: 700; font-size: 0.9rem; color: #2A0E45;
}
.newsletter .entry__field { width: 100% !important; flex: none !important; }
.newsletter #EMAIL,
.newsletter .sib-input .input {
  width: 100% !important; box-sizing: border-box !important;
  border-radius: 12px !important; padding: 0.8rem 1rem !important;
  font: inherit !important; background: #fff !important;
  border: 1.5px solid rgba(42, 14, 69, 0.22) !important;
  color: #1A0A2E !important;
}
.newsletter .sib-optin label {
  display: flex; gap: 0.55rem; align-items: flex-start;
  font-size: 0.85rem; color: rgba(42, 14, 69, 0.72); cursor: pointer;
}
.newsletter .sib-optin label p { margin: 0; color: inherit; font: inherit; display: inline; }
.newsletter .sib-optin .entry__specification { font-size: 0.78rem; color: rgba(42, 14, 69, 0.5); }
.newsletter .sib-form-block__button {
  appearance: none; border: none; border-radius: 999px !important;
  padding: 0.75rem 1.35rem !important; font: inherit !important; font-weight: 700 !important;
  background: var(--brand-core) !important; color: #fff !important; cursor: pointer;
}
.newsletter .sib-form-block__button:hover { background: var(--brand) !important; }
.newsletter .sib-form-message-panel { border-radius: 12px; margin-bottom: 0.75rem; }
.newsletter .input--hidden { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter .note { margin: 0.5rem 0 0; font-size: 0.85rem; color: rgba(42, 14, 69, 0.55); }

.newsletter-popup {
  border: none; padding: 0; max-width: min(40rem, calc(100vw - 1.5rem));
  width: 100%; background: transparent; color: #2A0E45; margin: auto;
}
.newsletter-popup::backdrop {
  background: rgba(20, 8, 36, 0.55);
  backdrop-filter: blur(8px);
}
.newsletter-popup__panel {
  position: relative;
  background: linear-gradient(165deg, #FFFFFF 0%, #FBF7FE 55%, #F3EBFA 100%);
  border: 1px solid rgba(42, 14, 69, 0.12);
  border-radius: 20px;
  padding: 1.5rem 1.35rem 1.35rem;
  max-height: min(88vh, 40rem);
  overflow: auto;
  box-shadow: 0 24px 64px rgba(42, 14, 69, 0.22);
  color: #2A0E45;
}
.newsletter-popup__close {
  position: absolute; top: 0.65rem; right: 0.65rem;
  width: 2.25rem; height: 2.25rem; border-radius: 999px;
  border: 1px solid rgba(42, 14, 69, 0.16);
  background: rgba(122, 52, 180, 0.08); color: #2A0E45;
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.newsletter-popup__close:hover { background: rgba(122, 52, 180, 0.16); }
.newsletter-popup .newsletter {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
  padding: 0; border: none; background: transparent; color: #2A0E45;
}
.newsletter-popup .section-label {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-core); margin: 0 0 0.5rem;
}
.newsletter-popup .newsletter h2 {
  font-size: clamp(1.35rem, 4vw, 1.75rem); margin: 0; color: #2A0E45;
  font-family: var(--display); font-weight: 700; line-height: 1.2;
}
.newsletter-popup .newsletter .lede {
  font-size: 0.95rem; margin: 0.5rem 0 0; color: rgba(42, 14, 69, 0.72);
}
.newsletter-popup .newsletter ul {
  color: rgba(42, 14, 69, 0.78); margin: 0.75rem 0 0; padding-left: 1.1rem;
}
.newsletter-popup .newsletter ul li::marker { color: var(--brand-core); }
.emoji-inline { display: inline-block; width: 0.95em; height: 0.95em; vertical-align: -0.12em; margin-left: 0.1em; }

@media (max-width: 560px) {
  .newsletter-popup {
    max-width: calc(100vw - 1rem);
    margin: max(0.5rem, env(safe-area-inset-top, 0px)) auto max(0.5rem, env(safe-area-inset-bottom, 0px));
  }
  .newsletter-popup__panel {
    padding: 2.35rem 1.05rem 1.15rem;
    border-radius: 16px;
    max-height: min(90dvh, 40rem);
  }
  .newsletter-popup__close {
    top: max(0.5rem, env(safe-area-inset-top, 0px));
    right: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  .newsletter-popup .newsletter h2 {
    font-size: clamp(1.2rem, 5.8vw, 1.45rem);
    padding-right: 1.75rem;
  }
  .newsletter-popup .newsletter .lede { font-size: 0.9rem; }
  .newsletter-popup .newsletter ul {
    font-size: 0.9rem;
    padding-left: 1rem;
  }
  .newsletter .sib-form-block__button {
    width: 100% !important;
  }
}