/* ========================================================================== */
/* ETHNOS R160 — dock inférieur unique et structurel                         */
/* Base : R159. Aucun changement backend ni contenu fonctionnel.             */
/* ========================================================================== */

/* Une seule barre basse et un seul pied légal peuvent être visibles. */
html body .memberWorldDock:not(#memberWorldDock),
html body footer.memberFooter:not(#memberFooter){
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

html body #memberWorldDock{
  display:grid !important;
  visibility:visible !important;
  opacity:1 !important;
  pointer-events:auto !important;
  position:fixed !important;
  z-index:220 !important;
  left:0 !important;
  right:max(0px,calc(var(--ethnos-context-width,0px) - 16px)) !important;
  bottom:var(--footer-legal,22px) !important;
  width:auto !important;
  height:var(--r110-dock-height,54px) !important;
  min-height:var(--r110-dock-height,54px) !important;
  max-height:var(--r110-dock-height,54px) !important;
  margin:0 !important;
  transform:none !important;
}

html body #memberFooter{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  position:fixed !important;
  z-index:210 !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  width:100% !important;
  height:var(--footer-legal,22px) !important;
  min-height:var(--footer-legal,22px) !important;
  max-height:var(--footer-legal,22px) !important;
  margin:0 !important;
  transform:none !important;
}

/* Le contenu central s’arrête exactement au-dessus de la barre basse. */
@media (min-width:901px){
  html[data-ethnos-ui="discord-r111"] body .memberLayout{
    bottom:var(--footer-legal,22px) !important;
  }
  html[data-ethnos-ui="discord-r111"] body .memberWorkspace{
    height:calc(100% - var(--r110-dock-height,54px) - 17px) !important;
  }
}

@media (max-width:900px){
  html body #memberWorldDock{
    left:8px !important;
    right:8px !important;
    bottom:calc(var(--footer-legal,22px) + 5px) !important;
  }
}
