.zion-home-about-wrap .zion-about-ipad-paragraph { display: none; }
html.zion-ipad .zion-home-about-wrap .zion-about-ipad-paragraph { display: block; }

.zion-podcast-tablet-copy, .zion-podcast-tablet-break { display: none; }
.zion-podcast-links { display: contents; }
.zion-podcast-bible { display: none; }

@media (min-width: 600px) and (max-width: 1366px) {
    html.zion-android-tablet #main-content > #home[data-zion-worship-schedule]:not([data-zion-live-page]) {
        /* The compact video layout sets the reference height for the whole rotation. */
        --zion-android-slide-height: clamp(270px, calc(32vw + 70px), 510px);
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    html.zion-android-tablet #home[data-zion-worship-schedule]:not([data-zion-live-page]) > .hero-stage {
        height: auto;
        min-height: 0;
    }
    html.zion-android-tablet #home[data-zion-worship-schedule]:not([data-zion-live-page]) > .hero-stage > :is([data-zion-welcome], [data-zion-worship]) {
        height: var(--zion-android-slide-height);
        min-height: 0;
        max-height: none;
        padding: 0;
    }
    html.zion-android-tablet #home[data-zion-worship-schedule]:not([data-zion-live-page]) .zion-worship-layout {
        height: 100%;
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
        grid-template-rows: minmax(0, 1fr);
        gap: clamp(12px, 2vw, 26px);
        padding-block: 12px;
    }
    html.zion-android-tablet #main-content > #home[data-zion-home-hero] .zion-worship-copy {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    html.zion-android-tablet #main-content > #home[data-zion-home-hero] .hero-stage :is(.zion-worship-copy, .hero-copy) {
        max-width: var(--zion-copy-width, 100%);
        zoom: var(--zion-copy-scale, 1);
    }
    html.zion-android-tablet #main-content > #home[data-zion-home-hero] .hero-stage .zion-worship-copy {
        width: var(--zion-copy-width, 100%);
    }
    html.zion-android-tablet #main-content > #home[data-zion-home-hero] .hero-stage .hero-copy {
        width: var(--zion-copy-width, 43%);
        max-width: var(--zion-copy-width, 43%);
    }
    html.zion-android-tablet #home[data-zion-worship-schedule]:not([data-zion-live-page]) .zion-worship-player {
        max-width: min(100%, calc((var(--zion-android-slide-height) - 98px) * 16 / 9));
    }
    html.zion-android-tablet #home[data-zion-worship-schedule]:not([data-zion-live-page]) :is(.zion-worship-copy h2, .hero-stage [data-zion-welcome] .web-company-heading) {
        font-size: clamp(24px, 3.1vw, 42px);
        overflow-wrap: anywhere;
    }
    html.zion-android-tablet:lang(ta) #home[data-zion-worship-schedule]:not([data-zion-live-page]) :is(.zion-worship-copy h2, .hero-stage [data-zion-welcome] .web-company-heading) {
        font-family: "Zion Tamil", Manrope, sans-serif;
        font-size: clamp(20px, 2.7vw, 35px);
        line-height: 1.25;
        letter-spacing: normal;
    }
    html.zion-android-tablet:lang(ta) #home[data-zion-home-hero] .zion-worship-copy h2 {
        font-size: clamp(17px, 2.3vw, 29px);
        line-height: 1.2;
    }
    html.zion-android-tablet:lang(ta) #home[data-zion-home-hero] .zion-worship-copy [data-tamil-title] > :is(em, span) {
        display: block;
        white-space: nowrap;
        overflow-wrap: normal;
    }
    html.zion-android-tablet:lang(ta) #home[data-zion-home-hero] .zion-worship-copy [data-tamil-title] > :is(.zion-slide-title-prefix, span:last-child) {
        font-size: .78em;
    }
    html.zion-android-tablet #home[data-zion-home-hero] .zion-worship-copy .eyebrow { margin-bottom: 7px; }
    html.zion-android-tablet #home[data-zion-home-hero] .zion-worship-rule { margin-block: 8px; }
    html.zion-android-tablet #home[data-zion-home-hero] .zion-slide-actions { margin-block-start: 7px; }
    html.zion-android-tablet #home[data-zion-home-hero] .zion-worship-copy .zion-worship-church { margin-top: 7px; }
    html.zion-android-tablet:lang(ta) #home[data-zion-home-hero] .zion-welcome-default-heading {
        display: none;
    }
    html.zion-android-tablet:lang(ta) #home[data-zion-home-hero] .zion-welcome-mobile-ta,
    html.zion-android-tablet:lang(ta) #home[data-zion-home-hero] .zion-welcome-ta-location {
        display: block;
    }
    html.zion-android-tablet:lang(ta) #home[data-zion-home-hero] .zion-welcome-ta-location {
        font-size: .62em;
        margin-top: .2em;
    }
    html.zion-android-tablet #home[data-zion-home-hero] [data-zion-welcome] :is(.banner-welcome, .hero-meta) {
        display: none;
    }
    html.zion-android-tablet #home[data-zion-home-hero] [data-zion-welcome] .slide-inner {
        height: 100%;
        padding-block: 14px;
    }
    html.zion-android-tablet #home[data-zion-worship-schedule]:not([data-zion-live-page]) .zion-worship-copy .zion-worship-day {
        font-size: clamp(10px, 1.05vw, 13px);
        line-height: 1.45;
        margin-bottom: 6px;
        overflow-wrap: anywhere;
    }

    html.zion-android-tablet #main-content > .zion-home-service-highlights .zion-poster-caption {
        display: none;
    }

    html:is(.zion-android-tablet, .zion-ipad) #main-content > .zion-home-podcast {
        grid-template-columns: max-content minmax(0, 1fr) max-content;
        grid-template-areas:
            "art intro controls"
            "title title title"
            "wave links links";
        gap: 6px clamp(4px, .65vw, 8px);
        padding-block: 10px;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    :is(.zion-android-tablet, .zion-ipad) .zion-home-podcast .zion-podcast-art {
        grid-area: art;
        width: clamp(72px, 9vw, 96px);
        height: auto;
        align-self: center;
    }
    :is(.zion-android-tablet, .zion-ipad) .zion-home-podcast .zion-podcast-intro {
        grid-area: intro;
        min-width: 0;
        text-align: start;
        justify-self: stretch;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    :is(.zion-android-tablet, .zion-ipad) .zion-home-podcast .zion-podcast-intro h2 {
        margin: 0 0 3px;
        font-size: clamp(16px, 2vw, 21px);
    }
    :is(.zion-android-tablet, .zion-ipad) .zion-home-podcast .zion-podcast-intro p {
        max-width: none;
        margin: 0;
        font-size: clamp(11px, 1.25vw, 15px);
        line-height: 1.4;
    }
    html.zion-android-tablet:lang(ta) .zion-home-podcast .zion-podcast-copy-default { display: none; }
    html.zion-android-tablet:lang(ta) .zion-home-podcast .zion-podcast-copy-mobile-ta { display: inline; }
    html.zion-android-tablet:lang(ta) .zion-home-podcast .zion-podcast-intro {
        font-family: "Zion Tamil", Manrope, sans-serif;
    }
    .zion-android-tablet .zion-home-podcast .zion-podcast-tablet-copy { display: inline; }
    :is(.zion-android-tablet, .zion-ipad) .zion-home-podcast .zion-podcast-title { grid-area: title; }
    :is(.zion-android-tablet, .zion-ipad) .zion-home-podcast .zion-podcast-control-group { grid-area: controls; }
    :is(.zion-android-tablet, .zion-ipad) .zion-home-podcast .zion-podcast-spectrum { grid-area: wave; width: max-content; height: 18px; }
    :is(.zion-android-tablet, .zion-ipad) .zion-home-podcast .zion-podcast-links {
        grid-area: links;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        min-width: 0;
    }
    .zion-android-tablet .zion-home-podcast a[data-zion-podcast-duplicate],
    html.zion-ipad #main-content > .zion-home-podcast a[data-zion-podcast-duplicate] { display: none !important; }
    :is(.zion-android-tablet, .zion-ipad) .zion-home-podcast .zion-podcast-link-desktop { display: none; }
    :is(.zion-android-tablet, .zion-ipad) .zion-home-podcast .zion-podcast-link-mobile { display: inline; }
    :is(.zion-android-tablet, .zion-ipad) .zion-home-podcast :is(.zion-podcast-link, .zion-podcast-bible) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 32px;
        padding: 4px 9px;
        border: 1px solid #dbc4ec;
        border-radius: 9px;
        background: #f8efff;
        color: #604080;
        font-size: clamp(10px, 1.3vw, 13px);
        font-weight: 700;
        text-align: center;
        white-space: nowrap;
    }

    html.zion-ipad #main-content > .zion-home-podcast :is(.zion-podcast-spectrum, .zion-podcast-links) {
        align-self: center;
    }
    html.zion-ipad #main-content > .zion-home-podcast .zion-podcast-links > .zion-podcast-bible {
        background: #7438a8;
        border-color: #7438a8;
        color: #fff;
    }

    html.zion-ipad #main-content > .zion-home-prayer .zion-home-prayer-inner {
        width: 88%;
        max-width: 1440px;
        padding: clamp(24px, 3.5vw, 48px) 0;
        grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
        gap: clamp(12px, 2.3vw, 32px);
        text-align: left;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    .zion-ipad .zion-home-prayer h2,
    .zion-ipad .zion-home-prayer h2 [lang="ta"] {
        font-size: clamp(19px, 2.6vw, 36px);
    }
    .zion-ipad .zion-home-prayer p {
        max-width: none;
        margin-block: clamp(8px, 1.2vw, 16px) clamp(12px, 1.6vw, 24px);
        font-size: clamp(11px, 1.29vw, 18px);
        line-height: 1.65;
    }
    .zion-ipad .zion-home-prayer-action {
        gap: clamp(6px, .8vw, 12px);
        padding-inline: clamp(8px, 1.2vw, 18px);
        font-size: clamp(10px, 1.16vw, 16px);
        text-align: left;
    }

    html.zion-android-tablet #main-content > .zion-home-prayer .zion-home-prayer-inner {
        width: min(92%, 760px);
        padding: 18px 0;
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    html.zion-android-tablet #main-content > .zion-home-prayer .zion-home-prayer-art {
        display: none;
    }
    html.zion-android-tablet #main-content > .zion-home-prayer .zion-home-prayer-copy {
        padding: 12px clamp(14px, 3vw, 32px);
        border: 1px solid #d6cce9;
        border-radius: 14px;
    }
    html.zion-android-tablet #main-content > .zion-home-prayer .zion-home-prayer-copy h2,
    html.zion-android-tablet #main-content > .zion-home-prayer .zion-home-prayer-copy h2 [lang="ta"] {
        margin: 0;
        font-size: clamp(17px, 2.15vw, 24px);
    }
    html.zion-android-tablet #main-content > .zion-home-prayer .zion-home-prayer-copy p {
        max-width: none;
        margin: .55rem auto .75rem;
        font-size: clamp(11px, 1.25vw, 14px);
        line-height: 1.75;
    }
    html.zion-android-tablet #main-content > .zion-home-prayer .zion-home-prayer-action {
        font-size: clamp(11px, 1.25vw, 14px);
        white-space: nowrap;
    }

    html.zion-android-tablet #main-content.zion-media-hub .zion-hub-card {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    html.zion-android-tablet:lang(ta) #main-content.zion-media-hub .zion-hub-card-copy {
        font-family: "Zion Tamil", "DM Sans", sans-serif;
    }
    html.zion-android-tablet:lang(ta) #main-content.zion-media-hub .zion-hub-card-copy strong {
        font-size: clamp(14px, 1.75vw, 18px);
        line-height: 1.35;
        letter-spacing: normal;
    }
}

/* Keep the gallery in its compact mode on iPad, including desktop-class Safari. */
html.zion-ipad #main-content .zal-gallery { padding-top: 18px; }
html.zion-ipad #main-content .zal-layout { display: block; }
html.zion-ipad #main-content .zal-gallery .zal-player { display: none; }
html.zion-ipad #main-content .zal-playlist > .zal-list-heading { padding: 20px 15px 22px; }
html.zion-ipad #main-content .zal-mobile-controls {
    display: grid;
    grid-template-columns: 44px 68px 44px;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 18px auto 0;
    padding: 4px 0 2px;
}
html.zion-ipad #main-content .zal-mobile-controls button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #dfc6ed;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8edff, #f3faff);
    color: #a366c6;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 5px 14px #9466b314;
}
html.zion-ipad #main-content .zal-mobile-controls .zal-mobile-play {
    width: 68px;
    height: 68px;
    border: 0;
    color: #fff;
    font-size: 25px;
    background: linear-gradient(135deg, #9948d6, #b34cad);
    box-shadow: 0 0 0 6px #b978d712, 0 8px 20px #a05bc72b;
}
html.zion-ipad #main-content .zal-mobile-controls button:disabled { opacity: .35; cursor: default; }
html.zion-ipad #main-content .zal-mobile-controls p {
    grid-column: 1 / -1;
    margin: 0;
    color: #a374aa;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}
html.zion-ipad #main-content .zal-mobile-controls p:empty { display: none; }
html.zion-ipad #main-content .zal-track-list {
    /* The gallery plugin sets an inline height for desktop pagination. */
    max-height: none !important;
    overflow: visible;
}

html.zion-ipad .zion-header-inner > #zcl-trigger {
    position: static;
    inset: auto;
    transform: none;
    flex: none;
    padding-inline: 12px;
    white-space: nowrap;
}

/* Preserve the compact header and bottom bar when Safari reports a desktop pointer. */
@media (min-width: 1101px) and (not (any-pointer: coarse)), (min-width: 1367px) {
    html.zion-ipad body { padding-bottom: calc(80px + env(safe-area-inset-bottom,0px)); }
    html.zion-ipad .zion-footer { display: none!important; }
    html.zion-ipad .zion-mobile-interface {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 95;
        font-family: inherit;
    }
    html.zion-ipad .zion-bottom-nav {
        display: grid;
        grid-template-columns: repeat(5,minmax(0,1fr));
        gap: 4px;
        align-items: center;
        padding: 7px 12px calc(7px + env(safe-area-inset-bottom,0px));
        background: linear-gradient(110deg,#fff7fff5,#f4f1fff5,#edfbfff5);
        border-top: 1px solid #e3d4ed;
        box-shadow: 0 -6px 25px #80549313;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    html.zion-ipad .zion-bottom-nav>a,
    html.zion-ipad .zion-bottom-nav>button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        min-height: 51px;
        padding: 6px 3px;
        border: 0;
        border-radius: 13px;
        background: transparent;
        color: #9b6bb7;
        font-family: inherit;
        font-size: 10px;
        font-weight: 600;
        line-height: 1.3;
        text-decoration: none;
        cursor: pointer;
    }
    html.zion-ipad .zion-bottom-nav svg { width: 21px; height: 21px; }
    html.zion-ipad .zion-bottom-nav span { font-size: 10px; line-height: 1.3; white-space: nowrap; }
    html.zion-ipad .zion-bottom-nav [data-bottom-item="media"] { color: #a469c3; }
    html.zion-ipad .zion-bottom-nav [data-bottom-item="ministry"] { color: #ba9564; }
    html.zion-ipad .zion-bottom-nav [data-bottom-item="blogs"] { color: #bd73a6; }
    html.zion-ipad .zion-bottom-nav [data-bottom-item="contact"] { color: #5d9eaf; }
    html.zion-ipad .zion-bottom-nav .is-active,
    html.zion-ipad .zion-bottom-nav [aria-expanded=true] { color: #fff!important; background: linear-gradient(125deg,#9752d3,#bd5bb7); box-shadow: 0 5px 13px #a56dc42a; }
    html.zion-ipad body .zal-dock { bottom: calc(80px + env(safe-area-inset-bottom,0px)); }
    html.zion-ipad header.zion-header[data-zion-persistent-header] .zion-header-inner {
        width: 92%;
        min-height: 78px;
        flex-wrap: nowrap;
        gap: 12px;
    }
    html.zion-ipad .zion-header .logo { flex: 1; min-width: 0; gap: 9px; }
    html.zion-ipad .zion-header .company-logo { width: 48px; height: 48px; flex: 0 0 48px; }
    html.zion-ipad .zion-header .zion-brand { gap: 4px; min-width: 0; }
    html.zion-ipad .zion-header .zion-brand strong { font-size: clamp(18px,5vw,23px); white-space: nowrap; }
    html.zion-ipad .zion-header .zion-brand small { font-size: 9px; white-space: nowrap; }
    html.zion-ipad .zion-header .zion-mobile-menu-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        flex: 0 0 43px;
        width: 43px;
        height: 43px;
        background: #f7effc;
        border: 1px solid #ead7f5;
        border-radius: 12px;
        padding: 10px;
        cursor: pointer;
        margin-left: auto;
    }
    html.zion-ipad .zion-mobile-menu-button>span {
        display: block;
        width: 21px;
        height: 2px;
        border-radius: 2px;
        background: #8650a4;
        transition: transform .2s,opacity .2s;
    }
    html.zion-ipad .zion-header #zion-primary-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 4%;
        right: 4%;
        width: auto;
        max-height: calc(100dvh - var(--zion-header-height,78px) - var(--zion-toolbar-height,0px) - 14px);
        overflow-y: auto;
        overscroll-behavior: contain;
        box-sizing: border-box;
        border: 1px solid #e8d8f1;
        border-radius: 0 0 20px 20px;
        background: #fff;
        padding: 10px;
        box-shadow: 0 18px 32px #51325e26;
    }
    html.zion-ipad .zion-header #zion-primary-navigation[data-mobile-open=true] { display: block; }
    html.zion-ipad .zion-header .zion-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        margin: 0;
        padding: 0;
    }
    html.zion-ipad .zion-header .zion-menu>li { width: 100%; }
    html.zion-ipad .zion-header .zion-menu>li>a,
    html.zion-ipad .zion-header .zion-menu-toggle {
        justify-content: flex-start;
        width: 100%;
        box-sizing: border-box;
        font-size: 13px;
        padding: 12px 14px;
        min-height: 44px;
    }
    html.zion-ipad .zion-header .zion-menu-toggle { justify-content: space-between; }
    html.zion-ipad .zion-header .zion-menu .sub-menu {
        display: none;
        position: static;
        min-width: 0;
        max-height: none;
        padding: 3px 4px 6px 16px;
        margin: 0;
        border: 0;
        border-left: 2px solid #ead8f2;
        border-radius: 0;
        background: #fcf8ff;
        box-shadow: none;
        backdrop-filter: none;
        animation: none;
    }
    html.zion-ipad .zion-header .zion-menu-toggle[aria-expanded=true]+.sub-menu { display: block; }
    html.zion-ipad .zion-header .zion-menu .sub-menu a { font-size: 12px; padding: 11px 12px; }
    html.zion-ipad .zion-header .zion-menu .zion-menu-live { margin: 7px 0 0; }
    html.zion-ipad .zion-header .zion-menu .zion-menu-live>a { justify-content: center; padding: 13px; }
    html.zion-ipad .zion-mobile-menu-button:focus-visible { outline: 3px solid #c194dc; outline-offset: 3px; }
}
