/* BlackBook v14.6.1 — double-island navigation geometry fix
   The v14.6 workspace skin and the older tablet drawer rules overlapped between
   961px and 1120px, while the secondary island was translated a second time on
   primary-rail hover. Keep one deterministic desktop mode and one mobile mode. */

/* app.css already moves the contextual island by changing its `left` value when
   the primary rail peeks open. v14.6 added an extra +114px transform on top of
   that, producing the large gap visible between the two islands. */
.bb-navfix-v1461.primary-peek-v1442 .secondary-sidebar,
.bb-navfix-v1461 .primary-island-v1442:hover ~ .secondary-sidebar {
  transform: none !important;
}

/* At compact-laptop widths the legacy <=1120px rule exposed mobile controls
   even though the NJS-style island shell stayed in desktop mode until 960px.
   Keep desktop island controls coherent throughout the 961–1120px interval. */
@media (min-width: 961px) and (max-width: 1120px) {
  .bb-navfix-v1461 .mobile-menu {
    display: none !important;
  }

  .bb-navfix-v1461 .secondary-mobile-close {
    display: none !important;
  }

  .bb-navfix-v1461 .secondary-nav-toggle {
    display: grid !important;
  }

  .bb-navfix-v1461 .nav-scrim {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .bb-navfix-v1461 .navigation-shell-v1442 {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* True mobile/tablet mode starts at the same breakpoint for all pieces. */
@media (max-width: 960px) {
  .bb-navfix-v1461 .secondary-mobile-close {
    display: grid !important;
  }

  .bb-navfix-v1461 .secondary-nav-toggle {
    display: none !important;
  }
}
