/* ─── Elementy, których nie ma w projekcie statycznym, a są potrzebne w WordPressie ─── */

/* Podział listy wpisów na strony */
.ndc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 56px;
}
.ndc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--black);
  transition: all var(--ease);
}
.ndc-pagination .page-numbers:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}
.ndc-pagination .page-numbers.current {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.ndc-pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
  color: var(--muted);
}
.ndc-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Komunikaty formularza kontaktowego */
.form-notice {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.form-notice--ok {
  background: rgba(34, 128, 62, 0.08);
  border: 1px solid rgba(34, 128, 62, 0.28);
  color: #1d6b35;
}
.form-notice--error {
  background: rgba(163, 26, 25, 0.06);
  border: 1px solid rgba(163, 26, 25, 0.28);
  color: var(--red);
}
.form-notice--error p { margin-bottom: 6px; font-weight: 600; }
.form-notice--error ul { margin: 0; padding-left: 18px; list-style: disc; }
.form-notice--error li { margin-top: 2px; }

/* Wyrównanie obrazów wstawianych w edytorze treści */
.post-content .alignleft,
.post-content .alignright,
.post-content .aligncenter,
.post-content .alignnone {
  margin-bottom: 24px;
}
.post-content .alignleft { float: left; margin-right: 28px; }
.post-content .alignright { float: right; margin-left: 28px; }
.post-content .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.post-content .wp-caption-text,
.post-content figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 8px;
}
.post-content img { border-radius: var(--r-md); height: auto; }
.post-content table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.post-content th,
.post-content td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.post-content th { background: var(--off); font-weight: 600; }

/* Dostępność: pomiń nawigację */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .post-content .alignleft,
  .post-content .alignright { float: none; margin-left: 0; margin-right: 0; }
}
