/* Karty wpisów: style ograniczone do widoków siatki. */
.rz-post-cards:not([data-post-list="list"]) .rz-post-card {
  background: #fff !important;
  border: 1px solid #e9e3e3;
  border-radius: 16px !important;
  box-shadow: 0 4px 18px rgba(40, 20, 20, .045);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rz-post-cards:not([data-post-list="list"]) .rz-post-card:hover,
.rz-post-cards:not([data-post-list="list"]) .rz-post-card:focus-within {
  transform: translateY(-4px);
  border-color: #d9baba;
  box-shadow: 0 12px 28px rgba(40, 20, 20, .1);
}
.rz-post-cards:not([data-post-list="list"]) .rz-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f3eeee;
}
.rz-post-cards:not([data-post-list="list"]) .rz-card-image img {
  height: 100% !important;
  width: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.rz-post-cards:not([data-post-list="list"]) .rz-post-card:hover .rz-card-image img { transform: scale(1.035); }
.rz-post-cards:not([data-post-list="list"]) .rz-card-body { padding: 24px !important; }
.rz-post-cards:not([data-post-list="list"]) .rz-card-title {
  font-size: 1.2rem !important;
  line-height: 1.4;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.rz-post-cards:not([data-post-list="list"]) .rz-card-title a { color: #272222; text-decoration: none; }
.rz-post-cards:not([data-post-list="list"]) .rz-card-title a:hover { color: var(--bs-primary, #bd2025); }
.rz-post-cards:not([data-post-list="list"]) .rz-card-excerpt { color: #686161; font-size: .94rem; line-height: 1.75; }
.rz-post-cards:not([data-post-list="list"]) .rz-card-body > small { font-size: .78rem; font-weight: 600; letter-spacing: .025em; }
.rz-post-cards:not([data-post-list="list"]) .rz-card-footer { margin-top: auto; padding: 0 24px 24px !important; }
.rz-post-cards:not([data-post-list="list"]) .rz-card-footer .btn { font-size: .85rem; font-weight: 600; }
.rz-post-cards a:focus-visible { outline: 3px solid var(--bs-primary, #bd2025); outline-offset: 4px; }
@media (min-width: 768px) and (max-width: 1199.98px) {
  .rz-post-cards:not([data-post-list="list"]) > .col-lg-4 { width: 50%; }
}
@media (max-width: 575.98px) {
  .rz-post-cards:not([data-post-list="list"]) .rz-card-body { padding: 20px !important; }
  .rz-post-cards:not([data-post-list="list"]) .rz-card-footer { padding: 0 20px 20px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .rz-post-cards:not([data-post-list="list"]) .rz-post-card,
  .rz-post-cards:not([data-post-list="list"]) .rz-card-image img { transition: none; transform: none !important; }
}

/* Aktualny wpis w menu bocznym. */ .sidebar-menu .menu-list a[aria-current="page"] { display: block; background: var(--bs-primary, #bd2025); color: #fff !important; font-weight: 700; border-radius: 8px; padding: 12px 14px; box-shadow: 0 3px 10px rgba(70,20,20,.12); } .sidebar-menu .menu-list a[aria-current="page"]:hover { color: #fff !important; text-decoration: underline; }
/* Paginacja nie dziedziczy znaczników list z treści wpisów. */
ul.custom-wcag-pagination { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
ul.custom-wcag-pagination > li.page-item { padding: 0; margin: 0; list-style: none; }
ul.custom-wcag-pagination > li.page-item::before { content: none; display: none; }
ul.custom-wcag-pagination .page-link { display: flex; align-items: center; justify-content: center; min-width: 46px; min-height: 46px; padding: 10px 14px; margin: 0; border-radius: 8px !important; font-size: 1rem; line-height: 1.25; }
ul.custom-wcag-pagination .page-item.active .page-link { background: #901010; border-color: #901010; color: #fff; font-weight: 700; }
ul.custom-wcag-pagination .page-item.disabled .page-link { background: transparent; border-color: transparent; color: #666; }
ul.custom-wcag-pagination .page-link:focus-visible { outline: 3px solid #901010; outline-offset: 3px; box-shadow: none; }
/* Płynna szerokość witryny z zachowaniem marginesów przy krawędziach. */
body .container {
  width: 100%;
  max-width: none;
  padding-left: clamp(16px, 4vw, 72px);
  padding-right: clamp(16px, 4vw, 72px);
}
/* Zewnętrzne sekcje Bootstrap mają już własny niewielki odstęp. */
body .container-fluid > .container {
  padding-left: clamp(8px, 3vw, 60px);
  padding-right: clamp(8px, 3vw, 60px);
}
/* Strona główna: nieco węższy obszar treści, pełne tła sekcji. */
body.rz-home .container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}
/* Pierwszy link klawiatury pozwala pominąć nagłówek i menu. */
.rz-skip-link { position: fixed; top: 12px; left: 16px; z-index: 100000; transform: translateY(calc(-100% - 24px)); background: #901010; color: #fff; padding: 14px 22px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.rz-skip-link:focus { transform: translateY(0); color: #fff; outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #901010; }
#main-content { scroll-margin-top: 120px; }
/* Karty podcastów. */
.rz-podcast-card { border: 1px solid #eadfdf; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 5px 20px rgba(50,20,20,.05); transition: box-shadow .2s ease, transform .2s ease; }
.rz-podcast-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(50,20,20,.12); }
.rz-podcast-card .card-link { position: relative; display: block; overflow: hidden; border-radius: 0; aspect-ratio: 16 / 9; }
.rz-podcast-card .card-img-top { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.rz-podcast-card .play-icon-overlay { opacity: 1; width: 60px; height: 60px; border-radius: 50%; background: #901010; box-shadow: 0 4px 20px #0004; }
.rz-podcast-card .play-icon-overlay svg { width: 28px; height: 28px; }
.rz-podcast-card .card-body { padding: 26px; }
.rz-podcast-card .card-title { color: #302626; font-size: 1.2rem !important; font-weight: 700; line-height: 1.45; }
.rz-podcast-card .card-text { font-size: .94rem; line-height: 1.75; color: #736565; white-space: pre-line; }
.rz-podcast-card .card-link:focus-visible { outline: 3px solid #901010; outline-offset: -4px; }
#videoModal .rz-podcast-modal { padding: 0; border-radius: 16px; overflow: hidden; }
#videoModal .modal-header { background: #fff; color: #302626; border-bottom: 1px solid #eadfdf; padding: 16px 22px; }
#videoModal .modal-title { color: #302626; font-size: 1rem !important; }
#videoModal .btn-close { flex-shrink: 0; }
@media(prefers-reduced-motion: reduce) { .rz-podcast-card { transition: none; transform: none; } }

/* Galeria ponad stałymi narzędziami dostępności i nawigacją. */
body .lg-backdrop { z-index: 11000; }
body .lg-outer { z-index: 11001; }
