.intentions-period {
    margin: 13px 0 0;

    color: var(--text-soft);

    font-size: 19px;
    font-weight: 650;
}

.intentions-card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);
    box-shadow: var(--shadow);
}

.intentions-table-wrap {
    overflow-x: auto;
}

.intentions-table {
    width: 100%;

    border-collapse: collapse;
    table-layout: fixed;
}

.intentions-table thead th {
    padding: 15px 20px;

    border-bottom: 1px solid var(--border);

    background: var(--surface-soft);
    color: var(--text-soft);

    font-size: 12px;
    font-weight: 750;
    letter-spacing: .055em;

    text-align: left;
    text-transform: uppercase;
}

.intentions-table thead th:nth-child(1) {
    width: 230px;
}

.intentions-table thead th:nth-child(2) {
    width: 110px;
}

.intentions-table tbody th,
.intentions-table tbody td {
    padding: 18px 20px;

    border-bottom: 1px solid var(--border);

    vertical-align: top;
}

.intentions-table tbody tr:last-child > * {
    border-bottom: 0;
}

.intentions-day {
    border-right: 1px solid var(--border);

    background: #fafbfc;

    text-align: left;
}

.intentions-day strong,
.intentions-day span {
    display: block;
}

.intentions-day strong {
    margin-bottom: 3px;

    font-size: 15px;
    font-weight: 750;
}

.intentions-day span {
    color: var(--text-soft);

    font-size: 13px;
    font-weight: 500;
}

.intentions-time {
    font-size: 16px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;

    white-space: nowrap;
}

.intentions-content {
    color: #344054;

    line-height: 1.55;
    overflow-wrap: anywhere;
}

.intentions-empty {
    padding: 48px 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);

    text-align: center;
}

.intentions-empty h2 {
    margin: 0 0 6px;
}

.intentions-empty p {
    margin: 0;

    color: var(--text-soft);
}

@media (max-width: 720px) {
    .intentions-card {
        overflow: visible;

        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .intentions-table-wrap {
        overflow: visible;
    }

    .intentions-table,
    .intentions-table tbody {
        display: block;
    }

    .intentions-table thead {
        position: absolute;

        width: 1px;
        height: 1px;

        overflow: hidden;

        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .intentions-table tr {
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr);

        margin-bottom: 12px;

        overflow: hidden;

        border: 1px solid var(--border);
        border-radius: 12px;

        background: var(--surface);
    }

    .intentions-table tbody th,
    .intentions-table tbody td {
        display: block;

        border: 0;
    }

    .intentions-day {
        grid-column: 1 / -1;

        width: auto;

        padding: 12px 15px !important;

        border-right: 0;
        border-bottom: 1px solid var(--border) !important;

        background: var(--accent-soft);
    }

    .intentions-day strong,
    .intentions-day span {
        display: inline;
    }

    .intentions-day strong::after {
        content: " · ";

        color: var(--text-soft);
    }

    .intentions-time {
        padding: 15px !important;
    }

    .intentions-content {
        padding: 15px 15px 15px 0 !important;
    }
}


/* =========================================================
   INTENTIONS 3.1 — MASS SERVICE GROUPS
   ========================================================= */

.public-intention-location {
    margin:
        18px
        0
        8px;

    padding:
        8px
        11px;

    border-radius: 8px;

    background: #edf4f0;

    color: #3e654f;

    font-size: 12px;
    font-weight: 850;

    letter-spacing: .04em;

    text-transform: uppercase;
}

.public-intention-location.is-outside {
    background: #f5f1e9;

    color: #806b4e;
}


.public-mass-service-group {
    display: grid;

    grid-template-columns:
        78px
        minmax(0, 1fr);

    gap: 15px;

    margin-bottom: 9px;

    padding:
        13px
        14px;

    border: 1px solid #e1e7e3;

    border-radius: 11px;

    background: #fff;
}


.public-mass-service-group.is-outside {
    border-color: #e9e1d5;

    background: #fcfaf7;
}


.public-mass-service-time time {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 56px;

    padding:
        7px
        8px;

    border-radius: 8px;

    background: #e8f1ec;

    color: #315f49;

    font-weight: 850;
}


.public-mass-service-time span {
    color: #8b7657;

    font-size: 11px;
    font-weight: 750;
}


.public-mass-intention-list {
    margin: 0;

    padding-left: 20px;
}


.public-mass-intention-list li {
    margin-bottom: 8px;

    line-height: 1.55;
}


.public-mass-intention-list li:last-child {
    margin-bottom: 0;
}


@media (max-width: 620px) {

    .public-mass-service-group {
        grid-template-columns:
            62px
            minmax(0, 1fr);

        gap: 9px;
    }

}


/* =========================================================
   PUBLIC INTENTIONS — COMPACT EDITORIAL v2
   ========================================================= */

/*
 * MIEJSCOWOŚĆ
 *
 * Bez zielonej belki.
 * Zostaje tylko nazwa + delikatna linia.
 */

.public-intention-location {
    display: flex !important;

    align-items: center;

    gap: 14px;

    margin:
        28px
        0
        5px !important;

    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    color: #315f49 !important;

    font-size: 12px !important;
    font-weight: 800 !important;

    line-height: 1.2;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.public-intention-location:first-child {
    margin-top: 4px !important;
}


.public-intention-location::after {
    content: "";

    flex: 1 1 auto;

    height: 1px;

    background: #dce6e1;
}


.public-intention-location.is-outside {
    background: transparent !important;

    color: #756347 !important;
}


.public-intention-location.is-outside::after {
    background: #e5ddd0;
}


/* =========================================================
   JEDNA MSZA
   ========================================================= */

/*
 * Nie robimy oddzielnych kart.
 * Jeden slot Mszy = jeden prosty wiersz.
 */

.public-mass-service-group {
    display: grid !important;

    grid-template-columns:
        74px
        minmax(0, 1fr) !important;

    gap: 20px !important;

    align-items: start;

    margin: 0 !important;

    padding:
        13px
        4px !important;

    border: 0 !important;

    border-bottom:
        1px solid #e7ece9 !important;

    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
}


.public-mass-service-group:last-child {
    border-bottom: 0 !important;
}


.public-mass-service-group.is-outside {
    background: transparent !important;

    border-color: #ece6dd !important;
}


/* =========================================================
   GODZINA
   ========================================================= */

.public-mass-service-time {
    display: block !important;

    padding-top: 1px;
}


.public-mass-service-time time {
    display: block !important;

    min-width: 0 !important;

    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    color: #276047 !important;

    font-size: 16px !important;
    font-weight: 750 !important;

    line-height: 1.45 !important;

    letter-spacing: 0 !important;
}


/*
 * Dla "Poza parafią" nie pokazujemy
 * sztucznego napisu "bez godziny".
 */

.public-mass-service-group.is-outside
.public-mass-service-time {
    display: none !important;
}


.public-mass-service-group.is-outside {
    grid-template-columns: 1fr !important;
}


/* =========================================================
   INTENCJE
   ========================================================= */

.public-mass-intention-list {
    display: block !important;

    margin: 0 !important;

    padding: 0 !important;

    list-style: none !important;
}


.public-mass-intention-list li {
    position: static !important;

    margin: 0 !important;

    padding:
        2px
        0 !important;

    border: 0 !important;

    color: #26352e !important;

    font-size: 16px !important;
    font-weight: 400 !important;

    line-height: 1.52 !important;

    list-style: none !important;
}


/*
 * Kilka intencji podczas jednej Mszy:
 * tylko subtelna linia, bez nowych kart.
 */

.public-mass-intention-list li + li {
    margin-top: 4px !important;

    padding-top: 7px !important;

    border-top:
        1px solid #edf1ef !important;
}


/*
 * Usuwamy bullet przed tekstem.
 * Znak + w treści intencji pozostaje,
 * ponieważ pochodzi z dokumentu.
 */

.public-mass-intention-list li::before,
.public-mass-intention-list li::after {
    display: none !important;

    content: none !important;
}


.public-mass-intention-list li::marker {
    content: "" !important;
}


/* =========================================================
   POZA PARAFIĄ
   ========================================================= */

.public-mass-service-group.is-outside
.public-mass-intention-list {
    padding-left: 0 !important;
}


.public-mass-service-group.is-outside
.public-mass-intention-list li {
    color: #3b3934 !important;
}


/* =========================================================
   REDUKCJA NADMIERNYCH ODSTĘPÓW
   ========================================================= */

.public-intention-location
+ .public-mass-service-group {
    padding-top: 10px !important;
}


/*
 * Jeżeli stary CSS nadawał wszystkim grupom
 * bardzo duże wysokości, kasujemy je.
 */

.public-mass-service-group {
    min-height: 0 !important;

    height: auto !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {

    .public-intention-location {
        margin-top: 23px !important;

        font-size: 11px !important;
    }


    .public-mass-service-group {
        grid-template-columns:
            60px
            minmax(0, 1fr) !important;

        gap: 12px !important;

        padding:
            11px
            2px !important;
    }


    .public-mass-service-time time {
        font-size: 14px !important;
    }


    .public-mass-intention-list li {
        font-size: 14px !important;

        line-height: 1.48 !important;
    }


    .public-mass-service-group.is-outside {
        grid-template-columns: 1fr !important;
    }

}


@media (max-width: 480px) {

    .public-mass-service-group {
        grid-template-columns:
            52px
            minmax(0, 1fr) !important;

        gap: 9px !important;
    }


    .public-mass-service-time time {
        font-size: 13px !important;
    }


    .public-mass-intention-list li {
        font-size: 13px !important;
    }

}
