/* VELU GAME FACTORY SECTION OWNER V0.3.3 */

/*
 * Hard ownership rule:
 * Project Knowledge / Design / Quality is invisible anywhere in Game Factory
 * unless it is a DIRECT child of the Knowledge section host.
 *
 * This rule intentionally does NOT depend on old V0.3 html/body classes.
 */
#game-factory .velu-project-quality {
  display: none !important;
}

#game-factory
#velu-factory-v03-shell
[data-v03-quality-host] > .velu-project-quality {
  display: block !important;
}

#game-factory
#velu-factory-v03-shell
[data-v03-quality-host] > .velu-project-quality[data-v033-duplicate="1"] {
  display: none !important;
}

/* Publishing/review obeys the same physical ownership rule. */
#game-factory #velu-engine-user-review {
  display: none !important;
}

#game-factory
#velu-factory-v03-shell
[data-v03-review-host] > #velu-engine-user-review {
  display: block !important;
}

/* A hidden section always wins, even if a feature module tries to force display. */
#velu-factory-v03-shell [data-v03-section][hidden],
#velu-factory-v03-shell [data-v03-section][hidden] * {
  visibility: hidden !important;
  pointer-events: none !important;
}

#velu-factory-v03-shell [data-v03-section][hidden] {
  display: none !important;
}

/* Guard against a stray old card affecting page flow above the navigation. */
#game-factory > .velu-project-quality,
#game-factory > #velu-engine-user-review {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
