/* V166 — keep mobile dock in the visual viewport and eliminate the false
   blank strip after the global footer. Scoped to pages with the shared dock. */
@media screen and (max-width: 999px) {
  :root { --ln-mobile-dock-height: 73px; }
  body:has(> .ln-dock) > .ln-dock,
  body .ln-dock {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    border-radius: 0;
    box-sizing: border-box;
    z-index: 1003;
    background: #fff;
  }
  .ln-dock .ln-dock-in {
    width: 100%;
    max-width: 100%;
    min-height: var(--ln-mobile-dock-height);
    margin: 0 auto;
  }
  /* Footer fills the reserved scroll clearance itself. This avoids the white
     body-padding region appearing after the dark footer at the end of a page. */
  body:has(.ln-dock):has(footer.lumo-footer) {
    padding-bottom: 0;
  }
  body:has(.ln-dock) footer.lumo-footer,
  html.lumo-public body:has(.ln-dock) footer.lumo-footer {
    padding-bottom: calc(var(--ln-mobile-dock-height) + 21px + env(safe-area-inset-bottom, 0px)) !important;
    margin-bottom: 0 !important;
  }
}
@media screen and (max-width: 999px) and (orientation: landscape) {
  :root { --ln-mobile-dock-height: 65px; }
  .ln-dock .ln-dock-in { min-height: var(--ln-mobile-dock-height); height: var(--ln-mobile-dock-height); }
}
