/* Mobile overrides load after the original design; desktop styling is preserved. */
@media (max-width: 921px) {
    #ast-mobile-header .site-branding {
        display:flex!important;
        align-items:center!important;
        flex-wrap:nowrap!important;
        gap:12px!important;
        width:auto!important;
        min-width:0!important;
    }
    #ast-mobile-header .site-logo-img { flex:0 0 auto!important; padding-right:0!important; }
    #ast-mobile-header .ast-site-title-wrap { width:auto!important; min-width:0!important; flex:0 0 auto!important; }
    #ast-mobile-header .site-title,
    #ast-mobile-header .site-title a { white-space:nowrap!important; font-size:22px!important; line-height:1.2!important; }
    body.page #content > .ast-container { width:100%!important; max-width:100%!important; padding-inline:0!important; }
    body.page #primary { width:100%!important; min-width:0!important; margin:0!important; padding:0!important; }
    body.page .entry-content > .wp-block-uagb-container {
        width:100%!important;
        max-width:100%!important;
        margin-inline:0!important;
        padding:56px 24px!important;
        box-sizing:border-box!important;
    }
    body.page #content .entry-content .uagb-container-inner-blocks-wrap {
        width:100%!important;
        max-width:720px!important;
        min-width:0!important;
        margin-inline:auto!important;
        box-sizing:border-box!important;
    }
    body.page .entry-content .wp-block-uagb-container,
    body.page .entry-content .wp-block-uagb-info-box,
    body.page .entry-content .wp-block-uagb-advanced-heading,
    body.page .entry-content .uagb-infobox-margin-wrapper,
    body.page .entry-content .uagb-ifb-content { min-width:0!important; max-width:100%!important; box-sizing:border-box!important; }
    body.page .entry-content :is(h1,h2,h3,h4,h5,h6,.uagb-ifb-title,.uagb-heading-text) {
        white-space:normal!important;
        overflow-wrap:break-word!important;
        word-break:normal!important;
        text-wrap:pretty;
    }
    body.page .entry-content .uagb-block-48f09e77 > .uagb-container-inner-blocks-wrap { gap:28px!important; }
    body.page .entry-content .uagb-block-48f09e77 :is(h1,.uagb-ifb-title,.uagb-heading-text) {
        font-size:clamp(30px,5.5vw,44px)!important;
        line-height:1.16!important;
        margin-inline:auto!important;
        width:100%!important;
    }
    .aitran-demo-top,
    .aitran-about-center,
    .aitran-service-top,
    .aitran-contact-top { flex-wrap:wrap!important; gap:12px!important; }
    .aitran-contact-top > div,
    .aitran-service-top > div { flex:1 1 220px!important; min-width:0!important; }
    body.page .entry-content :is(.aitran-translate-demo,.aitran-about-hero-visual,.aitran-services-hero-visual,.aitran-contact-hero-visual) {
        width:100%!important;
        min-width:0!important;
        max-width:100%!important;
        box-sizing:border-box!important;
    }
    body.blog :is(.ast-taxonomy-container,.entry-meta),
    body.single-post :is(.ast-taxonomy-container,.entry-meta) {
        display:flex!important;
        flex-wrap:wrap!important;
        width:auto!important;
        max-width:100%!important;
        gap:6px!important;
    }
    body.blog .ast-taxonomy-container a { white-space:normal!important; line-height:1.35!important; overflow-wrap:anywhere; }
    body.blog #main .ast-row { grid-template-columns:minmax(0,1fr)!important; }
    body.single-post .entry-content :is(img,video,iframe) { max-width:100%!important; }
    body.single-post .entry-content :is(pre,.wp-block-table) { max-width:100%; overflow-x:auto; }
    body.single-post .entry-content :is(p,li,a) { overflow-wrap:anywhere; }
}
@media (max-width: 640px) {
    body.page .entry-content > .wp-block-uagb-container { padding:44px 20px!important; }
    body.page .entry-content .uagb-block-48f09e77 { padding-top:48px!important; }
    body.page .entry-content :is(.uagb-block-f7139a63,.uagb-block-d8faffdc,.uagb-block-0ab4cf6e) :is(.uagb-container-inner-blocks-wrap,.uagb-layout-grid),
    body.page .entry-content :is(.uagb-block-b3bbed70,.uagb-block-c8fe957d,.uagb-block-c7acfdc8,.uagb-block-529d28c3,.uagb-block-a8ea0a47) {
        grid-template-columns:minmax(0,1fr)!important;
        gap:20px!important;
        width:100%!important;
    }
    body.page .entry-content :is(.uagb-block-ecbd7e76,.uagb-block-9eb4dadd) {
        width:100%!important;
        max-width:100%!important;
        padding:24px!important;
        gap:24px!important;
        box-sizing:border-box!important;
    }
    body.page #content .entry-content .uagb-block-ecbd7e76 { padding:0!important; }
    body.page #content .entry-content .uagb-block-3ec541a0 .uagb-ifb-content { padding:24px!important; }
    body.page #content .entry-content .uagb-block-9eb4dadd .uagb-ifb-content { padding:0!important; }
    body.page #content .entry-content .uagb-block-9eb4dadd .wp-block-uagb-info-box { width:100%!important; padding:24px!important; }
    .aitran-story-visual,.aitran-cta-visual { padding:16px!important; min-height:0!important; }
    .aitran-story-node { padding:12px!important; gap:10px!important; }
    .aitran-story-node .aitran-story-icon { display:inline-flex!important; align-items:center!important; justify-content:center!important; color:#fff!important; }
    .aitran-story-node:nth-child(3) .aitran-story-icon { color:#202124!important; }
    .aitran-cta-status { flex-wrap:wrap!important; gap:12px!important; }
    .aitran-cta-status > div { flex:1 1 180px!important; min-width:0!important; }
    body.page .entry-content :is(.uagb-block-9948cea3,.wp-block-uagb-advanced-heading) { max-width:100%!important; }
    body.page .entry-content :is(h2,.uagb-heading-text) { font-size:clamp(26px,7vw,34px)!important; line-height:1.22!important; }
    body.page .entry-content :is(.uagb-ifb-title,h3) { font-size:24px!important; line-height:1.3!important; }
    body.page .entry-content :is(.uagb-ifb-desc,p) { font-size:16px!important; line-height:1.7!important; }
    body.page .entry-content :is(.aitran-translate-demo,.aitran-about-hero-visual,.aitran-services-hero-visual,.aitran-contact-hero-visual) {
        padding:20px!important;
        border-radius:22px!important;
        min-height:0!important;
    }
    .aitran-demo-top { align-items:flex-start!important; text-align:left!important; }
    .aitran-demo-title { flex:1 1 160px!important; font-size:18px!important; line-height:1.4!important; }
    .aitran-demo-badge { white-space:nowrap!important; flex:0 0 auto!important; }
    .aitran-demo-card { padding:18px!important; margin-inline:0!important; }
    .aitran-demo-card .aitran-demo-label { flex-wrap:wrap!important; gap:8px!important; }
    .aitran-service-grid,.aitran-about-orbit,.aitran-contact-methods { grid-template-columns:minmax(0,1fr)!important; }
    body.page .entry-content .uagb-block-529d28c3 > .wp-block-uagb-info-box,
    body.page .entry-content .uagb-block-529d28c3 :is(.uagb-infobox-margin-wrapper,.uagb-ifb-content) { min-height:0!important; }
    body.page .entry-content :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select) { max-width:100%!important; box-sizing:border-box!important; }
    body.page .entry-content .uagb-forms-main-submit-button { min-height:46px!important; height:auto!important; width:auto!important; padding:12px 26px!important; line-height:1.4!important; }
    body.blog .aitran-blog-hero { padding:24px!important; }
    body.blog .aitran-blog-title { font-size:30px!important; line-height:1.18!important; }
    body.blog article.ast-article-post .post-content { padding:22px!important; }
    body.single-post article.ast-article-single { padding:22px!important; }
    body.single-post .entry-title { font-size:30px!important; line-height:1.2!important; overflow-wrap:break-word; }
    .site-footer .ast-builder-grid-row { grid-template-columns:minmax(0,1fr)!important; }
}
@media (max-width:921px) {
    body.page .entry-content .aitran-reveal { opacity:1!important; transform:none!important; transition:none!important; }
}
