/* Footer layout and artwork restored from approved theme 1.58.0; only newsletter form/overflow rules remain here. */
html body.mg-frontend-156 #footer .mgfi-newsletter-form{position:relative!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:4px!important;min-width:0!important;width:100%!important;margin:15px 0 0!important;padding:3px!important;border:1px solid #dce5d8!important;border-radius:30px!important;background:#fffef9!important;box-sizing:border-box}
html body.mg-frontend-156 #footer .mgfi-newsletter-email{display:block!important;flex:1 1 0!important;min-width:0!important;margin:0!important;padding:0!important}
html body.mg-frontend-156 #footer .mgfi-newsletter-email input[type=email]{display:block;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:38px!important;border:0!important;background:transparent!important;border-radius:22px!important;margin:0!important;padding:0 12px!important;color:#234f3e!important;font:inherit;font-size:12px!important;box-shadow:none!important}
html body.mg-frontend-156 #footer .mgfi-newsletter-form button{flex:0 0 auto!important;min-width:80px!important;max-width:42%!important;height:38px!important;min-height:38px!important;border:0!important;border-radius:24px!important;padding:0 15px!important;margin:0!important;color:#fff!important;background:#38755b!important;white-space:nowrap!important;font:inherit;font-size:12px!important;cursor:pointer}
html body .mgfi-newsletter-form input[name=website_confirm]{position:absolute!important;inset:0 auto auto 0!important;left:0!important;right:auto!important;top:0!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;max-width:1px!important;margin:0!important;padding:0!important;border:0!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important;flex:none!important}
html body .mgfi-newsletter-form .screen-reader-text{position:absolute!important;inset:0 auto auto 0!important;left:0!important;right:auto!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}

/* Explicit owner request: show three certificates together, retain saved documents. */
@media(min-width:701px){html body #footer .footer-license-carousel{width:min(100%,520px)}html body #footer .footer-license-carousel .license-slot{flex:0 0 calc((100% - 18px)/3);min-width:0}}
@media(max-width:700px){html body #footer .mobile-license-rail{display:flex;gap:8px}html body #footer .mobile-license-rail>:is(a,span){box-sizing:border-box;flex:0 0 calc((100% - 16px)/3)!important;min-width:0}}

/* 1.67.1: owner removed the home-only gold strip; keep the original footer artwork. */
html body.home-page #footer::before{content:none!important;display:none!important}
