/*
 * Backup once the native adapter connects. The layout already omits
 * nav.navbar for a Hotwire Native user agent, which is what prevents a flash.
 * Contract: hotwire-native-shell main fc415eb, docs/NATIVE_UI.md and docs/BRIDGES.md.
 */

html[data-bridge-platform] nav.navbar,
body.hotwire-native nav.navbar {
  display: none;
}

/* The shell always registers overflow-menu and tabs, so hide that HTML on the
   first byte. The attribute rules below are the documented backup. */
body.hotwire-native [data-controller~="bridge--overflow-menu"],
body.hotwire-native [data-controller~="bridge--tabs"],
[data-bridge-components~="tabs"] [data-controller~="bridge--tabs"],
[data-bridge-components~="overflow-menu"] [data-controller~="bridge--overflow-menu"],
[data-bridge-components~="share"] [data-controller~="bridge--share"],
[data-bridge-components~="haptic"] [data-controller~="bridge--haptic"],
[data-bridge-components~="notification-token"] [data-controller~="bridge--notification-token"] {
  display: none;
}
