/* V167: mobile navigation/final-footer geometry.
 * Fixes V166 selector mismatch: the site uses .lumo-compact-footer,
 * not .lumo-footer. Keep the dock fixed and reserve its clearance
 * INSIDE the real footer to eliminate the blank body strip after it.
 */
@media screen and (max-width: 999px) {
  :root { --ln-v167-dock-content: 73px; --ln-v167-safe: env(safe-area-inset-bottom, 0px); }
  html { overflow-x: clip; }
  body:has(#ln-dock) { overflow-x: clip; }
  #ln-dock.ln-dock {
    display: block;
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    padding: 0 0 var(--ln-v167-safe);
    box-sizing: border-box;
    background: #fff;
    border-top: 1px solid #d3e2df;
    box-shadow: 0 -4px 18px rgba(9, 51, 56, .09);
    z-index: 10030;
    transform: none;
    will-change: auto;
  }
  #ln-dock > .ln-dock-in {
    height: var(--ln-v167-dock-content);
    min-height: var(--ln-v167-dock-content);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }
  /* Pages WITHOUT a site footer still need bottom clearance for their content. */
  body:has(#ln-dock):not(:has(footer.lumo-compact-footer, footer.lumo-footer)) {
    padding-bottom: calc(var(--ln-v167-dock-content) + var(--ln-v167-safe));
  }
  /* The actual footer occupies the space at the end of the document. */
  body:has(#ln-dock):has(footer.lumo-compact-footer, footer.lumo-footer) {
    padding-bottom: 0;
    margin-bottom: 0;
  }
  body:has(#ln-dock) footer.lumo-compact-footer,
  body:has(#ln-dock) footer.lumo-footer {
    padding-bottom: calc(var(--ln-v167-dock-content) + var(--ln-v167-safe));
    margin-bottom: 0;
    box-sizing: border-box;
  }
  /* Footer artwork remains dark right to its bottom; no extra white strip. */
  body:has(#ln-dock) footer.lumo-compact-footer {
    background: #101629;
  }
  /* Prevent to-top and cookie controls from overlapping the fixed dock. */
  body:has(#ln-dock) :is(.progress-wrap, .cookie-popup) {
    bottom: calc(var(--ln-v167-dock-content) + 10px + var(--ln-v167-safe));
  }
}
@media screen and (max-width: 999px) and (orientation: landscape) {
  :root { --ln-v167-dock-content: 65px; }
}
@media screen and (min-width: 1000px) {
  #ln-dock.ln-dock { display: none; }
}
@media print { #ln-dock.ln-dock { display: none !important; } }
