 @font-face {
    font-family: 'Libre Caslon Condensed';
    src: url('/nowa/fonts/LibreCaslonCondensed-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'Libre Caslon Condensed';
    src: url('/nowa/fonts/LibreCaslonCondensed-Italic-VariableFont_wght.ttf') format('truetype');
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

* {
    box-sizing: border-box;
}


html,
body,
button,
input,
textarea,
select {
    font-family: 'Libre Caslon Condensed', Georgia, serif;
}


html {
    scroll-behavior: smooth;
    min-height: 100%;
    background: #071f38;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Libre Caslon Condensed', Georgia, serif;
    color: #262626;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.theme-default {
    background-color: #071f38;
}

body.theme-mourning {
    background-color: #111315;
}

body.theme-special {
    background:
        linear-gradient(rgba(3,18,32,0.58), rgba(3,18,32,0.58)),
        url('/nowa/img/tla/specjalne.jpg') center top / cover fixed no-repeat;
}

.site-wrap {
    width: 1240px;
    max-width: calc(100% - 32px);
    margin: 0 auto;
}

.site-header {
    padding: 22px 0 18px;
}

.header-box {
    background: rgba(232, 224, 207, 0.96);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    border: 1px solid rgba(173, 145, 92, 0.30);
    padding: 18px 22px;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.25fr) auto;
    align-items: center;
    gap: 20px;
}

.parish-title {
    margin: 0;
    text-transform: uppercase;
    line-height: 1.05;
}

.parish-title .small {
    display: block;
    font-size: 16px;
    letter-spacing: 0.12em;
    font-weight: 400;
    margin-bottom: 5px;
    color: #555;
}

.parish-title .main {
    display: block;
    font-size: 38px;
    font-weight: 700;
    color: #8d2429;
}

.parish-title .arch {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: none;
    color: #666;
    font-weight: 400;
}


/* Metryczka liturgiczna */
.liturgia-card {
    min-width: 0;
    padding: 8px 14px;
    border-left: 1px solid rgba(173,145,92,0.42);
    border-right: 1px solid rgba(173,145,92,0.42);
    color: #17324a;
}

.liturgia-card-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 3px;
}

.liturgia-date {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #655e53;
}

.liturgia-cycle {
    flex: 0 0 auto;
    padding: 2px 7px;
    border: 1px solid rgba(173,145,92,0.55);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #72552d;
}

.liturgia-celebration {
    font-size: 19px;
    line-height: 1.05;
    font-weight: 700;
    color: #8d2429;
}

.liturgia-period {
    margin-top: 2px;
    font-size: 13px;
    font-style: italic;
    color: #60584d;
}

.liturgia-readings {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.2;
    color: #31485b;
}

.liturgia-source {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
    color: #806b48;
    text-decoration: none;
}

.liturgia-source:hover {
    text-decoration: underline;
}

.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 260px;
    gap: 22px;
    align-items: start;
    padding-bottom: 28px;
}

.side-panel {
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    background: rgba(232, 224, 207, 0.96);
}

.side-panel img {
    display: block;
    width: 100%;
    height: auto;
}

.left-banner .slide {
    display: none;
}

.left-banner .slide:first-child {
    display: block;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tile {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    background: #ddd;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.30);
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.tile:hover img {
    transform: scale(1.05);
}

.tile-label {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 10px;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 14px);
    min-height: 0;
    padding: 5px 11px;
    display: block;
    text-align: center;
    white-space: nowrap;
    background: rgba(216, 202, 176, 0.93);
    color: #17324a;
    font-size: 22px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 6px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.16);
}

.tile:hover .tile-label {
    background: rgba(225, 212, 188, 0.98);
}

.site-footer {
    width: 1240px;
    max-width: calc(100% - 32px);
    margin: 4px auto 24px;
    clear: both;
    font-family: 'Libre Caslon Condensed', Georgia, serif;
}

.footer-box {
    background: rgba(232, 224, 207, 0.96);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    border: 1px solid rgba(173, 145, 92, 0.30);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1.15fr 1.25fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.footer-column {
    padding: 24px 26px;
    border-right: 1px solid rgba(7,31,56,0.10);
}

.footer-column:last-child {
    border-right: none;
}

.footer-column h2 {
    margin: 0 0 10px;
    color: #12304a;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-column p {
    margin: 0;
    color: #4f5e6a;
    font-size: 14px;
    line-height: 1.6;
}

.footer-column a {
    color: #12304a;
    text-decoration: none;
    font-weight: 500;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-muted {
    margin-top: 7px !important;
    color: #7c8790 !important;
}

.bank-account {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #12304a !important;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 13px 15px 0;
    color: rgba(255,255,255,0.78);
    font-size: 12px;
    text-align: center;
}

.footer-separator {
    opacity: 0.55;
}


.live-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 18px;
    border-radius: 10px;
    background: #b5232d;
    color: #fff;
    text-decoration: none;
    font-family: 'Libre Caslon Condensed', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.025em;
    box-shadow: 0 6px 16px rgba(181,35,45,0.28);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.live-button:hover {
    background: #951c24;
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(181,35,45,0.34);
}

.live-icon {
    font-size: 13px;
}


@media (max-width: 1180px) {
    .header-box {
        grid-template-columns: 1fr auto;
    }

    .liturgia-card {
        grid-column: 1 / -1;
        grid-row: 2;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(173,145,92,0.35);
        padding: 10px 0 2px;
    }
}

@media (max-width: 1050px) {
    .home-layout {
        grid-template-columns: 1fr 2fr;
    }

    
}

@media (max-width: 760px) {
    .site-wrap,
    .site-footer {
        max-width: calc(100% - 20px);
    }

    .header-box {
        text-align: center;
        padding: 18px;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .liturgia-card {
        grid-column: auto;
        grid-row: auto;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(173,145,92,0.35);
        border-bottom: 1px solid rgba(173,145,92,0.35);
        padding: 10px 0;
    }

    .liturgia-card-top,
    .liturgia-readings {
        justify-content: center;
    }

    .live-button {
        width: 100%;
        max-width: 300px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-column {
        padding: 19px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(7,31,56,0.10);
        text-align: center;
    }

    .footer-column:last-child {
        border-bottom: none;
    }

    .parish-title .main {
        font-size: 28px;
    }

    .home-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    
.tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 430px) {
    .tiles {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .tile-label {
        font-size: 11px;
        padding: 3px 5px;
        bottom: 5px;
        letter-spacing: 0;
    }
}


.parish-title,
.parish-title .small,
.parish-title .main,
.parish-title .arch,
.tile-label,
.footer-box {
    font-family: 'Libre Caslon Condensed', Georgia, serif;
}

.footer-column h2::after {
    content: '';
    display: block;
    width: 34px;
    height: 2px;
    margin-top: 7px;
    background: #ad915c;
    border-radius: 2px;
}


/* --- Prawy baner: grafika zawsze mieści się w kolumnie --- */
.right-banner {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-banner > * {
    max-width: 100%;
    max-height: 100%;
}

.right-banner a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.right-banner img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center top;
}



/* --- Wspólny układ podstron --- */
.subpage-layout {
    padding-bottom: 28px;
}

.subpage-content {
    background: rgba(232, 224, 207, 0.96);
    border: 1px solid rgba(173, 145, 92, 0.30);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    padding: 32px 36px;
    color: #263b4d;
}

.subpage-content > h1:first-child {
    margin-top: 0;
    color: #8d2429;
    font-size: 34px;
    line-height: 1.1;
}

@media (max-width: 760px) {
    .subpage-content {
        padding: 22px 18px;
    }

    .subpage-content > h1:first-child {
        font-size: 28px;
    }
}


/* --- Mobilne przyciski do banerów --- */
.mobile-banner-controls {
    display: none;
}

.mobile-banner-close {
    display: none;
}

@media (max-width: 760px) {
    body.mobile-banner-active {
        overflow: hidden;
    }

    .mobile-banner-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }

    .mobile-banner-button {
        border: 1px solid rgba(173,145,92,0.45);
        border-radius: 8px;
        background: rgba(232,224,207,0.96);
        color: #17324a;
        padding: 8px 10px;
        font-family: 'Libre Caslon Condensed', Georgia, serif;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.14);
    }

    .mobile-expandable-banner {
        display: none !important;
    }

    .mobile-expandable-banner.mobile-open {
        display: flex !important;
        position: fixed;
        inset: 0;
        z-index: 9999;
        width: 100vw;
        height: 100vh !important;
        max-height: none !important;
        margin: 0;
        padding: 54px 14px 18px;
        border-radius: 0;
        background: #071f38;
        box-shadow: none;
        overflow: auto;
        align-items: flex-start;
        justify-content: center;
    }

    .mobile-expandable-banner.mobile-open > img,
    .mobile-expandable-banner.mobile-open > a,
    .mobile-expandable-banner.mobile-open > div {
        max-width: 100%;
        max-height: calc(100vh - 80px);
    }

    .mobile-expandable-banner.mobile-open img {
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: calc(100vh - 80px);
        object-fit: contain;
        margin: 0 auto;
    }

    .mobile-banner-close {
        display: none;
    }

    .mobile-open .mobile-banner-close {
        display: block;
        position: fixed;
        top: 10px;
        right: 14px;
        z-index: 10001;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(232,224,207,0.96);
        color: #17324a;
        font-size: 28px;
        line-height: 34px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }
}


/* =========================================================
   PODSTRONY: układ menu + treść + baner
   ========================================================= */

.subpage-three-column {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: start;
    padding-bottom: 30px;
}

.subpage-menu {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 10px;
}

.subpage-menu-tile {
    min-height: 86px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    text-decoration: none;
    border-radius: 14px;
    border: 1px solid rgba(173,145,92,0.34);
    background: rgba(216,202,176,0.95);
    color: #17324a;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.05;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.subpage-menu-tile:hover {
    transform: translateY(-3px);
    background: rgba(232,224,207,0.98);
    box-shadow: 0 12px 28px rgba(0,0,0,0.24);
}

.subpage-menu-tile.active {
    border-color: rgba(141,36,41,0.30);
}

.subpage-menu-icon {
    font-size: 28px;
    line-height: 1;
    color: #8d2429;
}

.subpage-main-content {
    min-width: 0;
    padding: 30px 34px 34px;
    border-radius: 14px;
    border: 1px solid rgba(173,145,92,0.30);
    background: rgba(232,224,207,0.97);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    color: #263b4d;
}

.subpage-title-block {
    margin-bottom: 24px;
    text-align: center;
}

.subpage-kicker {
    display: block;
    margin-bottom: 5px;
    color: #6c6255;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.subpage-title-block h1 {
    margin: 0;
    color: #8d2429;
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
}

.subpage-title-line {
    width: 72px;
    height: 2px;
    margin: 13px auto 0;
    border-radius: 3px;
    background: #ad915c;
}

.legacy-content {
    font-size: 18px;
    line-height: 1.55;
}

.legacy-content h1,
.legacy-content h2,
.legacy-content h3 {
    color: #17324a;
    line-height: 1.1;
}

.legacy-content h1 {
    font-size: 30px;
}

.legacy-content h2 {
    margin-top: 28px;
    font-size: 24px;
    color: #8d2429;
}

.legacy-content h3 {
    font-size: 20px;
}

.legacy-content p {
    margin: 0 0 14px;
}

.legacy-content ul,
.legacy-content ol {
    padding-left: 24px;
}

.legacy-content li {
    margin-bottom: 6px;
}

.legacy-content img {
    max-width: 100%;
    height: auto !important;
    border-radius: 10px;
}

.legacy-content table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
}

.legacy-content td,
.legacy-content th {
    padding: 9px 11px;
    border-bottom: 1px solid rgba(23,50,74,0.12);
    vertical-align: top;
}

.legacy-content a {
    color: #8d2429;
}

.content-notice {
    padding: 18px 20px;
    border-radius: 10px;
    background: rgba(255,255,255,0.40);
    border-left: 4px solid #ad915c;
}

.content-notice p {
    margin: 8px 0 0;
}

.subpage-side-banner {
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(173,145,92,0.30);
    background: rgba(232,224,207,0.96);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

.subpage-side-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Tablet */
@media (max-width: 1050px) {
    .subpage-three-column {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .subpage-side-banner {
        display: none;
    }
}

/* Telefon */
@media (max-width: 760px) {
    .subpage-three-column {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .subpage-menu {
        position: static;
        display: block;
    }

    .subpage-menu-tile {
        min-height: 0;
        padding: 9px 14px;
        flex-direction: row;
        border-radius: 10px;
        font-size: 16px;
    }

    .subpage-menu-icon {
        font-size: 20px;
    }

    .subpage-main-content {
        padding: 22px 18px 26px;
    }

    .subpage-title-block {
        margin-bottom: 18px;
    }

    .subpage-title-block h1 {
        font-size: 34px;
    }

    .legacy-content {
        font-size: 17px;
    }

    .legacy-content table {
        display: block;
        overflow-x: auto;
    }
}


/* --- Nabożeństwa: uporządkowanie treści --- */
.content-section + .content-section {
    margin-top: 34px;
}

.content-section > h2 {
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(173,145,92,0.38);
}

.service-card,
.mass-box {
    margin: 0 0 14px;
    padding: 15px 17px;
    border-radius: 10px;
    border: 1px solid rgba(173,145,92,0.22);
    background: rgba(255,255,255,0.26);
}

.service-card h3,
.mass-box h3 {
    margin: 0 0 7px;
    color: #17324a;
    font-size: 20px;
}

.service-card p,
.mass-box p {
    margin: 4px 0;
}

.service-card ul {
    margin: 7px 0 0;
}

.service-note,
.service-note-inline {
    color: #6c6255;
    font-style: italic;
}

.mass-time {
    font-size: 24px;
    font-weight: 700;
    color: #8d2429;
}

.mass-place {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(23,50,74,0.10);
}

.mass-place strong {
    color: #8d2429;
    font-size: 18px;
}


/* =========================================================
   OGŁOSZENIA / INTENCJE RÓŻAŃCOWE / STANDARDY
   ========================================================= */

.subpage-right-stack {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.announcement-date {
    margin: 0 0 22px;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(141,36,41,0.08);
    border: 1px solid rgba(141,36,41,0.14);
    text-align: center;
    color: #8d2429;
}

.announcement-date span {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6c6255;
}

.announcement-date strong {
    font-size: 24px;
    line-height: 1.1;
}

.announcement-content {
    font-size: 18px;
    line-height: 1.58;
    color: #263b4d;
}

.announcement-content p {
    margin: 0 0 14px;
}

.announcement-content ul,
.announcement-content ol {
    padding-left: 24px;
}

.announcement-content li {
    margin-bottom: 7px;
}

.announcement-content a {
    color: #8d2429;
}

.announcement-content img {
    max-width: 100%;
    height: auto !important;
}

.announcement-content table {
    width: 100% !important;
    max-width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.announcement-content td,
.announcement-content th {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(23,50,74,0.12);
    vertical-align: top;
}

.rosary-card {
    padding: 18px 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(173,145,92,0.30);
    background: rgba(232,224,207,0.97);
    box-shadow: 0 10px 28px rgba(0,0,0,0.22);
    text-align: center;
    color: #263b4d;
}

.rosary-card-title {
    margin-bottom: 8px;
    color: #8d2429;
    font-size: 22px;
    font-weight: 700;
}

.rosary-month {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(173,145,92,0.32);
    color: #17324a;
    font-size: 18px;
    font-weight: 700;
}

.rosary-text {
    font-size: 16px;
    line-height: 1.45;
}

.standards-lead {
    margin: 0 0 22px;
    padding: 16px 18px;
    border-radius: 10px;
    background: rgba(141,36,41,0.08);
    border-left: 4px solid #8d2429;
    color: #8d2429;
    font-size: 21px;
    font-weight: 700;
    text-align: center;
}

.standard-point {
    display: grid;
    grid-template-columns: 110px minmax(0,1fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(173,145,92,0.22);
    background: rgba(255,255,255,0.26);
}

.standard-point > div:only-child {
    grid-column: 1 / -1;
}

.standard-point img {
    width: 110px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.standard-point h2 {
    margin: 0 0 7px;
    color: #17324a;
    font-size: 20px;
}

.standard-point p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
}

.standard-point.emergency {
    border-color: rgba(141,36,41,0.18);
    background: rgba(141,36,41,0.06);
}

.standards-download {
    margin: 24px 0 0;
    text-align: center;
}

.standards-download a {
    display: inline-block;
    padding: 11px 16px;
    border-radius: 8px;
    background: #17324a;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.standards-download a:hover {
    background: #8d2429;
}

@media (max-width: 1050px) {
    .subpage-right-stack {
        display: none;
    }
}

@media (max-width: 760px) {
    .announcement-date strong {
        font-size: 21px;
    }

    .announcement-content {
        font-size: 17px;
    }

    .standard-point {
        grid-template-columns: 80px minmax(0,1fr);
        gap: 12px;
        padding: 13px;
    }

    .standard-point img {
        width: 80px;
    }

    .standard-point h2 {
        font-size: 18px;
    }

    .standard-point p {
        font-size: 16px;
    }
}


/* =========================================================
   SAKRAMENTY
   ========================================================= */

.sacrament-practice {
    display: grid;
    gap: 16px;
}

.sacrament-card,
.sacrament-info-block,
.sacrament-intro,
.sacrament-seven {
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid rgba(173,145,92,0.24);
    background: rgba(255,255,255,0.26);
}

.sacrament-card h2,
.sacrament-info-block h2,
.sacrament-seven h2 {
    margin: 0 0 10px;
    color: #8d2429;
    font-size: 25px;
    line-height: 1.1;
}

.sacrament-card h3,
.sacrament-info-block h3,
.sacrament-group h3 {
    margin: 15px 0 8px;
    color: #17324a;
    font-size: 18px;
}

.sacrament-card p,
.sacrament-info-block p,
.sacrament-intro p {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.55;
}

.sacrament-card ul,
.sacrament-info-block ol {
    margin: 8px 0 0;
    padding-left: 24px;
}

.sacrament-card li,
.sacrament-info-block li {
    margin-bottom: 7px;
    font-size: 17px;
    line-height: 1.45;
}

.sacrament-highlight {
    margin-bottom: 15px !important;
    padding: 10px 13px;
    border-left: 4px solid #ad915c;
    border-radius: 6px;
    background: rgba(173,145,92,0.10);
    color: #17324a;
    font-weight: 700;
}

.sacrament-times {
    list-style: none;
    padding-left: 0 !important;
}

.sacrament-times li {
    position: relative;
    padding-left: 20px;
}

.sacrament-times li::before {
    content: '•';
    position: absolute;
    left: 3px;
    color: #8d2429;
    font-weight: 700;
}

.sacrament-theology {
    display: grid;
    gap: 16px;
}

.sacrament-intro {
    border-left: 4px solid #ad915c;
}

.sacrament-seven {
    text-align: center;
}

.sacrament-group {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 9px;
    background: rgba(173,145,92,0.08);
}

.sacrament-group h3 {
    margin-top: 0;
}

.sacrament-group p {
    margin: 0;
    color: #8d2429;
    font-size: 18px;
    font-weight: 700;
}

.confession-conditions {
    counter-reset: confession;
    list-style: none;
    padding-left: 0 !important;
}

.confession-conditions li {
    counter-increment: confession;
    position: relative;
    padding: 10px 12px 10px 44px;
    border-bottom: 1px solid rgba(23,50,74,0.10);
}

.confession-conditions li::before {
    content: counter(confession);
    position: absolute;
    left: 5px;
    top: 7px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #17324a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.sacrament-source {
    margin: 4px 0 0;
    text-align: right;
    color: #6c6255;
    font-size: 14px;
}

@media (max-width: 760px) {
    .sacrament-card,
    .sacrament-info-block,
    .sacrament-intro,
    .sacrament-seven {
        padding: 15px 14px;
    }

    .sacrament-card h2,
    .sacrament-info-block h2,
    .sacrament-seven h2 {
        font-size: 22px;
    }

    .sacrament-card p,
    .sacrament-info-block p,
    .sacrament-intro p {
        font-size: 17px;
    }
}


/* =========================================================
   TRANSMISJA NA ŻYWO
   ========================================================= */

.transmission-page {
    text-align: center;
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
}

.live-status-on {
    background: rgba(141,36,41,0.09);
    color: #8d2429;
    border: 1px solid rgba(141,36,41,0.18);
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b5232d;
    box-shadow: 0 0 0 5px rgba(181,35,45,0.10);
}

.youtube-live-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 10px 26px rgba(0,0,0,0.20);
}

.youtube-live-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-direct-link {
    margin: 14px 0 0;
}

.youtube-direct-link a,
.youtube-check-button {
    color: #8d2429;
    font-weight: 700;
    text-decoration: none;
}

.youtube-direct-link a:hover {
    text-decoration: underline;
}

.live-empty {
    padding: 36px 24px;
    border-radius: 12px;
    border: 1px solid rgba(173,145,92,0.28);
    background: rgba(255,255,255,0.24);
}

.live-empty-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #b5232d;
    color: #fff;
    font-size: 24px;
    padding-left: 3px;
}

.live-empty h2 {
    margin: 0 0 8px;
    color: #17324a;
    font-size: 26px;
}

.live-empty p {
    margin: 0 auto 18px;
    max-width: 520px;
    font-size: 18px;
    line-height: 1.5;
}

.youtube-check-button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    background: #17324a;
    color: #fff;
}

.youtube-check-button:hover {
    background: #8d2429;
}

.transmission-info {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 10px;
    background: rgba(173,145,92,0.08);
    text-align: left;
}

.transmission-info h2 {
    margin: 0 0 7px;
    color: #17324a;
    font-size: 20px;
}

.transmission-info p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .live-empty {
        padding: 28px 16px;
    }

    .transmission-info {
        text-align: center;
    }
}
