/* =========================================================
   MASS SCHEDULE PAGE
   ========================================================= */

.mass-page {
    padding:
        72px 0 96px;

    background:
        linear-gradient(
            180deg,
            #f5f8f6 0,
            #ffffff 360px
        );
}

.mass-shell {
    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    margin:
        0 auto;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.mass-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(300px, .7fr);

    gap: 70px;

    align-items: end;

    margin-bottom: 48px;
}

.mass-hero-copy {
    max-width: 780px;
}

.mass-eyebrow {
    display: block;

    margin-bottom: 13px;

    color: #39725a;

    font-size: 10px;
    font-weight: 820;

    letter-spacing: .14em;
    text-transform: uppercase;
}

.mass-hero h1 {
    margin: 0;

    color: #14231d;

    font-size:
        clamp(
            40px,
            5.3vw,
            68px
        );

    font-weight: 760;
    line-height: 1.01;

    letter-spacing: -.06em;
}

.mass-hero p {
    max-width: 720px;

    margin:
        24px 0 0;

    color: #66746d;

    font-size: 17px;
    line-height: 1.75;
}


/* ---------------------------------------------------------
   QUICK NAV
   --------------------------------------------------------- */

.mass-jump-nav {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    justify-content: flex-end;
}

.mass-jump-nav a {
    display: inline-flex;
    align-items: center;

    min-height: 40px;

    padding:
        8px 13px;

    border:
        1px solid #dce5e0;

    border-radius: 999px;

    background: #fff;

    color: #456158;

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

    text-decoration: none;

    transition:
        border-color .15s ease,
        background-color .15s ease,
        color .15s ease,
        transform .15s ease;
}

.mass-jump-nav a:hover {
    border-color: #bfcfc6;

    background: #eef5f1;
    color: #174b38;

    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   CARD GRID
   --------------------------------------------------------- */

.mass-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px;
}

.mass-card {
    padding:
        30px;

    border:
        1px solid #dfe7e3;

    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 1px 2px rgba(20, 33, 28, .02),
        0 16px 38px rgba(20, 33, 28, .035);

    scroll-margin-top: 124px;
}

.mass-card--featured {
    grid-column:
        1 / -1;

    padding:
        36px;

    border-color:
        #d8e3dd;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f7faf8 100%
        );
}


/* ---------------------------------------------------------
   CARD HEADER
   --------------------------------------------------------- */

.mass-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 27px;
}

.mass-card-kicker {
    display: block;

    margin-bottom: 6px;

    color: #769086;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .11em;
    text-transform: uppercase;
}

.mass-card-header h2 {
    margin: 0;

    color: #17261f;

    font-size:
        clamp(
            27px,
            3vw,
            38px
        );

    font-weight: 740;
    line-height: 1.08;

    letter-spacing: -.04em;
}

.mass-card-badge {
    display: inline-flex;
    align-items: center;

    min-height: 34px;

    padding:
        7px 11px;

    border:
        1px solid #d9e5df;

    border-radius: 999px;

    background: #edf5f1;

    color: #3f6c59;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .05em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   MASS TIMES
   --------------------------------------------------------- */

.mass-times-layout {
    display: grid;
    grid-template-columns:
        1.2fr .8fr;

    gap: 14px;

    margin-bottom: 36px;
}

.mass-times-block {
    padding:
        20px;

    border:
        1px solid #e0e7e3;

    border-radius: 15px;

    background: #fafcfb;
}

.mass-times-label {
    display: block;

    margin-bottom: 13px;

    color: #62746b;

    font-size: 11px;
    font-weight: 760;

    letter-spacing: .055em;
    text-transform: uppercase;
}

.mass-times {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;
}

.mass-times span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 72px;
    min-height: 48px;

    padding:
        8px 14px;

    border:
        1px solid #d8e5de;

    border-radius: 12px;

    background: #ffffff;

    color: #204f3c;

    font-size: 19px;
    font-weight: 760;

    letter-spacing: -.02em;

    box-shadow:
        0 4px 14px rgba(31, 92, 72, .035);
}


/* ---------------------------------------------------------
   DEVOTIONS
   --------------------------------------------------------- */

.mass-devotions {
    padding-top: 31px;

    border-top:
        1px solid #e2e9e5;
}

.mass-section-heading {
    display: grid;
    grid-template-columns:
        190px
        minmax(0, 1fr);

    gap: 28px;

    align-items: baseline;

    margin-bottom: 21px;
}

.mass-section-heading > span {
    color: #668077;

    font-size: 11px;
    font-weight: 790;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.mass-section-heading h3 {
    margin: 0;

    color: #27483a;

    font-size: 19px;
    font-weight: 710;

    letter-spacing: -.02em;
}

.mass-devotions-list {
    position: relative;

    display: grid;

    gap: 0;

    max-width: 920px;

    margin-left: 218px;

    border-left:
        1px solid #dbe5df;
}

.mass-devotion {
    position: relative;

    padding:
        0 0 24px 29px;
}

.mass-devotion:last-child {
    padding-bottom: 0;
}

.mass-devotion-marker {
    position: absolute;

    top: 4px;
    left: -6px;

    width: 11px;
    height: 11px;

    border:
        3px solid #fff;

    border-radius: 50%;

    background: #477761;

    box-shadow:
        0 0 0 1px #b9cdc3;
}

.mass-devotion strong,
.mass-devotion span {
    display: inline-block;
}

.mass-devotion strong {
    margin-right: 10px;

    color: #315646;

    font-size: 14px;
    font-weight: 735;
}

.mass-devotion span {
    color: #779087;

    font-size: 12px;
    font-weight: 680;
}

.mass-devotion p {
    max-width: 760px;

    margin:
        5px 0 0;

    color: #65736c;

    font-size: 13px;
    line-height: 1.65;
}


/* ---------------------------------------------------------
   SECONDARY CARDS
   --------------------------------------------------------- */

.mass-card:not(.mass-card--featured)
.mass-times-block {
    margin-bottom: 17px;
}

.mass-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 4px;

    padding:
        14px 0;

    border-top:
        1px solid #edf1ef;
    border-bottom:
        1px solid #edf1ef;
}

.mass-info-row span {
    color: #74847c;

    font-size: 12px;
}

.mass-info-row strong {
    color: #315647;

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

.mass-special,
.mass-seasonal {
    margin-top: 18px;

    padding:
        18px 19px;

    border:
        1px solid #dfe7e2;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #f4f8f6,
            #fbfcfb
        );
}

.mass-special > span,
.mass-seasonal > span {
    display: block;

    margin-bottom: 7px;

    color: #789087;

    font-size: 10px;
    font-weight: 790;

    letter-spacing: .07em;
    text-transform: uppercase;
}

.mass-special strong,
.mass-seasonal strong {
    display: block;

    color: #2b5946;

    font-size: 14px;
    font-weight: 730;
}

.mass-special p,
.mass-seasonal p {
    margin:
        5px 0 0;

    color: #67766e;

    font-size: 13px;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   INTENTIONS CARD
   --------------------------------------------------------- */

.mass-intentions-card {
    display: grid;
    grid-template-columns:
        64px
        minmax(0, 1fr)
        auto;

    gap: 24px;

    align-items: center;

    margin-top: 24px;

    padding:
        30px 32px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #173e31,
            #255e49
        );

    box-shadow:
        0 24px 52px rgba(23, 61, 49, .15);
}

.mass-intentions-icon {
    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;

    border:
        1px solid rgba(255, 255, 255, .16);

    border-radius: 16px;

    background:
        rgba(255, 255, 255, .07);
}

.mass-intentions-icon span {
    position: relative;

    display: block;

    width: 22px;
    height: 28px;
}

.mass-intentions-icon span::before,
.mass-intentions-icon span::after {
    content: "";

    position: absolute;

    left: 50%;

    background: #dcebe4;

    transform: translateX(-50%);
}

.mass-intentions-icon span::before {
    top: 0;

    width: 4px;
    height: 28px;

    border-radius: 4px;
}

.mass-intentions-icon span::after {
    top: 8px;

    width: 22px;
    height: 4px;

    border-radius: 4px;
}

.mass-intentions-card
.mass-eyebrow {
    color: #9fc3b4;
}

.mass-intentions-copy h2 {
    margin: 0;

    color: #fff;

    font-size:
        clamp(
            23px,
            2.6vw,
            32px
        );

    font-weight: 720;

    letter-spacing: -.035em;
}

.mass-intentions-copy p {
    max-width: 680px;

    margin:
        9px 0 0;

    color: #d3e0da;

    font-size: 14px;
    line-height: 1.7;
}

.mass-intentions-actions {
    display: flex;
    align-items: center;

    gap: 9px;
}

.mass-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 46px;

    padding:
        10px 15px;

    border:
        1px solid rgba(255, 255, 255, .18);

    border-radius: 11px;

    color: #fff;

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

    text-decoration: none;

    white-space: nowrap;

    transition:
        background-color .15s ease,
        transform .15s ease;
}

.mass-button:hover {
    background:
        rgba(255, 255, 255, .08);

    transform: translateY(-1px);
}

.mass-button--primary {
    background:
        rgba(255, 255, 255, .12);
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .mass-page {
        padding-top: 48px;
    }

    .mass-hero {
        grid-template-columns: 1fr;

        gap: 27px;
    }

    .mass-jump-nav {
        justify-content: flex-start;
    }

    .mass-grid {
        grid-template-columns: 1fr;
    }

    .mass-card--featured {
        grid-column: auto;
    }

    .mass-times-layout {
        grid-template-columns: 1fr;
    }

    .mass-section-heading {
        grid-template-columns: 1fr;

        gap: 5px;
    }

    .mass-devotions-list {
        margin-left: 6px;
    }

    .mass-intentions-card {
        grid-template-columns:
            58px
            minmax(0, 1fr);
    }

    .mass-intentions-actions {
        grid-column: 1 / -1;

        padding-left: 82px;
    }

}

@media (max-width: 620px) {

    .mass-shell {
        width:
            calc(100% - 28px);
    }

    .mass-hero h1 {
        font-size:
            clamp(
                38px,
                12vw,
                50px
            );
    }

    .mass-card,
    .mass-card--featured {
        padding:
            23px 20px;
    }

    .mass-card-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;
    }

    .mass-times span {
        min-width: 66px;
        min-height: 44px;

        font-size: 17px;
    }

    .mass-info-row {
        align-items: flex-start;
        flex-direction: column;

        gap: 3px;
    }

    .mass-intentions-card {
        grid-template-columns: 1fr;

        padding:
            26px 22px;
    }

    .mass-intentions-icon {
        width: 50px;
        height: 50px;
    }

    .mass-intentions-actions {
        grid-column: auto;

        flex-direction: column;

        width: 100%;

        padding-left: 0;
    }

    .mass-button {
        width: 100%;
    }

}
