/* =========================================================
   MOBILE MASS SCHEDULE v1
   Parafia Wiersze
   Tylko urządzenia mobilne.
   ========================================================= */

.mobile-mass-schedule {
    display: none;
}

@media only screen and (max-width: 958px) {

    .mobile-mass-schedule {
        display: block;
        box-sizing: border-box;
        width: 110%;
        max-width: 620px;
        margin: 12px auto 28px;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        color: #24384b;
        text-align: center;
        box-shadow: none;
        overflow: visible;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .mobile-mass-schedule__banner {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100%;
        margin: 0 0 10px;
        padding: 0;
        overflow: hidden;
        border-radius: 14px;
        background: #fbfaf6;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
    }

    .mobile-mass-schedule__banner img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 2032 / 774;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        object-fit: contain !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }


    /* Zaproszenie pomiędzy banerem a kartą Mszy — zwykły tekst, bez dodatkowej ramki. */
    .mobile-mass-schedule__invitation {
        width: 100%;
        margin: 1px auto 9px;
        padding: 2px 14px 0;
        text-align: center;
        background: transparent;
    }

    .mobile-mass-schedule__invitation-main {
        color: #24384b;
        font-size: 14px;
        line-height: 1.2;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .mobile-mass-schedule__invitation-sub {
        margin-top: 1px;
        color: #6d6256;
        font-size: 14px;
        line-height: 1.2;
        font-weight: 400;
        letter-spacing: .15px;
    }

    .mobile-mass-schedule__panel {
        box-sizing: border-box;
        width: 100%;
        padding: 0 18px 12px;
        background: #fbfaf6;
        border: 1px solid #d8c8a0;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
    }

    .mobile-mass-schedule *,
    .mobile-mass-schedule *::before,
    .mobile-mass-schedule *::after {
        box-sizing: border-box;
    }

    .mobile-mass-schedule__ornament {
        display: none;
    }

    .mobile-mass-schedule__heading {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 18px 0 18px;
    }

    .mobile-mass-schedule__cross {
        display: none;
    }

    .mobile-mass-schedule__title {
        font-size: 22px;
        line-height: 1.15;
        font-weight: 700;
        letter-spacing: 1.6px;
        color: #24384b;
    }

    .mobile-mass-schedule__subtitle {
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.2;
        letter-spacing: 2px;
        color: #8a7446;
    }

    .mobile-mass-schedule__section {
        padding: 7px 4px 0;
    }

    .mobile-mass-schedule__section-title {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        margin-bottom: 6px;
        color: #526c49;
        font-size: 13px;
        line-height: 1.25;
        font-weight: 700;
        letter-spacing: 1.1px;
        text-align: left;
    }

    .mobile-mass-schedule__icon {
        display: none;
    }

    .mobile-mass-schedule__row {
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        min-height: 46px;
        padding: 6px 5px;
        border-top: 1px solid #e4dac2;
        text-align: left;
    }

    .mobile-mass-schedule__row:first-of-type {
        border-top: 0;
    }

    .mobile-mass-schedule__time {
        color: #24384b;
        font-size: 24px;
        line-height: 1;
        font-weight: 600;
        letter-spacing: .3px;
        text-align: left;
        white-space: nowrap;
    }

    .mobile-mass-schedule__label {
        color: #4d4d4d;
        font-size: 14px;
        line-height: 1.3;
        font-weight: 400;
    }

    /* Niedziela — SUMA wyróżniona wyłącznie typografią.
       Klasa jest przypisywana po treści etykiety, więc nie obejmuje
       już przypadkowo "Adoracja Najświętszego Sakramentu". */
    .mobile-mass-schedule .mobile-mass-schedule__label--suma {
        color: #24384b;
        font-size: 22px;
        line-height: 1.1;
        font-weight: 700;
        letter-spacing: 0.4px;
    }

    .mobile-mass-schedule__divider {
        display: none;
    }

    .mobile-mass-schedule__divider span,
    .mobile-mass-schedule__ornament--bottom span {
        display: block;
        height: 1px;
        flex: 1;
        background: #d8c8a0;
    }

    .mobile-mass-schedule__divider b,
    .mobile-mass-schedule__ornament--bottom b {
        font-size: 13px;
        line-height: 1;
        font-weight: 400;
    }

    .mobile-mass-schedule__season {
        padding: 7px 4px 0;
    }

    .mobile-mass-schedule__season .mobile-mass-schedule__section-title {
        color: #526c49;
    }

    .mobile-mass-schedule__season .mobile-mass-schedule__time {
        color: #24384b;
    }

    .mobile-mass-schedule__ornament--bottom {
        display: none;
    }
}

@media only screen and (max-width: 380px) {

    .mobile-mass-schedule {
        width: 100%;
        margin: 12px auto 28px;
        padding: 0;
        border-radius: 0;
        left: auto;
        transform: none;
    }

    .mobile-mass-schedule__banner,
    .mobile-mass-schedule__panel {
        border-radius: 12px;
    }


    .mobile-mass-schedule__invitation {
        margin-bottom: 8px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .mobile-mass-schedule__invitation-main {
        font-size: 12.5px;
        letter-spacing: .75px;
    }

    .mobile-mass-schedule__invitation-sub {
        font-size: 13px;
    }

    .mobile-mass-schedule__panel {
        padding-left: 14px;
        padding-right: 14px;
        padding-bottom: 9px;
    }

    .mobile-mass-schedule__title {
        font-size: 19px;
        letter-spacing: 1.3px;
    }

    .mobile-mass-schedule__subtitle {
        font-size: 9px;
    }

    .mobile-mass-schedule__time {
        font-size: 22px;
    }

    .mobile-mass-schedule__label {
        font-size: 13px;
        line-height: 1.3;
    }

    .mobile-mass-schedule__label:not(.mobile-mass-schedule__label--suma) {
        overflow-wrap: anywhere;
    }

    .mobile-mass-schedule__row {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 8px;
        min-height: 43px;
    }
}

/* =========================================================
   PARAFIA WIERSZE — BANER v1.1.0
   Baner jest częścią tego samego elementu DOM co karta Mszy.
   Dzięki temu, jeśli Vamtam przenosi/odświeża kartę po załadowaniu,
   baner porusza się razem z nią i nie może zostać osobno ukryty.
   ========================================================= */


.mobile-mass-schedule__season-subtitle {
    margin: -2px 0 7px;
    padding: 0;
    color: #8a7446;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: .2px;
    text-align: left;
}

/* Wspolna typografia witryny; bez zmian rozmiarow i ukladu. */
.mobile-mass-schedule { font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif; }

/* 1.12.451 - compact schedule, scoped to the mobile shortcode. */
@media(max-width:958px){
body .mobile-mass-schedule.mobile-mass-schedule--compact{width:100%!important;max-width:620px;left:auto;transform:none;margin:12px auto 16px!important;text-align:left;color:#4e3425}
body .mobile-mass-schedule--compact .mobile-mass-schedule__panel{padding:14px!important;background:#faf7f3!important;border:1px solid #e5d5c3!important;border-radius:14px!important;box-shadow:none}
body .mobile-mass-schedule--compact .mobile-mass-schedule__heading{justify-content:flex-start;align-items:center;gap:10px;padding:0 0 12px;border-bottom:1px solid #e5d5c3}
body .mobile-mass-schedule--compact .mobile-mass-schedule__cross{display:flex;width:38px;height:38px;flex:0 0 38px;align-items:center;justify-content:center;border-radius:9px;background:#f0e6d9;color:#956338}
body .mobile-mass-schedule--compact .mobile-mass-schedule__title{font-size:19px!important;letter-spacing:0;color:#4e3425!important;line-height:1.25;text-align:left}
body .mobile-mass-schedule--compact .mobile-mass-schedule__subtitle{font-size:12px;letter-spacing:0;line-height:1.4;color:#80634d;text-align:left}
body .mobile-mass-schedule--compact .mobile-mass-schedule__section,body .mobile-mass-schedule--compact .mobile-mass-schedule__season{padding:10px 0 0;margin:0}
body .mobile-mass-schedule--compact .mobile-mass-schedule__section-title{font-size:14px;letter-spacing:0;color:#654a36;margin:0 0 7px;line-height:1.3}
body .mobile-mass-schedule--compact .mobile-mass-schedule__row{grid-template-columns:62px minmax(0,1fr);gap:9px;min-height:34px;padding:5px 0;border:0}
body .mobile-mass-schedule--compact .mobile-mass-schedule__time{font-size:18px!important;line-height:1.25;color:#8d5a2f!important;letter-spacing:0;font-weight:700}
body .mobile-mass-schedule--compact .mobile-mass-schedule__label{font-size:13px;line-height:1.4;letter-spacing:0;color:#654a36;overflow-wrap:normal}
body .mobile-mass-schedule--compact .mobile-mass-schedule__group--sunday .mobile-mass-schedule__rows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
body .mobile-mass-schedule--compact .mobile-mass-schedule__group--sunday .mobile-mass-schedule__row{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:9px 3px;min-height:62px;border:1px solid #e5d5c3;border-radius:8px;background:#fff;text-align:center}
body .mobile-mass-schedule--compact .mobile-mass-schedule__group--sunday .mobile-mass-schedule__row--suma{background:#efe2d0;border-color:#dbc3a8}
body .mobile-mass-schedule--compact .mobile-mass-schedule__group--sunday .mobile-mass-schedule__label{font-size:11px;line-height:1.35;text-align:center;overflow-wrap:anywhere}
body .mobile-mass-schedule--compact .mobile-mass-schedule__group--weekdays,body .mobile-mass-schedule--compact .mobile-mass-schedule__group--saturday{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;border-top:1px solid #e5d5c3;margin-top:10px;padding-top:8px}
body .mobile-mass-schedule--compact .mobile-mass-schedule__group--weekdays .mobile-mass-schedule__section-title,body .mobile-mass-schedule--compact .mobile-mass-schedule__group--saturday .mobile-mass-schedule__section-title{margin:0}
body .mobile-mass-schedule--compact .mobile-mass-schedule__row--single{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;text-align:right}
body .mobile-mass-schedule--compact .mobile-mass-schedule__season{border-top:1px solid #e5d5c3;margin-top:10px}
body .mobile-mass-schedule--compact .mobile-mass-schedule__season-subtitle{color:#80634d;font-size:12px;margin:0 0 4px}
}

/* 1.12.452: final mobile spacing polish. */
@media(max-width:958px){
body .mobile-mass-schedule--compact .mobile-mass-schedule__panel{padding:14px!important}
body .mobile-mass-schedule--compact .mobile-mass-schedule__heading{padding:0 0 10px!important;gap:9px!important}
body .mobile-mass-schedule--compact .mobile-mass-schedule__title{font-size:18px!important}
body .mobile-mass-schedule--compact .mobile-mass-schedule__subtitle{margin-top:2px!important;line-height:1.4!important}
body .mobile-mass-schedule--compact .mobile-mass-schedule__group--sunday .mobile-mass-schedule__row{min-height:58px!important;padding:7px 3px!important;gap:3px!important}
body .mobile-mass-schedule--compact .mobile-mass-schedule__group--weekdays,body .mobile-mass-schedule--compact .mobile-mass-schedule__group--saturday{margin-top:8px!important;padding-top:6px!important}
body .mobile-mass-schedule--compact .mobile-mass-schedule__row--single{min-height:30px!important;padding:3px 0!important}
body .mobile-mass-schedule--compact .mobile-mass-schedule__label--redundant{display:none!important}
body .mobile-mass-schedule--compact .mobile-mass-schedule__season{margin-top:8px!important;padding-top:8px!important}
body .mobile-mass-schedule--compact .mobile-mass-schedule__season-subtitle{margin:0 0 3px!important}
body .mobile-mass-schedule--compact .mobile-mass-schedule__season .mobile-mass-schedule__row{min-height:30px!important;padding:3px 0!important}
}
