#zcl-ui {
    font-family: system-ui, sans-serif;
    line-height: 1.5;
}
#zcl-trigger {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 6px 14px;
    border: 1px solid #eee0ff;
    border-radius: 40px;
    background: #743ab2;
    color: white;
    font: 600 14px/1.4 system-ui, sans-serif;
    box-shadow: 0 4px 20px #36165440;
    cursor: pointer;
}
#zcl-dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(446px, calc(100% - 16px));
    max-width: none;
    max-height: calc(100% - 20px);
    overflow: auto;
    margin: auto;
    padding: clamp(20px, 6dvh, 40px) clamp(18px, 6vw, 30px) clamp(24px, 8dvh, 54px);
    border: 1px solid #eee7fa;
    border-radius: 30px;
    background: linear-gradient(130deg, #ece0fa, #fff 66%);
    color: #493759;
    text-align: center;
    box-shadow: 0 18px 58px #3d245b38;
}
#zcl-dialog:not([open]) { display: none; }
#zcl-dialog::backdrop { background: #5d447526; }
.zcl-symbols { display: flex; justify-content: center; gap: 15px; }
.zcl-symbols span {
    display: grid;
    place-items: center;
    border-radius: 22px;
    width: 63px;
    height: 63px;
    background: #deeffc;
    color: #2d7dc5;
    font-size: 33px;
    font-weight: 700;
}
.zcl-symbols span:nth-child(2) { background: #e9d6fb; color: #8344bb; }
.zcl-symbols span:nth-child(3) { background: #ffeed3; color: #bb7a20; }
#zcl-title { margin: 25px 0 12px; color: #493759; font: 500 28px/1.3 system-ui, sans-serif; letter-spacing: -.06em; }
#zcl-description { margin: 0 auto 31px; max-width: 325px; color: #766782; font-size: 16px; line-height: 1.95; }
.zcl-options { display: grid; gap: 12px; }
.zcl-options button {
    width: 100%;
    min-height: clamp(50px, 12dvh, 73px);
    padding: 8px 12px;
    border: 1px solid #d5b7ef;
    border-radius: 16px;
    background: #f0e7fa;
    color: #753ab0;
    font: 700 22px/1.35 system-ui, sans-serif;
    cursor: pointer;
}
.zcl-options button[data-zcl-lang="si"] { background: linear-gradient(110deg, #904bd0, #7536b5); color: white; }
.zcl-options button[aria-pressed="true"], #zcl-ui button:focus-visible { outline: 3px solid #b782e8; outline-offset: 3px; }
@font-face {
    font-family: "Zion Tamil";
    src: url("fonts/noto-sans-tamil.woff") format("woff");
    font-display: swap;
    unicode-range: U+0B80-0BFF, U+200C-200D;
}
@font-face {
    font-family: "Zion Sinhala";
    src: url("fonts/noto-sans-sinhala.woff") format("woff");
    font-display: swap;
    unicode-range: U+0D80-0DFF, U+200C-200D;
}
#zcl-ui, #zcl-ui button { font-family: "Zion Tamil", "Zion Sinhala", system-ui, sans-serif; }

/* The promise takes up its own space after the homepage slider. */
#main-content > #home[data-zion-home-hero] + .zcl-home-promise {
    display: block;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 16px auto 0;
}
#main-content > .zcl-home-promise .zion-promise-fit {
    height: auto;
    max-height: none;
    overflow: visible;
}
#main-content > .zcl-home-promise .zion-promise-fit [data-promise-text] {
    display: block;
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.8;
    overflow: visible;
    -webkit-line-clamp: unset;
}
@media (min-width: 600px) {
    #main-content > #home[data-zion-home-hero] > .hero-stage {
        height: auto;
    }
}

html[lang="ta"] .zion-header .logo .zion-brand strong {
    font-family: "Zion Tamil", sans-serif;
    font-size: clamp(14px, 1.5vw, 23px);
    line-height: 1.3;
    letter-spacing: normal;
    white-space: nowrap;
}
html[lang="ta"] #zion-primary-navigation .zion-menu-live a > span:not(.zion-live-dot) {
    display: none;
}
html[lang="ta"] #main-content > #home[data-zion-home-hero] [data-worship-heading] {
    font-size: clamp(22px, 2.6vw, 39px);
    line-height: 1.25;
    letter-spacing: normal;
}
html[lang="ta"] #main-content > .zion-home-podcast .zion-podcast-intro h2 {
    font-size: clamp(12px, 1.25vw, 18px);
    line-height: 1.4;
}
html[lang="ta"] #main-content > .zion-home-about-wrap #zion-about-title {
    font-size: clamp(19px, 2vw, 31px);
    line-height: 1.45;
    letter-spacing: normal;
}
html[lang="ta"] #main-content > .zion-home-about-wrap .zion-about-values > div {
    min-width: 0;
    overflow-wrap: anywhere;
}
html[lang="ta"] #main-content > .zion-home-about-wrap .zion-about-values strong {
    font-size: clamp(12px, 1.45vw, 23px);
    line-height: 1.4;
    letter-spacing: normal;
}
html[lang="ta"] #main-content > .zion-home-about-wrap .zion-about-values small {
    font-size: clamp(9px, 0.85vw, 12px);
}
html[lang="ta"] #main-content > .zion-home-pastor-wrap #zion-pastor-title {
    font-size: clamp(20px, 2.4vw, 37px);
    line-height: 1.4;
    letter-spacing: normal;
    white-space: nowrap;
}
@media (max-width: 599px) {
    html[lang="ta"] .zion-header .logo .zion-brand strong {
        font-size: clamp(14px, 4.3vw, 19px);
    }
    html[lang="ta"] #main-content > #home[data-zion-home-hero] [data-worship-heading] {
        font-size: clamp(13px, 3.9vw, 20px);
    }
    html[lang="ta"] #main-content > .zion-home-pastor-wrap #zion-pastor-title {
        font-size: clamp(14px, 4.3vw, 23px);
    }
}

/* Paint a single gradient behind the hero and promise, ending where the service cards start. */
#main-content.zcl-home-backdrop {
    position: relative;
    isolation: isolate;
}
#main-content.zcl-home-backdrop::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: var(--zcl-home-backdrop-height, 0px);
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 6% 10%, #e8d9ff 0, transparent 43%),
        radial-gradient(ellipse at 90% 15%, #c6f3ff 0, transparent 48%),
        radial-gradient(ellipse at 84% 90%, #ffe1c8 0, transparent 48%),
        radial-gradient(ellipse at 35% 95%, #ffd9ed 0, transparent 47%),
        linear-gradient(115deg, #f5efff, #effaff 50%, #fff0f7);
    background-size: 115% 115%;
    animation: zion-pastel-drift 24s ease-in-out infinite alternate;
}
#main-content.zcl-home-backdrop > #home[data-zion-home-hero],
#main-content.zcl-home-backdrop > .zcl-home-promise {
    background: transparent;
}
@media (prefers-reduced-motion: reduce) {
    #main-content.zcl-home-backdrop::before { animation: none; }
}

html[lang="ta"] #main-content > #home[data-zion-home-hero] [data-zion-welcome] .slide-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding-block: 8px;
}
html[lang="ta"] #main-content > #home[data-zion-home-hero] [data-zion-welcome] .hero-copy {
    transform: none;
    text-align: left;
}
html[lang="ta"] #main-content > #home[data-zion-home-hero] [data-zion-welcome] .web-company-heading {
    font-family: "Zion Tamil", sans-serif;
    font-size: clamp(22px, 2.3vw, 38px);
    letter-spacing: normal;
    line-height: 1.28;
    margin: 7px 0;
}
html[lang="ta"] #main-content > #home[data-zion-home-hero] [data-zion-welcome] .web-company-heading em.zion-home-location {
    font-size: .92em;
    letter-spacing: normal;
}
html[lang="ta"] #main-content > #home[data-zion-home-hero] [data-zion-welcome] .web-company-heading span.zion-home-location {
    font-size: .82em;
    letter-spacing: normal;
}
html[lang="ta"] #main-content > #home[data-zion-home-hero] [data-zion-welcome] .hero-copy p {
    margin-block: 5px;
    line-height: 1.55;
}
html[lang="ta"] #main-content > #home[data-zion-home-hero] [data-zion-welcome] .hero-meta {
    margin-top: 7px;
}
@media (max-width: 599px) {
    html[lang="ta"] #main-content > #home[data-zion-home-hero] [data-zion-welcome] .web-company-heading {
        font-size: clamp(13px, 4.05vw, 23px);
        margin-block: 4px;
    }
    html[lang="ta"] #main-content > #home[data-zion-home-hero] [data-zion-welcome] .hero-copy p {
        margin-block: 3px;
    }
}
