/* UKBC v1.2.23 — mobile-only resilience for the original v1.2.6 shell.
   These rules never affect screens wider than 767px or the desktop header/footer. */
@media (max-width:767px) {
  body.ukbc-site-shell-active {
    min-width:0;
    overflow-x:clip;
  }
  body.ukbc-site-shell-active .ukbc-site-main,
  body.ukbc-site-shell-active .ukbc-page,
  body.ukbc-site-shell-active .ukbc-page-content {
    min-width:0;
    max-width:100%;
  }
  /* v1.2.6 expected a stacked footer. Make the phone breakpoint consistent
     with the bottom navigation breakpoint (previously split at 660px). */
  body.ukbc-site-shell-active .ukbc-site-footer {
    display:block !important;
    visibility:visible !important;
    max-width:100%;
    overflow-wrap:anywhere;
    background:#112329;
    color:#fff;
  }
  body.ukbc-site-shell-active .ukbc-site-footer .ukbc-footer-heading {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:18px;
    padding-top:48px;
    padding-bottom:40px;
  }
  body.ukbc-site-shell-active .ukbc-site-footer .ukbc-footer-heading h2 {
    font-size:clamp(30px,8vw,43px);
    line-height:1.12;
  }
  body.ukbc-site-shell-active .ukbc-site-footer .ukbc-footer-grid {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:28px;
    padding-top:38px;
    padding-bottom:40px;
  }
  body.ukbc-site-shell-active .ukbc-site-footer .ukbc-footer-grid > * {
    min-width:0;
  }
  body.ukbc-site-shell-active .ukbc-site-footer .ukbc-footer-bottom {
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
    overflow-wrap:anywhere;
  }
  body.ukbc-site-shell-active .ukbc-site-footer .ukbc-footer-bottom > div {
    display:flex;
    flex-wrap:wrap;
    gap:10px 16px;
  }
  body.ukbc-site-shell-active.ukbc-has-mobile-nav .ukbc-site-footer {
    padding-bottom:env(safe-area-inset-bottom,0px);
  }
  /* The v1.2.6 navigation sits outside the main page/footer, remains fixed
     above the browser's safe area and must not be hidden by Elementor rules. */
  body.ukbc-site-shell-active.ukbc-has-mobile-nav .ukbc-app-tabbar {
    display:grid !important;
    visibility:visible !important;
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
  body.ukbc-site-shell-active.ukbc-has-mobile-nav .ukbc-site-header {
    display:none !important;
  }
  body.ukbc-site-shell-active.ukbc-has-mobile-nav .ukbc-site-main {
    padding-bottom:0;
  }
}
