/* Shared newsletter popup on ultrasoft.mk, apissuite.io and pulsehub.app; site tokens with fallbacks. */
.nl { --nl-line: var(--line, var(--border, #2a2a31)); --nl-bg: var(--bg-1, var(--surface, #111114)); display: grid; gap: 10px; max-width: 520px; }
.nl__row { display: flex; gap: 8px; flex-wrap: wrap; }
.nl input {
  flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 0 14px; font: inherit; font-size: 15px;
  color: var(--text, inherit); background: var(--nl-bg); border: 1px solid var(--nl-line); border-radius: 10px;
}
.nl input:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 1px; }
.nl input[aria-invalid="true"] { border-color: var(--danger, #e5484d); }
.nl .btn { min-height: 44px; }
.nl__note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-3, inherit); }
.nl__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.nl__status { margin: 0; font-size: 14px; color: var(--text-2, inherit); }
.nl__status:empty { display: none; }
.nl__status.is-bad { color: var(--danger, #e5484d); }
.nl__check:empty { display: none; }
.nl__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nl-pop {
  position: fixed; z-index: 900; right: 24px; bottom: 24px; width: min(380px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px); overflow: auto; padding: 20px 22px;
  color: var(--text, inherit); background: var(--bg-1, var(--surface, #111114));
  border: 1px solid var(--line, var(--border, #2a2a31)); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.nl-pop[hidden] { display: none; }
.nl-pop__title { margin: 0 32px 6px 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.nl-pop__body > p:not(.nl-pop__title) { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--text-2, inherit); }
.nl-pop .nl { max-width: none; gap: 10px; }
.nl-pop .nl__row { flex-wrap: nowrap; gap: 6px; }
.nl-pop .nl input { min-height: 42px; font-size: 14px; }
.nl-pop .nl .btn { min-height: 42px; flex: none; }
.nl-pop .nl__note { font-size: 12px; }
.nl-pop__teaser { display: none; }
.nl-pop__x {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 10px;
  font-size: 22px; line-height: 1; color: var(--text-2, inherit); background: transparent; cursor: pointer;
}
.nl-pop__x:hover { color: var(--text, inherit); background: rgba(127, 127, 127, .14); }
.nl-pop__x:focus-visible, .nl-pop__teaser:focus-visible { outline: 2px solid var(--accent, currentColor); outline-offset: 2px; }

/* Phones: a one-line teaser that expands on tap, so nothing covers the page uninvited. */
@media (max-width: 639px) {
  .nl-pop { right: 12px; left: 12px; bottom: 12px; width: auto; padding: 0; }
  .nl-pop:not(.is-open) .nl-pop__body { display: none; }
  .nl-pop:not(.is-open) .nl-pop__teaser {
    display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 52px 0 18px;
    font: inherit; font-size: 15px; font-weight: 500; text-align: left; color: var(--text, inherit); background: transparent; border: 0; cursor: pointer;
  }
  .nl-pop.is-open { padding: 18px; }
  .nl-pop:not(.is-open) .nl-pop__x { top: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .nl-pop { animation: nl-in .25s ease-out; }
  @keyframes nl-in { from { opacity: 0; transform: translateY(12px); } }
}
