/*
Theme Name: Parafia Leszczyny
Theme URI: https://parafialeszczyny.pl
Author: Parafia Rzymskokatolicka pw. sw. Andrzeja Boboli w Leszczynach
Description: Motyw WordPress odwzorowujacy projekt Figma "strona-parafialna-2026". Aktualnosci obsluguje natywny mechanizm Wpisow, Duszpasterze/Intencje/Pogrzeby to wlasne typy tresci z polami ACF.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: parafia
*/

:root{
  --black:#000000;
  --footer-black:#131313;
  --white:#ffffff;
  --grey:#4e5052;
  --red:#d9241e;
  --beige:#edeae7;
  --bg-header:#f8f8f8;
  --bg-content:#f8f7f5;
  --font-serif:'EB Garamond', serif;
  --font-sans:'Manrope', sans-serif;
  --font-footer:'Inter Tight', sans-serif;
  --font-kanit:'Kanit', sans-serif;
}
*{box-sizing:border-box; margin:0; padding:0;}
body{
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--bg-header);
  overflow-x:hidden;
}
a{color:inherit; text-decoration:none;}
img{display:block; max-width:100%; height:auto;} /* proporcje zachowane, gdy obrazek zweza sie do ekranu (atrybuty width/height z WP) */
.container{
  max-width:1200px;
  margin:0 auto;
  padding:24px;
}
.site-header{background:var(--bg-header); position:relative;}
.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding-bottom:20px;
  position:relative;
}
.logo img{width:69px; height:69px; object-fit:contain;}
.footer-brand img{object-fit:contain;}
.nav-items{
  display:flex;
  gap:30px;
  list-style:none;
  flex:1;
  justify-content:center;
}
.nav-items a{font-weight:600; font-size:15px;}
/* Rozwijane podmenu (menu glowne, do 3 poziomow) */
.nav-items li{position:relative;}
.nav-items > li{padding:10px 0;}
.nav-items > .menu-item-has-children > a{display:inline-flex; align-items:center; gap:6px;}
.nav-items > .menu-item-has-children > a:after{content:""; border:4.5px solid transparent; border-top-color:currentColor; margin-top:4px;}
.nav-items .current-menu-item > a, .nav-items .current-menu-ancestor > a{color:var(--red);}
.nav-items .sub-menu{
  display:none;
  position:absolute;
  top:100%;
  left:-18px;
  z-index:50;
  min-width:260px;
  padding:8px 0;
  list-style:none;
  background:var(--white);
  border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,0.12);
}
.nav-items .sub-menu .sub-menu{top:-8px; left:100%;}
.nav-items li:hover > .sub-menu, .nav-items li:focus-within > .sub-menu{display:block;}
.nav-items .sub-menu a{display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 20px; font-weight:500; white-space:nowrap;}
.nav-items .sub-menu a:hover{background:var(--bg-content); color:var(--red);}
.nav-items .sub-menu .menu-item-has-children > a:after{content:"›"; font-size:18px; line-height:1;}
.nav-button{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
  background:var(--black);
  color:var(--white);
  font-weight:600;
  font-size:15px;
  padding:12px 16px;
  border-radius:5px;
  white-space:nowrap;
}
.nav-button img{width:16px; height:16px;} /* icon-arrow.svg jest juz biala */
.nav-toggle{
  display:none;
  align-items:center;
  gap:8px;
  background:none;
  border:none;
  font-family:var(--font-sans);
  font-weight:700;
  font-size:15px;
  letter-spacing:1px;
  cursor:pointer;
  color:var(--black);
  padding:8px;
}
.nav-toggle .bars{display:flex; flex-direction:column; gap:4px;}
.nav-toggle .bars span{display:block; width:22px; height:2px; background:var(--black);}
.mobile-nav{
  display:none;
  position:absolute;
  top:100%;
  right:0;
  left:0;
  margin-top:8px;
  background:var(--white);
  border-radius:10px;
  box-shadow:0 10px 30px rgba(0,0,0,0.12);
  padding:16px;
  z-index:50;
}
.mobile-nav.open{display:block;}
.mobile-nav ul{list-style:none; display:flex; flex-direction:column;}
.mobile-nav a{display:block; padding:12px 8px; font-weight:600; font-size:15px; border-bottom:1px solid #eee;}
.mobile-nav li:last-child a{border-bottom:none;}
.mobile-nav .sub-menu{padding-left:16px;}
.mobile-nav .sub-menu a{font-weight:500; font-size:14px;}
.mobile-nav li li:last-child a{border-bottom:1px solid #eee;}
.mobile-nav .nav-button{justify-content:center; margin-top:8px;}
.hero-image{
  width:100%;
  height:500px;
  border-radius:20px;
  overflow:hidden;
  margin-bottom:20px;
}
.hero-image img{width:100%; height:100%; object-fit:cover;}
.slider{position:relative;}
.slider-track{
  display:flex;
  gap:20px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.slider-track::-webkit-scrollbar{display:none;}
.slider-track > *{scroll-snap-align:start;}
.pagination{display:flex; justify-content:center; gap:10px; margin-top:25px;}
/* Strzalki karuzeli - pokazuja sie po najechaniu, gdy jest co przewijac (assets/js/main.js) */
.slider-arrow{
  display:none;
  position:absolute;
  z-index:2;
  width:44px;
  height:44px;
  margin-top:-22px;
  border:none;
  border-radius:50%;
  background:var(--white);
  color:var(--black);
  box-shadow:0 2px 10px rgba(0,0,0,0.15);
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  transition:opacity 0.2s, background 0.2s, color 0.2s;
}
.slider-arrow svg{width:18px; height:18px;}
.slider-arrow--prev{left:-12px;}
.slider-arrow--prev svg{transform:rotate(180deg);}
.slider-arrow--next{right:-12px;}
.slider.is-scrollable .slider-arrow{display:flex;}
.slider.is-scrollable:hover .slider-arrow, .slider-arrow:focus-visible{opacity:1;}
.slider-arrow:hover{background:var(--black); color:var(--white);}
.slider.is-scrollable:hover .slider-arrow:disabled{opacity:0.35; cursor:default; background:var(--white); color:var(--black);}
@media (hover:none){
  .slider-arrow{display:none !important;} /* na dotyku przewija sie palcem */
}
.pagination .dot{width:10px; height:10px; border-radius:5px; background:var(--black); cursor:pointer;}
.pagination .dot.dim{opacity:0.5;}
.top-link-card{
  display:flex;
  gap:10px;
  align-items:center;
  width:368px;
  flex-shrink:0;
}
.top-link-card .thumb{width:138px; height:92px; border-radius:5px; overflow:hidden; flex-shrink:0;}
.top-link-card .thumb img{width:100%; height:100%; object-fit:cover;}
.top-link-card .eyebrow{
  font-weight:600;
  font-size:11px;
  letter-spacing:0.5px;
  text-transform:uppercase;
  color:var(--grey);
  margin-bottom:6px;
}
.top-link-card .title{font-family:var(--font-serif); font-weight:600; font-size:18px; line-height:21.6px; transition:color 0.2s;}
a.top-link-card:hover .title{color:var(--red);}
.site-content{background:var(--bg-content);}
.two-col{display:flex; gap:24px; align-items:flex-start;}
.col-main{flex:0 0 815px; display:flex; flex-direction:column; gap:24px; min-width:0;}
.col-side{flex:1; display:flex; flex-direction:column; gap:24px; min-width:0;}
.card{background:var(--white); border-radius:10px; padding:30px 20px;}
.card h2{font-family:var(--font-serif); font-weight:600; font-size:32px; margin-bottom:20px;}
.card-side{background:var(--beige); border-radius:10px; padding:20px;}
.card-side h2{font-family:var(--font-serif); font-weight:600; font-size:28px; margin-bottom:20px;}
.announcement-title{
  font-family:var(--font-serif);
  font-weight:600;
  font-size:20px;
  line-height:26px;
  text-align:center;
  margin-bottom:16px;
}
.announcement-text{font-size:16px; line-height:22.4px; text-align:center; color:var(--black);}
.blog-title{font-family:var(--font-serif); font-weight:600; font-size:34px; margin-bottom:24px;}
.blog-grid{display:flex; gap:30px; align-items:flex-start;}
.post-big{flex:1; min-width:0; display:flex; flex-direction:column; gap:20px;}
.post-big .post-image{width:100%; height:218px; border-radius:10px; overflow:hidden;}
.post-big .post-image img{width:100%; height:100%; object-fit:cover;}
.post-big h3{font-family:var(--font-serif); font-weight:600; font-size:24px; line-height:28.8px; margin-bottom:10px;}
.post-big p{font-size:16px; line-height:22.4px; margin-bottom:14px;}
.read-more{display:inline-flex; align-items:center; gap:5px; font-weight:600; font-size:15px;}
.read-more img{width:16px; height:16px;}
.cta-black{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  margin-top:10px;
  background:var(--black);
  color:var(--white);
  font-weight:600;
  font-size:15px;
  padding:12px 16px;
  border-radius:5px;
}
.posts-small{flex:0 0 412px; display:flex; flex-direction:column; gap:20px;}
.post-small{display:flex; gap:20px; align-items:center; padding:15px; background:var(--white); border-radius:15px; overflow:hidden;}
.post-small .post-thumb{width:155px; height:160px; flex-shrink:0; overflow:hidden; border-radius:10px;}
.post-small .post-thumb img{width:100%; height:100%; object-fit:cover;}
.post-small .post-body{padding:0; display:flex; flex-direction:column; gap:10px; justify-content:center;}
/* tytul maks. 2 linie, dalej wielokropek */
.post-small h4{font-family:var(--font-serif); font-weight:600; font-size:20px; line-height:23px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden;}
/* opis maks. 2 linie, dalej wielokropek */
.post-small p{font-size:16px; line-height:20px; color:var(--black); display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-clamp:2; overflow:hidden;}
.intention-block + .intention-block{margin-top:24px;}
.intention-date{font-family:var(--font-serif); font-weight:600; font-size:20px; margin-bottom:10px;}
.intention-row{
  display:flex;
  gap:10px;
  font-size:16px;
  line-height:22.4px;
  padding-bottom:10px;
  border-bottom:1px solid #e2ded9;
  margin-bottom:10px;
}
.intention-row:last-child{border-bottom:none; margin-bottom:0;}
.intention-row .time{color:var(--red); flex-shrink:0; width:44px;}
.intention-row.is-bold > div:last-child{font-weight:700;}
.intentions-more{margin-top:20px;}
/* Porzadek nabozenstw i ogloszenia (szablon "Intencje i ogloszenia") */
.porzadek{padding:40px 30px;}
.porzadek .porzadek-title{font-family:var(--font-serif); font-weight:500; font-size:28px; line-height:1.3; text-transform:uppercase; text-align:center; margin-bottom:36px;}
.porzadek .porzadek-title span{display:block; text-transform:none;}
.porzadek-day + .porzadek-day{margin-top:26px;}
.porzadek .porzadek-day-title{font-family:var(--font-serif); font-weight:600; font-size:18px; margin-bottom:10px;}
.porzadek-row{display:flex; gap:12px; align-items:center; font-size:14px; line-height:1.5; padding-bottom:12px; margin-bottom:12px; border-bottom:1px solid #e2ded9;}
.porzadek-row:last-child{border-bottom:none; padding-bottom:0; margin-bottom:0;} /* separator jak w "Intencjach na dziś i jutro" */
.porzadek-row .time{color:var(--red); flex-shrink:0; width:44px;}
.porzadek-row.is-bold .text{font-weight:700;}
.ogloszenia-text{font-size:14px; line-height:1.5; padding-left:20px;}
.ogloszenia-text li{padding-bottom:14px; margin-bottom:14px; border-bottom:1px solid #e2ded9;}
.ogloszenia-text li:last-child{border-bottom:none; padding-bottom:0; margin-bottom:0;}
.ogloszenia-text li::marker{color:var(--red);}
/* Zakladki "O parafii" (template-parts/zakladki-o-parafii.php) */
.page-tabs ul{list-style:none; display:flex; flex-wrap:wrap; gap:8px;}
.page-tabs a{display:block; padding:9px 16px; border-radius:20px; background:var(--white); font-size:14px; font-weight:600; white-space:nowrap; transition:background 0.2s, color 0.2s;}
.page-tabs a:hover{background:var(--beige);}
.page-tabs a.is-active{background:var(--black); color:var(--white);}
.col-main > .page-tabs + .blog-title{margin-top:8px;}
/* Tresc strony "O parafii" */
.entry-content .o-parafii-podtytul{font-family:var(--font-serif); font-weight:600; font-size:21px; line-height:1.25; text-align:center; margin:4px 0 24px;}
.entry-content .o-parafii-zdjecie img{width:100%; border-radius:16px;}
.entry-content .o-parafii-sekcja{font-family:var(--font-sans); font-weight:700; font-size:15px; margin:28px 0 16px;}
.entry-content .podpis-autora{margin-top:24px;}
.karty-o-parafii{margin-top:8px;}
/* Os czasu ("Ważniejsze daty") */
.entry-content .kronika-rok{font-family:var(--font-serif); color:var(--red); font-size:22px; margin:28px 0 8px;}
.entry-content ul.kronika{list-style:none; padding-left:18px; border-left:2px solid var(--beige);}
.entry-content ul.kronika li{position:relative; margin-bottom:10px;}
.entry-content ul.kronika li:before{content:""; position:absolute; left:-24px; top:9px; width:10px; height:10px; border-radius:50%; background:var(--red);}
.karty-o-parafii .blog-title{margin-bottom:20px;}
/* Karty duszpasterzy na podstronie (szablon "Duszpasterze") */
.priests-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); gap:20px; margin-top:10px;}
.priests-grid .priest-card{width:auto; background:var(--bg-content);}
.priests-grid .priest-card .photo{height:260px;}

/* Podglad zdjec ze sliderem (assets/js/galeria.js) */
.lightbox-link{cursor:zoom-in;}
.lightbox-lock, .lightbox-lock body{overflow:hidden;}
.lightbox{position:fixed; inset:0; z-index:1000; display:none; align-items:center; justify-content:center; background:rgba(0,0,0,0.92);}
.lightbox.is-open{display:flex;}
.lightbox-img{max-width:calc(100vw - 140px); max-height:calc(100vh - 110px); object-fit:contain; border-radius:4px; user-select:none;}
.lightbox-btn{position:absolute; display:flex; align-items:center; justify-content:center; width:48px; height:48px; border:none; border-radius:50%; background:rgba(255,255,255,0.12); color:var(--white); cursor:pointer; transition:background 0.2s;}
.lightbox-btn:hover, .lightbox-btn:focus-visible{background:rgba(255,255,255,0.28); outline:none;}
.lightbox-btn svg{width:20px; height:20px;}
.lightbox-close{top:16px; right:16px; font-size:30px; line-height:1;}
.lightbox-prev{left:20px; top:50%; margin-top:-24px;}
.lightbox-prev svg{transform:rotate(180deg);}
.lightbox-next{right:20px; top:50%; margin-top:-24px;}
.lightbox-counter{position:absolute; bottom:18px; left:50%; transform:translateX(-50%); color:var(--white); font-size:14px; opacity:0.85;}
.lightbox-caption{position:absolute; bottom:44px; left:50%; transform:translateX(-50%); max-width:80vw; color:var(--white); font-size:14px; text-align:center;}
.lightbox.is-single .lightbox-prev, .lightbox.is-single .lightbox-next, .lightbox.is-single .lightbox-counter{display:none;}
@media (max-width:767px){
  .lightbox-img{max-width:100vw; max-height:calc(100vh - 120px); border-radius:0;}
  .lightbox-prev, .lightbox-next{top:auto; bottom:8px; margin-top:0; width:44px; height:44px;}
  .lightbox-prev{left:12px;}
  .lightbox-next{right:12px;}
}
/* Lista wszystkich aktualnosci (szablon "Aktualnosci") */
.posts-list{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:20px;}
.posts-list .post-small .post-thumb{width:130px; height:140px;}
.posts-pagination{display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:10px;}
.posts-pagination .page-numbers{min-width:40px; padding:9px 12px; border-radius:5px; background:var(--white); text-align:center; font-weight:600; font-size:14px;}
.posts-pagination .page-numbers.current{background:var(--black); color:var(--white);}
.posts-pagination a.page-numbers:hover{background:var(--beige);}
/* Wspolnoty (szablon "Wspolnoty") - siatka 6 kolumn, kafel standardowy = 2 kolumny */
.col-main > .blog-title{margin-bottom:0;}
.wspolnoty-intro{font-size:16px; line-height:1.6;}
.wspolnoty-grid{display:grid; grid-template-columns:repeat(6, 1fr); gap:20px;}
.wspolnota-card{
  grid-column:span 2;
  background:var(--white);
  border-radius:10px;
  padding:30px 20px;
  min-height:175px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
}
.wspolnota-card.w-half{grid-column:span 3;}
.wspolnota-card.w-two-thirds{grid-column:span 4;}
.wspolnota-card.w-full{grid-column:1 / -1;}
.wspolnota-card h2{font-family:var(--font-serif); font-weight:600; font-size:22px; line-height:1.1;}
.wspolnota-card p{font-size:14px; line-height:1.45; color:var(--grey);}
.wspolnota-button{
  display:inline-block;
  margin-top:10px;
  padding:9px 14px;
  border:1px solid var(--black);
  border-radius:4px;
  font-size:12px;
  font-weight:500;
  transition:background 0.2s, color 0.2s;
}
.wspolnota-button:hover{background:var(--black); color:var(--white);}
.mass-time-block + .mass-time-block{margin-top:15px;}
.mass-time-block .day{font-family:var(--font-serif); font-weight:600; font-size:20px; margin-bottom:4px;}
.mass-time-block .hours{color:var(--red); font-size:16px;}
.funeral-name{font-family:var(--font-serif); font-weight:600; font-size:20px; margin-bottom:4px;}
.funeral-date{color:var(--red); font-size:16px;}
.funeral-block + .funeral-block{margin-top:15px;}
.liturgy-card{--navy:#011d36; color:var(--navy);}
.liturgy-date{display:flex; align-items:flex-start; gap:6px; color:var(--navy);}
.liturgy-day{font-family:var(--font-sans); font-weight:800; font-size:64px; line-height:0.85; letter-spacing:-1px;}
.liturgy-month{display:flex; flex-direction:column; font-family:var(--font-sans); font-weight:700; font-size:26px; line-height:1;}
.liturgy-weekday{font-size:18px; font-weight:700; margin-top:4px;}
.liturgy-period{font-weight:800; font-size:15px; margin-top:12px;}
.liturgy-year{font-size:12px; margin:8px 0 4px;}
.liturgy-readings div{padding:12px 0; border-top:1px solid #d9d5d0;}
.liturgy-readings div:first-child{margin-top:8px;}
.liturgy-readings dt{color:var(--red); font-size:14px;}
.liturgy-readings dd{font-family:var(--font-serif); font-weight:700; font-size:16px; margin-top:2px;}
.liturgy-patrons{margin-top:8px;}
.liturgy-patrons:before{content:""; display:block; width:91px; border-top:3px solid var(--red); margin-bottom:10px;}
.liturgy-patrons h3{color:var(--red); font-family:var(--font-sans); font-weight:800; font-size:15px; margin-bottom:8px;}
.liturgy-patrons ul{list-style:none;}
.liturgy-patrons li{font-size:13px; line-height:1.4;}
.liturgy-patrons a{color:var(--navy);}
.liturgy-patrons a:hover{color:var(--red);}
.useful-links li{list-style:none; margin-bottom:16px;}
.useful-links li:last-child{margin-bottom:0;}
.useful-links a{color:var(--red); font-size:16px; text-decoration:underline;}
.duszpasterze{padding:24px 24px 40px;}
.duszpasterze h2{font-family:var(--font-serif); font-weight:600; font-size:34px; margin-bottom:25px;}
.priests{display:flex; gap:25px; justify-content:flex-start;}
.priest-card{width:266px; background:var(--white); border-radius:10px; overflow:hidden; text-align:center; flex-shrink:0;}
.priest-card .photo{width:100%; height:300px; overflow:hidden; background:#eee;}
.priest-card .photo img{width:100%; height:100%; object-fit:cover;}
.priest-card .details{padding:10px;}
.priest-card .role{color:var(--red); font-size:14px; margin-bottom:5px;}
.priest-card .name{font-family:var(--font-serif); font-weight:600; font-size:18px; margin-bottom:5px;}
.priest-card .email{color:var(--red); font-size:14px;}
.site-footer{background:var(--white); border-radius:15px 15px 0 0; padding:40px 0;}
.footer-inner{max-width:1200px; margin:0 auto; padding:0 24px; color:var(--footer-black);}
.footer-flex{display:flex; gap:60px; align-items:flex-start; margin-bottom:32px;}
.footer-brand{display:flex; flex-direction:column; gap:20px; flex:0 0 300px;}
.footer-brand img{width:110px; height:auto;}
.footer-brand h3{font-family:var(--font-serif); font-weight:600; font-size:22px; letter-spacing:0.66px; line-height:27px;}
.footer-brand p{font-family:var(--font-footer); font-weight:300; font-size:16px; line-height:24px;}
.footer-right{flex:1; min-width:0;}
.footer-contact .kontakt-label{font-family:var(--font-kanit); font-weight:300; color:var(--red); font-size:16px; margin-bottom:10px;}
.footer-contact .email{font-family:var(--font-serif); font-weight:600; font-size:36px; letter-spacing:1.08px; line-height:40px; word-break:break-word;}
.footer-divider{border:none; border-top:1px solid #d9d5d0; margin:24px 0;}
.footer-columns{display:flex; gap:60px; flex-wrap:wrap;}
.footer-col-group{flex:1; min-width:240px;}
.footer-col-group .label{
  font-family:var(--font-sans);
  font-weight:500;
  font-size:14px;
  letter-spacing:0.42px;
  text-transform:uppercase;
  color:var(--red);
  margin-bottom:20px;
}
.footer-col-group.footer-menu-group{flex:0 0 auto; min-width:0;}
.menu-cols{display:flex; flex-direction:column; gap:12px;}
.menu-cols ul{list-style:none; display:flex; flex-direction:column; gap:12px;}
.menu-cols a{font-family:var(--font-serif); font-weight:600; font-size:18px;}
.hours-cols{display:flex; flex-wrap:wrap; column-gap:40px;}
.hours-cols .hours-block{margin-bottom:20px;}
.hours-cols .day{font-family:var(--font-serif); font-weight:600; font-size:18px; letter-spacing:0.54px; margin-bottom:4px; white-space:nowrap;}
.hours-cols .time{font-family:var(--font-footer); font-weight:300; color:var(--red); font-size:16px; line-height:24px;}
.footer-bottom{text-align:center; font-family:var(--font-footer); font-weight:300; font-size:16px; color:var(--footer-black);}
.footer-bottom .link{color:var(--red);}
.footer-compact{display:none; background:var(--white); border-radius:15px; padding:30px 20px; text-align:left;}
.footer-compact .logo-wrap{margin-bottom:20px;}
.footer-compact .logo-wrap img{width:90px; height:auto;}
.footer-compact h3{font-family:var(--font-serif); font-weight:600; font-size:18px; margin-bottom:12px;}
.footer-compact p{font-family:var(--font-footer); font-weight:300; font-size:14px; line-height:20px; margin-bottom:20px;}
.footer-compact .kontakt-label{font-family:var(--font-kanit); color:var(--red); font-size:14px; margin-bottom:8px;}
.footer-compact .email{font-family:var(--font-serif); font-weight:600; font-size:clamp(18px, 6.2vw, 26px); margin-bottom:20px; overflow-wrap:anywhere;}
.footer-compact hr{border:none; border-top:1px solid #d9d5d0; margin-bottom:20px;}
.footer-compact .footer-bottom{text-align:left; font-size:13px;}

/* strona pojedynczego wpisu / strony */
.single-content{background:var(--white); border-radius:10px; padding:30px;}
.single-content h1{font-family:var(--font-serif); font-weight:600; font-size:34px; margin-bottom:16px;}
.single-content .entry-meta{color:var(--grey); font-size:14px; margin-bottom:20px;}
.single-content .entry-thumb{margin-bottom:20px; border-radius:10px; overflow:hidden;}
.single-content .entry-thumb img{width:100%; height:auto;}
.single-content .entry-thumb.priest-photo{max-width:320px;}
.priest-meta{display:flex; flex-direction:column; gap:4px; color:var(--red);}
.priest-meta a{color:var(--red);}
.single-content .entry-content{font-size:16px; line-height:1.7;}
.single-content .entry-content p{margin-bottom:16px;}
.entry-content h2{font-family:var(--font-serif); font-weight:600; font-size:26px; line-height:1.2; margin:28px 0 12px;}
.entry-content h3{font-family:var(--font-serif); font-weight:600; font-size:21px; line-height:1.25; margin:24px 0 10px;}
.entry-content h4{font-family:var(--font-serif); font-weight:600; font-size:18px; line-height:1.3; margin:18px 0 6px;}
.entry-content > :first-child{margin-top:0;}
.entry-content ul, .entry-content ol{padding-left:22px; margin-bottom:16px;}
.entry-content li{margin-bottom:6px;}
.entry-content li::marker{color:var(--red);}
.entry-content a{color:var(--red); text-decoration:underline;}
.entry-content img{height:auto; border-radius:6px; margin-bottom:16px;}
.entry-content .wp-block-gallery img, .entry-content figure img{margin-bottom:0;}
.entry-content figure{margin-bottom:16px;}
.entry-content iframe{display:block; max-width:100%; border-radius:6px; margin-bottom:16px;}

@media (max-width:1024px){
  .nav-items, .navbar .nav-button{display:none;}
  .nav-toggle{display:flex;}
  .hero-image{height:368px;}
  .announcement-card{display:none;}
  .two-col{gap:24px;}
  .col-main{flex:0 0 63%;}
  .col-side{flex:0 0 34%;}
  .blog-grid{flex-direction:column;}
  .posts-small{flex:1 1 auto; width:100%;}
  .footer-flex{flex-direction:column; gap:28px;}
  .footer-brand{flex:1 1 auto;}
}
@media (max-width:767px){
  .container{padding:20px;}
  .hero-image{height:300px; border-radius:14px;}
  .two-col{flex-direction:column;}
  .col-main, .col-side{flex:1 1 auto; width:100%;}
  .top-link-card{width:300px;}
  .blog-title{font-size:28px;}
  .card h2{font-size:26px;}
  .card-side h2{font-size:24px;}
  .duszpasterze h2{font-size:28px;}
  .priest-card{width:230px;}
  .footer-flex, .footer-bottom{display:none;}
  .footer-compact{display:block;}
  .site-footer{padding:20px;}
}

@media (max-width:767px){
  .porzadek{padding:30px 20px;}
  .porzadek .porzadek-title{font-size:22px; margin-bottom:24px;}
}

@media (max-width:1024px){
  .wspolnoty-grid{grid-template-columns:repeat(2, 1fr);}
  .wspolnota-card, .wspolnota-card.w-half{grid-column:span 1;}
  .wspolnota-card.w-two-thirds, .wspolnota-card.w-full{grid-column:1 / -1;}
}
@media (max-width:767px){
  .wspolnoty-grid{grid-template-columns:1fr; gap:16px;}
  .wspolnota-card, .wspolnota-card.w-half, .wspolnota-card.w-two-thirds{grid-column:1 / -1;}
  .wspolnota-card{min-height:0;}
}

@media (max-width:1024px){
  .posts-list{grid-template-columns:1fr;}
}

@media (max-width:767px){
  .page-tabs ul{flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; padding-bottom:2px;}
  .page-tabs ul::-webkit-scrollbar{display:none;}
}
