/*
 * Parafia Wiersze — pojedynczy wpis
 * Wersja 1.2.0
 *
 * Struktura Vamtam zostaje zachowana.
 * Nie ma starego sidebara — wpis jest jedną centralną kartą.
 */

body.single-post #main-content {
    background: #FFFFFF !important;
}

body.single-post #main-content .limit-wrapper,
body.single-post #main-content .page-wrapper {
    box-sizing: border-box;
}

body.single-post .parish-single-page-wrapper {
    padding-top: 42px !important;
    padding-bottom: 58px !important;
}

body.single-post article.parish-single-post {
    width: 100% !important;
    max-width: 1040px !important;
    margin: 0 auto !important;
    float: none !important;
    clear: both !important;
}

body.single-post .parish-single-card {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 36px 42px 42px !important;
    box-sizing: border-box !important;
    border: 1px solid var(--parish-line) !important;
    border-radius: 16px !important;
    background: #FFFFFF !important;
    box-shadow: var(--parish-shadow) !important;
    color: var(--parish-text) !important;
}

/* Nagłówek wpisu */
body.single-post .parish-post-head {
    display: block !important;
    position: relative !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 28px !important;
    padding: 0 0 22px !important;
    border-bottom: 1px solid var(--parish-line) !important;
    overflow: visible !important;
}

body.single-post .parish-post-head__meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--parish-muted) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

body.single-post .parish-post-head__category {
    color: var(--parish-brown) !important;
    text-decoration: none !important;
}

body.single-post .parish-post-head__title,
body.single-post h1.parish-post-head__title {
    display: block !important;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--parish-brown-dark) !important;
    font-size: clamp(30px, 4vw, 44px) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -.02em !important;
    text-align: left !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    clip: auto !important;
    transform: none !important;
}

/* Akcje */
body.single-post .parish-post-share {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 9px !important;
    margin-top: 18px !important;
}

body.single-post .parish-share {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    border: 1px solid var(--parish-brown) !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: var(--parish-brown) !important;
    font: 700 18px/1 Arial, sans-serif !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

body.single-post .parish-share:hover,
body.single-post .parish-share:focus {
    background: var(--parish-brown) !important;
    color: #fff !important;
}

/* Treść wpisu — twarde przywrócenie widoczności po stylach Vamtam. */
body.single-post .parish-single-content,
body.single-post .parish-single-content.entry-content {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 1px !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: var(--parish-text) !important;
    font-size: 17px !important;
    line-height: 1.72 !important;
    text-align: left !important;
    transform: none !important;
}

body.single-post .parish-single-content > * {
    opacity: 1 !important;
    visibility: visible !important;
}

body.single-post .parish-single-content p,
body.single-post .parish-single-content li {
    color: var(--parish-text) !important;
    font-size: 17px !important;
    line-height: 1.72 !important;
}

body.single-post .parish-single-content p {
    margin: 0 0 1.18em !important;
}

body.single-post .parish-single-content h2,
body.single-post .parish-single-content h3,
body.single-post .parish-single-content h4 {
    color: var(--parish-brown-dark) !important;
    font-weight: 600 !important;
}

body.single-post .parish-single-content a {
    color: var(--parish-brown) !important;
}

body.single-post .parish-single-content img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-radius: 12px !important;
}

body.single-post .parish-single-content figure {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.single-post .parish-single-content iframe,
body.single-post .parish-single-content video {
    max-width: 100% !important;
}

body.single-post .parish-single-content blockquote {
    margin: 24px 0 !important;
    padding: 16px 20px !important;
    border: 0 !important;
    border-left: 4px solid var(--parish-brown) !important;
    border-radius: 0 10px 10px 0 !important;
    background: var(--parish-notice) !important;
    color: var(--parish-text) !important;
}

/* Powrót */
body.single-post .parish-single-footer {
    display: block !important;
    margin: 34px 0 0 !important;
    padding: 22px 0 0 !important;
    border-top: 1px solid var(--parish-line) !important;
}

body.single-post .parish-single-back {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    padding: 0 16px !important;
    border: 1px solid var(--parish-brown) !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: var(--parish-brown) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

body.single-post .parish-single-back:hover,
body.single-post .parish-single-back:focus {
    background: var(--parish-brown) !important;
    color: #fff !important;
}

@media only screen and (max-width: 958px) {
    body.single-post #main-content .limit-wrapper,
    body.single-post #main-content .page-wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.single-post .parish-single-page-wrapper {
        padding-top: 22px !important;
        padding-bottom: 38px !important;
    }

    body.single-post .parish-single-card {
        padding: 22px 18px 26px !important;
        border-radius: 13px !important;
    }

    body.single-post .parish-post-head {
        margin-bottom: 21px !important;
        padding-bottom: 18px !important;
    }

    body.single-post .parish-post-head__title,
    body.single-post h1.parish-post-head__title {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }

    body.single-post .parish-single-content,
    body.single-post .parish-single-content p,
    body.single-post .parish-single-content li {
        font-size: 16px !important;
        line-height: 1.68 !important;
    }
}

@media only screen and (max-width: 380px) {
    body.single-post #main-content .limit-wrapper,
    body.single-post #main-content .page-wrapper {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    body.single-post .parish-single-card {
        padding: 18px 14px 22px !important;
    }

    body.single-post .parish-post-head__title,
    body.single-post h1.parish-post-head__title {
        font-size: 25px !important;
    }
}


/* =========================================================
   1.1.6 — TREŚĆ + WIDGETY „BLOG PAGE” PO LEWEJ
   ========================================================= */
body.single-post .parish-single-content-grid {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 1380px !important;
    margin: 0 auto !important;
}

body.single-post .parish-single-content-grid > article.parish-single-post {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
}

body.single-post .parish-single-widget-area {
    min-width: 0 !important;
}

/* Widgety Blog page zachowują własny wygląd Vamtam.
   Motyw potomny reguluje tu tylko pozycję i odstępy. */
body.single-post .parish-single-widget-area {
    min-width: 0 !important;
    margin: 0 !important;
}

body.single-post .parish-single-widget-area .widget:first-child {
    margin-top: 0 !important;
}

/* Jeśli rodzic nie zwróci żadnego sidebaru/widgetów, treść wykorzystuje pełną szerokość. */
body.single-post .parish-single-widget-area:empty {
    display: none !important;
}

body.single-post .parish-single-content-grid:has(.parish-single-widget-area:empty) {
    grid-template-columns: minmax(0, 1040px) !important;
    justify-content: center !important;
}

@media only screen and (max-width: 1100px) {
    body.single-post .parish-single-content-grid {
        grid-template-columns: 260px minmax(0, 1fr) !important;
        gap: 20px !important;
    }
}

@media only screen and (max-width: 958px) {
    body.single-post .parish-single-content-grid {
        display: block !important;
        max-width: 100% !important;
    }

    body.single-post .parish-single-widget-area {
        margin-top: 22px !important;
    }

    body.single-post .parish-single-widget-area .widget,
    body.single-post .parish-single-widget-area aside,
    body.single-post .parish-single-widget-area .widget-box {
        padding: 18px !important;
    }
}


/* Blog page po lewej, treść po prawej — zgodnie z układem używanym w Vamtam. */
body.single-post .parish-single-widget-area--blog {
    grid-column: 1 !important;
}

body.single-post article.parish-single-post {
    grid-column: 2 !important;
}

/* Jeżeli Blog page jest pusty, wpis wraca na środek i zajmuje szerokość treści. */
body.single-post .parish-single-content-grid:has(.parish-single-widget-area--blog:empty) article.parish-single-post {
    grid-column: 1 !important;
}

@media only screen and (max-width: 958px) {
    body.single-post .parish-single-widget-area--blog,
    body.single-post article.parish-single-post {
        grid-column: auto !important;
    }

    /* Na telefonie treść najpierw, widgety pod nią. */
    body.single-post .parish-single-content-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    body.single-post article.parish-single-post {
        order: 1 !important;
    }

    body.single-post .parish-single-widget-area--blog {
        order: 2 !important;
        margin-top: 24px !important;
    }
}


/* =========================================================
   1.1.7 — PROPORCJE + TREŚĆ JAK W PIERWSZYM CHILD THEME
   =========================================================
   Zachowujemy widgety "Blog page" po lewej, ale przywracamy
   rytm typografii i prezentację treści z pierwszego działającego
   motywu potomnego.
   ========================================================= */

/* Desktop: lewy sidebar ma komfortowe 290 px,
   treść wpisu ok. 900 px, a cały układ nie jest ściśnięty. */
body.single-post .parish-single-content-grid {
    grid-template-columns: 290px minmax(0, 900px) !important;
    gap: 30px !important;
    max-width: 1220px !important;
    justify-content: center !important;
}

body.single-post .parish-single-page-wrapper {
    padding-top: 34px !important;
    padding-bottom: 52px !important;
}

/* Blog page — tylko pozycja i rozsądna szerokość.
   Sam wygląd widgetów nadal kontroluje Vamtam. */
body.single-post .parish-single-widget-area--blog {
    width: 290px !important;
    max-width: 290px !important;
    min-width: 0 !important;
    padding-top: 4px !important;
}

/* Karta treści — bliżej pierwszej wersji potomnego:
   mniej "aplikacyjnej" masywności, więcej lekkości. */
body.single-post .parish-single-card {
    padding: 28px 34px 32px !important;
    border: 1px solid var(--parish-line) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    background: #FFFFFF !important;
}

/* Nagłówek wpisu */
body.single-post .parish-post-head {
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
}

body.single-post .parish-post-head__meta {
    margin-bottom: 10px !important;
    color: var(--parish-muted) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

body.single-post .parish-post-head__title,
body.single-post h1.parish-post-head__title {
    margin: 0 0 10px !important;
    color: var(--parish-brown-dark) !important;
    font-size: 32px !important;
    line-height: 1.28 !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
}

/* Akcje wpisu — subtelniejsze, jak w starej wersji. */
body.single-post .parish-post-share {
    margin-top: 14px !important;
    gap: 8px !important;
}

body.single-post .parish-share {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 9px !important;
    font-size: 16px !important;
}

/* =========================================================
   TREŚĆ — rytm z pierwszego potomnego motywu
   ========================================================= */
body.single-post .parish-single-content,
body.single-post .parish-single-content.entry-content {
    color: var(--parish-text) !important;
    font-size: 17px !important;
    line-height: 1.72 !important;
    text-align: left !important;
}

body.single-post .parish-single-content p {
    margin: 0 0 1.15em !important;
    color: var(--parish-text) !important;
    font-size: 17px !important;
    line-height: 1.72 !important;
    text-align: left !important;
}

body.single-post .parish-single-content h2 {
    margin: 1.55em 0 .65em !important;
    color: var(--parish-brown) !important;
    font-size: 24px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

body.single-post .parish-single-content h3 {
    margin: 1.35em 0 .55em !important;
    color: var(--parish-brown) !important;
    font-size: 20px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

body.single-post .parish-single-content h4 {
    color: var(--parish-brown-dark) !important;
    font-weight: 600 !important;
}

/* Listy — szczególnie ważne dla Ogłoszeń i wpisów informacyjnych. */
body.single-post .parish-single-content ul,
body.single-post .parish-single-content ol {
    margin: 0 0 1.2em !important;
    padding-left: 1.55em !important;
    color: var(--parish-text) !important;
    font-size: 17px !important;
    line-height: 1.68 !important;
    text-align: left !important;
}

body.single-post .parish-single-content li {
    margin-bottom: .45em !important;
}

body.single-post .parish-single-content li::marker {
    color: var(--parish-brown) !important;
}

/* Linki jak w pierwszym child theme — widoczne w tekście,
   ale już w aktualnej palecie aplikacji. */
body.single-post .parish-single-content a {
    color: var(--parish-brown) !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 2px !important;
}

body.single-post .parish-single-content a:hover,
body.single-post .parish-single-content a:focus {
    color: var(--parish-brown-dark) !important;
}

/* Grafiki — zachowujemy proporcje wpisu i nie rozciągamy
   małych obrazów ponad ich naturalny rozmiar. */
body.single-post .parish-single-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
}

body.single-post .parish-single-content figure,
body.single-post .parish-single-content .wp-block-image {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.single-post .parish-single-content figcaption {
    margin-top: 7px !important;
    color: var(--parish-muted) !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

/* Cytaty */
body.single-post .parish-single-content blockquote {
    margin: 22px 0 !important;
    padding: 13px 16px !important;
    border: 0 !important;
    border-left: 3px solid var(--parish-brown) !important;
    border-radius: 0 !important;
    background: var(--parish-cream) !important;
    color: var(--parish-text) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}

/* Tabele i osadzenia nie mogą wychodzić poza kartę. */
body.single-post .parish-single-content table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
}

body.single-post .parish-single-content iframe,
body.single-post .parish-single-content video,
body.single-post .parish-single-content embed {
    max-width: 100% !important;
}

/* Stopka wpisu — jak dawniej, lekka. */
body.single-post .parish-single-footer {
    margin-top: 28px !important;
    padding-top: 20px !important;
}

body.single-post .parish-single-back {
    min-height: 42px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */
@media only screen and (max-width: 1260px) {
    body.single-post .parish-single-content-grid {
        grid-template-columns: 270px minmax(0, 840px) !important;
        gap: 24px !important;
        max-width: 1140px !important;
    }

    body.single-post .parish-single-widget-area--blog {
        width: 270px !important;
        max-width: 270px !important;
    }
}

@media only screen and (max-width: 1050px) and (min-width: 959px) {
    body.single-post .parish-single-content-grid {
        grid-template-columns: 240px minmax(0, 1fr) !important;
        gap: 20px !important;
        max-width: 960px !important;
    }

    body.single-post .parish-single-widget-area--blog {
        width: 240px !important;
        max-width: 240px !important;
    }
}

@media only screen and (max-width: 958px) {
    body.single-post .parish-single-content-grid {
        display: flex !important;
        flex-direction: column !important;
        max-width: 100% !important;
    }

    body.single-post article.parish-single-post {
        order: 1 !important;
        width: 100% !important;
    }

    body.single-post .parish-single-widget-area--blog {
        order: 2 !important;
        width: 100% !important;
        max-width: none !important;
        margin-top: 24px !important;
    }

    body.single-post .parish-single-card {
        margin: 14px 0 24px !important;
        padding: 18px 16px 22px !important;
        border-radius: 8px !important;
    }

    body.single-post .parish-post-head__title,
    body.single-post h1.parish-post-head__title {
        margin-bottom: 8px !important;
        font-size: 25px !important;
        line-height: 1.3 !important;
    }

    body.single-post .parish-single-content,
    body.single-post .parish-single-content p,
    body.single-post .parish-single-content ul,
    body.single-post .parish-single-content ol,
    body.single-post .parish-single-content li {
        font-size: 16px !important;
        line-height: 1.67 !important;
    }

    body.single-post .parish-single-content h2 {
        font-size: 22px !important;
    }

    body.single-post .parish-single-content h3 {
        font-size: 19px !important;
    }
}


/* =========================================================
   1.1.8 — PRZYWRÓCONY UKŁAD WYDARZENIA Z PIERWSZEGO CHILD THEME
   Plakat mniejszy po lewej, opis po prawej, podpunkty/program niżej.
   ========================================================= */

/* Cały moduł wpisu wydarzenia. */
body.single-post .parish-single-content .pwi-event {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--parish-text) !important;
    font-size: 16.5px !important;
    line-height: 1.66 !important;
    box-sizing: border-box !important;
}

/* Góra: mały plakat + tekst po prawej. */
body.single-post .parish-single-content .pwi-event .pwi-event-top {
    display: grid !important;
    grid-template-columns: 320px minmax(0, 1fr) !important;
    gap: 30px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 28px !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-poster {
    float: none !important;
    display: block !important;
    width: 320px !important;
    max-width: 320px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-poster > img,
body.single-post .parish-single-content .pwi-event .pwi-event-poster img {
    display: block !important;
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 6px !important;
    object-fit: contain !important;
    object-position: center top !important;
}

/* Wiersz data/miejsce pod plakatem, jeśli istnieje w HTML. */
body.single-post .parish-single-content .pwi-event .pwi-event-poster-meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin: 10px 0 0 !important;
    padding: 0 !important;
    color: var(--parish-muted) !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-poster-date,
body.single-post .parish-single-content .pwi-event .pwi-event-poster-location {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
}

/* Prawa kolumna */
body.single-post .parish-single-content .pwi-event .pwi-event-intro {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--parish-text) !important;
    font-size: 17px !important;
    line-height: 1.68 !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-intro p {
    margin: 0 0 15px !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1.68 !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-intro > :first-child {
    margin-top: 0 !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-intro > :last-child {
    margin-bottom: 0 !important;
}

/* Informacje wyróżnione / patronat */
body.single-post .parish-single-content .pwi-event .pwi-event-patronage {
    margin: 18px 0 0 !important;
    padding: 12px 16px !important;
    border-left: 3px solid var(--parish-brown) !important;
    background: var(--parish-cream) !important;
    color: var(--parish-text) !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

/* Starszy wariant bez .pwi-event-top. */
@media only screen and (min-width: 768px) {
    body.single-post .parish-single-content .pwi-event > .pwi-event-poster {
        float: left !important;
        width: 320px !important;
        max-width: 320px !important;
        margin: 0 30px 22px 0 !important;
    }

    body.single-post .parish-single-content .pwi-event > .pwi-event-intro {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
    }
}

/* Program / podpunkty zawsze POD plakatem i opisem. */
body.single-post .parish-single-content .pwi-event .pwi-event-program {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 28px 0 0 !important;
    padding: 0 !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-program-title {
    margin: 0 !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid var(--parish-line) !important;
    color: var(--parish-brown-dark) !important;
    font-size: 21px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

/* Podpunkty 2 x 2 na desktopie. */
body.single-post .parish-single-content .pwi-event .pwi-event-program-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-program-row {
    display: contents !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-program-item,
body.single-post .parish-single-content .pwi-event .pwi-event-program-item:nth-child(odd),
body.single-post .parish-single-content .pwi-event .pwi-event-program-item:nth-child(even) {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 17px 18px !important;
    border-bottom: 1px solid var(--parish-line) !important;
    box-sizing: border-box !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-program-item:nth-child(odd) {
    border-right: 1px solid var(--parish-line) !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-program-content {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    align-items: start !important;
    width: 100% !important;
    min-width: 0 !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-program-icon {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 44px !important;
    min-width: 44px !important;
    margin: 0 !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-program-symbol {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: var(--parish-notice) !important;
    color: var(--parish-brown) !important;
    line-height: 1 !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-program-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-program-text > strong:first-child {
    display: block !important;
    margin: 0 !important;
    color: var(--parish-brown-dark) !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-program-desc,
body.single-post .parish-single-content .pwi-event .pwi-event-program-text span,
body.single-post .parish-single-content .pwi-event .pwi-event-program-text p {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--parish-text) !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-program-text br {
    display: none !important;
}

/* Końcowe zaproszenie pod punktami. */
body.single-post .parish-single-content .pwi-event .pwi-event-invitation {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 26px 0 0 !important;
    padding: 18px 20px !important;
    border: 1px solid var(--parish-line) !important;
    border-radius: 10px !important;
    background: var(--parish-cream) !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-invitation-title {
    color: var(--parish-brown-dark) !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-invitation-text {
    max-width: 680px !important;
    margin: 7px auto 0 !important;
    color: var(--parish-text) !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* Tablet */
@media only screen and (min-width: 768px) and (max-width: 1100px) {
    body.single-post .parish-single-content .pwi-event .pwi-event-top {
        grid-template-columns: 280px minmax(0, 1fr) !important;
        gap: 24px !important;
    }

    body.single-post .parish-single-content .pwi-event .pwi-event-poster,
    body.single-post .parish-single-content .pwi-event > .pwi-event-poster {
        width: 280px !important;
        max-width: 280px !important;
    }

    body.single-post .parish-single-content .pwi-event .pwi-event-poster > img,
    body.single-post .parish-single-content .pwi-event .pwi-event-poster img {
        max-width: 280px !important;
    }
}

/* Telefon — jedna czytelna kolumna. */
@media only screen and (max-width: 767px) {
    body.single-post .parish-single-content .pwi-event .pwi-event-top {
        display: block !important;
        width: 100% !important;
        margin-bottom: 24px !important;
    }

    body.single-post .parish-single-content .pwi-event .pwi-event-poster,
    body.single-post .parish-single-content .pwi-event > .pwi-event-poster {
        float: none !important;
        display: block !important;
        width: 100% !important;
        max-width: 360px !important;
        margin: 0 auto 22px !important;
    }

    body.single-post .parish-single-content .pwi-event .pwi-event-poster > img,
    body.single-post .parish-single-content .pwi-event .pwi-event-poster img {
        width: 100% !important;
        max-width: 360px !important;
        height: auto !important;
    }

    body.single-post .parish-single-content .pwi-event .pwi-event-intro,
    body.single-post .parish-single-content .pwi-event > .pwi-event-intro {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.single-post .parish-single-content .pwi-event .pwi-event-program-grid {
        display: block !important;
    }

    body.single-post .parish-single-content .pwi-event .pwi-event-program-item,
    body.single-post .parish-single-content .pwi-event .pwi-event-program-item:nth-child(odd),
    body.single-post .parish-single-content .pwi-event .pwi-event-program-item:nth-child(even) {
        display: block !important;
        width: 100% !important;
        padding: 14px 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--parish-line) !important;
    }

    body.single-post .parish-single-content .pwi-event .pwi-event-program-content {
        grid-template-columns: 40px minmax(0, 1fr) !important;
        column-gap: 11px !important;
    }

    body.single-post .parish-single-content .pwi-event .pwi-event-program-icon {
        width: 40px !important;
        min-width: 40px !important;
    }

    body.single-post .parish-single-content .pwi-event .pwi-event-program-symbol {
        width: 36px !important;
        height: 36px !important;
    }
}


/* =========================================================
   1.1.9 — CYTAT POD PUNKTAMI + WYŚRODKOWANE ZAPROSZENIE
   ========================================================= */

/* Cytat przeniesiony z „Blog page” do głównej karty wpisu. */
body.single-post .parish-single-content .parish-inline-bible-quote {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 26px 0 18px !important;
    padding: 24px 28px !important;
    box-sizing: border-box !important;
    border: 1px solid var(--parish-line) !important;
    border-radius: 10px !important;
    background: var(--parish-cream) !important;
    color: var(--parish-text) !important;
    text-align: center !important;
}

body.single-post .parish-single-content .parish-inline-bible-quote .widget,
body.single-post .parish-single-content .parish-inline-bible-quote aside,
body.single-post .parish-single-content .parish-inline-bible-quote .widget-box {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    text-align: center !important;
}

body.single-post .parish-single-content .parish-inline-bible-quote h2,
body.single-post .parish-single-content .parish-inline-bible-quote h3,
body.single-post .parish-single-content .parish-inline-bible-quote h4,
body.single-post .parish-single-content .parish-inline-bible-quote .widget-title {
    margin: 0 0 12px !important;
    color: var(--parish-brown-dark) !important;
    font-size: 20px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    text-align: center !important;
}

body.single-post .parish-single-content .parish-inline-bible-quote p,
body.single-post .parish-single-content .parish-inline-bible-quote div,
body.single-post .parish-single-content .parish-inline-bible-quote span {
    text-align: center !important;
}

body.single-post .parish-single-content .parish-inline-bible-quote p {
    margin: 0 auto 7px !important;
    max-width: 680px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* Karta „Zapraszamy” — cała treść wyśrodkowana. */
body.single-post .parish-single-content .pwi-event .pwi-event-invitation {
    margin-top: 18px !important;
    text-align: center !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-invitation h2,
body.single-post .parish-single-content .pwi-event .pwi-event-invitation h3,
body.single-post .parish-single-content .pwi-event .pwi-event-invitation h4,
body.single-post .parish-single-content .pwi-event .pwi-event-invitation p,
body.single-post .parish-single-content .pwi-event .pwi-event-invitation div,
body.single-post .parish-single-content .pwi-event .pwi-event-invitation span {
    text-align: center !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-invitation p {
    margin-left: auto !important;
    margin-right: auto !important;
}

@media only screen and (max-width: 767px) {
    body.single-post .parish-single-content .parish-inline-bible-quote {
        margin: 22px 0 16px !important;
        padding: 20px 16px !important;
        border-radius: 8px !important;
    }
}


/* =========================================================
   1.1.10 — DOCELOWA KARTA CYTATU Z WTYCZKI
   =========================================================
   Struktura i dane: wtyczka Parafia Wiersze.
   Wygląd: motyw potomny.
   ========================================================= */

body.single-post .parish-single-content .pwi-event .pwi-event-verse-card {
    display: block !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 26px 0 16px !important;
    padding: 26px 28px !important;
    box-sizing: border-box !important;
    border: 1px solid var(--parish-line) !important;
    border-radius: 12px !important;
    background: var(--parish-cream) !important;
    box-shadow: none !important;
    color: var(--parish-text) !important;
    text-align: center !important;
    overflow: visible !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-verse-title {
    display: block !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    color: var(--parish-brown-dark) !important;
    font-size: 20px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    text-align: center !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-verse-content {
    display: block !important;
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    color: var(--parish-text) !important;
    font-size: 16px !important;
    line-height: 1.62 !important;
    text-align: center !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-verse-content .pwi-daily-verse {
    display: block !important;
    width: 100% !important;
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    color: var(--parish-text) !important;
    background: transparent !important;
    font-size: 16px !important;
    line-height: 1.62 !important;
    text-align: center !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-verse-content .pwi-daily-verse__text {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--parish-text) !important;
    font-size: 16px !important;
    line-height: 1.62 !important;
    font-weight: 400 !important;
    text-align: center !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-verse-content .pwi-daily-verse__reference {
    display: block !important;
    margin: 9px auto 0 !important;
    padding: 0 !important;
    color: var(--parish-brown) !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    text-align: center !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-verse-cross {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 210px !important;
    margin: 17px auto 0 !important;
    color: var(--parish-brown) !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-verse-cross > span {
    display: block !important;
    flex: 1 1 auto !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--parish-brown) !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-verse-cross > b {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--parish-brown) !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
}

/* Karta „Zapraszamy” bezpośrednio pod cytatem. */
body.single-post .parish-single-content .pwi-event .pwi-event-verse-card + .pwi-event-invitation {
    margin-top: 0 !important;
}

body.single-post .parish-single-content .pwi-event .pwi-event-invitation,
body.single-post .parish-single-content .pwi-event .pwi-event-invitation-title,
body.single-post .parish-single-content .pwi-event .pwi-event-invitation-text,
body.single-post .parish-single-content .pwi-event .pwi-event-invitation-text p {
    text-align: center !important;
}

@media only screen and (max-width: 767px) {
    body.single-post .parish-single-content .pwi-event .pwi-event-verse-card {
        margin: 22px 0 14px !important;
        padding: 22px 16px !important;
        border-radius: 10px !important;
    }

    body.single-post .parish-single-content .pwi-event .pwi-event-verse-title {
        font-size: 19px !important;
    }

    body.single-post .parish-single-content .pwi-event .pwi-event-verse-content,
    body.single-post .parish-single-content .pwi-event .pwi-event-verse-content .pwi-daily-verse,
    body.single-post .parish-single-content .pwi-event .pwi-event-verse-content .pwi-daily-verse__text {
        font-size: 15.5px !important;
    }
}


/* =========================================================
   1.1.11 — NAGŁÓWEK AKTUALNOŚCI
   =========================================================
   Komputer:
   - data + kategoria po lewej,
   - przyciski społecznościowe po prawej,
   - oba elementy NAD tytułem.
   Telefon:
   - zachowujemy czytelny układ bez ściskania przycisków.
   ========================================================= */

@media only screen and (min-width: 768px) {
    body.single-post .parish-single-content .pwi-event--news .pwi-event-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "meta actions"
            "title title" !important;
        column-gap: 20px !important;
        row-gap: 12px !important;
        align-items: center !important;
    }

    body.single-post .parish-single-content .pwi-event--news .pwi-event-meta {
        grid-area: meta !important;
        margin: 0 !important;
        align-self: center !important;
    }

    body.single-post .parish-single-content .pwi-event--news .pwi-event-actions {
        grid-area: actions !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: auto !important;
        margin: 0 !important;
        align-self: center !important;
    }

    body.single-post .parish-single-content .pwi-event--news .pwi-event-title {
        grid-area: title !important;
        width: 100% !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

/*
 * W części starszych wpisów meta, tytuł i przyciski nie mają wspólnego
 * .pwi-event-header. Wtedy JS poniżej dostaje klasę pomocniczą
 * .parish-news-header-modern i CSS daje ten sam układ.
 */
@media only screen and (min-width: 768px) {
    body.single-post .parish-single-content .parish-news-header-modern {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "meta actions"
            "title title" !important;
        column-gap: 20px !important;
        row-gap: 12px !important;
        align-items: center !important;
    }

    body.single-post .parish-single-content .parish-news-header-modern > .pwi-event-meta {
        grid-area: meta !important;
        margin: 0 !important;
    }

    body.single-post .parish-single-content .parish-news-header-modern > .pwi-event-actions {
        grid-area: actions !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        margin: 0 !important;
    }

    body.single-post .parish-single-content .parish-news-header-modern > .pwi-event-title {
        grid-area: title !important;
        margin: 0 !important;
    }
}

@media only screen and (max-width: 767px) {
    body.single-post .parish-single-content .pwi-event--news .pwi-event-header,
    body.single-post .parish-single-content .parish-news-header-modern {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    body.single-post .parish-single-content .pwi-event--news .pwi-event-actions,
    body.single-post .parish-single-content .parish-news-header-modern > .pwi-event-actions {
        order: 2 !important;
        justify-content: flex-start !important;
        margin: 0 !important;
    }

    body.single-post .parish-single-content .pwi-event--news .pwi-event-title,
    body.single-post .parish-single-content .parish-news-header-modern > .pwi-event-title {
        order: 3 !important;
        margin-top: 0 !important;
    }
}


/* =========================================================
   1.1.12 — PRAWDZIWY NAGŁÓWEK SINGLE.PHP
   =========================================================
   Poprzednia wersja celowała w nagłówek .pwi-event w treści.
   Faktyczny nagłówek pojedynczego wpisu jest generowany przez
   single.php jako .parish-post-head.
   ========================================================= */

@media only screen and (min-width: 768px) {

    body.single-post .parish-post-head {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "meta share"
            "title title" !important;
        column-gap: 20px !important;
        row-gap: 10px !important;
        align-items: center !important;
        margin: 0 0 24px !important;
        padding: 0 0 18px !important;
    }

    body.single-post .parish-post-head__meta {
        grid-area: meta !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: center !important;
    }

    body.single-post .parish-post-share {
        grid-area: share !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: center !important;
    }

    body.single-post .parish-post-head__title,
    body.single-post h1.parish-post-head__title {
        grid-area: title !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }
}

/* Telefon: data, potem przyciski, potem tytuł. */
@media only screen and (max-width: 767px) {

    body.single-post .parish-post-head {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    body.single-post .parish-post-head__meta {
        order: 1 !important;
        margin: 0 !important;
    }

    body.single-post .parish-post-share {
        order: 2 !important;
        justify-content: flex-start !important;
        margin: 0 !important;
    }

    body.single-post .parish-post-head__title,
    body.single-post h1.parish-post-head__title {
        order: 3 !important;
        margin: 0 !important;
    }
}


/* =========================================================
   1.1.13 — CYTAT: OGŁOSZENIA + INTENCJE
   =========================================================
   Dane i położenie karty pozostają po stronie wtyczki.
   Motyw potomny nadaje cytatowi spokojny zielony wygląd
   zgodny z zaakceptowanym wzorem.
   Aktualności zachowują dotychczasową kremową kartę.
   ========================================================= */

body.single-post .parish-single-post--announcements .pwi-event .pwi-event-verse-card,
body.single-post .parish-single-post--intentions .pwi-event .pwi-event-verse-card {
    position: relative !important;
    display: block !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 24px 0 18px !important;
    padding: 24px 34px 24px 42px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-left: 7px solid #2E7D32 !important;
    border-radius: 6px !important;
    background: #F5F9F3 !important;
    box-shadow: none !important;
    color: #1F6B2A !important;
    text-align: left !important;
    overflow: visible !important;
}

/* W zielonej wersji nie powtarzamy technicznego nagłówka karty. */
body.single-post .parish-single-post--announcements .pwi-event .pwi-event-verse-title,
body.single-post .parish-single-post--intentions .pwi-event .pwi-event-verse-title {
    display: none !important;
}

/* Treść cytatu. */
body.single-post .parish-single-post--announcements .pwi-event .pwi-event-verse-content,
body.single-post .parish-single-post--intentions .pwi-event .pwi-event-verse-content,
body.single-post .parish-single-post--announcements .pwi-event .pwi-event-verse-content .pwi-daily-verse,
body.single-post .parish-single-post--intentions .pwi-event .pwi-event-verse-content .pwi-daily-verse {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #1F6B2A !important;
    font-size: 19px !important;
    line-height: 1.58 !important;
    font-weight: 400 !important;
    text-align: left !important;
}

body.single-post .parish-single-post--announcements .pwi-event .pwi-event-verse-content .pwi-daily-verse__text,
body.single-post .parish-single-post--intentions .pwi-event .pwi-event-verse-content .pwi-daily-verse__text {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #1F6B2A !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: 400 !important;
    text-align: left !important;
}

/* Odnośnik pozostaje, ale jest subtelniejszy i również zielony. */
body.single-post .parish-single-post--announcements .pwi-event .pwi-event-verse-content .pwi-daily-verse__reference,
body.single-post .parish-single-post--intentions .pwi-event .pwi-event-verse-content .pwi-daily-verse__reference {
    display: block !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    color: #2E7D32 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    text-align: left !important;
}

/* Zielona karta nie potrzebuje ozdobnego krzyża i linii. */
body.single-post .parish-single-post--announcements .pwi-event .pwi-event-verse-cross,
body.single-post .parish-single-post--intentions .pwi-event .pwi-event-verse-cross {
    display: none !important;
}

@media only screen and (max-width: 767px) {
    body.single-post .parish-single-post--announcements .pwi-event .pwi-event-verse-card,
    body.single-post .parish-single-post--intentions .pwi-event .pwi-event-verse-card {
        margin: 20px 0 16px !important;
        padding: 18px 18px 18px 24px !important;
        border-left-width: 6px !important;
        border-radius: 5px !important;
    }

    body.single-post .parish-single-post--announcements .pwi-event .pwi-event-verse-content,
    body.single-post .parish-single-post--intentions .pwi-event .pwi-event-verse-content,
    body.single-post .parish-single-post--announcements .pwi-event .pwi-event-verse-content .pwi-daily-verse,
    body.single-post .parish-single-post--intentions .pwi-event .pwi-event-verse-content .pwi-daily-verse {
        font-size: 17px !important;
        line-height: 1.55 !important;
    }
}


/* =========================================================
   1.1.14 — PEWNA POPRAWKA CYTATU: OGŁOSZENIA + INTENCJE
   =========================================================
   1.1.13 celowała w kartę .pwi-event-verse-card, która nie
   występuje w zwykłych wpisach Ogłoszeń i Intencji.
   Tutaj stylujemy bezpośrednio rzeczywisty shortcode:
   .pwi-daily-verse.
   ========================================================= */

body.single-post .parish-single-post--announcements .parish-single-content .pwi-daily-verse,
body.single-post .parish-single-post--intentions .parish-single-content .pwi-daily-verse {
    display: block !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    margin: 24px 0 20px !important;
    padding: 24px 34px 24px 42px !important;
    border: 0 !important;
    border-left: 7px solid #2E7D32 !important;
    border-radius: 6px !important;
    background: #F5F9F3 !important;
    box-shadow: none !important;
    color: #1F6B2A !important;
    font-size: 19px !important;
    line-height: 1.58 !important;
    font-weight: 400 !important;
    text-align: left !important;
}

body.single-post .parish-single-post--announcements .parish-single-content .pwi-daily-verse__text,
body.single-post .parish-single-post--intentions .parish-single-content .pwi-daily-verse__text {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #1F6B2A !important;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: 400 !important;
    text-align: left !important;
}

body.single-post .parish-single-post--announcements .parish-single-content .pwi-daily-verse__reference,
body.single-post .parish-single-post--intentions .parish-single-content .pwi-daily-verse__reference {
    display: block !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    color: #2E7D32 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    text-align: left !important;
}

/* WordPress może opakować sam shortcode w akapit.
   Zerujemy margines tego akapitu, aby karta miała własne odstępy. */
body.single-post .parish-single-post--announcements .parish-single-content p:has(> .pwi-daily-verse),
body.single-post .parish-single-post--intentions .parish-single-content p:has(> .pwi-daily-verse) {
    margin: 0 !important;
    padding: 0 !important;
}

/* Jeżeli cytat jest jednak osadzony w karcie wydarzenia,
   nie nakładamy dwóch ramek/tła jednocześnie. */
body.single-post .parish-single-post--announcements .pwi-event-verse-card:has(.pwi-daily-verse),
body.single-post .parish-single-post--intentions .pwi-event-verse-card:has(.pwi-daily-verse) {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-post .parish-single-post--announcements .pwi-event-verse-card .pwi-event-verse-title,
body.single-post .parish-single-post--intentions .pwi-event-verse-card .pwi-event-verse-title,
body.single-post .parish-single-post--announcements .pwi-event-verse-card .pwi-event-verse-cross,
body.single-post .parish-single-post--intentions .pwi-event-verse-card .pwi-event-verse-cross {
    display: none !important;
}

@media only screen and (max-width: 767px) {
    body.single-post .parish-single-post--announcements .parish-single-content .pwi-daily-verse,
    body.single-post .parish-single-post--intentions .parish-single-content .pwi-daily-verse {
        margin: 20px 0 16px !important;
        padding: 18px 18px 18px 24px !important;
        border-left-width: 6px !important;
        border-radius: 5px !important;
        font-size: 17px !important;
        line-height: 1.55 !important;
    }
}


/* 1.1.15 — Blog page na telefonie: pełna szerokość bez przelewania. */
@media only screen and (max-width:958px) {
    body.single-post .parish-single-widget-area--blog,
    body.single-post .parish-single-widget-area--blog .widget,
    body.single-post .parish-single-widget-area--blog .widget-box,
    body.single-post .parish-single-widget-area--blog aside,
    body.single-post .parish-single-widget-area--blog img,
    body.single-post .parish-single-widget-area--blog iframe {
        max-width:100%!important;
        min-width:0!important;
        box-sizing:border-box!important;
    }

    body.single-post .parish-single-widget-area--blog {
        width:100%!important;
        margin:24px 0 0!important;
        padding:0!important;
        overflow:hidden!important;
    }

    body.single-post .parish-single-widget-area--blog .widget,
    body.single-post .parish-single-widget-area--blog .widget-box,
    body.single-post .parish-single-widget-area--blog aside {
        width:100%!important;
        margin-left:0!important;
        margin-right:0!important;
        overflow:hidden!important;
    }

    body.single-post .parish-single-widget-area--blog p,
    body.single-post .parish-single-widget-area--blog li,
    body.single-post .parish-single-widget-area--blog a,
    body.single-post .parish-single-widget-area--blog span {
        max-width:100%!important;
        white-space:normal!important;
        overflow-wrap:anywhere!important;
    }
}


/* =========================================================
   1.2.0 — BIAŁA BAZA POJEDYNCZEGO WPISU
   ========================================================= */
body.single-post #main-content,
body.single-post .parish-single-page-wrapper {
    background: #FFFFFF !important;
}

body.single-post .parish-single-card {
    background: #FFFFFF !important;
}

/* Krem zostaje tylko jako świadome wyróżnienie wewnątrz treści:
   cytaty, patronat i podobne lokalne bloki. */

/* =========================================================
   1.2.42 — MOBILE: Ogłoszenia bez odstępu pod nagłówkiem
   Usuwamy wyłącznie górny odstęp wrappera pojedynczego wpisu
   Ogłoszeń parafialnych. Pozostałe wpisy, HOME i desktop bez zmian.
   ========================================================= */
@media only screen and (max-width:958px) {
    body.single-post .parish-single-page-wrapper:has(.parish-single-post--announcements) {
        padding-top: 0 !important;
    }
}


/* =========================================================
   1.2.43 — MOBILE: rzeczywisty odstęp pod nagłówkiem Ogłoszeń
   HTML strony pokazuje drugi, wewnętrzny #main > .limit-wrapper.
   Globalne ustawienie motywu nadaje mu --pwi-mobile-top-gap,
   dlatego samo zerowanie .parish-single-page-wrapper nie działało.
   Dla Ogłoszeń zerujemy wyłącznie ten wewnętrzny padding; pozostaje
   kontrolowane 16 px margin-bottom samego nagłówka PWI.
   ========================================================= */
@media only screen and (max-width:958px) {
    body.single-post:has(article.parish-single-post--announcements)
    .parish-single-layout > .pane-wrapper > #main-content > #main > .limit-wrapper {
        padding-top: 0 !important;
    }
}


/* =========================================================
   1.2.44 — MOBILE: Ogłoszenia podciągnięte bezpośrednio pod nagłówek
   HTML pokazuje, że #pwi-mobile-header i .parish-single-layout są
   rodzeństwem w zewnętrznym #main > .limit-wrapper. Późny CSS wtyczki
   ponownie nadaje wewnętrznemu .limit-wrapper odstęp 10 px, a Vamtam
   zachowuje dodatkową rezerwę układu. Zamiast kolejny raz zerować
   wnętrze karty, podciągamy cały layout Ogłoszeń jako jeden blok.
   Dotyczy wyłącznie pojedynczych Ogłoszeń na mobile.
   ========================================================= */
@media only screen and (max-width:958px) {
    html body.single-post:has(article.parish-single-post--announcements)
    #pwi-mobile-header + #pwi-mobile-search + .parish-single-layout {
        margin-top:-40px!important;
    }

    html body.single-post:has(article.parish-single-post--announcements)
    .parish-single-layout > .pane-wrapper > #main-content > #main > .limit-wrapper {
        padding-top:0!important;
        margin-top:0!important;
    }
}


/* =========================================================
   1.2.45 — MOBILE: kosmetyczne opuszczenie Ogłoszeń po 1.2.44
   1.2.44 usunęła duży odstęp, ale karta tytułowa weszła kilka px
   pod biały nagłówek. Cofamy podciągnięcie o 8 px: -40 -> -32 px.
   Nagłówek, szerokości, HOME, inne wpisy i desktop bez zmian.
   ========================================================= */
@media only screen and (max-width:958px) {
    html body.single-post:has(article.parish-single-post--announcements)
    #pwi-mobile-header + #pwi-mobile-search + .parish-single-layout {
        margin-top:-32px!important;
    }
}

/* =========================================================
   1.2.46 — MOBILE: Ogłoszenia jeszcze 12 px niżej
   Po 1.2.45 tytuł nadal częściowo chował się pod białym nagłówkiem.
   Zmniejszamy podciągnięcie całego layoutu z -32 px do -20 px.
   Tylko pojedyncze Ogłoszenia na mobile; pozostały układ bez zmian.
   ========================================================= */
@media only screen and (max-width:958px) {
    html body.single-post:has(article.parish-single-post--announcements)
    #pwi-mobile-header + #pwi-mobile-search + .parish-single-layout {
        margin-top:-20px!important;
    }
}

/* =========================================================
   1.2.47 — MOBILE: końcowe opuszczenie Ogłoszeń o 8 px
   Względem 1.2.46 zmniejszamy podciągnięcie z -20 px do -12 px.
   Tylko pojedyncze Ogłoszenia na telefonie.
   ========================================================= */
@media (max-width:958px){
    html body.single-post:has(article.parish-single-post--announcements) .parish-single-layout{
        margin-top:-14px!important;
    }
}


/* =========================================================
   1.2.48 — MOBILE: Ogłoszenia opuszczone o kolejne 4 px
   Kosmetyczna korekta po 1.2.47, aby odsłonić całą ramkę tytułu.
   Dotyczy wyłącznie pojedynczych Ogłoszeń na mobile.
   ========================================================= */
@media only screen and (max-width:958px) {
    html body.single-post:has(article.parish-single-post--announcements)
    #pwi-mobile-header + #pwi-mobile-search + .parish-single-layout {
        margin-top:-14px!important;
    }
}


/* =========================================================
   1.2.53 — WPISY: globalny odstęp między końcem modułu a stopką
   Zmniejszamy dolną rezerwę wrappera pojedynczego wpisu do 24 px.
   Dotyczy wszystkich pojedynczych wpisów; wnętrze modułów i stopka
   pozostają bez zmian.
   ========================================================= */
body.single-post .parish-single-page-wrapper {
    padding-bottom:24px!important;
}

/* =========================================================
   1.2.54 — MOBILE: rzeczywisty odstęp pod modułem Ogłoszeń
   Kod źródłowy strony potwierdził, że aktywny moduł ma klasę
   .pwi-ann-app, a jego zakończenie .pwi-ann-app__closing.
   Zmniejszamy dolny margines całego modułu z 20 px do 10 px,
   dzięki czemu stopka podchodzi o 10 px wyżej.
   ========================================================= */
@media (max-width:958px){
    body.single-post article.parish-single-post--announcements .pwi-ann-app{
        margin-bottom:10px!important;
    }
}
