/* Keep the signup available in the sticky navigation at every screen size. */
.nav-links { align-items: center; }
.nav-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  padding: 7px 13px;
  white-space: nowrap;
}
.nav-subscribe svg { flex-shrink: 0; }
.nav-subscribe:hover { border-color: var(--ink); }
@media (max-width: 640px) {
  .nav-links a:not(.nav-subscribe) { display: none; }
}

/* Match the newsletter popover on the research homepage. */
.sub-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sub-modal[hidden] { display: none; }
.sub-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 18, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.sub-modal__panel {
  position: relative;
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 24px 64px -24px rgba(0, 0, 0, 0.4);
}
.sub-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: var(--fg-3);
  background: #fff;
  border: 1px solid var(--border-1);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
}
.sub-modal__close:hover { color: var(--fg-1); border-color: var(--border-strong); }
.sub-modal__frame {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 8px;
  background: #fff;
}
.sub-modal__alt {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
  color: var(--fg-3);
}
.sub-modal__alt:hover { color: var(--fg-1); }

@media print {
  .sub-modal { display: none; }
}
