/* Hide the legacy site-shell footer, not any route's own controls or attribution. */
body > footer.commands { display:none !important; }
/* Keep the exact existing masthead/content tracks; collapse only the optional footer track.
   Map and full dossier already specify their own zero-footer grids. */
body.home-ui:not(.dossier-ui):not(:has(#screen > .codex-map-view, #screen > .object-screen)) {
  grid-template-rows:minmax(0,1fr) 0 !important;
}
body.home-ui:not(.dossier-ui):has(> .portable-notice):not(:has(#screen > .codex-map-view, #screen > .object-screen)) {
  grid-template-rows:max-content minmax(0,1fr) 0 !important;
}
body:not(.home-ui,.dossier-ui):not(:has(#screen > .codex-map-view, #screen > .object-screen)) {
  grid-template-rows:var(--masthead-height) minmax(0,1fr) 0 !important;
}
body:not(.home-ui,.dossier-ui):has(> .portable-notice):not(:has(#screen > .codex-map-view, #screen > .object-screen)) {
  grid-template-rows:max-content var(--masthead-height) minmax(0,1fr) 0 !important;
}
