/* MC3's phone layout: keep the hero, welcome content, and footer readable. */
@media (max-width: 767px) {
    body.home .slideshow-plugin.is-video-background.has-mobile-text-below .slideshow-text-wrap {
        padding: 28px 24px !important;
        background: #f8fafc !important;
        height: auto !important;
        min-height: 0 !important;
    }
    body.home .slideshow-plugin.is-video-background.has-mobile-text-below .slideshow-text-container {
        transform: none !important;
        padding: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 420px !important;
        gap: 8px !important;
        height: auto !important;
        min-height: 0 !important;
    }
    body.home .slideshow-plugin.is-video-background.has-mobile-text-below .slideshow-text-layer:not(.slideshow-button-layer) {
        font-size: clamp(24px, 6.5vw, 30px) !important;
        line-height: 1.15 !important;
        text-shadow: none !important;
    }
    body.home .slideshow-plugin.has-mobile-text-below .slideshow-text-layer-0 { color: #0f172a !important; }
    body.home .slideshow-plugin.has-mobile-text-below .slideshow-text-layer-1 { color: #1a6bbf !important; }
    body.home .slideshow-plugin.has-mobile-text-below .slideshow-button-row {
        width: 100% !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 12px !important;
        margin-top: 12px !important;
    }
    body.home .slideshow-plugin.has-mobile-text-below .slideshow-button-link {
        width: 100% !important;
        min-height: 48px !important;
        margin: 0 !important;
        padding: 12px 16px !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }
    body.home .slideshow-plugin.has-mobile-text-below .slideshow-button-main {
        font-size: 16px !important;
        line-height: 1.35 !important;
    }
    body.home .slideshow-plugin.has-mobile-text-below .slideshow-button-main i { font-size: 18px !important; }
    body.home .slideshow-plugin.has-mobile-text-below .slideshow-button-link:first-child { border-color: #1a6bbf !important; background: #fff !important; }

    .mc3-welcome-section { padding: 40px 0 !important; }
    .mc3-welcome-section > .absolute { display: none; }
    .mc3-welcome-section .mc3-welcome-row {
        flex-direction: column;
        gap: 28px;
        padding-left: 24px;
        padding-right: 24px;
    }
    .mc3-welcome-section .mc3-welcome-video-column,
    .mc3-welcome-section .mc3-welcome-copy { width: 100%; min-width: 0; padding: 0; }
    .mc3-welcome-video-column > div > div { aspect-ratio: 16 / 9 !important; }
    .mc3-welcome-section #mc3-welcome-video { width: 100% !important; left: 0 !important; transform: none !important; }
    .mc3-welcome-copy h1 { margin-bottom: 18px; }
    .mc3-welcome-copy h1 > span:first-child { display: block; font-size: clamp(26px, 7vw, 32px); line-height: 1.1; }
    .mc3-welcome-copy h1 > span:last-child { display: block; font-size: clamp(40px, 11vw, 50px); line-height: 1.05; }
    .mc3-welcome-copy > p { font-size: 16px; line-height: 1.65; }

    #chs-footer.footer > .w-full > div { padding: 24px !important; }
    #chs-footer.footer .grid.grid-cols-1.items-start { gap: 18px !important; }
    #chs-footer.footer .grid.grid-cols-1.items-start > div {
        min-height: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-left: 0 !important;
    }
    #chs-footer.footer .grid.grid-cols-1.items-start > div:first-child { padding-bottom: 4px !important; }
    #chs-footer.footer .footer-heading { margin-bottom: 14px !important; font-size: 18px !important; }
    #chs-footer.footer .footer-heading-icon { width: 34px !important; height: 34px !important; }
    #chs-footer.footer .grid.grid-cols-1.items-start > div:not(:first-child) { padding-top: 18px !important; border-top: 1px solid #dce2e8 !important; }
    #chs-footer.footer .uv-bottom-menu { gap: 10px !important; }
    #chs-footer.footer .footer-social-icons { margin-top: 16px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .mc3-welcome-section { padding: 56px 0 !important; }
    .mc3-welcome-section .mc3-welcome-row { gap: 28px; }
    .mc3-welcome-section .mc3-welcome-video-column { width: 44%; }
    .mc3-welcome-section .mc3-welcome-copy { min-width: 0; }
    .mc3-welcome-copy h1 > span:first-child { font-size: 28px; }
    .mc3-welcome-copy h1 > span:last-child { font-size: 44px; }
    #chs-footer.footer .grid.grid-cols-1.items-start { gap: 28px !important; }
    #chs-footer.footer .grid.grid-cols-1.items-start > div { min-height: 0 !important; padding-left: 16px !important; padding-right: 16px !important; }
}

@media (max-width: 1023px) {
    .mc3-service-card table[role="presentation"],
    .mc3-service-card table[role="presentation"] tbody,
    .mc3-service-card table[role="presentation"] tr,
    .mc3-service-card table[role="presentation"] td {
        display: block !important;
        width: 100% !important;
    }
    .mc3-service-card table[role="presentation"] td { padding: 0 !important; border-left: 0 !important; }
    .mc3-service-card table[role="presentation"] td + td {
        margin-top: 14px !important;
        padding-top: 14px !important;
        border-top: 1px solid #e2e8f0 !important;
    }
    .mc3-service-card td div[style*="white-space"] { white-space: normal !important; font-size: 16px !important; }
}
@media (max-width: 359px) {
    .fn-mobile-topbar .fn-logo-wrap { flex: 0 0 88px; max-width: 88px; }
    .fn-mobile-topbar .fn-logo-wrap .logo-link img { max-width: 88px !important; width: auto !important; height: auto !important; }
    .fn-mobile-topbar .fn-top-actions { gap: 4px; }
    .fn-mobile-topbar .fn-chip-btn { padding-left: 8px; padding-right: 8px; }
}

@media (min-width: 768px) and (max-width: 1009px) {
    body.home .slideshow-plugin.has-mobile-text-below .slideshow-text-container { transform: none !important; padding: 24px !important; }
    body.home .slideshow-plugin.has-mobile-text-below .slideshow-text-layer:not(.slideshow-button-layer) { font-size: 36px !important; line-height: 1.15 !important; }
    body.home .slideshow-plugin.has-mobile-text-below .slideshow-button-link { min-height: 48px !important; padding: 12px 24px !important; justify-content: center !important; }
    body.home .slideshow-plugin.has-mobile-text-below .slideshow-button-main { font-size: 16px !important; }
}
