/* Phone-only usability improvements. Also media-scoped by the WordPress enqueue. */
@media screen and (max-width:767px) {
    html,body { overflow-x:clip!important; overflow-y:visible!important; }
    html { scroll-padding-top:88px; }
    body #masthead {
        position:sticky!important;
        top:0!important;
        z-index:1000!important;
        box-shadow:0 2px 12px rgba(20,35,60,.07)!important;
    }
    body.admin-bar #masthead { top:46px!important; }
    #ast-mobile-header .ast-primary-header-bar { min-height:68px!important; }
    #ast-mobile-header .ast-builder-grid-row { min-height:68px!important; }
    #ast-mobile-header .menu-toggle {
        width:48px!important;
        min-height:48px!important;
        padding:12px!important;
        border-radius:12px!important;
        touch-action:manipulation;
    }
    #ast-mobile-header .main-header-menu .menu-link {
        display:flex!important;
        align-items:center!important;
        min-height:52px!important;
        padding:12px 24px!important;
        font-size:16px!important;
    }
    #ast-mobile-header .ast-mobile-header-content {
        max-height:calc(100dvh - 80px);
        overflow-y:auto;
        overscroll-behavior:contain;
        border-bottom:1px solid #dadce0;
        box-shadow:0 12px 24px rgba(20,35,60,.1);
    }
    :is(a,button,input,textarea,select):focus-visible {
        outline:3px solid #1a73e8!important;
        outline-offset:3px!important;
    }
    body.page #content .entry-content > .wp-block-uagb-container { padding:36px 20px!important; }
    body.page #content .entry-content .uagb-block-48f09e77 { padding-top:36px!important; }
    body.page #content .entry-content :is(p,.uagb-ifb-desc) { font-size:16px!important; line-height:1.65!important; }
    body.page #content .entry-content :is(h1,h2,h3,.uagb-heading-text,.uagb-ifb-title) {
        text-align:left!important;
        text-wrap:pretty!important;
        letter-spacing:0!important;
    }
    body.page #content .entry-content :is(h2,.uagb-heading-text) { font-size:24px!important; line-height:1.3!important; }
    body.page #content .entry-content h3,
    body.page #content .entry-content h3.uagb-heading-text { font-size:20px!important; line-height:1.4!important; }
    body.page #content .entry-content .uagb-block-48f09e77 :is(h1,.uagb-ifb-title,.uagb-heading-text) {
        font-size:28px!important;
        line-height:1.25!important;
    }
    body.page-id-5 #content .entry-content .uagb-block-48f09e77 h1 { text-align:center!important; text-wrap:balance!important; }
    body.page #content .entry-content :is(.wp-block-uagb-advanced-heading,.uagb-ifb-content,.uagb-infobox-margin-wrapper) { text-align:left!important; }
    body.page #content .entry-content :is(.uagb-desc-text,.uagb-ifb-desc,.uagb-ifb-title-prefix) { text-align:left!important; }
    body.page #content .entry-content :is(.uagb-desc-text.aitran-accent-line,.uagb-ifb-title-prefix) {
        justify-content:flex-start!important;
        width:fit-content!important;
        max-width:100%!important;
        margin-inline:0!important;
        font-size:14px!important;
        line-height:1.5!important;
        letter-spacing:0!important;
    }
    body.page #content .entry-content .uagb-ifb-button-wrapper { display:flex!important; justify-content:flex-start!important; text-align:left!important; }
    body.page #content .entry-content .uagb-block-48f09e77 .wp-block-uagb-advanced-heading { margin-inline:0!important; }
    body.page #content .entry-content .uagb-block-48f09e77 .uagb-ifb-button-wrapper { justify-content:center!important; text-align:center!important; }
    /* These transparent, unpadded blocks must not clip text at rounded corners. */
    body.page #content .entry-content :is(.uagb-block-707c436c,.uagb-block-15ed7467) {
        overflow:visible!important;
        border-radius:0!important;
    }
    body.page #content .entry-content :is(.uagb-infobox-cta-link,.uagb-forms-main-submit-button,.wp-block-button__link) {
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
        min-height:40px!important;
        min-width:0!important;
        width:fit-content!important;
        height:auto!important;
        max-width:100%!important;
        padding:8px 18px!important;
        font-size:14px!important;
        line-height:1.4!important;
        border-radius:9px!important;
        touch-action:manipulation;
    }
    body.page #content .entry-content .uagb-forms-main-submit-button { min-height:44px!important; padding:10px 20px!important; }
    body.page #content .entry-content .uagb-ifb-button-wrapper { margin-top:20px!important; }
    body.page #content .entry-content .wp-block-uagb-info-box,
    body.page #content .entry-content .uagb-infobox-margin-wrapper,
    body.page #content .entry-content .uagb-ifb-content { min-height:0!important; }
    .aitran-translate-demo { text-align:left!important; }
    .aitran-translate-demo:before { content:none!important; }
    .aitran-demo-top { margin-bottom:16px!important; }
    .aitran-demo-title { font-size:16px!important; }
    .aitran-demo-card { min-height:0!important; padding:16px!important; margin-bottom:12px!important; }
    .aitran-demo-label { font-size:13px!important; margin-bottom:12px!important; }
    .aitran-demo-line { height:8px!important; margin-top:8px!important; }
    .aitran-demo-actions { grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:6px!important; margin-top:14px!important; }
    .aitran-demo-chip { padding:10px 4px!important; font-size:12px!important; line-height:1.3!important; }
    body.page #content .entry-content .uagb-block-3ec541a0 .uagb-ifb-content { padding:0!important; background:transparent!important; border:0!important; box-shadow:none!important; }
    body.page #content .entry-content :is(.uagb-block-3ec541a0,.uagb-block-9eb4dadd) .uagb-ifb-content {
        border:0!important; border-radius:0!important; overflow:visible!important; box-shadow:none!important; background:transparent!important;
        gap:16px!important;
        align-items:start!important;
    }
    body.page #content .entry-content :is(.uagb-block-3ec541a0,.uagb-block-9eb4dadd) :is(.uagb-ifb-title-wrap,.uagb-ifb-title,.uagb-ifb-desc,.uagb-ifb-button-wrapper) { margin:0!important; }
    body.page #content .entry-content :is(.uagb-block-3ec541a0,.uagb-block-9eb4dadd) .uagb-ifb-title-prefix { margin:0 0 10px!important; }
    body.page #content .entry-content .uagb-block-3ec541a0 .wp-block-uagb-info-box:before,
    body.page #content .entry-content :is(.uagb-block-3ec541a0,.uagb-block-9eb4dadd) .uagb-ifb-content:before { content:none!important; }
    .aitran-story-visual { padding:0!important; border:0!important; background:transparent!important; box-shadow:none!important; }
    .aitran-story-visual:before { content:none!important; }
    .aitran-story-node { margin-bottom:12px!important; padding:16px!important; }
    .aitran-story-node > div { min-width:0; }
    .aitran-story-node strong { font-size:16px!important; line-height:1.4!important; }
    .aitran-story-node span:not(.aitran-story-icon) { font-size:14px!important; line-height:1.5!important; }
    .aitran-story-metrics,.aitran-about-metrics { grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:8px!important; }
    .aitran-story-metric,.aitran-about-metric { padding:14px 6px!important; }
    .aitran-story-metric span,.aitran-about-metric span { font-size:12px!important; }
    .aitran-cta-visual { padding:16px!important; }
    .aitran-cta-flow { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:10px!important; }
    .aitran-cta-arrow { display:none!important; }
    .aitran-cta-card { padding:14px!important; min-height:0!important; }
    .aitran-cta-chips { grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:6px!important; }
    .aitran-cta-chip { padding:10px 4px!important; font-size:12px!important; }
    body.page #content .entry-content .uagb-block-f7139a63 .uagb-container-inner-blocks-wrap > .wp-block-uagb-container,
    body.page #content .entry-content .uagb-block-b3bbed70 > .wp-block-uagb-advanced-heading,
    body.page #content .entry-content .uagb-block-529d28c3 > .wp-block-uagb-info-box {
        padding:22px!important;
        min-height:0!important;
        border-radius:20px!important;
    }
    body.page #content .entry-content .uagb-block-f7139a63 h3,
    body.page #content .entry-content .uagb-block-b3bbed70 .uagb-heading-text { font-size:20px!important; line-height:1.4!important; text-align:left!important; }
    body.page #content .entry-content .uagb-block-c8fe957d { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:12px!important; }
    /* Flatten the original three image columns into six equal phone grid cells. */
    body.page #content .entry-content .uagb-block-c8fe957d > .wp-block-uagb-container { display:contents!important; }
    body.page #content .entry-content .uagb-block-c8fe957d .wp-block-uagb-image {
        display:block!important;
        width:100%!important;
        min-width:0!important;
        height:auto!important;
        margin:0!important;
        padding:0!important;
        grid-column:auto!important;
        grid-row:auto!important;
        align-self:start!important;
    }
    body.page #content .entry-content .uagb-block-c8fe957d figure { display:block!important; width:100%!important; height:auto!important; margin:0!important; padding:0!important; }
    body.page #content .entry-content .uagb-block-c8fe957d img { display:block!important; width:100%!important; height:auto!important; aspect-ratio:4/3; object-fit:cover!important; border-radius:14px!important; }
    body.page #content .entry-content .uagb-faq-questions-button { padding:18px!important; }
    body.page #content .entry-content .uagb-question { font-size:17px!important; line-height:1.45!important; }
    body.page #content .entry-content .uagb-faq-content { padding:0 18px 18px!important; }
    /* Services page: remove the empty spacer and desktop card offsets on phones. */
    body.page-id-7 #content .entry-content > .uagb-block-3ec541a0 { display:none!important; }
    body.page-id-7 #content .entry-content .uagb-block-48f09e77 { padding-bottom:24px!important; }
    body.page-id-7 #content .entry-content > .uagb-block-12fd4239 { padding-top:20px!important; }
    body.page-id-7 #content .entry-content .uagb-block-12fd4239 > .uagb-container-inner-blocks-wrap {
        display:grid!important;
        grid-template-columns:minmax(0,1fr)!important;
        gap:12px!important;
    }
    body.page-id-7 #content .entry-content .uagb-block-12fd4239 .wp-block-uagb-container {
        width:100%!important; max-width:100%!important; min-height:0!important;
        margin:0!important; padding:0!important;
        background:transparent!important; border:0!important; box-shadow:none!important;
    }
    body.page-id-7 #content .entry-content .uagb-block-12fd4239 .wp-block-uagb-info-box {
        width:100%!important; max-width:100%!important; min-height:0!important;
        margin:0!important; padding:18px!important; border-radius:20px!important;
    }
    body.page-id-7 #content .entry-content .uagb-block-12fd4239 :is(.uagb-ifb-content,.uagb-infobox-margin-wrapper) {
        display:block!important; width:100%!important; max-width:100%!important;
        margin:0!important; padding:0!important;
    }
    body.page-id-7 #content .entry-content .uagb-block-12fd4239 .uagb-ifb-title-wrap { margin:0!important; }
    body.page-id-7 #content .entry-content .uagb-block-12fd4239 .uagb-ifb-title-prefix { font-size:13px!important; margin:0 0 8px!important; }
    body.page-id-7 #content .entry-content .uagb-block-12fd4239 .uagb-ifb-title { font-size:18px!important; line-height:1.4!important; margin:0 0 10px!important; }
    body.page-id-7 #content .entry-content .uagb-block-12fd4239 .uagb-ifb-desc { font-size:15px!important; line-height:1.65!important; margin:0!important; }
    /* Match the service cards to the compact phone spacing used below. */
    body.page-id-5 #content .entry-content .uagb-block-f7139a63 > .uagb-container-inner-blocks-wrap { gap:12px!important; }
    body.page-id-5 #content .entry-content .uagb-block-f7139a63 > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container { padding:18px!important; gap:8px!important; }
    body.page-id-5 #content .entry-content .uagb-block-f7139a63 > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container > .wp-block-uagb-advanced-heading { margin:0!important; }
    body.page-id-5 #content .entry-content .uagb-block-f7139a63 h3 { margin:0!important; font-size:16px!important; line-height:1.55!important; }
    body.page-id-5 #content .entry-content .uagb-block-f7139a63 > .uagb-container-inner-blocks-wrap > .wp-block-uagb-container .uagb-desc-text { margin:0 0 8px!important; }
    /* Compact only the homepage Commitment and FAQ sections on phones. */
    body.page-id-5 #content .entry-content .uagb-block-d8faffdc { padding-block:28px!important; }
    body.page-id-5 #content .entry-content .uagb-block-d8faffdc > .uagb-container-inner-blocks-wrap { gap:16px!important; }
    body.page-id-5 #content .entry-content .uagb-block-d8faffdc > .uagb-container-inner-blocks-wrap > .wp-block-uagb-advanced-heading { margin:0!important; }
    body.page-id-5 #content .entry-content .uagb-block-d8faffdc > .uagb-container-inner-blocks-wrap > .wp-block-uagb-advanced-heading .uagb-desc-text { margin:0 0 10px!important; }
    body.page-id-5 #content .entry-content .uagb-block-d8faffdc > .uagb-container-inner-blocks-wrap > .wp-block-uagb-advanced-heading .uagb-heading-text { margin:0!important; }
    body.page-id-5 #content .entry-content .uagb-block-b3bbed70 { gap:12px!important; }
    body.page-id-5 #content .entry-content .uagb-block-b3bbed70 > .wp-block-uagb-advanced-heading { padding:18px!important; }
    body.page-id-5 #content .entry-content .uagb-block-b3bbed70 .uagb-heading-text { margin:0 0 10px!important; }
    body.page-id-5 #content .entry-content .uagb-block-b3bbed70 .uagb-desc-text { margin:0!important; }
    body.page-id-5 #content .entry-content .uagb-block-b3bbed70 .uagb-separator { display:none!important; }
    body.page-id-5 #content .entry-content .uagb-block-05becbf7 > .uagb-container-inner-blocks-wrap { row-gap:16px!important; }
    body.page-id-5 #content .entry-content .uagb-block-966cb489,
    body.page-id-5 #content .entry-content .uagb-block-966cb489 .uagb-heading-text { margin:0!important; }
    body.page-id-5 #content .entry-content .uagb-block-05becbf7 .wp-block-uagb-faq { margin:0!important; gap:12px!important; }
    body.page-id-5 #content .entry-content .uagb-block-05becbf7 .uagb-faq-child__outer-wrap { margin:0!important; }
    body.page-id-5 #content .entry-content .uagb-block-05becbf7 .uagb-faq-questions-button { padding:16px 16px 8px!important; }
    body.page-id-5 #content .entry-content .uagb-block-05becbf7 .uagb-faq-content { padding:0 16px 16px!important; }
    .aitran-about-card,.aitran-service-tile,.aitran-contact-method { min-height:0!important; padding:18px!important; }
    .aitran-about-card strong,.aitran-service-tile strong,.aitran-contact-method b { font-size:16px!important; line-height:1.4!important; }
    .aitran-about-card span,.aitran-service-tile span,.aitran-contact-method span,
    .aitran-about-center span,.aitran-service-top span,.aitran-contact-top span { font-size:14px!important; line-height:1.55!important; }
    /* Bring actual contact details and the form above the duplicate decorative panel. */
    body.page-id-9 #content .aitran-contact-hero-visual { display:none!important; }
    body.page-id-9 .aitran-mobile-contact-link { display:inline-flex; align-items:center; min-height:44px; color:#185abc; text-decoration:underline; text-underline-offset:4px; }
    body.page #content .uagb-forms-main-form :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),textarea,select) {
        width:100%!important;
        min-height:52px!important;
        font-size:16px!important;
        line-height:1.5!important;
        padding:14px 16px!important;
        border:1px solid #aebacd!important;
        border-radius:12px!important;
        background:#fff!important;
        color:#202124!important;
        scroll-margin-top:96px;
    }
    body.page #content .uagb-forms-main-form textarea { min-height:160px!important; height:160px!important; resize:vertical; }
    body.page #content .uagb-forms-main-form ::placeholder { color:#526071!important; opacity:1; }
    body.blog #content>.ast-container,body.single-post #content>.ast-container { padding-top:28px!important; }
    body.blog .aitran-blog-title { font-size:26px!important; line-height:1.3!important; text-wrap:pretty!important; text-align:left!important; }
    body.blog .aitran-blog-summary { font-size:16px!important; line-height:1.65!important; }
    body.blog #content .entry-title { font-size:22px!important; line-height:1.35!important; text-align:left!important; }
    body.blog .entry-title a { display:block; }
    body.blog .aitran-topics-collapsible:not(.aitran-topics-expanded) a:nth-of-type(n+4) { display:none!important; }
    body.blog .aitran-topics-toggle {
        display:block;
        width:fit-content;
        min-height:44px;
        margin:0 0 12px;
        padding:8px 0;
        color:#46e1cc;
        background:transparent;
        border:0;
        font-size:14px;
        line-height:1.5;
        text-decoration:underline;
        text-underline-offset:4px;
    }
    body.blog .ast-taxonomy-container a { min-height:44px!important; padding:10px 12px!important; font-size:13px!important; }
    body.blog .aitran-blog-read-link { min-height:48px!important; padding-top:16px!important; padding-bottom:8px!important; font-size:16px!important; }
    body.blog .ast-pagination .page-numbers { min-width:44px!important; min-height:44px!important; }
    body.single-post #content .entry-title { font-size:26px!important; line-height:1.3!important; text-align:left!important; }
    body.single-post .entry-content :is(p,li) { font-size:16px!important; line-height:1.75!important; }
    body.single-post .entry-content h2 { font-size:23px!important; text-align:left!important; }
    body.single-post .entry-content h3 { font-size:20px!important; text-align:left!important; }
    body.single-post .entry-content p { margin-bottom:1.25em!important; }
    #ast-scroll-top { width:44px!important; height:44px!important; line-height:44px!important; right:16px!important; bottom:max(16px,env(safe-area-inset-bottom))!important; border-radius:12px!important; }
}
@media screen and (max-width:767px) and (prefers-reduced-motion:reduce) {
    html { scroll-behavior:auto!important; }
    .entry-content *, .entry-content *:before, .entry-content *:after { animation:none!important; transition:none!important; }
}
