/* mod_artnewsletter — popup newslettera. Dziedziczy krój pisma z szablonu. */
.artnl {
  --artnl-accent: #1f6f8b;
  --artnl-ink: #1d2327;
  --artnl-muted: #55616b;
  --artnl-line: #c9d1d7;
  --artnl-bg: #ffffff;
  width: min(30rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-top: 0.375rem solid var(--artnl-accent);
  border-radius: 0.5rem;
  background: var(--artnl-bg);
  color: var(--artnl-ink);
  box-shadow: 0 1.5rem 3.5rem rgba(12, 28, 40, 0.28);
  font: inherit;
  overflow: auto;
}
.artnl::backdrop { background: rgba(12, 24, 34, 0.55); }
.artnl[open] { animation: artnl-in 0.22s ease-out; }
@keyframes artnl-in {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .artnl[open] { animation: none; }
}

.artnl__form { position: relative; margin: 0; padding: 2rem 1.75rem 1.5rem; }

.artnl__close {
  position: absolute; top: 0.5rem; right: 0.5rem;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; padding: 0;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--artnl-muted);
  cursor: pointer;
}
.artnl__close:hover { background: rgba(0, 0, 0, 0.06); color: var(--artnl-ink); }

.artnl__title {
  margin: 0 2rem 0.75rem 0;
  font-size: 1.375rem; line-height: 1.25; font-weight: 700;
  color: var(--artnl-ink);
}
.artnl__text { margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.55; color: var(--artnl-muted); }
.artnl__text > :first-child { margin-top: 0; }
.artnl__text > :last-child { margin-bottom: 0; }

.artnl__label { display: block; margin: 0 0 0.35rem; font-size: 0.9375rem; font-weight: 600; }
.artnl__input {
  display: block; width: 100%; box-sizing: border-box;
  margin: 0; padding: 0.7rem 0.85rem;
  border: 1px solid var(--artnl-line); border-radius: 0.375rem;
  background: #fff; color: var(--artnl-ink);
  font: inherit; font-size: 1rem;
}
.artnl__input:focus {
  outline: none;
  border-color: var(--artnl-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--artnl-accent) 28%, transparent);
}

.artnl__consent {
  display: flex; gap: 0.6rem; align-items: flex-start;
  margin: 1rem 0 1.25rem;
  font-size: 0.875rem; line-height: 1.45; color: var(--artnl-muted);
  cursor: pointer;
}
.artnl__consent input {
  flex: none; width: 1.05rem; height: 1.05rem; margin: 0.15rem 0 0;
  accent-color: var(--artnl-accent);
}
.artnl__consent a { color: var(--artnl-accent); }

.artnl__submit {
  display: block; width: 100%;
  padding: 0.8rem 1rem;
  border: 0; border-radius: 0.375rem;
  background: var(--artnl-accent); color: #fff;
  font: inherit; font-size: 1rem; font-weight: 600;
  cursor: pointer;
}
.artnl__submit:hover { filter: brightness(1.08); }
.artnl__submit:disabled { opacity: 0.6; cursor: progress; }

.artnl__close:focus-visible,
.artnl__submit:focus-visible,
.artnl__consent input:focus-visible {
  outline: 3px solid var(--artnl-accent);
  outline-offset: 2px;
}

.artnl__status { margin: 0.9rem 0 0; min-height: 1.2em; font-size: 0.9375rem; line-height: 1.45; }
.artnl__status:empty { margin: 0; min-height: 0; }
.artnl__status.is-ok { color: #1d6b3a; font-weight: 600; }
.artnl__status.is-error { color: #b3261e; }

.artnl__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.artnl__form.is-done .artnl__field,
.artnl__form.is-done .artnl__consent,
.artnl__form.is-done .artnl__submit { display: none; }

@media (max-width: 30rem) {
  .artnl__form { padding: 1.75rem 1.25rem 1.25rem; }
}

/* Wariant w treści artykułu ({loadmoduleid}) */
.artnl--inline {
  display: block;
  width: auto;
  max-width: 36rem;
  max-height: none;
  margin: 1.5rem 0;
  border: 1px solid var(--artnl-line);
  border-top: 0.375rem solid var(--artnl-accent);
  box-shadow: none;
  overflow: visible;
}
.artnl--inline .artnl__title { margin-right: 0; }
